/overengineering:realign [finding-id ...] [layer ...]from overengineering
Executes enforcement-surface audit findings one at a time with per-item human approval. Runs the rollback ladder (config-disable → observe → delete) for each accepted finding. The only skill in the plugin that mutates audit targets.
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. [finding-id ...] [layer ...]. Default: every finding awaiting a decision, in the artifact's order
Run this as its own Bash call, never combined with another command:
git symbolic-ref --quiet --short HEADTreat a failure (detached checkout, no repository, no git) as an unresolved identity.
date -u +%Y-%m-%d 2>/dev/null || echo "unknown (no date command)"Execute what an overengineering:audit run found, one finding at a time, with the operator deciding
each. This is the only skill that mutates the surface under scrutiny, and the per-item gate below is
what makes that safe.
Read ${CLAUDE_PLUGIN_ROOT}/context/scrutiny-method.md before executing anything: the rollback
ladder (§11), protected classes and their cap (§7), UNPROVEN triage (§8), ownership and out-of-repo
custody (§12), the verdict ladder (§6), and the scope boundary (§10). The artifact's shape, status
vocabulary, merge rules and durable judgment record are
${CLAUDE_PLUGIN_ROOT}/context/findings-artifact.md's. Every bare §N here is a scrutiny-method
section. Cite both documents rather than paraphrasing either in a proposal.
Nothing mutates without an explicit acceptance of that finding, from the operator, at the moment it is presented. Say so in the run's opening line, then hold it literally:
OPEN; it does not become REJECTED
and is not carried on a later item's yes.Both gates are required. Item acceptance authorizes working the finding and the act named at that moment; change approval authorizes one exact edit. An earlier acceptance is not approval of the edit that later falls out of it.
HEAD and a failed call are never an identity.
Where the call fails, use a logical ref the environment supplies only after audit's
normalize-then-validate steps (strip a leading refs/heads/, git check-ref-format --branch,
refuse . and .. segments), and name its source. Otherwise stop, per "An unresolved branch
identity is its own refusal". Compose the home per findings-artifact.md "Where it lives".overengineering:audit for a walk of the enforcement
surface and overengineering:justify for one artifact the operator points at. Do not scan, judge
or remediate anything yourself; this skill has no evidence or verdict of its own.branch:, naming both; refuse a branch: that is absent, empty or the
literal HEAD, naming which, without comparing; and refuse an unrecognized schema:, each
with a visible message. 1 and 2 are recognized. On schema: 2, mode, targets and Basis
are displayed with the finding and change no gating decision; a schema-1 row's missing Basis
displays as not recorded (schema 1). The artifact's frontmatter binds it to a branch; its
directory does not.Status outside the closed vocabulary is reported and that finding skipped.ACCEPTED finding now KEEP,
a REJECTED one now retirement-direction, or an ACCEPTED verdict whose authorized act changed
(DOWNGRADE now CONSOLIDATE) means the evidence moved under the operator's decision. Re-confirm
the act before anything proceeds.Finding ids and layer names from the artifact's vocabulary narrow the queue to exactly those findings. Anything else is a free-text hint that orders the queue, reported when it matches nothing. No argument widens the queue or replaces the gate. Bare invocation presents every finding awaiting a decision in the artifact's order; a queue too long for one sitting is said to be, and stopping halfway is a normal end, since statuses persist.
Present every finding in the artifact's order and dispose of each by its status. A finding in one of
the justification layers (decision-records, documents, components, dependencies, source)
has no rollback ladder here, and is presented and judged but never remediated: the rung-1-inapplicable
route below would turn it into a deletion. Display its evidence, verdict and the owner from that lane's boundary
table, say in one line that no rung is offered, and still take the operator's decision (REJECTED,
or DELEGATED-EXTERNAL where custody is upstream). Dispatch on Layer, never the check segment,
which cannot be read back off an id (findings-artifact.md "Finding ids").
| Status | What this run does with it |
|---|---|
OPEN | Present the verdict, its evidence, its cost, and the proposed rung; ask for a decision |
ACCEPTED | Authorized in an earlier run: re-confirm the rung about to execute, then continue |
REJECTED · REALIGNED | Nothing. Report it as already decided; do not re-ask |
DELEGATED-EXTERNAL | Report the delegation pointer and its state. Nothing local, ever |
ABLATION-PENDING | Gate and execute the rung-1 disable, then move to ABLATION-ACTIVE |
ABLATION-ACTIVE | Compare today against the recorded end date; before it, report the window as running and stop there |
ABLATION-CONCLUDED-RETIRE | Rung 3, behind its own acceptance |
ABLATION-CONCLUDED-KEEP | Confirm the mechanism is re-enabled, close as KEEP, and offer the durable judgment entry |
Interview, explore and research, plan, implement. Each composes a sibling skill via the Skill tool when its plugin is installed and runs the inline fallback when not. Say which ran and record the presence answer on the finding.
| Movement | Composition (presence-gated) | Inline fallback when absent |
|---|---|---|
| Interview: intent, constraints, what done means | /planning:interview | Ask the same questions inline as one small numbered set, recommendation first |
| Explore: what the mechanism touches, where it is wired, what depends on it | /discovery:explore | Read the artifact, its registration surface and call sites, and list the blast radius before proposing anything |
| Research: is the replacement the rediscovery names real and current | /discovery:research | Check its current official documentation and record the check with its date (§5) |
| Plan: rung, exact edit, reversal, observation window | /planning:plan | Write goal, rung, blast radius and reversal in the response; get it approved before any edit |
| Implement | /implementation:implement | Make the change against the approved plan, one rung at a time, stopping at the same gates |
Run only the movements the finding needs: a one-key config disable with a settled intent needs no research pass. Record a skipped one with its reason ("Skipped research: the rediscovery names a mechanism already in this repo"), never skip it wordlessly.
§11 governs, in order; record the rung reached on the finding:
Withdrawal is a normal outcome. A window showing the mechanism load-bearing ends at rung 1 with it re-enabled and the finding closed as KEEP with the window's evidence. Say so when proposing the ladder.
When rung 1 is inapplicable (nothing registered or wired to disable: a copy nothing reads, a
claim in a document, a lane nothing requires), record "rung 1 inapplicable: <reason>" and why
rung 2 gives no signal. A reversible non-rung remediation (correct a false claim, register the copy
that should be wired) is then a valid proposal under its own acceptance. Where deletion is the only
remaining act, the acceptance must name the deletion explicitly.
CONSOLIDATE removes the redundant copy once the survivor is named: disable, observe under the survivor, delete where the copy is live; deletion named in the acceptance where it is inert.
An UNPROVEN verdict does not authorize a disable. Route it to §8's track: take the head of the audit's carry-cost ranking, propose one bounded batch an operator can attend to, name an owner per item (§12), set one window with its end date, and record a durable pointer. Each item still passes the per-item gate. Items below the batch wait for the next window. Protected and intentionally dormant items (§7) never enter a batch.
A FLAG-FOR-HUMAN finding is a question, not a task. Present the capped verdict it would otherwise
carry, the evidence in full, the protected class and the rule that matched, then stop and wait for
the operator's own call on that item, in their words. Never retire a protected mechanism on this
skill's reasoning, and never route it into an ablation batch to reach the same end. An operator
overturning the classification records that in the consumer's tracked configuration.
Where the audit's custody read placed the artifact upstream (organization policy, a managed or
synced copy, a shared workflow this repo only references, a forge control plane), §12 makes the
remediation a delegation: produce an upstream change request, an administrator issue, or written
instructions for the owner, carrying the evidence and proposed rung, and set DELEGATED-EXTERNAL
with its pointer. Never edit the out-of-repo surface in place or patch a managed copy locally; the
next sync reverts it.
Re-read the artifact from disk immediately before every Status write, and merge against that
copy; another producer may have written during a long interview.
This skill is the only writer of Status, and writes one only as its outcome happens, never ahead
of the operator's yes: ACCEPTED on acceptance; REJECTED when the operator keeps the mechanism;
REALIGNED when the change has landed; DELEGATED-EXTERNAL with its pointer; the ABLATION-* states
as a batch moves through its window. A justification-layer row takes REJECTED like any other: it
records a judgment and mutates nothing outside the record. Leave every other field as the audit
computed it.
Offer to persist a REJECTED or ABLATION-CONCLUDED-KEEP finding as a suppression entry in the
consuming repo's tracked .claude/overengineering.md:
reason is the operator's own words; ask for them rather than recycling audit prose.${CLAUDE_PLUGIN_ROOT}/reference/consumer-config.md's. A REALIGNED finding needs no entry.The branch-match check protects against executing one ref's findings against another ref's surface,
and HEAD compares equal to itself. Both unresolved states refuse, and neither reaches the
comparison:
branch: absent, empty or HEAD). Refuse it by name,
and say that overengineering:audit writes no artifact without an identity, so one carrying
HEAD did not come from this plugin's audit as it stands. Do not repair the field or fall back
to its directory.Never fall back to HEAD, the commit sha, or the home's slug to make up either side.
/verification:confirm. The finding stays open until the landed change is verified.
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./justifyRepository context. Gather firstJudges, on evidence, whether one named artifact (a file, doc section, dependency, component) had and still has a reason to exist, or whether a proposal (a plan step, design option, or mechanism to add) is needed at all. Read-only. Use when the user asks whether a thing needs to exist or still earns its keep, or of a proposal whether it is overengineered, whether we need X, or whether there is a simpler way. Not for the enforcement surface (overengineering:audit).npx claudepluginhub melodic-software/claude-code-plugins --plugin overengineeringOther plugins' skills for the same job