/pull-requests:create-prfrom pull-requests
Creates a GitHub pull request with a structured body that helps reviewers understand changes without session context. Fills a template covering original request, decisions, tradeoffs, and testing.
Ships in pull-requests. 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; scripts run unread.
Open a PR whose description lets a reviewer judge the change without having been in the session.
Run <skill-dir>/scripts/pr.py prepare, where <skill-dir> is this
skill's base directory. It pushes the branch, prints the template to fill,
and prints the BODY FILE: path it created for this run.
Fill every template section from the whole session, not the diff alone.
Cover the original request and the decisions made with their tradeoffs, and
say what was tested and how. Follow the writing instructions in the template's comments,
and leave the comments in place - the submit step removes them.
Give each section the layout below. In the section that tells what
changed, show the change as a diagram, a diff sketch, or a tree:
references/visuals.md has the forms.
Read the BODY FILE: path prepare printed with the Read tool - the file
is an empty placeholder, and the Write tool refuses a file it has not read.
Then write the filled template to that exact path - never a path of your
own choosing, which risks reusing a stale body from an earlier session.
Then run:
<skill-dir>/scripts/pr.py submit "<title>" <body-file>
The submit command strips the comments, adds the AI-assistance notice below
the body, and creates the PR through gh; the guard hook blocks a
bare gh pr create.
The layout follows the headings. Every heading in a PR body gets it, apart
from the exception below, and so does a body rewritten with gh pr edit.
The visible part is at most two sentences, and each sentence is its own
paragraph. The longer explanation, lists, and code go in a collapsed block
that adds to those sentences. The <br> gives the opened block space below
its summary. GitHub renders the markdown inside only with the two blank lines
around the block's content:
## Heading
First sentence.
Second sentence, when the first is not enough.
<details>
<summary>Details</summary>
<br>
Longer explanation.
</details>
Leave the block out of a section whose visible sentences say everything.
The section that tells what changed is the exception. The reviewer reads its
diagram, diff sketch, or tree first, so that content goes directly below the
opening sentences with no <details> block around it:
## What
First sentence.
```diff
submitForm
+ expandSkillMention
launchAgent
```
The parts of the change and how they work.
For any other PR or issue body, such as gh issue create or gh pr edit,
write the body file with the Write tool first, then run gh as a separate
command.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub staticaland/skills --plugin pull-requests3 skills in this plugin
/gh-attachUpload an image or video through the attach flag of `gh` and control where it renders in the body of a GitHub issue, pull request, or comment. Use when attaching or embedding a screenshot, screen recording, diagram, or GIF through `gh`, when a body already written references a local image path, or when a `gh` attachment upload fails./gh-stackManages stacked PRs and splits multi-part work into reviewable branches with gh-stack. Use for stack creation, viewing, edits, push, submit, sync, rebase, merge, or checkout; when asked to split or isolate work for review; whenever a user mentions a stack, branch layers, dependent PRs, or gh stack; or when a stack is checked out.
Other plugins' skills for the same job