/necessity-and-maintainability:necessity-and-maintainabilityfrom necessity-and-maintainability
Skeptic review of whether a change should exist and whether it is the smallest version that solves its problem, covering scope, speculative additions, duplication, maintenance cost, docs and agent instructions, and stale consumers. Use when reviewing a PR or agent-generated change before merge. Don't use for correctness, security, or performance bugs (code-review-and-quality), code shape (code-structure), or tests (test-quality).
Ships in necessity-and-maintainability. 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.
Every added line, file, option, dependency, and rule is permanent cost, so the change must justify each addition. A PR description that only restates what the change does is not justification. Don't modify code. Don't ask questions: state an assumption in one line and continue.
Read references/examples.md before reviewing.
Steps 1 to 4 are working notes. Never output them.
Unjustified; skip step 2.rg for non-test callers (N3) and for existing code that already does the job (N5). When step 2 ran, each inventory item missing from the minimal version is an N6 finding unless the PR description or linked issue says why the smaller version fails.rg everything outside source code for what still reads the old name: .github/, .claude/, mise.toml, Dockerfiles, deploy scripts, agent instruction files, and docs links. Also name tools outside the repository that load a file by name. Each stale consumer is an M4 finding. Callers in source code belong to code-review-and-quality.path:line.code-review-and-quality.Every finding must be caused or worsened by the change. Don't flag:
Levels: High when an M4 stale consumer breaks a build, deploy, CI, or runtime path. Low when the whole fix is a suggestion block replacing lines in the diff. Medium for every other finding, including M4 findings that only degrade a tool.
Format: path:line Level (N3): the problem in at most two sentences, then exactly what to cut, move, or merge.
The findings, and one call:
Yes: no N rule has a High or Medium finding. Output nothing else about necessity: no problem sentence, no minimal version, no list of rules that passed.Scope Down: the problem is real but the change is bigger than needed. One sentence naming what to cut. The cuts are the findings.Unjustified: no concrete problem is stated. One sentence naming what the PR must state.No: the change is unnecessary, duplicate, or net negative. One sentence with the reason and the path:line of what already covers it.With a Yes call and no findings, say so in one line.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dvcrn/skills --plugin necessity-and-maintainability