diff-docs — Claude Code command: what it does, how to install
diff-docs compares local snapshots of official Anthropic documentation against a baseline without network requests.
CC-BY-SA-4.0 ★ 6,529 updated 2026-10-22
.claude/commands/diff-docs.mdWhat diff-docs does
The command calls the diff_official_docs MCP tool to analyze two local index files of about 50KB each. It outputs added pages, removed sections, modified sections with line deltas and the first altered line, alongside a count of unchanged pages. Everything runs strictly offline.
The command depends on existing local files. If the baseline is missing, you must run /ccguide:init-docs first. If no current snapshot is found, it prompts you to generate one with /ccguide:refresh-docs.
What it helps with
- inspect differences across Anthropic documentation snapshots
- spot added or removed manual sections without internet access
- check line deltas and the initial altered line in local index files
Example prompts for the agent
- /diff-docs
- Compare the documentation baseline against the current snapshot using /diff-docs
How to install diff-docs
Manually: put the files in place
.claude/commands/diff-docs.mdCall it with /diff-docs. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/diff-docs.mdCall it with /prompts:diff-docs. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/diff-docs.prompt.mdManually: put the files in place
.gemini/commands/diff-docs.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about diff-docs
How to install diff-docs in Claude Code?
Place the command definition file at .claude/commands/diff-docs.md.
Does diff-docs require network access?
No, it reads local index files of about 50KB through the diff_official_docs MCP tool without sending network requests.
What commands are needed before running diff-docs?
Run /ccguide:init-docs if no baseline exists yet, and run /ccguide:refresh-docs if there is no current snapshot to compare.