Community编程与开发github.com

doc-review

Review documentation against the code it describes. Lists every checkable claim (paths, line citations, commands, ports, env vars, versions, counts, behaviour), verifies each at the committed revision, runs the repo's own doc checkers, and reports findings ranked by priority, asking before fixing anything. Use when asked to review, audit, fact-check or verify docs, a README, a guide or a CLAUDE.md.

doc-review 是什么?

doc-review is a Claude Code agent skill that review documentation against the code it describes. Lists every checkable claim (paths, line citations, commands, ports, env vars, versions, counts, behaviour), verifies each at the committed revision, runs the repo's own doc checkers, and reports findings ranked by priority, asking before fixing anything. Use when asked to review, audit, fact-check or verify docs, a README, a guide or a CLAUDE.md.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/arslanramay/claude-code-engineering-playbook/tree/HEAD/examples/skills/doc-review

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Review docs against the code

Project rules in CLAUDE.md / AGENTS.md win over this skill: doc conventions, header formats, which repos the docs describe.

1. Scope

  • Arguments, if given: $ARGUMENTS.
  • Else the Markdown changed on this branch: git diff --name-only <base>...HEAD -- '*.md'.
  • Else ask, if the repo has more than about 30 docs. Never silently review a subset of "all docs".

2. Run the repo's own checkers first

They encode its rules. Look for:

  • check-*.sh at the root or in scripts/;
  • scripts/validate-docs.* and anything else with doc, link or anchor in its name;
  • package.json scripts named docs:* or lint:md, and Makefile targets.

Read a script before running it if you can't tell whether it writes. Record the numbers each one prints. If there is no link checker, use the dead-links skill.

3. Build the claim inventory

For each doc, list every claim that the code can confirm or refute:

  • file paths and path:line citations, and the symbols they name;
  • commands, scripts and Makefile targets;
  • env vars, ports, config keys and default values;
  • versions, routes, schemas, API shapes;
  • counts (tests, endpoints, files);
  • behaviour ("X retries three times", "Y requires auth").

4. Verify each claim at the committed revision

  • Note git rev-parse --short HEAD. Files listed by git status --porcelain are read with git show HEAD:<path>, never from disk.

  • Code in a sibling repo named by the project: same rule, with git -C <repo>.

  • Verify by reading. Don't run a command with side effects just to prove a doc right.

  • Verdict per claim:

    MarkMeaning
    ✅verified; cite the evidence path:line
    ❌wrong; show what the code actually says, with path:line
    ⚠️drifting: a count or line number that is close but stale
    ❓could not be verified; say why

5. Report, ranked

PriorityWhat
P1Wrong and harmful to act on: commands, setup steps, security, data handling, credentials locations
P2Wrong but low harm: stale counts and line numbers, broken links, dead references
P3Shape: walls of prose, missing reasons on related links, duplicated facts

For each finding: doc:line, the claim, the evidence, the proposed fix. End with totals per verdict, the checker numbers, and the SHA verified against.

6. Ask before fixing

  • Fix only what the user approves.
  • When a fact is corrected, git grep for every other doc that repeats it and fix those too.
  • Re-run the checkers and report before → after numbers.
  • Don't commit unless asked; then use /commit-pr.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

相关技能