# search-docs

search-docs searches official Anthropic Claude Code documentation by keywords via a local MCP tool.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 6529 repo stars
- Author: FlorianBruniaux
- License: CC-BY-SA-4.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/FlorianBruniaux/claude-code-ultimate-guide/tree/HEAD/.claude/commands/ccguide/search-docs.md
- Updated: 2026-10-22
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/search-docs

## What it does

This command queries Anthropic Claude Code documentation using the `search_official_docs` MCP tool. By default, it retrieves five matches. Each entry includes the section title, exact source URL, and an excerpt with relevant details.

When run without parameters, the assistant prompts for search terms. The command fails if documentation data is missing, so running `/ccguide:init-docs` beforehand is required.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/search-docs.md` — Call it with /search-docs. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/search-docs.md` — Call it with /prompts:search-docs. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/search-docs.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/search-docs.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/FlorianBruniaux/claude-code-ultimate-guide/tree/HEAD/.claude/commands/ccguide/search-docs.md

## When to use it
- look up Claude Code settings in official documentation
- retrieve direct links to specific Anthropic guide sections
- extract reference excerpts without leaving the terminal

## Example prompts
- /search-docs slash commands
- /search-docs memory and context
- /search-docs

## Similar
- [docs-search](https://affpapa.org/en/nevibecode/skills/docs-search.md) — skill · 256 installs
- [update-docs](https://affpapa.org/en/nevibecode/commands/update-docs.md) — command · 3861 installs
- [tailwind-4-docs](https://affpapa.org/en/nevibecode/skills/tailwind-4-docs.md) — skill · 19300 installs
- [developer-troubleshooting-docs](https://affpapa.org/en/nevibecode/skills/developer-troubleshooting-docs.md) — skill · 13400 installs
- [coding-agent-docs-optimization](https://affpapa.org/en/nevibecode/skills/coding-agent-docs-optimization.md) — skill · 13400 installs
- [openai-docs](https://affpapa.org/en/nevibecode/skills/openai-docs.md) — skill · 7300 installs

From the same set: [florianbruniaux/claude-code-ultimate-guide](https://affpapa.org/en/nevibecode/by/florianbruniaux/claude-code-ultimate-guide.md) — 45 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
