find-stale-docs
Use when docs may be out of date, a README looks stale, docs drifted after a refactor, or you want to verify setup instructions still work. Audits doc claims against the codebase and lists each stale line with concrete proof and a one-line fix. Not for changing code to match old
Install
npx skills add https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/find-stale-docs
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install heyvhuang-copybook-skills@llmmart
git clone https://github.com/Heyvhuang/copybook-skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole heyvhuang/copybook-skills collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Find stale docs
Documentation keeps an authoritative tone long after the code moves on. Stale commands, removed flags, dead environment variables, and moved paths break setup flows and mislead both people and agents until you check each claim against the repository.
1. Extract every checkable claim
Read the target README or documentation files line by line and list every concrete claim with its file path and line number. Capture all six categories so flags and environment variables do not slip past a quick skim:
- Commands and package scripts, including subcommands and arguments
- CLI flags and options shown in usage examples
- File, directory, and config paths named in setup or usage steps
- Environment variable names and defaults
- Network ports, endpoints, and runtime or tool versions
- Setup steps that assume a specific file, tool, or script exists
Skip prose opinions and high-level descriptions that you cannot verify against the repository.
2. Check each claim against the code
Verify every extracted claim directly against the source tree before running commands. Match each category to its authoritative source in the repo:
- Look up commands and scripts in the manifest or task runner file, such as
package.json,Makefile, orpyproject.toml. - Check CLI flags against the argument parser definition or local
--helpoutput. - Search the codebase for each environment variable name to confirm code still reads it and honors the documented default.
- Confirm every referenced file, directory, and config path exists at that exact location on disk.
- Check documented ports and version requirements against config files, lockfiles, or source constants.
Record the exact file path, line, or command output that confirms or refutes each claim.
3. Run only safe verification commands
When static inspection cannot settle a claim, run only read-only or isolated checks. Safe checks include --help, --version, dry-run flags, linters, or a build inside a temporary copy of the project.
Skip commands that modify the working tree, touch databases, call external services, or alter global state. When a claim requires an unsafe or unavailable check, list it as unverified rather than reporting it as current.
4. Report stale lines with proof and fixes
Report only the claims you proved stale, grouped by file and line number. Leave every accurate line alone and out of the stale list.
For each stale line, show:
- The file, line number, and current doc text
- The proof line showing the mismatch (such as the missing script entry, the rejected CLI flag from
--help, the empty search for the environment variable, or the moved path on disk) - The smallest one-line fix that brings the doc back in line with the code
Finish with a short list of claims you did not run or verify, with the reason you skipped each one.
Based on addyosmani/agent-skills (MIT), rewritten by Copybook.
Files (copybook-skills)
-
CHANGES.md 540 B
Loading… -
example.md 1.2 KB
Loading… -
LICENSE 1 KB · in bundle
-
SKILL.md 3.3 KB
--- name: find-stale-docs description: "Use when docs may be out of date, a README looks stale, docs drifted after a refactor, or you want to verify setup instructions still work. Audits doc claims against the codebase and lists each stale line with concrete proof and a one-line fix. Not for changing code to match old docs or migrating APIs (migrate-off-deprecated-api)." license: MIT (see LICENSE) --- # Find stale docs Documentation keeps an authoritative tone long after the code moves on. Stale commands, removed flags, dead environment variables, and moved paths break setup flows and mislead both people and agents until you check each claim against the repository. ## 1. Extract every checkable claim Read the target README or documentation files line by line and list every concrete claim with its file path and line number. Capture all six categories so flags and environment variables do not slip past a quick skim: - Commands and package scripts, including subcommands and arguments - CLI flags and options shown in usage examples - File, directory, and config paths named in setup or usage steps - Environment variable names and defaults - Network ports, endpoints, and runtime or tool versions - Setup steps that assume a specific file, tool, or script exists Skip prose opinions and high-level descriptions that you cannot verify against the repository. ## 2. Check each claim against the code Verify every extracted claim directly against the source tree before running commands. Match each category to its authoritative source in the repo: - Look up commands and scripts in the manifest or task runner file, such as `package.json`, `Makefile`, or `pyproject.toml`. - Check CLI flags against the argument parser definition or local `--help` output. - Search the codebase for each environment variable name to confirm code still reads it and honors the documented default. - Confirm every referenced file, directory, and config path exists at that exact location on disk. - Check documented ports and version requirements against config files, lockfiles, or source constants. Record the exact file path, line, or command output that confirms or refutes each claim. ## 3. Run only safe verification commands When static inspection cannot settle a claim, run only read-only or isolated checks. Safe checks include `--help`, `--version`, dry-run flags, linters, or a build inside a temporary copy of the project. Skip commands that modify the working tree, touch databases, call external services, or alter global state. When a claim requires an unsafe or unavailable check, list it as unverified rather than reporting it as current. ## 4. Report stale lines with proof and fixes Report only the claims you proved stale, grouped by file and line number. Leave every accurate line alone and out of the stale list. For each stale line, show: - The file, line number, and current doc text - The proof line showing the mismatch (such as the missing script entry, the rejected CLI flag from `--help`, the empty search for the environment variable, or the moved path on disk) - The smallest one-line fix that brings the doc back in line with the code Finish with a short list of claims you did not run or verify, with the reason you skipped each one. Based on addyosmani/agent-skills (MIT), rewritten by Copybook.
Reviews (0)
No reviews yet.
Comments
Sign in to join the conversation.
No comments yet. Start the conversation.