/claude-docs:claude-docsfrom claude-docs
Searches and reads locally-stored Claude documentation covering Claude Code CLI, API, Agent SDK, and prompt engineering. Prefer over web lookups for Anthropic topics.
Ships in claude-docs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Claude's official documentation is indexed locally. The clone at ~/.claude-code-docs/
holds only metadata:
paths_manifest.json — every page's filename, id, title, category, and source URLsearch_index.json — per-page titles, headings, and stemmed term countsThe actual .md pages are cached at ~/.claude-code-docs/cache/ (override:
$CLAUDE_DOCS_CACHE_DIR). A background sync keeps the cache current; any page not
yet cached is fetched on demand — see Reading a doc below.
Activate when the user asks about:
The search scripts read the manifest + index, so they see every page whether or not it is cached yet. Prefer them over globbing the cache.
bash ~/.claude-code-docs/plugin/skills/claude-docs/scripts/content-search.sh "<keyword1>" "<keyword2>"
Output is filename<TAB>title<TAB>score, best first. Keyword extraction: strip filler,
keep domain terms — "how do I configure streaming" → streaming configure; "difference
between hooks and MCP" → hooks mcp. Take the top 3-5 filenames and read them (next section).
User says "that caching doc", "something about checkpoint":
bash ~/.claude-code-docs/plugin/skills/claude-docs/scripts/fuzzy-search.sh "<query>"
Output is ranked filenames. Read the top match.
To list pages in a category or matching a filename fragment, query the manifest:
jq -r '.pages[] | select(.filename | test("<fragment>")) | .filename' ~/.claude-code-docs/paths_manifest.json
jq -r '.pages[] | select(.category=="claude_code") | .filename' ~/.claude-code-docs/paths_manifest.json
A search returns a filename (e.g. claude-code__hooks.md). The file is at
~/.claude-code-docs/cache/<filename>.
~/.claude-code-docs/cache/<filename>.~/.claude-code-docs/plugin/scripts/fetch-docs.sh get "<filename>"
then Read ~/.claude-code-docs/cache/<filename>.To save context, prefer previewing large pages before reading them. Pull a page's structure from the index (title + headings) first — often the headings alone answer the question and you skip loading a multi-KB body:
jq -r '.pages[] | select(.filename=="<filename>") | .title, (.headings[]|" "+.text)' ~/.claude-code-docs/search_index.json
When all matching docs share one product (all Claude Code, all Agent SDK, ...): read them all silently, extract relevant sections, present one unified answer, cite sources.
When matches span products (CLI + API + Agent SDK), ask which the user means. Labels
(see manifest-reference.md) map from category:
| category | Say to user |
|---|---|
claude_code | Claude Code CLI |
agent_sdk | Claude Agent SDK |
api_reference | Claude API |
core_documentation | Claude Documentation |
agents_and_tools | Agents & Tools |
about_claude | About Claude |
get_started | Getting Started |
test_and_evaluate | Testing & Evaluation |
release_notes | Release Notes |
resources | Resources |
prompt_library | Prompt Library |
After selection → read all docs in that context and synthesize.
When the user names a language, narrow API/SDK results (e.g. agent-sdk__python,
agent-sdk__typescript, api__go, api__java). If none named but the query is about SDK
methods, present Python first and note TypeScript equivalents exist.
Always cite source links. Get the exact URL from the manifest — never reconstruct it from the filename (filenames are lossy; the manifest stores the verbatim URL):
jq -r '.pages[] | select(.filename=="<filename>") | .url' ~/.claude-code-docs/paths_manifest.json
Example: claude-code__hooks.md → https://code.claude.com/docs/en/hooks.
When a search returns too few results, retry with a known synonym:
| User says | Search for |
|---|---|
| "function calling" | "tool use", "tool-use" |
| "system instructions" | "system prompt" |
| "JSON mode" | "structured outputs" |
| "thinking" | "extended thinking", "adaptive thinking" |
| "caching" | "prompt caching", "prompt-caching" |
| "files API" | "files", "pdf support" |
| "sub-agents" | "subagents", "sub-agents" |
| "environment variables" | "settings", "configuration" |
| "CI/CD" | "github actions", "gitlab" |
If all strategies return nothing: try synonyms; try broader/narrower keywords; suggest
/docs -t to check freshness; note the topic may not be in the index.
After presenting documentation, always append this block at the bottom:
Want to go deeper? I can create an interactive course on this topic — visual explanations, animated diagrams, and hands-on quizzes in a single HTML file you can open in your browser. Just say "create a course on [topic]" or run
/docs --course [topic].
Replace [topic] with the actual topic the user asked about.
manifest-reference.md — Category-to-label mapping (single source of truth)examples/direct-lookup.md — Example: topic → search → synthesizeexamples/semantic-search.md — Example: question → content-search.sh → synthesizeexamples/cross-context.md — Example: ambiguous → ask context → synthesizeWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub costiash/claude-code-docs --plugin claude-docs5 skills in this plugin
/claude-docs-changelogGenerate a self-contained HTML changelog report showing recent documentation changes with interactive course generation buttons. Use this skill when the user asks for a docs changelog, documentation report, what changed recently, recent doc updates as a report, or runs `/docs --report`. Discovers changes via git history, categorizes them, summarizes what's new, and produces a stunning Obsidian & Amber themed HTML report where each entry has a "Create Course" button that copies the course command to clipboard.
/claude-docs-courseGenerate an interactive, self-contained HTML course on any Claude documentation topic. Use this skill when the user wants to create an interactive course, tutorial, or deep-dive walkthrough about a Claude feature, API concept, SDK pattern, or prompt engineering technique. Triggers on: "create a course about", "interactive tutorial for", "teach me about X interactively", "make a course on", "I'd like a course", "/docs --course", "/docs course", or when the user accepts the post-docs course prompt. Produces a stunning single-page HTML file with scroll-based navigation, animated visualizations, quizzes, and code translations drawn from official Claude documentation.
/claude-docs-validateCheck the health and freshness of locally-stored Claude documentation. Use this skill when the user asks about documentation health, broken links, stale docs, freshness checks, or wants to validate that their local install is up-to-date and all URLs are reachable. Triggers on: "are my docs current", "check doc health", "validate documentation", "broken links", "stale docs".
/docsRouter for the /docs command. Look up Claude documentation, ask plain-English questions, generate interactive courses and HTML changelog reports, check freshness, and sync the local cache. Dispatches to the claude-docs, claude-docs-validate, claude-docs-course, and claude-docs-changelog skills.Other plugins' skills for the same job