Claude Code Documentation
This Skill provides access to official Claude Code documentation through the claude-docs CLI tool.
Available Documentation
The plugin's session hook installs the claude-docs CLI globally, making it available as a command.
When to Use This Skill
User asks questions:
- •"How do I..." (create plugins, use hooks, configure settings, etc.)
- •"Can Claude Code..." (feature capability questions)
- •"What are..." (subagents, MCP servers, skills, etc.)
- •"Tell me about..." (any Claude Code feature or concept)
- •Questions about configuration, setup, deployment
- •Troubleshooting Claude Code issues
User requests implementation:
- •"Create/make a skill that..." - Get skill documentation first
- •"Write a plugin for..." - Get plugin documentation first
- •"Add a hook that..." - Get hook documentation first
- •"Set up a slash command..." - Get command documentation first
- •"Build a subagent..." - Get subagent documentation first
- •ANY task involving Claude Code features - retrieve docs BEFORE implementing
You recognize you need domain knowledge:
- •Before creating plugins, skills, hooks, subagents, or commands
- •Before modifying Claude Code configuration
- •Before answering questions about Claude Code capabilities
- •When you're unsure about the correct way to implement a Claude Code feature
How to Use the CLI Tool
Step 1: Identify what documentation is needed
Determine the topic from the user's question:
- •plugins, hooks, skills, mcp, agents, slash commands, settings, etc.
Step 2: Load ALL related documentation
Common topics and their related slugs (load ALL):
- •plugins →
plugins,plugin-marketplaces,plugins-reference - •hooks →
hooks-guide,hooks - •skills →
skills - •mcp →
mcp - •agents/subagents →
sub-agents - •slash commands →
slash-commands - •settings →
settings - •security/iam →
security,iam - •monitoring →
monitoring-usage,analytics,costs
Step 3: Use the CLI tool with Bash
Load full documents (default approach):
claude-docs get plugins claude-docs get plugin-marketplaces claude-docs get plugins-reference
Browse document structure (if needed):
# See list of all available docs claude-docs list # See table of contents for a specific document claude-docs list plugins
Search for specific topics:
claude-docs search 'oauth' claude-docs search 'environment variables'
Get specific section (only if specifically requested):
claude-docs get 'plugins#quickstart'
Key Principles
- •Load full documents first -
get <slug>loads the entire document including all sections - •Load ALL related docs - Don't load just one if multiple exist for a topic
- •Avoid anchors unless needed - Full documents are usually better than subsections
- •Be comprehensive - When in doubt, load more documentation rather than less
What NOT to Do
- •❌ Don't answer from training data without checking current docs
- •❌ Don't use anchors (
get <slug>#<anchor>) unless user specifically requests a section - •❌ Don't load just one doc when multiple related ones exist
- •❌ Don't search the web before checking official documentation
Example Workflows
User asks: "How do I create a plugin with hooks?"
- •Identify topics: plugins + hooks
- •Load all related documentation:
bash
claude-docs get plugins claude-docs get plugin-marketplaces claude-docs get plugins-reference claude-docs get hooks-guide claude-docs get hooks
- •Provide comprehensive answer from loaded docs
User asks: "What are Skills?"
- •Identify topic: skills
- •Load documentation:
bash
claude-docs get skills
- •Explain Skills concept from documentation
User asks: "Can you help me set up MCP servers?"
- •Identify topic: mcp
- •Load documentation:
bash
claude-docs get mcp
- •Provide setup instructions from docs
Remember
- •The
claude-docsCLI is installed globally (managed by the plugin's session hook) - •Always load documentation BEFORE implementing Claude Code features
- •Documentation is locally cached and fast to retrieve
- •Full documents are comprehensive - you usually don't need subsections
- •After loading docs, provide answers based on official information
This Skill ensures you always have accurate, up-to-date Claude Code documentation when needed.