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.
In this repository53 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- block-dangerous-git-commandsSkill
- break-work-into-ticketsSkill
- build-a-domain-modelSkill
- build-a-throwaway-prototypeSkill
- check-if-data-is-safe-to-deleteSkill
- check-the-licence-before-you-copySkill
- choose-the-right-code-reviewSkill
- debug-a-silent-failureSkill
- deploy-to-production-safelySkill
- design-deep-modulesSkill
- detect-stale-documentationSkill
- diagnose-a-hard-bugSkill
- document-with-evidenceSkill
- edit-a-live-config-safelySkill
- find-architecture-improvementsSkill
- generate-a-setup-wizardSkill
- get-a-second-model-opinionSkill
- implement-from-a-specSkill
- investigate-an-unfamiliar-systemSkill
- keep-agent-memory-accurateSkill
- keep-secrets-out-of-the-repositorySkill
- know-what-a-change-costsSkill
- look-at-the-rendered-pageSkill
- make-the-next-failure-loudSkill
- map-an-undocumented-systemSkill
- map-the-attack-surfaceSkill
- pick-the-right-skillSkill
- plan-work-too-big-for-one-sessionSkill
- research-with-primary-sourcesSkill
- resolve-merge-conflictsSkill
- review-a-plan-before-you-buildSkill
- review-changes-against-spec-and-standardsSkill
- review-code-you-did-not-writeSkill
- root-cause-analysis-firstSkill
- route-work-to-the-right-modelSkill
- set-up-pre-commit-hooksSkill
- set-up-the-issue-trackerSkill
- set-up-verified-documentationSkill
- stress-test-a-decisionSkill
- stress-test-a-plan-with-docsSkill
- survive-someone-elses-breaking-changeSkill
- tddSkill
- teach-a-conceptSkill
- triage-issues-and-prsSkill
- turn-a-decision-into-a-questionnaireSkill
- validate-your-validatorSkill
- verify-before-saying-doneSkill
- write-a-handover-that-worksSkill
- write-a-spec-from-a-conversationSkill
- write-docs-for-agentsSkill
- write-docs-people-can-findSkill
- write-the-rollback-plan-firstSkill
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
- Very specific: line 12
Write a new unit file with its own new id, never reusing the old one.
- Distinctive: line 18
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 …
- Very specific: line 48
If the new unit carries its own anchors, its freshness verdict starts at unknown until detect-stale-documentation runs against it -- the …
≈ “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.
Files
Supersede outdated docs
Correcting curated knowledge is never an edit. It is always a new unit.
The rule
- Write a new unit file with its own new
id, never reusing the old one. - Its frontmatter declares
supersedes: [<old-id>](a list -- one unit may supersede several at once, many-to-one). - The superseded unit is never edited and never deleted. Its file,
its
evidence, itsanchors-- all of it stays exactly as written. History is not rewritten. - 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 validateValidate the whole knowledge/ directory (not just the new file) so the
supersedes reference resolves against the unit it points at.
python3 -m validated_memory deriveRe-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.
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
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.

