Skip to content
Back to skills

Claude Code Docs

ASecurity

Answer questions about Claude Code (features, hooks, plugins, skills, MCP, Agent SDK, settings, CLI) from the official docs. Uses the ask CLI to resolve a version-pinned local mirror and csp for semantic search, falling back to grep and WebFetch. Use when the user asks how Claude Code works, what a configuration field does, or whether Claude Code supports something.

  • 17 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsbashgitdocumentation

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add pleaseai/claude-code-plugins --skill claude-code-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Claude Code Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Claude Code Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pleaseai-claude-code-docs/badge)](https://www.skillsdirectory.com/skills/pleaseai-claude-code-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: claude-code-docs
description: Answer questions about Claude Code (features, hooks, plugins, skills, MCP, Agent SDK, settings, CLI) from the official docs. Uses the ask CLI to resolve a version-pinned local mirror and csp for semantic search, falling back to grep and WebFetch. Use when the user asks how Claude Code works, what a configuration field does, or whether Claude Code supports something.
argument-hint: [question]
arguments: [question]
---

Answer this question about Claude Code using the official documentation:

**$question**

## How to find the answer

Work through these steps, falling back gracefully when a tool is missing.

### 1. Resolve the docs mirror

```bash
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:

```bash
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.

### 2. Search for relevant pages

Prefer semantic search with csp, scoped to the per-page markdown:

```bash
csp search "$question" "$DOCS" --content docs --top-k 8
```

Or equivalently via ask (requires csp on PATH):

```bash
ask search github:pleaseai/claude-code-docs "$question" --content docs --top-k 8
```

If csp is not on PATH, run it via npx/bunx:

```bash
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:

```bash
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.

### 3. Read and answer

Read the top matching pages (whole pages — they are small). Ground every claim in what the pages actually say:

- Answer in the user's language; keep code identifiers, field names, and flags verbatim.
- Cite each source page with its canonical URL: a mirror file `$DOCS/hooks.md` corresponds to `https://code.claude.com/docs/en/hooks`.
- Quote exact field names, JSON shapes, and version requirements (`min-version` markers) when they matter.
- If the docs do not answer the question, say so explicitly — do not fill gaps from memory.

### 4. Fallback: WebFetch

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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.