Skip to content
Back to skills

Readme Audit

ASecurity

Audit a project's user documentation against its code. Report findings; do not fix anything. End by asking which findings to fix and whether to save the full report as `REPORT.md`. `<skill-dir>` is `${CLAUDE_PLUGIN_ROOT}/lib/readme-audit`, the folder that contains this procedure file; every relative `references/…` path below is inside it. The detailed instructions live there: - **`references/rules.md`**: safety, evidence and scope rules. - **`references/pass-a.md`**: Pass A, code → docs (cove...

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsrustnodegitdatabasedocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add chrismccoy/forge --skill readme-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Readme Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Readme Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/chrismccoy-readme-audit/badge)](https://www.skillsdirectory.com/skills/chrismccoy-readme-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# README audit (two directions)

Audit a project's user documentation against its code. Report findings; do not fix anything. End by asking which findings to fix and whether to save the full report as `REPORT.md`.

`<skill-dir>` is `${CLAUDE_PLUGIN_ROOT}/lib/readme-audit`, the folder that contains this procedure file; every relative `references/…` path below is inside it. The detailed instructions live there:

- **`references/rules.md`**: safety, evidence and scope rules.
- **`references/pass-a.md`**: Pass A, code → docs (coverage).
- **`references/pass-b.md`**: Pass B, docs → code (accuracy).

Read `references/rules.md` now. Its Read-only, Untrusted content and Scope rules apply to you from step 1 onward; the test-suite and subagent bans apply only to the passes. Use the reference files' absolute paths (with `${CLAUDE_PLUGIN_ROOT}` expanded) when handing them to subagents.

**Project root:** the current directory. If it is inside a git repository whose top level (`git -c core.fsmonitor=false rev-parse --show-toplevel`) is a different directory, ask which one to audit.

## Arguments

Arguments: the user input passed to the `/readme-audit` command (may be empty). Resolve paths relative to the current directory.

- If the first word is an existing file with a docs extension (`.md`, `.markdown`, `.rst`, `.txt`, `.adoc`) or a docs-style name (`README`, `CHANGELOG`, `USAGE`, `INSTALL`, any case), audit that file, and treat any remaining text as an extra focus area.
- If the first word is any other existing file (for example `Makefile` or `package.json`), or an existing directory, stop and ask whether it is the docs file or focus text.
- If the first word looks like a path (contains `/`, or ends in a docs extension) but doesn't exist, stop and ask which file was meant (it may be focus text such as `CLI/flags`).
- Otherwise treat all the text (if any) as the extra focus area, and audit `README.md` at the project root. If there is none, use the single root file whose name starts with `README` (any case). If there are none, or several, stop and ask.

The docs file may be outside the project root; it is then read-only too.

## Procedure

1. **Map the project** before reading it: directory tree, manifest and package files, entry points, test setup. Decide the scope:
   - Skip vendored, generated and build output (`node_modules`, `vendor`, `dist`, `build`, lock files, minified files).
   - In a monorepo, limit the audit to the package or directory that contains the docs file.
   - If the scope is still too large to read fully, say so, and plan to list the directories not read.
2. **Prepare scratch space.** Create three scratch directories outside the project with `mktemp -d` (or in the session's scratchpad, if the environment provides one): one for each pass, and one for yourself. In your own, make a scratch copy of the project as described in "Copying the project" in `references/rules.md`; use it for the test run and for re-checks.
3. **Run the two passes in parallel.** Launch both subagents in a single message, each a fresh **general-purpose** subagent (not Explore or Plan, which can't create the scratch copy), with the model set to the most capable one available, so neither pass is anchored on the other's findings. Each subagent sees only what it is given. Tell each one to read `references/rules.md` and its own pass file (absolute paths) before starting, and give it the project root, the docs path, the scope from step 1, the extra focus area (if any), and its scratch directory.
   - If subagents aren't available, run Pass B, then Pass A, yourself, one after the other (claims first, so the inventory doesn't shape what you look for). Don't consult the first pass's findings while doing the second.
4. **Run the tests**, once, yourself, in your own scratch copy, under `references/rules.md`. Run them only if a pass marked something DEFERRED and the test configuration shows they need no real database, network service or credentials. Otherwise report the tests as "not run" with the reason ("no deferred claims", or what they would need). Use the result to settle the DEFERRED items; if the tests weren't run, report those items under "Couldn't verify".
5. **Verify before merging**, in your own scratch copy and under `references/rules.md`:
   - Re-check every FALSE claim (Pass B), every WRONG item (Pass A), every SUSPECTED CODE PROBLEM, and the five most important MISSING items. Read the cited lines, and rerun any cited command (passes cite commands relative to their copy's root, so they run unchanged in yours).
   - Drop anything that can't be reproduced, and say it was dropped.
   - Where the passes disagree about the same behaviour (for example DOCUMENTED in Pass A, FALSE in Pass B), the re-check decides; note the disagreement.
   - Merge duplicates: a Pass A WRONG or PARTIAL item and a Pass B FALSE claim about the same behaviour become one finding, and so do rendering problems reported by both passes.
   - If the re-check shows the docs are right and the code is wrong, report the item only under "Code problems", not as a docs error.
6. **Write the final answer** (format below). The full pass reports are in `report.md` in each pass's scratch directory; read the TRUE and DOCUMENTED lists from there when the user asks for them.

## Final answer

Start with the verdict in one or two sentences: how many claims are wrong in the docs (false claims and wrong items after merging), how many contradictions and rendering problems were found, how many behaviours are missing or partly documented, how many suspected code problems remain, how many claims were confirmed (Pass B TRUE; give the Pass A DOCUMENTED count separately), and whether the tests passed, failed or were not run (with the reason). Then:

1. **Code problems**: findings where the code, not the docs, looks wrong. These are the user's call; keep them separate from docs fixes.
2. **Wrong in the docs**: false claims, contradictions between sections, and rendering problems, with line numbers and the fix.
3. **Missing from the docs**: grouped, most important first.
4. **Partly documented**: what to add to each.
5. **Couldn't verify**: unverifiable items and unresolved DEFERRED ones, one line each.
6. **Confirmed**: the counts; offer the full lists on request.

Mention anything dropped during verification, disagreements between the passes, and any directories not read. List the scratch directories created; say they are left in place, and that deleting them may need `chmod -R u+w` first (some dependency caches are read-only).

End with one question: which of these should be fixed (docs only, or the code problems too), whether to save the full report as `REPORT.md` in the current directory (yes or no), and whether to delete the scratch directories.

## Saving the report

Only if the user answers yes to saving the report:

- Write `REPORT.md` in the current directory. This is the only file the audit may create outside the scratch directories; nothing else in the project is ever written, and the passes never write it.
- If `REPORT.md` already exists, ask once whether to overwrite it (yes or no). On no, don't save.
- Content: a header with the docs file audited, the project root and the date; then the final answer as shown; then the full TRUE and DOCUMENTED lists from each pass's `report.md` in place of the counts.
- The evidence rules still apply: no secret values.
- Say where it was saved, and that it was not added to version control.

Files in this skill

  • SKILL.md7.3 KB
  • references/pass-a.md2.4 KB
  • references/pass-b.md1.6 KB
  • references/rules.md7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.