search-docs

Installation
SKILL.md

Search the local documentation store at ~/.claude/docs/ for content matching the user's query.

Process

  1. Parse the query from $ARGUMENTS. If --domain <domain> is specified, restrict search to that domain's directory.

  2. Search with Grep:

    • Use Grep with the search pattern against ~/.claude/docs/
    • Use output_mode: "content" with -C 5 for surrounding context
    • If the query has multiple words, try the full phrase first, then fall back to individual key terms
  3. Present results:

    • Show matching lines with file paths and line numbers
    • Group results by source document
    • Include the source URL from the file header (first line: # Source: <url>)
    • Keep output concise — show the most relevant matches first, max 10 results unless the user asks for more
Installs
3
First Seen
Oct 27, 2026