Skip to main content
command CX Codex

init-docs — Claude Code command: local snapshot of Anthropic docs

init-docs pulls the official Anthropic documentation into a local cache and marks that copy as the baseline snapshot for later diffs.

CC-BY-SA-4.0 ★ 6,529 updated 2026-10-22

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/init-docs.md
Open on GitHub

What init-docs does

init-docs calls the init_official_docs MCP tool. It downloads roughly 1.2MB of Anthropic docs (about 5 seconds) and writes 4 cache files under ~/.cache/claude-code-guide/. Baseline and current snapshots both end up pointing at the copy it just saved.

On success the agent reports the section count and the path to the snapshot. Refreshing and comparing are separate steps: /ccguide:refresh-docs pulls a newer version, /ccguide:diff-docs lists what differs from the baseline.

It needs an MCP server that exposes init_official_docs. Without one the command has nothing to call. For Codex the file goes to ~/.codex/prompts/init-docs.md.

What it helps with

  • pin a docs version before an upgrade
  • compare a saved snapshot against a fresh pull
  • check how many sections the download returned
  • keep Anthropic docs in a local cache

Example prompts for the agent

  • Take a baseline snapshot of the docs with /init-docs
  • Run /init-docs and report how many sections it found
  • Run /init-docs and show me the snapshot path

How to install init-docs

Manually: put the files in place

.claude/commands/init-docs.md

Call it with /init-docs. For all projects use ~/.claude/commands/

Questions about init-docs

How do I install init-docs in Claude Code?

Put the command file at .claude/commands/init-docs.md in your project.

What does init-docs do?

Fetches the official Anthropic docs through the init_official_docs MCP tool, caches them locally and makes that copy the baseline snapshot.

What is required before running it?

An MCP server exposing init_official_docs. Afterwards run /ccguide:refresh-docs, then /ccguide:diff-docs to see changes.

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set45

The whole set →
search-docs search-docs searches official Anthropic Claude Code documentation by keywords via a local MCP tool. CX Codex +1 ★ 6,529repo stars refresh-docs refresh-docs fetches Anthropic’s official Claude Code docs and replaces the current snapshot. Use it to check changes against the saved baseline. CX Codex +1 ★ 6,529repo stars diff-docs diff-docs compares local snapshots of official Anthropic documentation against a baseline without network requests. CX Codex +1 ★ 6,529repo stars source-command-ccguide-refresh-docs source-command-ccguide-refresh-docs refreshes the current snapshot of official Anthropic Codex docs and previews changes against the baseline. Use it when the docs snapshot needs an update. CX Codex +1 ★ 6,529repo stars source-command-ccguide-init-docs The source-command-ccguide-init-docs skill calls the init_official_docs MCP tool to pull Anthropic's official documentation down and keep a baseline copy in a local cache. CX Codex +1 ★ 6,529repo stars source-command-ccguide-diff-docs source-command-ccguide-diff-docs — a skill for Claude Code and Codex that compares a baseline Anthropic docs snapshot against the current one. Reads local index files only, so no network call is made. CX Codex +1 ★ 6,529repo stars daily A daily digest of Anthropic docs diffs and Claude Code CLI releases. CX Codex +1 ★ 6,529repo stars whitepaper-coherence whitepaper-coherence is a Claude Code subagent that checks a whitepaper for logical consistency. It runs on requests to audit a file or inspect its reasoning. CX Codex ★ 6,529repo stars

Project sponsors

Companies that keep this analytics open