detect-stale-documentation
Skill2 starsChanged 3 months agoApache-2.0View on GitHub
Use when checking whether curated knowledge is still fresh, reading freshness verdicts, or investigating why a unit shows drifted or unknown. Triggers on requests like "check freshness", "run the probes", "is this knowledge still current", "why does kb-0002 say unknown", or "read the knowledge index".
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
- 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
- supersede-outdated-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
2 rules. About 0 are common, 1 is distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
Every verdict is one of three values, and the framework never guesses a fourth:
- Very specific: line 56
Add an entry to the probes: map in validated-memory.md: <kind>: <command>.
≈ “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
Detect stale documentation
Run the probes
python3 -m validated_memory probeRuns every anchor of every active unit (one superseded within the
validated set is excluded) through the probe registered for its kind in
validated-memory.md's probes: map, and appends one record per anchor to
verdicts.jsonl -- append-only, never rewritten. A summary goes to stdout:
probe: 3 anchor(s) probed across 1 unit(s): 1 current, 1 drifted, 1 unknownA drifted or unknown verdict is data, not a finding: it never gates
probe. Only a source-validation ERROR, or the log failing to write, does.
Read the verdicts
python3 -m validated_memory deriveprobe only records; derive is what turns the recorded verdicts into the
verdict column of knowledge-index.md. Run derive after probe to see
the update -- the index does not refresh itself.
The ternary, fail-explicit
Every verdict is one of three values, and the framework never guesses a fourth:
current-- the probe re-checked the anchor and it still holds.drifted-- the probe re-checked the anchor and it no longer holds.unknown-- the probe could not tell, or the anchor was never probed at all. An anchor that has simply not been checked yet reads exactly the same as one a probe failed to resolve: fail-explicit means "we don't know" is never silently folded into "current."
A unit's verdict is the worst of its anchors' verdicts (drifted >
unknown > current), read from the knowledge-index.md table. The exact
cell format -- including how systems behind an unknown anchor are listed --
is derive's algorithm, documented once in the README's derive section;
read the cell there, do not re-derive it by hand.
Register a probe for a new anchor kind
Add an entry to the probes: map in validated-memory.md:
<kind>: <command>. The command is run without a shell, receiving the
anchor's envelope as JSON on stdin and answering
{"verdict": ..., "detail": ...} as JSON on stdout, exit 0 -- see the
README's "Probe contract" (under probe) for the exact shape. The plugin
ships one probe, git_ref (freshness of a git ref), already registered by
init; see the README's "The bundled git_ref probe".
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.

