agentleFS
everywan-deveverywan-dev/claude-code-engineering/skills/detect-stale-documentation/SKILL.md

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".

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
  1. Distinctive:

    Every verdict is one of three values, and the framework never guesses a fourth:

    line 38
  2. Very specific:

    Add an entry to the probes: map in validated-memory.md: <kind>: <command>.

    line 56

≈ “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

Detect stale documentation

Run the probes

python3 -m validated_memory probe

Runs 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 unknown

A 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 derive

probe 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".

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.