AgentStack
SKILL verified MIT Self-run

Pr Creator

skill-mlhiter-skills-pr-creator · by mlhiter

A Claude skill from mlhiter/skills.

No reviews yet
0 installs
12 views
0.0% view→install

Install

$ agentstack add skill-mlhiter-skills-pr-creator

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access Used
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Pr Creator? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Pull Request Creator

Create high-quality pull requests that follow the repository template and keep the PR head/base unambiguous.

Workflow

  1. Branch Management: Ensure you are not working on main or master.

``bash git branch --show-current ` If needed, create a descriptive branch before making or publishing commits: `bash git checkout -b ``

  1. Commit Changes: Verify all intended changes are committed.

``bash git status --porcelain git diff git diff --staged ` Stage only the files or hunks that belong to the current PR. Do not commit unrelated dirty work, secrets, credentials, or direct changes to main`.

  1. Locate Template: Search for a pull request template.
  • .github/pull_request_template.md
  • .github/PULL_REQUEST_TEMPLATE.md
  • .github/PULL_REQUEST_TEMPLATE/*
  1. Draft Description: Fill the template faithfully.
  • Write the PR title and all PR-facing text in English by default, even when

the conversation with the user is in another language.

  • This includes the title, body, template answers, checklist notes,

verification notes, and any public PR comments or follow-up text.

  • Do not include Chinese/CJK text in the PR unless the user or repository

explicitly requires a different public language.

  • Keep the template headings.
  • Mark checklist items only when they are actually complete.
  • Include concise summaries, test results, and related issues when relevant.
  1. Run Preflight: Run the repository's established verification command

before creating the PR. If there is no clear preflight command, inspect the project docs and use the smallest relevant build, lint, or test command.

  1. Resolve Target, Base, and Head: Do this before pushing or calling

gh pr create. ``bash branch="$(git branch --show-current)" git branch -vv git config --get-regexp "^branch\\.${branch}\\." || true git remote -v gh repo view --json nameWithOwner,isFork,parent,defaultBranchRef ``

  • Resolve the target repository where the PR should be opened.
  • Resolve the base branch from an explicit merge-base config when available

(branch..gh-merge-base or branch..vscode-merge-base); otherwise compare likely bases and ask if it remains ambiguous.

  • Resolve the intended head owner, head repository, and head remote. In a

fork-to-upstream workflow, the head is normally the fork owner and the target is the upstream owner.

  • Do not treat tracking config (branch..remote or

branch..merge) as the PR base.

  1. Push Only to the Intended Head Remote: Verify both refs, then push the

current branch to the chosen head remote. ``bash git ls-remote --heads git push HEAD: git ls-remote --heads ` Use -u` only when binding local tracking to this same intended head is safe and explicit.

  1. Create PR with an Owner-Qualified Head: Write the body to a temporary

file, scan the title/body for unintended Chinese/CJK text, then create the PR with explicit --repo, --head, and --base. ``bash python3 - "$title" "$body_file" \ --head : \ --base \ --title "type(scope): succinct description" \ --body-file ``

Hard stop for fork failures: If gh pr create --head : fails because GitHub does not accept that fork head, do not push ` to the upstream repository as a same-name fallback, and do not create a PR from upstream:`. Stop and report the failed command, resolved target, resolved head, base branch, and error.

Only after explicit user approval may you use an upstream-owned head as a fallback. When approved, prefer a unique upstream branch name, push to that exact branch, use an owner-qualified --head :, and verify the PR head after creation.

  1. Verify PR Head/Base: After creation, confirm the PR points at the

intended owner/ref before reporting success. ``bash gh pr view \ --repo \ --json url,headRepositoryOwner,headRefName,baseRefName,isCrossRepository,commits ` The reported headRepositoryOwner, headRefName, and baseRefName` must match the resolved target. If they do not match, stop and report the mismatch.

Principles

  • Never push to main or master.
  • Never silently switch the PR head owner or remote.
  • Always use owner-qualified --head : for fork/upstream PRs.
  • Never ignore the PR template.
  • Keep PR titles, descriptions, checklist text, verification notes, and public

PR comments in English by default.

  • Do not mark checklist items that have not been verified.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.