/git:pull-requestfrom git
Drafts GitHub PR bodies, descriptions, and comments to .scratch/pr-bodies/ before running gh commands. Follows repo templates and conventions.
Ships in git. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Authoring PR communication that respects busy reviewers. All bodies and comments are drafted to .scratch/pr-bodies/ first. For creation the draft is the audit record, written then used immediately; for updates and comments it's also a review checkpoint. Manual edits are detected before overwriting.
| Operation | Typical phrasing | gh command at end |
|---|---|---|
| Create | "create/draft/open/file a PR", "push and PR it" | gh pr create --body-file |
| Update body | "update the PR body", "rewrite the PR description" | gh pr edit --body-file |
| Comment | "comment on the PR", "reply to review feedback" | gh pr comment --body-file |
Always pass --body-file, never an inline --body (shell escaping, and no draft on disk).
"update the PR" is ambiguous:
Prefer body update when there are no reviews yet, the user says "update the description", or scope changed. Prefer comment when reviews are in, the user is responding to feedback, or they want to notify watchers (comments generate notifications, body updates do not).
Check for a PR template (.github/pull_request_template.md, .github/PULL_REQUEST_TEMPLATE.md, .github/PULL_REQUEST_TEMPLATE/*.md) and CONTRIBUTING.md (also .github/CONTRIBUTING.md, docs/CONTRIBUTING.md). If a template exists, follow it exactly.
## Summary
- Material impact point 1
- Material impact point 2 (2-4 bullets total)
## Test plan
- How to verify (only if non-obvious)
<attribution footer, if your environment requires one>
Optional sections based on context: ## Breaking changes, ## Migration notes, ## Follow-up work.
If your instructions require an attribution footer on PR bodies (for example a "Generated with ..." line), append it as the last line of the body. It isn't a section; don't give it a heading.
If a voice or writing-style skill is available for prose written under the user's name, load it and follow it for the body and comments. No em-dashes in titles, bodies, or comments: outbound em-dash checks reject them at send time, so fix the draft before running gh.
Lead with material impact and why it matters. If a reviewer can see it in the diff or CI output, leave it out unless it is the central focus: metrics (test counts, files changed, coverage), implementation narration ("created a new Foo class", "added error handling"), technology lists, and "following best practices". No H1 (GitHub shows the title).
gh pr list --head <branch> --state open. If one exists, route to update; if more than one (rare), ask which.git log <base>..HEAD, PR template, CONTRIBUTING.md..scratch/pr-bodies/drafts/<slug>.md.gh pr create --title "..." --body-file <draft-path> (add --draft if the user asked for a draft). No approval pause on the routine case: being asked to create a PR is itself the go-ahead; the draft file is the record, not a checkpoint. Don't add a confirmation pause back in "to be safe": skipping that round-trip is the point. Do stop and confirm first if something's off the routine path: no commits ahead of base, an open PR already exists for this branch, or the title/scope is genuinely ambiguous..scratch/pr-bodies/<number>/<timestamp>-body.md and write metadata.json with the body hash.gh pr view --json number,body,title,state. Load metadata.json if present. Warn if closed or merged.shasum -a 256) and compare to last_generated_hash. If different and the diff is more than whitespace, ask: overwrite, merge, or cancel. Never overwrite manual edits silently.<base>..HEAD. If scope is unchanged from last generation, skip the update and say "description still accurate"..scratch/pr-bodies/<number>/<timestamp>-body.md. Show the diff (current vs proposed) and confirm.gh pr edit <number> --body-file <file>. Update metadata.json (new hash, timestamp).gh pr view --json number,title,reviews,comments..scratch/pr-bodies/<number>/<timestamp>-comment.md. Show the draft and confirm.gh pr comment <number> --body-file <file>.Unlike create, update and comment always get the user's review first: they can overwrite manual edits or ping reviewers.
.scratch/pr-bodies/
drafts/
<slug>.md # Pre-creation drafts
<pr-number>/
metadata.json # See schema below
<timestamp>-body.md # Timestamped body versions
<timestamp>-comment.md # Timestamped comments
metadata.json:
{
"pr_number": 123,
"branch": "feature/foo",
"base": "main",
"title": "Add foo",
"created_at": "2025-11-07T10:30:00Z",
"last_generated_hash": "abc123...",
"last_updated_at": "2025-11-07T16:45:30Z",
"manual_edits_detected": false
}
File timestamps use ISO 8601 with hyphens (2025-11-07T10-30-00). Keep metadata.json, the last five timestamped files, and any in-progress draft; delete the draft after creation.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub technicalpickles/pickled-claude-plugins --plugin git9 skills in this plugin
/checkoutUse when checking out a PR, branch, or ref for local work - sets up worktree with context/commitUse when committing changes to git - provides best practices for staging, commit messages, signing, and handling hook failures/git-worktreesUse when creating or removing a git worktree (`git worktree add`, `wt switch --create`, `EnterWorktree`), when a PR whose branch has a worktree checked out has merged, or when removing one reports "Branch unmerged" or `Operation not permitted`. Covers branching from the right base, cleanup after merge, and the sandbox gotchas.Other plugins' skills for the same job