search-docs
Installation
SKILL.md
Search the local documentation store at ~/.claude/docs/ for content matching the user's query.
Process
-
Parse the query from
$ARGUMENTS. If--domain <domain>is specified, restrict search to that domain's directory. -
Search with Grep:
- Use
Grepwith the search pattern against~/.claude/docs/ - Use
output_mode: "content"with-C 5for surrounding context - If the query has multiple words, try the full phrase first, then fall back to individual key terms
- Use
-
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