/claude-code-docs:claude-code-docsfrom claude-code-docs
Answers questions about Claude Code features, hooks, plugins, skills, MCP, Agent SDK, settings, and CLI using a version-pinned local docs mirror with semantic search, falling back to grep and web fetch.
Ships in claude-code-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.
None: SKILL.md is the whole skill.
Answer this question about Claude Code using the official documentation:
$question
Work through these steps, falling back gracefully when a tool is missing.
DOCS="$(ask src github:pleaseai/claude-code-docs)/docs"
ask src prints the root of a cached checkout of the docs mirror (clones on first use). If the ask CLI is not on PATH, run it via npx/bunx instead:
DOCS="$(npx -y @pleaseai/ask src github:pleaseai/claude-code-docs)/docs"
Only fall back to step 4 (WebFetch) when neither works, such as offline sandboxes without npm registry access.
Prefer semantic search with csp, scoped to the per-page markdown:
csp search "$question" "$DOCS" --content docs --top-k 8
Or equivalently via ask (requires csp on PATH):
ask search github:pleaseai/claude-code-docs "$question" --content docs --top-k 8
If csp is not on PATH, run it via npx/bunx:
npx -y @pleaseai/csp search "$question" "$DOCS" --content docs --top-k 8
If that fails too, fall back to grep over the mirror — search for 2-3 distinct keyword variants, not one long phrase:
grep -ril "<keyword>" "$DOCS"
The manifest at $DOCS/../llms.txt lists every page with a one-line summary; reading it is a fast way to shortlist pages when keyword search is noisy.
Read the top matching pages (whole pages — they are small). Ground every claim in what the pages actually say:
$DOCS/hooks.md corresponds to https://code.claude.com/docs/en/hooks.min-version markers) when they matter.If the ask CLI is unavailable, fetch https://code.claude.com/docs/llms.txt, pick the relevant page URLs from the manifest, and fetch each as <page-url>.md (this plugin's hook rewrites page URLs to .md automatically). Then answer as in step 3.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pleaseai/claude-code-plugins --plugin claude-code-docsOther plugins' skills for the same job