agentleFS
everywan-deveverywan-dev/claude-code-engineering/skills/supersede-outdated-docs/SKILL.md

supersede-outdated-docs

Skill2 starsChanged 3 months agoApache-2.0View on GitHub

Use when a curated-knowledge unit turns out to be wrong, outdated, or replaced by better evidence. Triggers on requests like "correct kb-0003", "update this finding, it changed", "this knowledge unit is no longer true", or "supersede X with Y". Never use this to justify editing a unit's frontmatter or body in place.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write a new unit file with its own new id, never reusing the old one.

    line 12
  2. Distinctive:

    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 …

    line 18
  3. Very specific:

    If the new unit carries its own anchors, its freshness verdict starts at unknown until detect-stale-documentation runs against it -- the …

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.