/overengineering:justify [path|path#heading|kind:identifier|proposal]from overengineering
Judges whether a named artifact (file, doc section, dependency, component) or proposal still justifies its existence, citing evidence from repository context and a structured scrutiny method.
Ships in overengineering. 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.
Arguments. [path|path#heading|kind:identifier|proposal]. A proposal runs planned mode. none: conversation context, then offered git-age discovery, then ask
Run this as its own Bash call, never combined with another command:
git symbolic-ref --quiet --short HEADIt prints the branch on stdout, or fails with no output on a detached checkout or outside a repository. Read the exit status to decide whether there is a branch, and take the name from stdout. Treat a failure (not a repository, git unavailable) as an unknown value and carry on.
Point at one artifact and test two things: a reason existed when it was built, and that reason
still holds. Read ${CLAUDE_PLUGIN_ROOT}/context/scrutiny-method.md before judging anything and cite
its sections; every bare §N here is one of them. Read
${CLAUDE_PLUGIN_ROOT}/context/justification-lane.md before the first target: it holds this lane's
item inventory, its five layers and probes, its evidence sources, protected classes, routing
precedence and known limits, cited here as "lane section N".
A proposal, something not yet built, takes planned mode instead (section "Planned mode").
Report the verdict first, then discuss. The operator decides refactor or remove; the owner the finding names carries it out, never this skill.
${CLAUDE_PLUGIN_ROOT}/skills/audit/SKILL.md, section "Read-only contract", governs. Specific to
this lane:
${CLAUDE_PLUGIN_ROOT}/context/findings-artifact.md "Where it lives" defines; never the artifact
being judged. Right after resolving the home, emit the read-only opening line naming that home as
where a finding would be written, since this run may file no row. The self-ignore guard still
runs.mode: targeted, with targets naming what this run examined. Never mode: walk.type: overengineering-findings (first; consumers select on it), schema: 2,
mode: targeted, targets, this run's date and branch, and scope carrying the prior value
forward with these targets' layers added. An on-disk schema other than 1 or 2 stops the run
with a visible message; a schema: 1 artifact is merged into and rewritten at 2.date for another producer's write during this run.${CLAUDE_PLUGIN_ROOT}/skills/audit/SKILL.md, section "A detached checkout has no branch identity",
governs: prefer a logical ref the environment supplies, normalized and validated as a branch name;
otherwise persist nothing and say, in these words:
detached checkout, no logical ref supplied; no branch identity, so no findings artifact is written
The pass still runs and the inline report is emitted in full; only the persisted write is declined.
Parse $ARGUMENTS as one target:
| Form | Meaning |
|---|---|
| A path | a file, or a directory as one item |
path#heading | one section of a file, identified by its full heading ancestry |
| A kind-prefixed identifier | an item with no path, such as a package |
path:line, or a comment | accepted, then widened per the rule below |
| A proposal: a plan step, a design option, or text describing what to add | planned mode |
A proposal is text that describes something to add rather than naming an existing artifact. A
free-text proposal is never parsed as a path or a kind:identifier; where an argument could be
either, confirm the reading in one line before judging.
An ambiguous heading is declined, never disambiguated. Where the full ancestry of a
path#heading target is not unique in the file, decline the target, name the collision, and ask for
a whole-file target or a disambiguating rename. Never fall back to the first occurrence or an
occurrence count: the next edit renumbers them and the item derives a different id
(${CLAUDE_PLUGIN_ROOT}/context/findings-artifact.md, "Finding ids").
A line or comment target widens (lane section 2): to the enclosing heading where the file has
headings, to the file otherwise. State the widening in the report's first line: what was pointed
at, what is judged instead, and that an id resting on a line number changes when an edit above moves
it. For a comment, name code-tidying:remove-comments as the owner of comments in that line.
No target: the ladder in lane section 10. It never sweeps. State which rung was used.
Conversation context. Where the session has been discussing an artifact, or a proposal not yet built, infer it and confirm the inference in one line before walking or judging.
Offer git-age discovery, and wait. Describe what it would rank; run it only on an answer:
git log --diff-filter=A --name-only --format='%ad' --date=short -- . | awk 'NF'
Post-process into (path, first-seen date) pairs, oldest first: a candidate list, never a finding set. Age is not evidence of disuse (lane section 10): check each ranked path for inbound references under lane section 7's varied query forms, counting citations from anywhere in the repository including the path's own directory, and drop any that have one. Present the survivors with both counts, ranked and surviving.
Ask what to point at.
A proposal has nothing built to judge, so the artifact sections ("Read-only contract", "Before the
walk", "The walk", "Verdicts and evidence", "Intent checkpoints", "The report") do not apply to
it. Planned mode resolves no home, runs no preflight or routing test, emits no §6 token and writes
no findings artifact: a finding id derives from an artifact's identity (findings-artifact.md "Finding ids"),
and a proposal has none. The no-mutation rule of ${CLAUDE_PLUGIN_ROOT}/skills/audit/SKILL.md
"Read-only contract" still governs: planned mode writes nothing at all and builds none of what the
proposal describes. Read
${CLAUDE_PLUGIN_ROOT}/skills/justify/context/planned-mode.md and run its test, then report inline:
each mechanism's verdict first, then the option with the fewest moving parts, then discussion. The
closing line says nothing was persisted.
${CLAUDE_PLUGIN_ROOT}/skills/audit/SKILL.md
"Before the walk" step 1 does. Never infer an identity from a failed call, and never accept the
literal HEAD. Compose the home per findings-artifact.md "Where it lives".${CLAUDE_PLUGIN_ROOT}/skills/audit/context/surface-walk.md
"Preflight". A repetition a record sanctions and a check maintains is never duplication to
collapse./overengineering:audit and writes no row; a target only partly
inventoried is classified with the routed part named in Routed-to.Status: OPEN on a finding not seen before and carry every other status forward. Surface any
verdict that moved under a carried-forward judgment (merge rule 5): a direction flip, or a
same-direction change to what the acceptance authorized. No consumer re-derives that flag, so a
move this step misses goes unreported.One target is one item, unless the container rule in
${CLAUDE_PLUGIN_ROOT}/skills/audit/context/surface-walk.md "Granularity" splits it into
mechanically listed members. Run that document's "The per-layer loop" once: identify, classify,
answer the three liveness questions independently (§3), reconstruct intent (§4), rediscover (§5),
weigh cost (§1, §6), verdict (§6), owner (§12), write.
Every verdict is one of §6's six tokens, argued in carry cost (§1), and cites at least one empirical source or is UNPROVEN naming the tier consulted and whether it was silent or unavailable (§2). Every row also carries:
Basis, per findings-artifact.md "Per-finding fields": unexamined with UNPROVEN when
nothing was measured (no tier consulted, or every consult silent or unavailable) and nothing else
carries the verdict; class-inferred where the verdict rests
on the non-derivable oracle or a protected-class match (lane section 9). A KEEP is measured or
it is not a KEEP.Ablation: n/a, because that gate does not apply on this lane's layers (lane section 8). The
earned-keep gate is the one every row answers; fusing a class claim with an earned-keep verdict is a
defect. The check constituent of every id carries justify as its producer segment.Attended only. Report first, then discuss. Where intent scores MEDIUM or LOW (§4), or tiers 1 to
3 are silent and tier 4 could exist, ask before writing UNPROVEN: recommendation first, one small
numbered set of questions, batched. Use planning:interview's mechanics where installed, otherwise
ask inline. "I don't know" is accepted: it records UNPROVEN with the tier named.
This lane reports and hands off. Each route is presence-gated: where the plugin is absent, say so,
state what it would have owned, and record the fallback in Routed-to.
| The finding is about | Owner |
|---|---|
| The enforcement surface, whole | overengineering:audit |
| Unreachable or dead code | code-tidying:audit-dead-code |
| Comments, their content or residue | code-tidying:remove-comments |
| A document derivable from its source, or noise within one | docs-hygiene:audit-derivability, docs-hygiene:audit-noise |
| Instruction text and what it does to a model | harness-config:audit-instructions, harness-config:unhobble |
| Duplication of a native harness surface | harness-ops:audit-native-overlap |
| Ranking candidates across several dimensions | improvement:find |
| The scrutiny posture itself | discipline:reason-dont-recite, discipline:recheck-against-upstream, discipline:scrutinize-dont-coast |
Executing a finding belongs to overengineering:realign, which presents this lane's rows and offers no rung for them until a ladder for
these layers exists. Name it as the next
step and never start it unasked.
${CLAUDE_PLUGIN_ROOT}/skills/audit/context/report-template.md owns the shape. For this lane: a
widened target puts the widening in the first line; a routed target is reported inline with the
layer that claimed it and no row. The artifact is not written with no branch identity or when no row
was filed, so the opening line names the resolved home without asserting a write, and the closing
summary states whether anything was persisted.
context/planned-mode.md (opens in a new tab)evals/evals.json (opens in a new tab)evals/fixtures/claude-md.txt (opens in a new tab)evals/fixtures/convention-doc.md (opens in a new tab)evals/fixtures/decision-0001.md (opens in a new tab)evals/fixtures/hooks.json (opens in a new tab)evals/fixtures/lonely-doc.md (opens in a new tab)evals/fixtures/plugins-manifest.md (opens in a new tab)evals/fixtures/repeated-heading.md (opens in a new tab)evals/fixtures/rules-example.md (opens in a new tab)evals/fixtures/vendored/REGISTRY.txt (opens in a new tab)evals/fixtures/vendored/a/util.txt (opens in a new tab)evals/fixtures/vendored/b/util.txt (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
bash4 skills in this plugin
/auditRepository context. Gather firstAudits a repository's existing enforcement surface (hooks, agent instructions, CI lanes, gate scripts, branch protection, forge apps, integrations) and reports which mechanisms no longer earn their keep; security-class items cap at flag-for-human. Read-only. Use when the user asks whether their CI, hooks or gates are overengineered or still earn their keep. Not for proposing new automation./deltaRepository context. Gather firstRe-runs overengineering:audit and reports only what changed in the enforcement surface since the last run: new findings, verdicts that moved, closed findings, status changes. Read-only; never invokes realign. Use when the user asks what changed since the last enforcement audit, whether any verdict moved, or wants the audit on a recurring schedule./realignRepository context. Gather firstExecutes an enforcement-surface audit's findings one at a time behind an explicit per-item human gate, down the rollback ladder: config-disable first, observe, delete last. The only skill in this plugin that changes the surface; it never scans or re-judges. Use when the user wants accepted audit findings carried out, a judged gate or hook retired, or one disabled and observed.npx claudepluginhub melodic-software/claude-code-plugins --plugin overengineeringOther plugins' skills for the same job