/dev:explain-prfrom dev
Explains the current branch's pull request in plain language — what it actually does and why, where the changes that matter are, what can be skimmed, and what could go wrong — so the owner can get his bearings before (or instead of) reading the diff. When the PR is one node of a stacked chain, explains the whole chain node by node, bottom up. Use when the user says "explain this PR", "what are these changes about", "what does this PR actually do", "walk me through the stack", "walk me through these changes", "what does this stack do", or otherwise wants to understand a PR rather than judge it — any language counts. Read-only: it posts nothing. Do NOT use to find bugs and post findings (/dev:review) or to act on PR comments (/dev:fix-pr-comments).
Ships in dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
He opens this to understand a PR fast — usually one an agent wrote, often one in a chain — before he decides where to spend his attention. So the explanation is a map, not a summary of every file: what the change does for whoever uses the system, the few places where that actually happens, what he can skim, and what could break. A diff already lists everything; the value here is in the ordering and the plain words.
Everything is in chat, in the owner's language as /dev:review defines it
(${CLAUDE_PLUGIN_ROOT}/skills/review/SKILL.md). Technical terms stay English. Nothing is posted to
GitHub and no file is written.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/review/scripts/pr_stack.py
It prints the chain this branch belongs to, bottom first: per node prNumber, branch, headSha,
base, plus currentNode. An ordinary PR is a chain of one, so there is no separate path. A
non-zero exit means it could not tell what the chain is — report what it said and stop rather than
explaining a guessed shape. prNumber: null means the branch has no PR yet: say so, and explain the
branch against its base (git diff <default branch>...HEAD) instead.
Per node:
gh pr view <n> --json title,body,url,commits
gh pr diff <n>
gh pr diff is exactly what GitHub shows for that node, whatever is checked out locally. When it
refuses a very large PR, use git diff <base>...<headSha> after git fetch origin <branch>. To read
code beyond the diff — a caller, the type a field comes from — read it as the node has it
(git show <headSha>:<path>), since the working tree may stand on another node. Do read beyond the
diff when the change only makes sense through its surroundings; the description says what the author
meant, the code says what happens.
A node read alone often makes no sense — a new table with no reader, an interface with one implementation — because its reason lives in the node above. So read every node first, then explain: the chain's story in a few sentences, then node by node from the bottom, each with its role in the story. Mark the node he is standing on. A risk that spans nodes is named once, on the lowest node it starts in.
path:line, each with one
sentence on what it decides. This is what he will open, so be selective.NULL in the new column and
the report sums it" is a risk; "could introduce bugs" is not. If you see none worth naming, say so
in a sentence — padding this list teaches him to skip it.Size follows the PR: a ten-line fix gets a paragraph, not five headings.
For a two-node chain, standing on the top node (written in the owner's language in practice):
The chain: patients can now withdraw marketing consent themselves; until now only staff could, through support. Node 1 adds the withdrawal to the backend, node 2 puts the button in the portal.
#412 — withdrawal in the backend (read it) A new command records the withdrawal and stops further campaign mailings.
src/consent/WithdrawConsentCommand.ts:30— marks the consent withdrawn rather than deleting it, so the history stays for audit.src/campaigns/recipients.ts:58— the mailing query now skips withdrawn consents.- Skim:
src/consent/index.tsand the regeneratedapi.gen.tsare wiring.- Risk: campaigns already queued before the withdrawal still go out — the check is at queue time, not at send time. A patient who withdraws an hour before a send still gets that email.
#413 — button in the portal ← you are here (skim) One button and a confirmation dialog calling the command from #412 (
src/portal/ConsentPanel.tsx:44). No logic of its own; nothing worth naming as a risk.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kedrzu/skills --plugin dev15 skills in this plugin
/buildUse for large features, new subsystems, architectural changes, or cross-cutting work that introduces new patterns or requires significant design decisions. Examples: adding a new actor system, redesigning the auth layer, building a new app module from scratch, or any work spanning 8+ files with architectural trade-offs. Do NOT use for: bug fixes or one-file tweaks (/dev:fix), a well-scoped single unit of work with no spec needed (/dev:task), a medium multi-file feature that fits one spec+plan without architecture-level design (/dev:feature), or building a closed design from docs/design/<slug>/ (/dev:deliver). When unsure between /dev:feature and /dev:build, the deciding signal is architectural design work, not file count./deliverBuild a closed design from `docs/design/<slug>/` in one run on one tracker issue: agree a high-level overview of the work, implement it milestone by milestone — each milestone something the user can see and try, not read — stop to bring back every gap, divergence or better idea the design did not settle, and land the whole thing as one PR (a stacked chain only where the project's `git-workflow` uses stacks). Use whenever the user wants a design folder built — "implement design X", "roll out X from the design", "build docs/design/<slug>", "do what we have in the design", a handoff from /dev:design — even if they do not name this skill. Do NOT use to write or change a design (/dev:design), for large work with no design folder (/dev:build designs it itself), to turn a design into tracker issues, or to fan many tasks out across worktrees.