home / skills / git-fg / thecattoolkit / claudedoc-master
This skill helps you locate official Claude Code and Anthropic documentation quickly by fuzzy-searching a vetted catalog before web lookup.
npx playbooks add skill git-fg/thecattoolkit --skill claudedoc-masterReview the files below or copy the command above to add this skill to your agents.
---
name: claudedoc-master
description: "MUST USE when searching for official Claude Code or Anthropic platform documentation links (MCP, hooks, skills, CLI). Provides fast fuzzy-search CLI for authoritative Claude documentation."
allowed-tools:
- Read
- Bash(uv:*)
- Bash(chmod:*)
- WebFetch
---
# ClaudeDoc Master - Documentation Link Router
## Overview
This skill provides a fast fuzzy-search CLI (`scripts/claudedoc.py`) for finding authoritative Claude Code and Anthropic platform documentation links. The script searches a curated catalog of official documentation URLs, enabling quick discovery of relevant documentation without web search.
## When to Use
Use this skill when:
- Searching for official Claude Code documentation (skills, commands, agents, hooks, MCP)
- Finding Anthropic platform API documentation
- Verifying documentation URLs before referencing them
- Looking up CLI reference documentation
**Critical Rule**: Always use this skill BEFORE native web search when seeking Claude Code or Anthropic platform documentation. The catalog contains verified, authoritative links.
## Operating Rules
1. **Search First**: When asked about Claude/SDK features, search documentation links using:
```bash
uv run scripts/claudedoc.py "<keywords>"
```
Returns 5 results by default. Use `--limit N` to change the number of results.
DO NOT use native web search before checking the catalog.
2. **Read Content**: To fetch documentation content from a URL or slug:
```bash
uv run scripts/claudedoc.py --read <url-or-slug>
```
## Usage Examples
### Fuzzy Search (default: 5 results)
```bash
uv run scripts/claudedoc.py "hooks"
```
### Fuzzy Search with Custom Limit
```bash
uv run scripts/claudedoc.py "hooks" --limit 10
```
### Read Content by Slug
```bash
uv run scripts/claudedoc.py --read "hooks"
```
### Read Content by URL
```bash
uv run scripts/claudedoc.py --read "https://code.claude.com/docs/en/hooks.md"
```
### Multiple Keywords Search
```bash
uv run scripts/claudedoc.py "skills frontmatter"
```
## Troubleshooting
- **Permission Denied**: If script execution fails, ensure it's executable:
```bash
chmod +x scripts/claudedoc.py
```
- **Script Not Found**: Verify the script exists at `scripts/claudedoc.py`
- **Catalog Not Found**: Ensure `catalog.json` exists in the skill root directory
This skill provides a fast fuzzy-search CLI for finding authoritative Claude Code and Anthropic platform documentation links. It surfaces verified documentation URLs from a curated catalog, so you can locate official pages without a general web search. Use it to quickly confirm references or read specific docs from the command line.
The CLI queries a local catalog of curated, authoritative documentation URLs and returns the closest matches to your keywords using fuzzy search. It can list top results or fetch and display the content of a documentation slug or URL. Commands support a result limit and direct read mode for quick access to full pages.
What if the CLI returns no results?
Try broader or alternate keywords and increase the --limit. Confirm catalog.json exists and is up to date in the skill root.
How do I view the full document content?
Use the --read flag with a slug or a full URL: uv run scripts/claudedoc.py --read "<slug-or-url>". Ensure the script has read permissions.