/instruction-placement:delta [--since <ISO date>] [--noise-budget <n>]from instruction-placement
Re-runs the placement audit and reports only what moved since the last run, above a noise budget. Useful for weekly checks or detecting rule glob breakage without re-reading unchanged findings.
Ships in instruction-placement. 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.
Arguments. [--since <ISO date>] [--noise-budget <n>]. Default: since the artifact's last run
!"${CLAUDE_PLUGIN_ROOT}/scripts/precompute.sh" audit 2>/dev/null || echo "- Orientation unavailable"
A full audit is worth running rarely and reading carefully. This is the lane for the other times: it answers what moved, so a repeat run costs attention proportional to actual change.
The failure it prevents is specific. An audit re-run that re-presents the same forty findings the operator already worked through trains them to skim, and a skimmed report is how a bad migration gets approved. Reporting only movement keeps the signal survivable on a cadence.
| Read | For |
|---|---|
../../context/findings-artifact.md | Where the spine baseline and the findings artifact live, the status vocabulary, re-run merge semantics, the baseline-capture obligation, and the finding-id constituents a suppression entry is keyed by |
../../reference/consumer-config.md | The suppression surface: its layers, its per-key merge, the policy-floor inversion, and the report obligations |
../../context/routing-rubric.md | Only when a genuinely new candidate needs classifying |
This skill does not restate the merge semantics, the baseline's shape, the suppression entry format, or the home. Those documents own them; a second statement is a second drift.
The spine baseline is the comparison input: a snapshot of the previous run's detector spine, in
the baselines/ slot the lifecycle artifact protocol names
(../../reference/artifact-protocol.md), branch-keyed, at
the home findings-artifact.md defines. Memory tier and checkout-local, which is right for it: a
spine is recomputed next run, and one from another checkout describes a tree this one lacks.
The suppression surface is where an operator's decline lives: the tracked
.claude/instruction-placement.md, resolved across the three cascade layers. It is tracked because
that is the only mechanism that crosses checkouts: git moves the file, and a memory-tier baseline
never reaches another worktree. Read it, honor every entry it merges to, and
never write it: realign owns that write, behind its per-item gate.
A decline in the baseline would be a per-checkout fact, and the operator gets asked again from the next worktree. That is the bug this lane exists downstream of.
Five shapes, in report order. Everything else is suppressed.
| Shape | Trigger | Why it matters |
|---|---|---|
new | A candidate with no prior finding | The only shape that needs fresh classification |
changed | A finding whose source content changed since the last run | Its line range is stale; realign would excise the wrong text |
broken-glob | A rule glob the baseline recorded valid that does not resolve now | The rule stopped firing, silently, and nobody was told. A transition, so it needs the stored verdict |
index-drift | The index no longer matches the rules on disk | Deferred surfaces go unnamed: nothing tells an agent they exist |
stale | A finding whose source no longer exists | The content was moved or deleted outside this plugin |
broken-glob is the shape that most justifies a cadence: a glob breaks when the code it described
is renamed, an ordinary refactor nowhere near the rules tree, with no signal at the time and nothing
else noticing between check runs.
declined stays declined and is never re-proposed;
applied is not re-reported as new. Resurrecting a decision is how an operator learns to stop
reading.new findings whose confidence is low
and whose released line count is trivial, and report the count. A delta that hides its own
filtering is the thing it was built to avoid.Each step names what "done" looks like, so a partial run is visible rather than assumed complete.
Resolve the home, read this branch's spine baseline and findings artifact, and resolve the suppression surface across its three layers; a missing surface is the ordinary no-suppressions state. All four baseline/artifact combinations resolve explicitly, none an error:
| Baseline | Artifact | Disposition |
|---|---|---|
| present | present | The ordinary cycle. Compare against the stored spine. |
| present | absent | A realign or a cleanup removed the artifact. Compare against the spine, and say the report carries no statuses this cycle. |
| absent | present | Bootstrap. The commonest shape after a first audit, and after any first run in a fresh worktree. Run the detector and capture its output as this cycle's baseline; report only what the artifact can settle, and say the cycle is a bootstrap. |
| absent | absent | Say so and route to the full audit rather than silently running one. |
A bootstrap does not build its spine out of the artifact. The artifact holds classified
candidates and held-back records, not every SECTION and RULE the detector emits, so a spine
derived from it is partial and the next cycle reports every record it never carried as new.
The detector's output is the only complete spine, so a bootstrap captures that. It reports only
what the artifact can settle: changed and stale over the findings it carries. It reports no
new (with no prior spine every record is unmatched, and a candidate audit considered and
rejected is indistinguishable from one that appeared since) and no broken-glob (that class is
a transition from a stored valid verdict, and the artifact records a proposed glob for a
candidate, never a prior verdict for an existing rule).
Say the cost out loud, because this is the one cycle that can absorb a finding unreported. A
candidate that arose between the audit and this bootstrap enters the captured spine without
ever being reported, and no later cycle sees it as movement. That is the one sanctioned exception
to the hard rule below, and it is bounded by the artifact's age: name that age in the report, and
where the artifact is old enough that the tree has moved on, route to a full audit instead of
bootstrapping. A stale bootstrap trades a silent loss for a saved sweep, which is the wrong way
round.
A fresh worktree legitimately has no baseline, and in every row it still honors every entry the suppression surface carries. Done when: the row is named in the report, and the merged suppression set is resolved with each entry's contributing layer.
Run the detector and diff its SECTION and RULE records against the baseline's spine. Done
when: every current record is matched to a prior record or marked unmatched.
Classify each difference into one of the five shapes. Only a new shape needs the rubric.
Done when: no difference is left unclassified. An unclassified difference is a reporting gap.
Re-validate every glob, not only the previously-valid ones, and compare each result against
the verdict the baseline's RULE row stored. valid to invalid is broken-glob; invalid to
invalid is still-broken and counts as suppressed, not as movement.
Done when: the validator has run over every RULE record, and each carries both its stored
verdict and this run's.
Check index sync and reachability. Done when: both verdicts are recorded, since they are independent questions.
Derive each surviving finding's anchor/v1 and finding_id with detect.sh identity:
"${CLAUDE_PLUGIN_ROOT}/scripts/detect.sh" identity --file <path> --start <n> --lane <lane> --destination <rung>,
never by hand, and suppress every one the merged surface carries;
also suppress what this branch's artifact records as declined or applied.
Done when: no suppressed id appears in the report under any shape, and every entry that did
not suppress (personal-only, malformed, or not evaluated this run) is listed with its
layer.
Report movement, then the suppressed count and the suppression section, then a one-line "nothing else moved". Done when: the report states a number for both moved and suppressed.
Merge what this run discovered into this branch's findings artifact, per its re-run merge
semantics, before step 9, always. A new finding and a re-derived changed line range are
the run's only durable output for realign, which reads the artifact and never the spine. Skip
this and the discovery is lost twice over: realign has nothing to act on, and the next cycle's
spine already contains the record, so it is no longer movement and is never reported again.
Statuses stay the operator's: write records, never a Status, with the one exception the
artifact contract fixes: an accepted finding whose source changed resets to pending, since
an acceptance is scoped to the text the operator read and realign excises by range. A finding
the suppression surface covers is not merged in as pending.
Done when: every reported new finding exists in the artifact as pending with its
Suppression key, every changed finding's line range is the one this run derived, and no
changed finding is left accepted.
Capture this run's spine over the stored baseline. The run must have reached this step to earn
the capture; the slice scaffolding findings-artifact.md requires (the memory root's .gitignore, the
slice INDEX.md, the branch home and its baselines/ directory) is created by the same first
memory-tier write when absent.
Done when: the capture is written, or the run stopped early and the stored baseline is
untouched.
Lead with the count of moved items and the window. When nothing moved, say that plainly, with the window and the suppressed count, and stop. A delta run whose honest answer is "nothing changed" should be short and complete, not a page of reassurance.
Never pad a quiet run by re-listing standing findings to look useful.
Status (bar the one reset the artifact contract fixes), and never writes
the suppression surface, a tracked file realign owns behind the per-item gate. Every change to
the repository belongs to realign.new, not as changed, not "for review", and not
because this run is on a different branch or in a different checkout from the one where the
decline was recorded. The surface makes that possible; honoring it is not optional./instruction-placement:realign. It applies the moved findings the operator accepts.changed finding's stale line range is the dangerous part. realign excises by that range,
so reporting changed without re-deriving the range hands the apply lane a number that points at
the wrong text.What SKILL.md sets; muted values are Claude Code's defaults
bashnpx claudepluginhub melodic-software/claude-code-plugins --plugin instruction-placement6 skills in this plugin
/auditPre-computed contextRead-only sweep for instruction content on the wrong surface: demote always-loaded conventions that belong on one file type or subtree; promote stranded docs conventions. Safety rails are hard-denied from demotion. Use when: 'my CLAUDE.md is too long', 'convert this to rules', 'what should be a path-scoped rule', 'move conventions to .claude/rules', 'find conventions in our docs', 'nested CLAUDE.md candidates', 'audit instruction placement'. Sibling realign applies accepted findings./checkPre-computed contextPass/fail gate over path-scoped instruction surfaces: every .claude/rules/ glob must resolve, and the always-loaded rules index must match disk. Failures are SILENT in Claude Code. Use when: 'check my rules', 'are my path-scoped rules actually firing', 'is the rules index stale', 'validate paths frontmatter', 'why is my rule not loading', 'CI gate for .claude/rules', or after a change to a rule's paths: or the rules tree. Read-only; sibling realign applies fixes./migrateMigrate a repository to AGENTS.mdMove instruction content to AGENTS.md as the one content home, keeping a one-line CLAUDE.md shim while a shim is what makes it load. Plans first; every write is operator-gated. Use when: 'migrate to AGENTS.md', 'plan the AGENTS.md migration', 'move CLAUDE.md content to AGENTS.md', 'add the AGENTS.md shim', 'our CLAUDE.md should be one line', 'share instructions with Codex and Cursor', 'can we drop the CLAUDE.md shims yet'. Not the placement sweep (audit) or applying findings (realign)./realignPre-computed contextApply an instruction-placement audit's findings behind an explicit per-item human gate. Consumes the audit artifact; never re-judges. Each accepted finding is the whole move. Hard-denied safety content has no path here. Use when: 'apply the placement findings', 'do the migration', 'move those conventions to rules', 'execute finding IP-004', 'realign our instruction layer', 'the audit says move it, do it'. No blanket-approve. Audit proposes; this applies./setupPre-computed contextVerify instruction-placement's prerequisites, resolve its effective configuration for this repository, and register its rules-index git pre-commit entry. Confirm that the index target exists AND that nothing in the repository stops Claude Code loading it (a root CLAUDE.md is read instead of the AGENTS.md beside it, so an unimported AGENTS.md index is inert while every other gate reports green), that `git` backs tracked-file discovery, and that the Claude Code CLI plus `jq` are present for the optional empirical load probe. Reports the resolved index target, breadth ceiling, and index row cap, naming which came from configuration and which from a default. Use when: 'set up instruction-placement', 'configure instruction-placement', 'where will the index go', 'why is my index not loading', 'is instruction-placement working', or before a first audit on a new repository. Actions: check (read-only, default) | apply (point at each remediation) | apply install-git-hooks [scope=local|shared]. Re-runnable.Other plugins' skills for the same job