/dev:prunefrom dev
Phase 3 of the dev pipeline — a subtractive self-review of the change just made. Removes the helper that duplicates an existing one, the single-caller indirection, the abstraction with no producer, the code the change orphaned, and — after implementation only — the test that carries no signal. It may delete code, repoint call sites at code that already exists, and move an existing helper to where the code index can find it; it never adds. Runs after implementation and again after a fix run, between the scoped check and the full verify. Invoked by the pipeline and by whatever applies review fixes; use it directly when asked to "prune this", "shrink the diff", "remove the unneeded code", or to strip what a change over-built. Do NOT use to judge whether a mechanism is too big for its problem (rightsize), to hunt bugs (a review), to run checks (the project's verify skill), or for any cleanup whose fix is to write more code — an extraction, a rename or an efficiency rewrite is not this phase.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every other phase can only add. Review finds a missing guard and the fixer adds it, the implementer adds a test, and nothing in the loop was ever chartered to take something out — so a PR could only grow, measured at +34.1% between first review and merge across 13 PRs. This phase is the counterweight.
It is not a gate. It asks no permission, blocks nothing and cannot say no to anyone; it makes the diff smaller before the next phase has to read it. Two earlier attempts to bound PR growth failed because they were bounds — they computed the growth, paused, and the run proceeded on approval. If you find yourself writing a threshold, a budget, or a question about whether to go ahead, that is the same failure coming back.
Remove code, and redirect to code that already exists. Introduce nothing new.
That is the whole permission. It is a property, not a list of allowed edits: the diff does not grow and no design decision gets made here. Repointing five call sites at an existing util is fine — the util is not new. Inlining an indirection's body at its one call site is fine, for the same reason, and so is moving an existing helper into a file of its own. Extracting a shared function is not, however obvious the duplication.
Once inside each implementation task, and once after a fix run. Not a budget — a plan with six tasks prunes six times, and a branch fixed twice prunes twice more. If you are invoked and the tree holds a change, that is reason enough.
Both times the tree was green on the verify skill's scoped check a moment before you started, and the caller
runs that same scoped check straight after you. That is what makes your output attributable —
nothing else touched the tree, so a red afterwards is yours, and since you may not add anything, the
remedy is to put the deletion back. Don't run the full verify; it runs once, later, and doubling the
expensive gate is exactly what the phase order exists to avoid.
Your subject is the change in front of you — the files the caller names, or when nobody named any, the uncommitted work in the tree. Not the branch against the main line: that is a review's subject, and on a fix run it would drag in every earlier task and re-judge what an earlier prune already passed.
Old code is in scope when the change made it removable — a helper whose last caller this change
deleted has been on main for months and is still yours. What is out of scope is code the change
did not touch and did not orphan.
A node can hold an endpoint whose only caller arrives in the node above it, which reads as an
abstraction with no producer. Look up the chain before deleting. Inside a /deliver run, look
ahead too: the design and the plans of milestones not yet built say what a later milestone will
call, and code they name is not dead.
getUserId(u) { return u.id }). Inline it. A function a caller elsewhere could use
without knowing its file (parseDate) is a helper even with one caller today — the next item, not
this one. Which of the two it is is your judgement.utils/ folder of its module or package and tag it the way
the project's CLAUDE.md says helpers are listed. Nothing goes to a shared package until a second
caller outside that scope exists; when you find two copies, the merged one goes to the nearest
utils/ both share.This is the check the writer could not perform, which is why it lands here. An agent writing
formatMoney greps formatMoney, finds nothing and writes it — the existing one is called
formatCurrency. grep is a lookup by name; a catalogue organised by what a thing does — if the
project keeps one, its CLAUDE.md says where — is what you need when you don't know its name.
You can run that lookup because by now the helper exists with a name, a signature and a body. Say what it does in a phrase, then look for that capability — in the catalogue, or failing one by reading the modules where such a thing would live — not for its identifier in the tree.
Tests are the last one-way valve: the implementer adds them, review adds them, nobody removes them.
The criteria for a worthwhile test are good and already written down in
${CLAUDE_PLUGIN_ROOT}/skills/pipeline/references/test-requirements.md; they are simply applied at plan
time, to tests that are imagined. You are the first point where the test exists and can be read.
So for each test the change added: what realistic production change would this catch, and does another test already catch it? Neither, and it goes. A test asserting a literal, a declaration or type-enforced structure answers neither question — but check rather than assume, because the same shape occasionally does own a real invariant.
The mandatory categories — security, privacy, authorization, compliance, data integrity — keep their test at the boundary that owns the invariant, whatever it looks like. Phase 3.5 opens those right after you and checks they still exist.
After a fix run, leave the tests entirely alone. By then every test in the change was written in answer to a thread the owner left standing — either a review finding that survived refutation, or a comment of his own, and an unresolved thread is consent. Neither is yours to remove, and you have no way to tell which test came from which thread, so the rule is the whole behaviour rather than a judgement call. If you cannot tell which of the two runs this is, treat it as a fix run and leave them.
Bugs, renames, efficiency, altitude, general tidying — none of it. If the answer to what you found is "write more code", it is not this phase's finding.
That includes the tempting one: the same logic shape written twice inside this change. Its fix is an extraction, and an extraction is new code and a design decision at once — what shape, what name, where it lives. Making design decisions here would turn you into another author, which is the one thing that stops this being a counterweight. Report it instead — "the same shape is in X and Y; the fix is an extraction, which is not mine to make" — and leave it for review or for the owner.
The list of what you removed: the file, and what each deletion was. Nothing about threads — you do not see them and the caller maps them. This is not bookkeeping. The caller reports it onward, and after a fix run it goes into the reply on the thread whose fix you just shrank — without it the owner is told something that is not true of the code now on the PR. If you removed nothing, say that; it is equally an answer.
Then anything you found and could not fix, a sentence each. When that reaches him directly in chat rather than through a caller, write it in his language.
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.