/stale-docs
Audit the whole repo for stale documentation references
> /plugin marketplace add SectionTN/stale-docs > /plugin install stale-docs@stale-docs
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/stale-docs
Context preview
What this command does when you run it.
Audit the whole repo for stale documentation references
Command definition
stale-docs.mddescription: Audit the whole repo for stale documentation references
allowed-tools: Bash(node:*), Read, Grep, Glob
Run a full-repo staleness audit and report the results.
1. Run the scanner in audit mode from the repository root:
node "${CLAUDE_PLUGIN_ROOT}/hooks/check-stale.js" --audit2. The output is a ranked list capped at the 10 most confident findings, in the form `N. doc.md:line mentions \`x\` (fenced code block), from src/file.js`. Findings in fenced code blocks or referencing file paths rank above prose mentions.
3. For each finding, read the doc location and the referenced source file, then judge whether the doc still matches the code (signature, parameters, flags, defaults, behavior). Judge against the source only. Never mark a claim accurate because it agrees with another doc or sounds right; the scanner reports references, not verdicts, and a reference can be perfectly accurate.
4. Present the results as a table with three columns: `file:line`, what it references, and a verdict. Use **stale** when the doc contradicts current code (say what differs), **accurate** when you verified it against source, and **unclear** when it needs a human.
5. If any findings are stale, offer to repair them with the stale-docs skill: patch wrong details, delete claims about code that no longer exists, rewrite a file from the source when most of it is stale.
If the scanner prints `no stale doc references found` or `no doc files found`, say so and stop.
Read more
description: Audit the whole repo for stale documentation references allowed-tools: Bash(node:*), Read, Grep, Glob
Run a full-repo staleness audit and report the results.
1. Run the scanner in audit mode from the repository root:
node "${CLAUDE_PLUGIN_ROOT}/hooks/check-stale.js" --audit2. The output is a ranked list capped at the 10 most confident findings, in the form `N. doc.md:line mentions \`x\` (fenced code block), from src/file.js`. Findings in fenced code blocks or referencing file paths rank above prose mentions.
3. For each finding, read the doc location and the referenced source file, then judge whether the doc still matches the code (signature, parameters, flags, defaults, behavior). Judge against the source only. Never mark a claim accurate because it agrees with another doc or sounds right; the scanner reports references, not verdicts, and a reference can be perfectly accurate.
4. Present the results as a table with three columns: `file:line`, what it references, and a verdict. Use **stale** when the doc contradicts current code (say what differs), **accurate** when you verified it against source, and **unclear** when it needs a human.
5. If any findings are stale, offer to repair them with the stale-docs skill: patch wrong details, delete claims about code that no longer exists, rewrite a file from the source when most of it is stale.
If the scanner prints `no stale doc references found` or `no doc files found`, say so and stop.
Your docs can never lie again. You change code and the README quietly stops being true. Nobody notices until a stranger does.
Repo: SectionTN/stale-docs

