Skip to main content
command CX Codex

search-docs — Claude Code command: what it does, how to install

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

CC-BY-SA-4.0 ★ 6,529 updated 2026-10-22

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/search-docs.md
Open on GitHub

What search-docs 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.

What it helps with

  • 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 for the agent

  • /search-docs slash commands
  • /search-docs memory and context
  • /search-docs

How to install search-docs

Manually: put the files in place

.claude/commands/search-docs.md

Call it with /search-docs. For all projects use ~/.claude/commands/

Questions about search-docs

How to install search-docs in Claude Code?

Place the command file at .claude/commands/search-docs.md inside your project directory.

What does search-docs do?

It calls the search_official_docs MCP tool to fetch up to five matching documentation sections with direct URLs and text excerpts.

What is required before running search-docs?

You need an existing documentation snapshot; run /ccguide:init-docs first if it has not been initialized yet.

Similar slash commands

All slash commands for Writing and docs →

From the same set45

The whole set →
refresh-docs refresh-docs fetches Anthropic’s official Claude Code docs and replaces the current snapshot. Use it to check changes against the saved baseline. CX Codex +1 ★ 6,529repo stars init-docs init-docs pulls the official Anthropic documentation into a local cache and marks that copy as the baseline snapshot for later diffs. CX Codex +1 ★ 6,529repo stars diff-docs diff-docs compares local snapshots of official Anthropic documentation against a baseline without network requests. CX Codex +1 ★ 6,529repo stars source-command-ccguide-refresh-docs source-command-ccguide-refresh-docs refreshes the current snapshot of official Anthropic Codex docs and previews changes against the baseline. Use it when the docs snapshot needs an update. CX Codex +1 ★ 6,529repo stars source-command-ccguide-init-docs The source-command-ccguide-init-docs skill calls the init_official_docs MCP tool to pull Anthropic's official documentation down and keep a baseline copy in a local cache. CX Codex +1 ★ 6,529repo stars source-command-ccguide-diff-docs source-command-ccguide-diff-docs — a skill for Claude Code and Codex that compares a baseline Anthropic docs snapshot against the current one. Reads local index files only, so no network call is made. CX Codex +1 ★ 6,529repo stars daily A daily digest of Anthropic docs diffs and Claude Code CLI releases. CX Codex +1 ★ 6,529repo stars whitepaper-coherence whitepaper-coherence is a Claude Code subagent that checks a whitepaper for logical consistency. It runs on requests to audit a file or inspect its reasoning. CX Codex ★ 6,529repo stars

Project sponsors

Companies that keep this analytics open