Claude Docs Consultant
Fetch official Claude Code documentation on-demand from code.claude.com. Uses progressive disclosure: resolve the topic to a filename, then fetch only that doc. Never fetch documentation speculatively.
URL Pattern
All docs follow this pattern — substitute the filename:
https://code.claude.com/docs/en/{filename}.md
Quick Routing (Common Topics)
For these high-frequency topics, fetch directly without consulting the full index:
| Topic |
Filename(s) to fetch |
| Hooks (creating, events, lifecycle) |
hooks-guide.md (guide + examples), hooks.md (API reference + all events) |
| Skills (creating, SKILL.md format, triggers) |
skills.md |
| Subagents (types, config, delegation) |
sub-agents.md |
| Agent Teams (multi-agent, teammates, cowork) |
agent-teams.md |
| Plugins (creating, marketplace, installing) |
plugins.md (creating), discover-plugins.md (marketplace + installing) |
| MCP Servers (setup, config, scopes) |
mcp.md |
| Settings (settings.json, config scopes) |
settings.md |
| Permissions (rules, modes, auto mode) |
permissions.md (rules + syntax), permission-modes.md (plan/auto/dontAsk modes) |
| Memory (CLAUDE.md, auto memory, rules) |
memory.md |
| GitHub Actions (CI/CD, @claude PR) |
github-actions.md |
Full Routing
For topics not listed above, consult references/docs-index.md for the complete routing table covering all 60+ documentation pages across platforms, deployment, security, configuration, administration, and reference.
Workflow
- Identify topic — determine which Claude Code feature the task involves
- Route to filename — use quick routing above, or consult
references/docs-index.md
- Fetch with WebFetch — use the URL pattern with the resolved filename
Fetch multiple docs in parallel when the task spans multiple topics.
Fallback: Discovery via Docs Map
If routing does not match any known filename, fetch the documentation map to discover available pages:
https://code.claude.com/docs/en/claude_code_docs_map.md
Identify the relevant doc from the map, then fetch it using the URL pattern.
Rules
- Fetch only the docs actually needed for the current task
- Fetch multiple docs in parallel if the task requires 2+ sources
- Always fetch live from code.claude.com — do not use cached or memorized content
- Do not fetch docs "just in case" — fetch when required by the task
Examples
Example 1: Creating a Hook
Task: "Help me create a pre-tool-use hook to log tool calls"
- Route: hook creation ->
hooks-guide.md + hooks.md
- Fetch both in parallel via WebFetch
- Apply: create hook using guide examples and API reference for PreToolUse event
Example 2: Installing a Plugin
Task: "How do I install plugins from a marketplace?"
- Route: plugin installing ->
discover-plugins.md
- Fetch via WebFetch
- Apply: follow marketplace and installation instructions
Example 3: Unknown Feature
Task: "How do I configure Claude Code output styles?"
- Route: not in quick routing table
- Consult
references/docs-index.md -> find output-styles.md under Configuration
- Fetch
output-styles.md via WebFetch
- Apply: configure output styles per documentation
1---
2name: claude-docs-consultant
3description: Consult official Claude Code documentation from code.claude.com using selective fetching. Use when working on hooks, skills, subagents, plugins, agent teams, MCP servers, permissions, settings, CI/CD (GitHub Actions, GitLab), IDE extensions (VS Code, JetBrains), desktop/web app features, scheduling, memory/CLAUDE.md, deployment (Bedrock, Vertex, Foundry), sandboxing, monitoring, or any Claude Code feature requiring official docs. Fetches only the specific docs needed per task.
4metadata:
5 source: https://skillmd.com/skills/aibot88/claude-docs-consultant
6 version: 2.0.0
7---
8
9# Claude Docs Consultant
10
11Fetch official Claude Code documentation on-demand from code.claude.com. Uses progressive disclosure: resolve the topic to a filename, then fetch only that doc. Never fetch documentation speculatively.
12
13## URL Pattern
14
15All docs follow this pattern — substitute the filename:
16
17```
18https://code.claude.com/docs/en/{filename}.md
19```
20
21## Quick Routing (Common Topics)
22
23For these high-frequency topics, fetch directly without consulting the full index:
24
25| Topic | Filename(s) to fetch |
26| --- | --- |
27| Hooks (creating, events, lifecycle) | `hooks-guide.md` (guide + examples), `hooks.md` (API reference + all events) |
28| Skills (creating, SKILL.md format, triggers) | `skills.md` |
29| Subagents (types, config, delegation) | `sub-agents.md` |
30| Agent Teams (multi-agent, teammates, cowork) | `agent-teams.md` |
31| Plugins (creating, marketplace, installing) | `plugins.md` (creating), `discover-plugins.md` (marketplace + installing) |
32| MCP Servers (setup, config, scopes) | `mcp.md` |
33| Settings (settings.json, config scopes) | `settings.md` |
34| Permissions (rules, modes, auto mode) | `permissions.md` (rules + syntax), `permission-modes.md` (plan/auto/dontAsk modes) |
35| Memory (CLAUDE.md, auto memory, rules) | `memory.md` |
36| GitHub Actions (CI/CD, @claude PR) | `github-actions.md` |
37
38## Full Routing
39
40For topics not listed above, consult `references/docs-index.md` for the complete routing table covering all 60+ documentation pages across platforms, deployment, security, configuration, administration, and reference.
41
42## Workflow
43
441. **Identify topic** — determine which Claude Code feature the task involves
452. **Route to filename** — use quick routing above, or consult `references/docs-index.md`
463. **Fetch with WebFetch** — use the URL pattern with the resolved filename
47
48Fetch multiple docs in parallel when the task spans multiple topics.
49
50## Fallback: Discovery via Docs Map
51
52If routing does not match any known filename, fetch the documentation map to discover available pages:
53
54```
55https://code.claude.com/docs/en/claude_code_docs_map.md
56```
57
58Identify the relevant doc from the map, then fetch it using the URL pattern.
59
60## Rules
61
62- Fetch only the docs actually needed for the current task
63- Fetch multiple docs in parallel if the task requires 2+ sources
64- Always fetch live from code.claude.com — do not use cached or memorized content
65- Do not fetch docs "just in case" — fetch when required by the task
66
67## Examples
68
69### Example 1: Creating a Hook
70
71**Task:** "Help me create a pre-tool-use hook to log tool calls"
72
731. Route: hook creation -> `hooks-guide.md` + `hooks.md`
742. Fetch both in parallel via WebFetch
753. Apply: create hook using guide examples and API reference for PreToolUse event
76
77### Example 2: Installing a Plugin
78
79**Task:** "How do I install plugins from a marketplace?"
80
811. Route: plugin installing -> `discover-plugins.md`
822. Fetch via WebFetch
833. Apply: follow marketplace and installation instructions
84
85### Example 3: Unknown Feature
86
87**Task:** "How do I configure Claude Code output styles?"
88
891. Route: not in quick routing table
902. Consult `references/docs-index.md` -> find `output-styles.md` under Configuration
913. Fetch `output-styles.md` via WebFetch
924. Apply: configure output styles per documentation