Claude Code Documentation
Answer questions about Claude Code from the official documentation, fetched at the moment you need it. Do not answer from memory: this product ships changes weekly, and a confidently wrong answer about a hook event or a manifest field costs more than a fetch.
How to Use
Fetch the page that covers the question with WebFetch. Start from the overview only if
you need to find your way around; otherwise go straight to the relevant page.
| Topic | URL |
|---|---|
| Overview / index | https://code.claude.com/docs/en/overview |
| Skills | https://code.claude.com/docs/en/skills |
| Hooks — guide | https://code.claude.com/docs/en/hooks-guide |
| Hooks — full reference | https://code.claude.com/docs/en/hooks |
| Subagents | https://code.claude.com/docs/en/sub-agents |
| MCP | https://code.claude.com/docs/en/mcp |
| Plugins — guide | https://code.claude.com/docs/en/plugins |
| Plugins — reference | https://code.claude.com/docs/en/plugins-reference |
| Plugin marketplaces | https://code.claude.com/docs/en/plugin-marketplaces |
| Slash commands | https://code.claude.com/docs/en/slash-commands |
| Settings | https://code.claude.com/docs/en/settings |
| CLI reference | https://code.claude.com/docs/en/cli-reference |
If a URL 404s, the docs have been reorganised — fetch the overview and follow its navigation rather than guessing a new path.
Verify against the live CLI where you can. For anything about plugins, hooks or settings, the installed binary is a second source of truth and it cannot be out of date:
claude plugin validate <path> # what the schema actually accepts, warnings included
claude plugin --help # current subcommands
claude --help # flags
When the docs and the CLI disagree, trust the CLI and say so in your answer.
When to Use
- Someone asks "how do I…" about a Claude Code feature
- You are about to write a hook, skill, subagent, plugin manifest or settings block
- You need to check whether a field, event or flag actually exists
- Something behaves differently than expected and you need the spec, not a guess
Offline
WebFetch needs network access. With none, say that you are answering from memory and
that the spec should be re-checked — do not present a remembered field list as current.
If you want a local copy for offline work, scripts/scrape_claude_code_docs.py in this
repo mirrors the docs into docs/claude-code/ for personal use. That mirror is
deliberately not committed or shipped: it is Anthropic's content, and a stale local copy
is exactly how wrong answers get confident.