claude-code-docslisted
Install: claude install-skill mrkhachaturov/agent-harness-docs
# Claude Code Documentation (local mirror)
The official Claude Code docs are mirrored at `~/claude-code-docs/` — a flat
folder with ~140 `.md` files, auto-synced hourly from `code.claude.com`.
## How to look up answers
No semantic-search tool is configured, so fall back to listing + grep:
1. **List or filter filenames** to find the relevant doc:
```
ls ~/claude-code-docs/ # see all topics
ls ~/claude-code-docs/ | grep -i hook # filenames mentioning hooks
```
2. **Grep across the corpus** to find specific terms:
```
grep -l -i "hook" ~/claude-code-docs/*.md # files containing "hook"
grep -i "preToolUse" ~/claude-code-docs/*.md # exact term lookup
```
3. **Read the file** fully (or with offset/limit for large ones) once you know which doc has the answer.
## When to read the full file
Fetch the raw file when grep results do not contain the exact detail
needed — typical reasons:
- exact JSON schema, YAML frontmatter, or config example
- precise CLI flag spelling or option list
- the full table of an env-var / settings / hook event reference
To read the raw file, use the standard read tooling with the absolute path:
```
Read("/Users/<you>/claude-code-docs/<filename>.md")
```
## File naming
The mirror flattens the URL path with `__` as the separator:
- `code.claude.com/docs/en/hooks` → `hooks.md`
- `code.claude.com/docs/en/agent-sdk/skills` → `agent-sdk__skills.md`
## Anti-patterns
- Do **not** use