refresh-docs — Claude Code command: update docs
refresh-docs fetches Anthropic’s official Claude Code docs and replaces the current snapshot. Use it to check changes against the saved baseline.
CC-BY-SA-4.0 ★ 6,529 updated 2026-10-22
.claude/commands/refresh-docs.mdWhat refresh-docs does
The command calls the MCP tool refresh_official_docs to retrieve the official documentation. It updates the current snapshot while leaving the baseline intact, then displays a brief comparison with that baseline.
For the full comparison, run /ccguide:diff-docs. The refresh depends on the refresh_official_docs MCP tool being available. In Claude Code, install the command at .claude/commands/refresh-docs.md.
What it helps with
- refresh the current Claude Code docs snapshot
- compare new documentation with the saved baseline
- view a brief change summary after a refresh
Example prompts for the agent
- Refresh the current snapshot of the official Claude Code documentation.
- Fetch the latest docs and show a brief comparison with the saved baseline.
How to install refresh-docs
Manually: put the files in place
.claude/commands/refresh-docs.mdCall it with /refresh-docs. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/refresh-docs.mdCall it with /prompts:refresh-docs. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/refresh-docs.prompt.mdManually: put the files in place
.gemini/commands/refresh-docs.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about refresh-docs
How do I install refresh-docs in Claude Code?
Place the command file at .claude/commands/refresh-docs.md.
What does refresh-docs do?
It retrieves official Claude Code documentation through refresh_official_docs and updates the current snapshot without changing the baseline.
How can I see the full documentation diff?
After the brief comparison, run /ccguide:diff-docs for the detailed diff.