cascade-dedup

cascade-dedup is a skill for Claude Code, Codex from OutlineDriven/odin-claude-plugin. It costs 65 tokens per session (1,721 once invoked), scanned B, original, Apache-2.0.

A procedure for removing accidental repetition and resolving conflicts among copies of system prompts. It treats one baseline file as the source of truth while preserving intentional differences.

In plain words
What is it for?
It is for auditing and repairing prompt files across multiple output styles and external agent configurations.
Why use it?
It reduces duplicated instructions and prevents copied prompt versions from drifting apart or contradicting one another.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: mentions AGENTS.md; mentions Codex.

Part of the odin-agent plugin — 46 skills shipped together

Good fit It is for auditing and repairing prompt files across multiple output styles and external agent configurations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/odin-claude-plugin/cascade-dedup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OutlineDriven/odin-claude-plugin --skill cascade-dedup
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/odin-claude-plugin

Made for: Claude Code, Codex.

Or install odin-agent, the plugin that ships this one along with the rest of its 46 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cascade-dedup

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/cascade-dedup/github.svg)](https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/cascade-dedup)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/cascade-dedup"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/cascade-dedup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cascade-dedup

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/cascade-dedup"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/cascade-dedup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,721 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 27
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • medium Rogue Agent · line 35
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.01721
Opus 5 $0.00032 $0.00860
Sonnet 5 $0.00013 $0.00344
Haiku 4.5 $0.00006 $0.00172

Measured 5d ago against content hash 727119bbd413, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

cascade-dedup scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

1. **Map the cascade family and zones.** The canonical baseline `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`
plugins/odin-agent/skills/cascade-dedup/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cascade dedup

Contract

Field Bound contract
Trigger Prompt-doctrine duplication, drift, or conflict across the cascade family.
Authority Human-only. Require explicit human invocation; preview the target and consequence before rewriting prompt doctrine at rest, bumping the catalog releaseVersion, or editing authorized external harness embeds.
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.

Inputs

  • The canonical baseline file system-prompt-baseline.md — must exist and be the agreed source of truth.
  • The six output-style embeds: packages/odin-core/output-styles/{axiom-mode,builder,duet,linus,odin,benchmark}.md.
  • The two external harness embeds: ~/.omp/agent/AGENTS.md and ~/.codex/AGENTS.md.
  • Explicit user authorization, recorded in the run, before any benchmark.md tail repair or authorized external embed edit.

Procedure

  1. Map the cascade family and zones. The canonical baseline 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.
  2. Verify the invariant before dedup. Copy the canonical baseline to a temporary file. For each output style, diff the canonical against the file's tail of equal byte length:
    diff -q /tmp/canon.md <(tail -c "$(wc -c < /tmp/canon.md)" packages/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.
  3. Strip-zone scan (persona prefixes). 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:
    • Normalize (lowercase tokens, stopwords removed). Jaccard >= 0.65 against a baseline rule -> duplicate: strip it; the baseline copy stands.
    • Jaccard >= 0.45 plus opposing modal verbs (must/never, always/must-not) -> conflict: the baseline wins; delete or rewrite the prefix line.
    • Persona voice (identity, tone, register) is not a directive: keep.
    • Unique directives (persona-specific rules with no baseline pair): keep. Done when: every prefix sentence is classified and every strip cites its baseline pair.
  4. Harness embeds. Per external file (~/.omp/agent/AGENTS.md, ~/.codex/AGENTS.md):
    • Internal duplication within the file, same thresholds as step 3.
    • Directive-level comparison against the baseline. Classify each divergence: 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.
  5. Apply, verify, then commit.
    • Apply all repo edits: strips, conflict resolutions, tail repairs, and the releaseVersion bump if strips or conflict resolutions occurred. Let the package-surfaces generator (scripts/render-package-surfaces.mjs) re-render every package surface (packages/<id>/package.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.
    • Run verification before committing: re-run the step 2 invariant diffs (all six tails must be byte-identical 6/6) and run prek run --all-files. If either fails, do not commit; report the failing diff or check and the file responsible.
    • Only after verification passes, commit all repo files in one atomic commit (edits plus regenerated surfaces).
    • External files: edit in place, never commit; end the report with an explicit warning listing every externally edited path for user review.
    • Output styles load at session start — smoke-test doctrine effects in a fresh session. Done when: the final report contains strips per file with citations, conflicts resolved with the winner named, kept harness-adaptations, externally edited paths, the prek result, and the invariant re-verified 6/6, with the atomic commit created only after verification passed.

Read the full file on GitHub · 61 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · -2 lines · +30 tokens per session scan A → B 727119bbd413
  2. 9d ago First seen · 63 lines · 35 tokens per session scan A 3b6705d2ede0

Subscribe to this mod's changes

cascade-dedup is a skill published in the GitHub repository OutlineDriven/odin-claude-plugin (35 stars, last pushed 2d ago), licensed Apache-2.0. It adds 65 tokens to every session and 1,721 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens