Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add bengous/claude-code-plugins --skill search-claude-docsgit clone --depth 1 https://github.com/bengous/claude-code-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/bengous/claude-code-plugins/search-claude-docs)<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/search-claude-docs"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/search-claude-docs.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.01390 |
| Opus 5 | $0.00017 | $0.00695 |
| Sonnet 5 | $0.00007 | $0.00278 |
| Haiku 4.5 | $0.00003 | $0.00139 |
Grade A, and why
search-claude-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Search the Claude Code docs
Question to answer: $ARGUMENTS
The claude-code-docs MCP server exposes two tools. Used together they let you
answer from the published docs with an exact citation while loading a few dozen
lines into context instead of whole pages.
| Tool | What it is | Use it for |
|---|---|---|
search_claude_code_docs |
Semantic search, returns page path, anchor, and a content chunk | Locate the right page for a concept or a phrasing you cannot guess |
query_docs_filesystem_claude_code_docs |
Stateless read-only shell (rg, grep, find, ls, tree, head, tail, sed, awk, wc, jq) over a virtual filesystem holding the docs as .mdx |
Exact keywords, reading a section, dating a change |
Layout of the virtual filesystem
- One directory per language. English is
/en/; other languages hold translations of the same pages. /en/<page>.mdxmirrorshttps://code.claude.com/docs/en/<page>. The SDK pages live under/en/agent-sdk/./en/changelog.mdxis the full release history. Each version starts with<Update label="2.1.251" description="August 28, 2026">, not a markdown heading./en/whats-new/<year>-w<week>.mdxare weekly digests that group releases with context and links.
Workflow
- Start with
search_claude_code_docswhen you know the concept but not the page. Read the returned paths and anchors; they are your citations. Stop here when a chunk already answers the question. - Switch to the filesystem tool for exact terms: an env var, a flag, a setting key, an error string, a tool name. Always give
rga path under/en/. Without a path it scans every language and floods the result with translations:rg -n "CLAUDE_CODE_GLOB_NO_IGNORE" /en/ rg -n -i "bypass permissions" /en/permission-modes.mdx - Read only the lines you need. Every call is stateless, so combine in one command:
rg -n "^## " /en/tools-reference.mdx # table of contents sed -n '120,160p' /en/tools-reference.mdx # one section head -60 /en/skills.mdx /en/sub-agents.mdx # the top of several pagescatof a whole page costs hundreds of lines; use it only when the page is short (wc -lfirst). - To date a behavior, map a changelog line to its version with
awk, which keeps the lastUpdate labelseen before each match:
Then open the matchingawk '/Update label=/{v=\$0} /Glob.*Grep|Grep.*Glob/{print v; print}' /en/changelog.mdx/en/whats-new/digest for the surrounding context. - Quote the doc verbatim when the wording carries the answer (a version number, a default, an exact flag). Paraphrase only the surrounding explanation. End with the URL form
https://code.claude.com/docs/en/<page>#<anchor>and the version numbers you found.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 81 lines · 35 tokens per session scan A 9d5dcca5fb52
search-claude-docs is a skill published in the GitHub repository bengous/claude-code-plugins (4 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 1,390 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
batch
Dispatch a night's batch of Todo tickets — one worktree and one pull request each — and leave a morning summary. Run explicitly; never inferred.
cleanup
Clean up after a merged pull request — return to the base branch, remove the worktree, delete the branch, sweep other stale branches and worktrees, and report tracker state. Use after a merge or whenever asked what is left over.
prep
Spec a ticket before it is dispatched. Brainstorms it, decides everything it can recommend an answer for, asks a present human about the little that survives, and leaves the spec, the decisions and anything still open as one ticket comment. No worktree, no branch, no pull request, and the ticket stays where it was.
work
Dispatch a tracker ticket into an isolated worktree and drive it autonomously to an open pull request, then stop for review. Pass interactive to brainstorm the ticket with a human before planning it. Use when asked to work a ticket end-to-end.
merge
Merge the reviewed pull request for the current branch, then hand straight off to cleanup. Use when a human green-lights an open PR.
Subagent Driven Development
Orchestrate specialized, autonomous AI agents to execute parallel subtasks with strict boundaries.