Claude Code
Overview
Claude Code is Anthropic's official CLI providing specialized subagents, extensibility (plugins, skills, hooks, MCP), and enterprise features (sandboxing, monitoring). See references/claude-code-urls.md for the full documentation index.
Instructions
Step 0 — Refresh the doc index when fetching docs
If you need to consult the official docs to answer (i.e. you'll hit step 1 or step 2 below), run bash ~/.claude/skills/claude-code/scripts/fetch-claude-code-urls.sh first to rewrite references/claude-code-urls.md from Anthropic's current llms.txt. Skip the refresh for purely conceptual answers or when the existing snapshot is sufficient.
Step 1 — Find the relevant doc
Read references/claude-code-urls.md to find the matching doc. Each line is:
- [Title](https://code.claude.com/docs/en/<page>.md): <description>
Match the user's question to the most relevant entry by title or description.
If no good match is found:
- Try broad matching (e.g., user asks about "permissions" → check
settings.md, permissions.md, plugins.md)
- If still no match, try WebFetch of the most likely URL from the topic table below
- If that fails, answer directly from your knowledge and suggest the user check the official docs at
https://code.claude.com/docs
Step 2 — Answer the question
For capability/concept questions ("can Claude Code do X?", "what is Y?"):
- Answer directly from your knowledge if confident
- Cite the matching URL from
claude-code-urls.md for further reading
For implementation/configuration questions (formats, schemas, syntax, step-by-step):
- WebFetch the
.md URL from claude-code-urls.md to get current, accurate details
- Provide complete working examples with file paths
- Always cite the source URL
- If WebFetch fails, answer from your knowledge and note that you're using cached information
Key Topics → Doc Mapping
Common shortcuts — not exhaustive. Always consult claude-code-urls.md for the full list.
| Topic |
Doc |
| Hooks (events, config, JSON format) |
hooks.md, hooks-guide.md |
| Plugins (manifest, distribution) |
plugins.md, plugins-reference.md |
| Skills & slash commands |
skills.md |
| Subagents |
sub-agents.md |
| MCP servers |
mcp.md |
| Settings & permissions |
settings.md, permissions.md |
| Headless / SDK / programmatic |
headless.md |
| Sandboxing |
sandboxing.md |
| Memory (CLAUDE.md) |
memory.md |
| Terminal setup |
terminal-config.md |
| Model selection |
model-config.md |
| Status line |
statusline.md |
| CLI flags |
cli-reference.md |
| Monitoring / OpenTelemetry |
monitoring-usage.md |
| GitHub Actions |
github-actions.md |
| GitLab CI/CD |
gitlab-ci-cd.md |
| Desktop app |
desktop.md, desktop-quickstart.md |
| Agent teams |
agent-teams.md |
| Cost management |
costs.md |
| Chrome integration |
chrome.md |
| Troubleshooting |
troubleshooting.md |
Response Quality
- Provide complete, working examples
- Include file paths and directory structure
- Link to the official
.md doc used
- If unsure, WebFetch before answering — don't guess schemas or formats
1---2name: claude-code3description: Expert guidance on Claude Code configuration, capabilities, and troubleshooting. Use this skill whenever the user asks about Claude Code features, configuration, best practices, or troubleshooting — even if phrased informally. Covers MCP servers, plugins, skills, subagents, hooks, permissions, keybindings, settings, terminal setup, GitHub Actions, CLAUDE.md, cost management, and common problems. Answers are sourced from official Claude Code product documentation.4---56# Claude Code78## Overview910Claude Code is Anthropic's official CLI providing specialized subagents, extensibility (plugins, skills, hooks, MCP), and enterprise features (sandboxing, monitoring). See [references/claude-code-urls.md](references/claude-code-urls.md) for the full documentation index.1112## Instructions1314### Step 0 — Refresh the doc index when fetching docs1516If you need to consult the official docs to answer (i.e. you'll hit step 1 or step 2 below), run `bash ~/.claude/skills/claude-code/scripts/fetch-claude-code-urls.sh` first to rewrite `references/claude-code-urls.md` from Anthropic's current `llms.txt`. Skip the refresh for purely conceptual answers or when the existing snapshot is sufficient.1718### Step 1 — Find the relevant doc1920Read [references/claude-code-urls.md](references/claude-code-urls.md) to find the matching doc. Each line is:2122```23- [Title](https://code.claude.com/docs/en/<page>.md): <description>24```2526Match the user's question to the most relevant entry by title or description.2728**If no good match is found:**29- Try broad matching (e.g., user asks about "permissions" → check `settings.md`, `permissions.md`, `plugins.md`)30- If still no match, try WebFetch of the most likely URL from the topic table below31- If that fails, answer directly from your knowledge and suggest the user check the official docs at `https://code.claude.com/docs`3233### Step 2 — Answer the question3435**For capability/concept questions** ("can Claude Code do X?", "what is Y?"):36- Answer directly from your knowledge if confident37- Cite the matching URL from `claude-code-urls.md` for further reading3839**For implementation/configuration questions** (formats, schemas, syntax, step-by-step):40- WebFetch the `.md` URL from `claude-code-urls.md` to get current, accurate details41- Provide complete working examples with file paths42- Always cite the source URL43- If WebFetch fails, answer from your knowledge and note that you're using cached information4445## Key Topics → Doc Mapping4647Common shortcuts — not exhaustive. Always consult `claude-code-urls.md` for the full list.4849| Topic | Doc |50|---|---|51| Hooks (events, config, JSON format) | `hooks.md`, `hooks-guide.md` |52| Plugins (manifest, distribution) | `plugins.md`, `plugins-reference.md` |53| Skills & slash commands | `skills.md` |54| Subagents | `sub-agents.md` |55| MCP servers | `mcp.md` |56| Settings & permissions | `settings.md`, `permissions.md` |57| Headless / SDK / programmatic | `headless.md` |58| Sandboxing | `sandboxing.md` |59| Memory (CLAUDE.md) | `memory.md` |60| Terminal setup | `terminal-config.md` |61| Model selection | `model-config.md` |62| Status line | `statusline.md` |63| CLI flags | `cli-reference.md` |64| Monitoring / OpenTelemetry | `monitoring-usage.md` |65| GitHub Actions | `github-actions.md` |66| GitLab CI/CD | `gitlab-ci-cd.md` |67| Desktop app | `desktop.md`, `desktop-quickstart.md` |68| Agent teams | `agent-teams.md` |69| Cost management | `costs.md` |70| Chrome integration | `chrome.md` |71| Troubleshooting | `troubleshooting.md` |7273## Response Quality7475- Provide complete, working examples76- Include file paths and directory structure77- Link to the official `.md` doc used78- If unsure, WebFetch before answering — don't guess schemas or formats