# init-docs

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

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 6529 repo stars
- Author: FlorianBruniaux
- License: CC-BY-SA-4.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/FlorianBruniaux/claude-code-ultimate-guide/tree/HEAD/.claude/commands/ccguide/init-docs.md
- Updated: 2026-10-22
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/init-docs

## What it 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`.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/init-docs.md` — Call it with /init-docs. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/init-docs.md` — Call it with /prompts:init-docs. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/init-docs.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/init-docs.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/FlorianBruniaux/claude-code-ultimate-guide/tree/HEAD/.claude/commands/ccguide/init-docs.md

## When to use it
- 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
- 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

## Similar
- [kb-init](https://affpapa.org/en/nevibecode/skills/kb-init.md) — skill · ★ 45 repo stars
- [update-docs](https://affpapa.org/en/nevibecode/commands/update-docs.md) — command · 3861 installs
- [tailwind-4-docs](https://affpapa.org/en/nevibecode/skills/tailwind-4-docs.md) — skill · 19300 installs
- [developer-troubleshooting-docs](https://affpapa.org/en/nevibecode/skills/developer-troubleshooting-docs.md) — skill · 13400 installs
- [coding-agent-docs-optimization](https://affpapa.org/en/nevibecode/skills/coding-agent-docs-optimization.md) — skill · 13400 installs
- [openai-docs](https://affpapa.org/en/nevibecode/skills/openai-docs.md) — skill · 7300 installs

From the same set: [florianbruniaux/claude-code-ultimate-guide](https://affpapa.org/en/nevibecode/by/florianbruniaux/claude-code-ultimate-guide.md) — 45 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
