/odin-skills:cascade-dedupfrom ODIN Skills
Resolves duplication, drift, or conflicts in prompt-doctrine across output-style embeds and external harness AGENTS files. Verifies byte-identity invariants and rewrites cascade prefixes/tails with human-gated authority.
Ships in ODIN Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | Prompt-doctrine duplication, drift, or conflict across the cascade family. |
| Authority | Human-gated: previews the target and consequence before rewriting prompt doctrine at rest, bumping the catalog releaseVersion, or editing authorized external harness embeds; every other write is reversible local, with version control as the rollback. |
| Side effect | Rewrites cascade prefixes/tails, bumps the catalog releaseVersion and re-renders package surfaces, and edits authorized external embeds. |
| Done | All canonical tails match, every strip is evidenced, divergence ledger complete, verification green. |
system-prompt-baseline.md, must exist and be the agreed source of truth.plugins/odin-core/output-styles/{axiom-mode,builder,duet,linus,odin,benchmark}.md.~/.omp/agent/AGENTS.md and ~/.codex/AGENTS.md.benchmark.md tail repair or authorized external embed edit.system-prompt-baseline.md is the whole-file source of truth and wins every conflict. For each output-style embed (axiom-mode, builder, duet, linus, odin, benchmark), the persona prefix above the charter <role> (the second <role> in each file) is the strip zone. The tail from the charter <role> to EOF is the byte-identity invariant zone and is never a dedup target. Never touch the benchmark.md auto-generated margin-runner preamble. The external harness embeds ~/.omp/agent/AGENTS.md and ~/.codex/AGENTS.md are editable in place but never committable; harness-adapted tool sections are legitimate divergence. Done when: the cascade family is mapped with strip zones, invariant zones, and external embeds identified.diff -q /tmp/canon.md <(tail -c "$(wc -c < /tmp/canon.md)" plugins/odin-core/output-styles/X.md)
Drift in the invariant zone is a sync bug, not duplication. Repair by replacing the file's entire tail (from its charter <role> to EOF) with the canonical content as one block; dedup edits inside the invariant zone stay forbidden. For benchmark.md, obtain explicit user authorization before repairing. Record each diff result. Done when: all six tails are verified byte-identical (after repair where needed), or benchmark.md repair is deferred for lack of authorization.benchmark.md has no eligible strip zone (its persona prefix sits inside the auto-generated block), so scan the five hand-authored styles and skip benchmark.md. Classify every sentence of each persona prefix as voice, duplicate, conflict, or unique-directive:
~/.omp/agent/AGENTS.md, ~/.codex/AGENTS.md):
harness-adaptation (names that harness's tools or commands: keep), accidental drift (same rule, mutated wording: align to baseline wording), conflict (baseline wins, unless the divergence fits harness-specific tooling).
Done when: a divergence ledger with exactly one classification per divergence is produced, none unclassified.releaseVersion bump if strips or conflict resolutions occurred. Let the package-surfaces generator (scripts/render-plugin-surfaces.mjs) re-render every package surface (plugins/<id>/plugin.json and .claude-plugin/plugin.json) from that one literal. A run that only re-syncs an embedded baseline with zero strips is a pure sync change -> no bump. Any benchmark.md change (tail repair included) ships only with explicit user authorization recorded in this run.prek run --all-files. If either fails, do not commit; report the failing diff or check and the file responsible.prek result, and the invariant re-verified 6/6, with the atomic commit created only after verification passed.benchmark.md (tail or preamble) until explicit user authorization is recorded in the run. Without it, leave the file unchanged and report the needed authorization.unique-directive and report it for human review.git checkout -- <files>. External file edits are not VCS-tracked; record the original content before editing and restore from that record on failure.A final report containing the 6/6 invariant re-verification diff results, strips per file with baseline-pair citations, conflicts resolved with the winner named, kept harness-adaptations, the complete divergence ledger (one classification per divergence), every externally edited path flagged for user review, the prek run --all-files result, and the releaseVersion bump decision (bumped literal plus regenerated surfaces, or no-bump rationale); repo changes land as one atomic commit, external edits land in place and are never committed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-skills21 skills in this plugin
/agent-surface-forgeUse when asked to audit or repair agent surfaces (plugins, agents, skills, CLAUDE.md/AGENTS.md, docs, prompts, commands, hooks) or improve one skill at depth. Not for agent grading: use skill-doctor./automate-meUse when asked to create or refresh a personal mode skill and open a reviewable PR. Not for shared repo skills or work that skips human approval./book-to-skillUse when the user names one book, course, paper, or source document and asks to distill it into a reusable skill. Not for a folder of sources: use map-corpus./create-plugin-scaffoldUse when asked to create a local agent-plugin directory tree or marketplace package. Not for remote, credential, publish, deploy, or irreversible changes./dedup-skillsUse when asked to deduplicate a skill tree, fold overlapping skills, or cut the skill count: analyze, gate per family, then fold. Not for prompt-doctrine cascades: use cascade-dedup./generate-my-tasteUse when asked to generate a personal taste skill from local evidence. Not for applying an existing taste register: use the user-private spine skill.Other plugins' skills for the same job