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.
/plugin marketplace add Primadetaautomation/claude-dev-toolkit/plugin install claude-dev-toolkit@primadata-marketplaceThis 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.mdThis skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.