supersede-outdated-docs

A process for correcting a curated knowledge document by creating a new document that records what it replaces, while preserving the older version.

In plain words
What is it for?
Use it when evidence shows that a knowledge entry is wrong, outdated, or replaced by a better-supported finding.
Why use it?
It keeps the history of past conclusions intact and makes it clear which information is now preferred.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/everywan-dev/claude-code-engineering/supersede-outdated-docs
Any agent
npx skills add everywan-dev/claude-code-engineering --skill supersede-outdated-docs
Clone the repo
git clone --depth 1 https://github.com/everywan-dev/claude-code-engineering

Made for: Claude Code, Codex.

Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 526 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00083 $0.00526
Opus 5 $0.00042 $0.00263
Sonnet 5 $0.00017 $0.00105
Haiku 4.5 $0.00008 $0.00053

Measured yesterday against content hash c7064936eaef, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

supersede-outdated-docs scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/supersede-outdated-docs/SKILL.md · 52 lines

What it actually says

Supersede outdated docs

Correcting curated knowledge is never an edit. It is always a new unit.

The rule

  1. Write a new unit file with its own new id, never reusing the old one.
  2. Its frontmatter declares supersedes: [<old-id>] (a list -- one unit may supersede several at once, many-to-one).
  3. The superseded unit is never edited and never deleted. Its file, its evidence, its anchors -- all of it stays exactly as written. History is not rewritten.
  4. If the correction is itself a chain (kb-0001 was already superseded by kb-0002, and kb-0002 also needs correcting), the new unit supersedes the latest unit in the chain, not the original.

Why

derive computes each unit's effective state from supersedes across the whole validated set -- it is never stored on the unit itself. A superseded unit still appears in knowledge-index.md, marked superseded by <ids>, never omitted and never mutated. Editing a unit in place would destroy the record of what was believed and when; superseding preserves it.

Steps

python3 -m validated_memory validate

Validate the whole knowledge/ directory (not just the new file) so the supersedes reference resolves against the unit it points at.

python3 -m validated_memory derive

Re-derive knowledge-index.md afterwards, so its state column reflects the new supersession. If the project gates on a versioned index (derive --check in CI), re-deriving is required before that gate passes again.

If the new unit carries its own anchors, its freshness verdict starts at unknown until detect-stale-documentation runs against it -- the superseded unit keeps whatever verdict it last had recorded, since probe only probes active units.

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. yesterday First seen · 52 lines · 83 tokens per session scan A c7064936eaef

Subscribe to this mod's changes

supersede-outdated-docs is a skill published in the GitHub repository everywan-dev/claude-code-engineering (2 stars, last pushed 13d ago), licensed Apache-2.0. It adds 83 tokens to every session and 526 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.