/dev-flow-skills:prunefrom Dev Flow Skills
Strip a feature, spec, plan, UI, or code change down to what the request and its real user actually need. Looks through four lenses — product scope (features, flows, states, settings), user experience (screens, controls, dialogs, copy, polish), code design (abstractions, options, defensive code, YAGNI), and delivery (docs, tests, flags, rollout) — and labels every detail required, load-bearing, speculative, or ornamental, then emits a cut list. Also works as a silent stance while planning or building so the result stays minimal. Triggers on "keep it simple", "minimal", "MVP", "too much", "don't over-engineer", "over-build", "gold plating", "YAGNI", "作りこみすぎ", "過剰", "シンプルに", "最小限で", "削ぎ落として", "盛りすぎ", or when a spec / diff is visibly growing past its request. Read-only in audit mode; applies cuts only when the user names them. Invoke as `/prune` (audit the current plan or conversation), `/prune --diff`, `/prune <PR-url|PR-number>`, or `/prune <spec / feature list / mockup description / plan text>`.
Ships in Dev Flow Skills. 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.
Cut a thing down to what the request and its real user need now. Not what would be nice, not what a future user might want, not what would make it look finished.
The thing can be a feature idea, a spec or PRD, a screen or flow, a settings page, a plan, a diff, or a PR. The method is the same at every level; only the smells differ.
Two moments:
Use the stance always. Run the audit when invoked, or when you notice the target has grown past its request.
This skill assumes the work itself is worth doing. If that is still open, run /worth-it first; prune trims a change, it does not question it.
For every feature, screen, state, control, option, message, layer, parameter, branch, test, and doc section, ask:
Does the person this is for need it, now, on the path they actually take — or is it required to make that path work?
If neither, it does not go in. "It might be useful later", "some users might want it", "it is more complete this way", and "it was cheap to add" are not answers to that question.
Two people matter: the requester (who asked) and the end user (who will use it). Something can be unrequested yet load-bearing for the end user (an error message when saving fails). Something can be requested by nobody and useful to nobody (a theme picker on an internal admin tool). Judge against both.
Keep a short Deferred list as you go: what you noticed and deliberately left out. Report it at the end. That list is where the urge to over-build goes, instead of into the product.
Over-building rarely looks wrong up close. Look for these shapes.
| smell | tell |
|---|---|
| Feature for a persona nobody named | "admins might want", "power users could", "for enterprise later" |
| Second way to do the same thing | keyboard shortcut + button + menu item + gesture, all in v1 |
| Settings instead of a decision | toggle, theme, layout, density, or notification preference with no one asking for the other value |
| Whole-lifecycle build | create is asked for; edit, duplicate, archive, export, and bulk-actions arrive with it |
| Platform sprawl | mobile / offline / i18n / dark mode / accessibility-beyond-baseline added to a request that named none |
| Speculative integration | webhooks, API, CSV export, Slack notifications "so it can connect to things" |
| Analytics for questions nobody asked | events, dashboards, funnels tracked "in case" |
| smell | tell |
|---|---|
| Confirmation theatre | dialogs on actions that are cheap or reversible |
| Onboarding for a one-screen tool | tours, tooltips, coach marks, welcome modals |
| Empty-state art | illustrations and copywriting for a state users see once |
| Edge-case screens with main-path polish | error pages, 0-result pages, and admin views given animations and custom layouts |
| Micro-copy sprawl | helper text, placeholders, tooltips, and info icons all explaining the same field |
| Choice overload | filters, sorts, view modes, and column pickers on a list with a dozen rows |
| Decoration | animation, transitions, badges, avatars, icons added because the design "felt flat" |
| Personalisation nobody requested | rename, reorder, pin, favourite, colour-code |
| smell | tell |
|---|---|
| Speculative generality | interface / base class / generic with exactly one implementation |
| Plugin-shaped code | registries, hooks, strategy maps, event buses with one registrant |
| Phantom configuration | option, flag, env var, or parameter whose only value is the default |
| Defensive theatre | null-checks and type-guards on values your own code just produced |
| Impossible error paths | catch / else branches that cannot be reached |
| Premature performance | cache, memo, pool, batch, worker, index with no benchmark |
| Imported ceremony | a layer or pattern that appears nowhere else in this repository |
| Compatibility for no one | shims, adapters, deprecation paths for code with no external callers |
| Helper with one caller | a utils function used once, or a wrapper that only forwards |
| Naming tells | Manager, Handler, Base, Abstract, Generic, Common, Util, Factory — a question each, not a verdict |
| smell | tell |
|---|---|
| Hypothetical tests | tests for inputs no caller can produce, mocks deeper than the change |
| Docs in excess of behaviour | README sections, ADRs, diagrams for a change a reader would understand from the diff |
| Feature flag for a flip | a flag, rollout plan, or migration path guarding a change that could just ship |
| Drive-by refactor | renames, moves, reformatting in files the request did not need |
| invocation | target |
|---|---|
/prune | the plan, spec, or change discussed so far in this conversation |
/prune --diff [--base BRANCH] | local working-tree diff vs the base branch |
/prune <PR-url> / /prune <PR-number> [--repo owner/repo] | a GitHub PR (gh pr view, gh pr diff; requires gh auth status to pass) |
/prune <text> | a spec, PRD, feature list, mockup description, ticket, or plan pasted by the user |
If none is parseable, ask once: "What should I prune — the current plan, the local diff, a PR, or a spec you'll paste?" Do not guess.
Two sentences. Ask: what was actually requested, quoted where it exists; for a PR, from title and body, not from what the diff does. Main path: the one thing the end user does with it. Everything below is judged against these two.
Walk the target in units — a feature, a screen, a state, a control, a message, a file, a function, a parameter, an option, a branch, a test, a doc section — and give each exactly one label:
| label | meaning | verdict |
|---|---|---|
| Required | the ask, or the main path, directly | keep |
| Load-bearing | neither asked for nor the main path, but the main path breaks, confuses, or misfits the product / repo without it (a save-failed message, an existing convention, a trust-boundary check, the test for the changed behaviour) | keep, one-line justification |
| Speculative | serves a future, hypothetical, or unnamed person — another persona, another scale, another platform, another caller | cut |
| Ornamental | serves neither; it is there because it felt complete, thorough, or polished | cut |
Be concrete: name the unit. "The settings page is too big" is not a finding. "Settings › Notifications › digest frequency: nobody asked for digests; delete the control and send immediately" is. For code: path:symbol.
Output, in this order:
Do not apply the cuts. If the user says to, apply them as a separate step and only the ones they named.
The brake must not turn into an unusable or unmaintainable result. Keep these even though nobody literally asked:
When two readings of the ask both seem plausible, the smaller one wins, and you say which reading you took.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mitubaex/dev-flow-skills --plugin dev-flow-skills7 skills in this plugin
/autoloopWork through a backlog file with no human in the loop — each iteration picks the next task from `.autoloop/backlog.md`, gates it with `worth-it`, settles the design by self-grilling, trims it with `prune`, implements it red → green on an `autoloop/<slug>` branch, self-reviews with `layered-review`, and opens a PR. Never merges. Tasks it should not or cannot do are marked skipped or blocked with the reason, so the human's only jobs are adding tasks, answering blocked questions, and merging PRs. Designed to be driven by `/loop /autoloop` (self-paced; schedules its own next wakeup and stops when the backlog is drained or a guardrail trips). Use when the user wants an autonomous / unattended / hands-off dev loop, "放置で回す", "自律ループ", "バックログを消化して", or invokes `/autoloop`. Requires `git`, a pushable remote, and an authenticated `gh` CLI./grillingGrill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases./grill-meA relentless interview to sharpen a plan or design./layered-reviewReview a single PR (or a local diff / branch) using a top-down three-layer method — (1) production-impact check (feature-flag gating, dead references), (2) chunk-level comprehension check (SOLID / DRY / YAGNI at the "does this shape make sense" altitude, not line-by-line), (3) surface check (shallow methods, patterns foreign to this repository). Use when the user wants to review a specific PR carefully, self-review their own working-tree change before pushing, or apply a consistent review discipline. Complements `smelly-prs` — that skill triages many merged PRs; this skill goes deep on one change. Read-only by default; never pushes, comments, or edits. Requires `gh` CLI when reviewing a remote PR. Invoke as `/layered-review <PR-url|PR-number|--diff>`./smelly-prsTriage recently merged PRs of a GitHub repository and rank the ones that "smell" — God PRs, mixed concerns, missing tests, no reviewer, SOLID/DRY/KISS/YAGNI violations, GoF design-pattern misuse (Singleton abuse, missing Strategy/State, anemic domain, etc.), risky migrations, shotgun-surgery hotspots, and more. Use when the user wants to audit merge hygiene of a repo, find refactor candidates, hunt for risky merges to post-mortem, or pick suspicious PRs from a recent window. Requires the `gh` CLI to be authenticated against the target repo. Invoke as `/smelly-prs <owner/repo> [--limit N] [--since YYYY-MM-DD] [--base BRANCH]`./worth-itDecide whether the work about to be implemented is necessary at all, before any code is written. Separates the underlying problem from the requested solution, checks whether the problem is observed or imagined, asks what happens if nothing is done, whether existing means already cover it, and what the smallest move would be, then returns one verdict — Don't / Already covered / Smaller / Later / Build — with the evidence and what would change it. Use at the start of any ticket, feature request, refactor, "tech-debt" item, dependency upgrade, or fix, or when the user asks "do we really need this?", "is this worth doing?", "should we build this?", "本当に必要?", "やる価値ある?", "そもそも要る?", "やらなくてもいい?". Read-only; never implements. Upstream of `prune` (which trims a change already agreed on) and of `grill-me` (which sharpens how to do it). Invoke as `/worth-it <task / ticket / request / plan>` or `/worth-it` for the task currently under discussion.