Consult official Claude Code documentation from docs.claude.com using selective fetching. Use this skill when working on Claude Code hooks, skills, subagents, MCP servers, or any Claude Code feature that requires referencing official documentation for accurate implementation. Fetches only the specific documentation needed rather than loading all docs upfront.
Inherits all available tools
Additional assets for this skill
This skill inherits all available tools. When active, it can use any tool Claude has access to.
This skill enables efficient consultation of official Claude Code documentation by fetching only the specific docs needed for the current task. Instead of loading all documentation upfront, determine which docs are relevant and fetch them on-demand.
Invoke this skill when:
For the most frequently referenced topics, fetch these detailed documentation files directly:
hooks-guide.md - Comprehensive guide to creating hooks with examples and best practices
https://code.claude.com/docs/en/hooks-guide.mdhooks.md - Hooks API reference with event types and parameters
https://code.claude.com/docs/en/hooks.mdhttps://code.claude.com/docs/en/skills.mdhttps://code.claude.com/docs/en/sub-agents.mdFollow this process to efficiently fetch documentation:
Determine which documentation is needed based on the task:
hooks-guide.md and/or hooks.mdskills.mdsub-agents.mdFor features not covered by the 4 common docs above, fetch the docs map to discover available documentation:
URL: https://code.claude.com/docs/en/claude_code_docs_map.md
The docs map lists all available Claude Code documentation with descriptions. Identify the relevant doc(s) from the map.
Use WebFetch to retrieve only the specific documentation needed:
WebFetch:
url: https://code.claude.com/docs/en/[doc-name].md
prompt: "Extract the full documentation content"
Fetch multiple docs in parallel if the task requires information from several sources.
Use the fetched documentation to:
User request: "Help me create a pre-tool-use hook to log all tool calls"
Process:
hooks-guide.md for creation process and exampleshooks.md for pre-tool-use event referenceUser request: "My skill isn't loading - help me fix SKILL.md"
Process:
skills.md for SKILL.md format requirementsUser request: "Which subagent should I use to search the codebase?"
Process:
sub-agents.md for subagent types and capabilitiesUser request: "How do I configure Claude Code settings.json?"
Process:
claude_code_docs_map.mdsettings.md)https://code.claude.com/docs/en/settings.md