Use when filing, opening or raising a PR.
Ships in unfuss. 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.
The base is the branch the user named. Without one, use the repository's integration branch (dev when it exists, otherwise the default branch).
Run git fetch origin first, because GitHub compares against the remote base. Then run these in parallel.
git status -sb # branch, upstream, anything uncommitted
git log --format="%h %s" origin/<base>..HEAD # commits this PR carries
git diff --stat origin/<base>...HEAD # files it touches
gh pr list --state open --json number,headRefName,baseRefName,title
Uncommitted changes stop the skill: say so and offer the
commitskill. Nothing is pushed or opened with a dirty tree.
An open PR with this branch as its head also stops the skill: report its URL.
Skip this step when the user named the base.
If an open PR's head branch is an ancestor of HEAD and isn't yet merged into the base, stack this PR on it: use that head as the base, so the diff shows only the commits on top. When several match, stack on the nearest one.
Write the body from the diff, not from the log or your memory of the conversation.
git diff origin/<base>...HEAD, plus the files it touches where the diff can't explain the change.This step is done when every file in the diff is accounted for.
Verification tells the reviewer what confirms the state of the PR, so it states only what was actually run at the branch head, with the command and the result.
Reuse results from this session when they came from the branch head. Otherwise, run the project's checks now (test suite, type checker, linter, build). Name what was not exercised, such as a UI that was never clicked through, so the reviewer knows where to look. Never claim a pass you did not see.
When the PR is a performance change, show the same measurement before and after.
model-attribution.> [!WARNING] callout that names each change and what a client must do about it.diff block when it changes an existing shape, and show only what the change touches.oldName -> newName.The body ends at the Verification section, so it carries no "Generated with" or "Co-Authored-By" lines.
Stacked on #41 (
orders-module). Merge that first; this PR only contains the commits on top of it.
[!WARNING]
calculatePrice->priceOrder. Clients must now pass a currency, becausedefaultCurrencyis gone.
This pull request moves pricing out of checkout and into the orders module, so every caller shares one calculation. Checkout no longer keeps its own copy of the discount rules. The most important changes are:
src/
├── orders/
+│ └── pricing.ts
└── checkout/
- └── pricing.ts
Pricing seam
priceOrder in src/orders/pricing.ts and routed CheckoutForm, BasketSummary and InvoiceJob through it; the private copies are removed.defaultCurrency fallback, so a missing currency now fails explicitly.Testing
priceOrder and a contract test for InvoiceJob.Verification
pnpm test at a1b2c3d: 214 passed.pnpm typecheck at a1b2c3d: no errors.Show the title and body in the conversation and wait. A PR is visible to the whole team, so this is the one confirmation the skill takes, and nothing is pushed or filed without it.
Push the branch, with -u when it has no upstream, because --head makes gh skip pushing. Write the body to a temporary file and pass it with --body-file, so quoting survives every shell:
gh pr create --base <base> --head <branch> --title "<title>" --body-file <body-file>
Report the PR URL, the base it targets, and the number it stacks on, if any.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/unfuss:file-prfrom unfuss
npx claudepluginhub malasataxd/unfuss --plugin unfuss32 skills in this plugin