docs-health
Skill0 starsChanged 5 months agoMITView on GitHub
Audit the project's agent-docs for rot — stale verified stamps, oversized always-loaded files, contradictions between docs and reality, missing provenance, hedged rules. Use when the user asks to check/audit the docs, doc health, whether docs are stale, or periodically before a new work phase.
In this repository4 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- docs-decideSkill
- docs-initSkill
- docs-wrapSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Reality contradictions (worst): do AGENTS.md commands actually run?
- Distinctive: line 26
Don't "fix" a contradiction by editing the doc to match code without checking which one is wrong — sometimes the code drifted from a locked …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Audit doc health
Docs the agent distrusts are worse than no docs. This audit finds and reports rot; fix only what the user approves (except trivial mechanical fixes like re-stamping a date you just verified).
Checks, in order of damage
- Reality contradictions (worst): do AGENTS.md commands actually run? Does the ARCHITECTURE.md parts table match the real directory tree? Does STATE.md's "works right now" still build? Spot-check by running, not by reading.
- Staleness:
verified:stamps older than the last significant commits in their area (git log --oneline -10 -- <dir>per area). STATE.md older than the last few commits means sessions are skipping the wrap ritual — flag that as a process failure, not just a stale file. - Context-budget violations: AGENTS.md > 150 lines, STATE.md > 60, ARCHITECTURE.md > 120. Report what to demote to linked docs or delete.
- Hedged rules: grep AGENTS.md and playbooks for "usually", "mostly", "try to", "prefer to when possible" — hedges read as permission. Each becomes a firm rule + explicit exceptions, or gets deleted.
- Provenance gaps: DECISIONS entries missing
Decided-by, andagent-defaultdecisions that later evidence has strengthened or invalidated (cross-check landmines and postmortems). - Dead docs: files in docs/ nothing links to and no trigger updates. Recommend merge or delete — dead docs cost trust in the living ones.
- Duplicated facts: the same fact stated in two docs (commonly: commands in README and AGENTS.md, scope in README and PRD). One canonical home + link elsewhere.
Report format
A short table: file → finding → severity (contradiction / stale / bloat / hygiene) → proposed fix. Lead with the single most damaging finding in one sentence. If everything is healthy, say so in two lines — don't manufacture findings.
Gotchas
- Don't "fix" a contradiction by editing the doc to match code without checking which one is wrong — sometimes the code drifted from a locked decision, and that's a flag for the human, not a doc edit.
- Line-cap trims must move content, not silently delete rules that came from postmortems (check landmine/postmortem references before cutting).
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.

