doc-audit
Skill1 starsChanged 26 days agoMITView on GitHub
Audit and optimize a project's documentation, agent-context files, persistent memory, and showcase docs for accuracy and token efficiency — code↔doc drift, duplication, archiving, memory slimming, showcase currency, standing-instruction budgets. Use when asked to review/clean up docs, context, or memory — or as a periodic maintenance pass to keep them lean and accurate.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- blueclover22/mw_agent_kittheir own version, first seen Nov 4, 2026
- florian101010/awesome-agentic-AI-coding-templatetheir own version, first seen Nov 1, 2026
- sunitghub/canon-skillstheir own version, first seen Oct 22, 2026
- Sprintlaw/legal-skillstheir own version, first seen Oct 17, 2026
- bekalpaslan/promptlinetheir own version, first seen Oct 13, 2026
- tachyon-zcash/ragutheir own version, first seen Oct 8, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- PackmindHub/packmind★ 321same name
- tachyon-zcash/ragu★ 61same name
- bekalpaslan/promptline★ 11same name
- sunitghub/canon-skills★ 9same name
- florian101010/awesome-agentic-AI-coding-template★ 4same name
- Wubabalala/claude-skills★ 4same name
- ApurvBazari/claude-plugins★ 3same name
- blueclover22/mw_agent_kit★ 1same name
- jarosser06/drift★ 1same name
- s-frantz/agent-memory-trellis★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- checkpointSkill
- dep-checkSkill
- doc-auditSkill
- harness-auditSkill
- live-verifySkill
- project-adoptSkill
- project-auditSkill
- project-initSkill
- retroSkill
- tidySkill
- checkpointSkill
- dep-checkSkill
- harness-auditSkill
- live-verifySkill
- project-adoptSkill
- project-auditSkill
- project-initSkill
- retroSkill
- tidySkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
5
Distinctive
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 24
Spend audit tokens the same way: Read hot-path files fully.
- Distinctive: line 35
One source of truth: If two files state the same fact, the hot-path file *defers* (links) to the authoritative one instead of duplicating …
- Distinctive: line 37
Respect the project's cadence: Follow documented working agreements (plan → sign-off → build).
- Very specific: line 53
Hunt for local-only docs: Check .gitignore and .git/info/exclude for doc-shaped exclusions and check the project's memory for designated …
- Distinctive: line 63
Run the seven hunts — full mechanics, examples, and the standing-instruction placement sub-rules live in references/hunts.md.
- Distinctive: line 90
Wait for sign-off unless pre-authorized — then take the recommended option and say so in the report.
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Documentation / Context / Memory Audit
A periodic, sign-off-gated pass that keeps a project's docs, agent-context files, persistent memory, and showcase docs accurate and token-efficient. Use extended thinking — this is an analysis task before it's an editing task.
Operating principles (the "why")
- Optimize the hot path first. The most expensive tokens are in files the
agent loads every turn (
CLAUDE.md/AGENTS.md, the memory index) or every resume (a status/handoff file). Slimming those beats slimming an on-demand reference doc. Triage every file by load frequency: always-loaded → on-resume → on-demand → archival. - Spend audit tokens the same way. Read hot-path files fully; spot-check on-demand files against their drift-prone claims; review archives at index level only. Reuse the project's own doc map instead of re-deriving the landscape. Verify with the cheapest sufficient probe — grep for the symbol instead of reading the file; query the registry instead of a changelog.
- Accuracy beats completeness. A doc that contradicts the code actively misleads the agent. Never trust a doc's claim about code; verify it against source.
- Preserve, don't destroy. Cull verbose detail by moving it to an archive/history file and recording in the archive's index what was preserved where. The hot-path file keeps a compact one-line-per-item record.
- One source of truth. If two files state the same fact, the hot-path file defers (links) to the authoritative one instead of duplicating it.
- Respect the project's cadence. Follow documented working agreements (plan → sign-off → build). Default: present findings + plan, get sign-off, then execute. If the invoking request pre-authorized the full pass (or the session is non-interactive), proceed — and record in the final report the decisions a sign-off would have covered.
- Measure. Quantify the savings (chars before → after; tokens ≈ chars/4) so the win is concrete.
Process
1 — Discover & read
- Map the landscape:
README,CLAUDE.md/AGENTS.md(including leaf copies in subdirectories — glob for them), everything underdocs/**, any status / handoff / backlog / changelog / decision-log files, and the agent memory directory + its index. - Hunt for local-only docs. Check
.gitignoreand.git/info/excludefor doc-shaped exclusions and check the project's memory for designated doc sets — these never appear ingit status, so they rot fastest. - Classify each file by load frequency (always / on-resume / on-demand / archival) and audience (agent-facing / outward-facing / showcase), then read at tiered depth — don't skim the hot path; you can't spot duplication or drift you haven't read.
2 — Analyze (change nothing yet)
Run the seven hunts — full mechanics, examples, and the standing-instruction placement sub-rules live in references/hunts.md; read it before the pass:
- Code↔doc drift — spot-check the rot-prone claims against source.
- Duplication / bloat — the same fact in multiple files; regrown append-logs; backlogs re-describing shipped work.
- Archivable content — completed plans, superseded audits, history.
- Backlog gaps — untracked TODOs, known-but-unfiled issues.
- Currency & status drift — claims that rot with zero repo changes; quickstart commands, badges, links, external gates.
- Showcase-doc lag — stamp-vs-git-log diff; numeric/superlative claims.
- Standing-instruction budget & placement — measure the always-loaded
set against the adapter's
contextBudget(defaults in hunts.md) and apply the placement rules (prime directive · thin pointers · cache stability · leaf files · load-when precision).
Litmus tests: "Would an agent that loaded only this file be misled?" → drift, or it needs a pointer. "Is this fact derivable from the code, git history, or the onboarding doc?" → don't repeat it. "If two files disagree, which is authoritative?" → that one stays; the other defers.
3 — Plan + sign-off
Present findings grouped (drift / bloat / archive / backlog / showcase), each with a concrete fix and a recommendation. Ask about the genuine decisions only (how aggressively to slim, archive vs delete for borderline content). Wait for sign-off unless pre-authorized — then take the recommended option and say so in the report.
4 — Execute
Fix drift first → slim hot-path files (move verbose detail verbatim to the archive; refresh index/map files) → enforce budget & placement fixes → add the agreed backlog items → refresh showcase docs in-register and stamp the set → repair memory (collapse per-step changelogs into pointers; keep only durable non-derivable facts; fix cross-links). Per-fix patterns are in hunts.md.
5 — Verify
- Internal links/anchors resolve;
git statusscope is exactly what you intended (local-only files never show there — re-list them directly). - Report measured savings (before → after) and the showcase claims updated.
- Anything code-adjacent changed → run the project's gate. Markdown is usually outside it — the link/scope/measurement checks are the real verification.
- Commit/push only when asked. Local-only showcase docs are saved, never committed.
Notes & gotchas
- Budgets come from the adapter —
.claude/ai-dev-kit.config.json→contextBudgetoverrides the defaults in hunts.md; where absent, use the defaults and say so. - Agent memory lives outside the repo (typically
~/.claude/projects/<project-slug>/memory/with aMEMORY.mdindex). It is not in git — edit it directly; the index is loaded every session, so its lines and each file'sdescriptionmust stay accurate. - The biggest recurring win is a status/handoff or memory file that has quietly regrown a verbose per-step log — keep a compact record, move prose to the archive, restate the "no append-log" rule where it'll be seen.
- Dual-home rule: this skill's canonical source is the ai-dev-kit repo's
skills/doc-audit/; the project copy (.claude/skills/doc-audit/) and the global copy (~/.claude/skills/doc-audit/) are both installer output — edit kit source in a clone and re-run its installer per the kit README (installed versions:.claude/ai-dev-kit.installed.json), never edit the installed copies (install.mjs --checkguards drift). Project-specific designations — which files form the showcase set, where they live — belong in that project's memory, not in this file. - Never name a project's local-only docs inside committed files (including the in-repo copy of this skill) — the exclusion exists to keep them out of a public repo; the project's memory carries the pointer.
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.

