ccc-docs

ccc-docs is a command for Claude Code from KevinZai/commander. It costs 38 tokens per session (408 once invoked), scanned A, a copy of docs, MIT.

A command for looking up current documentation for a library, framework, or API and returning a short answer with relevant code examples.

In plain words
What is it for?
Use it to answer questions about how a software library works, such as configuring middleware or setting up authentication.
Why use it?
It reduces the risk of relying on outdated information from an AI model's training data.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to answer questions about how a software library works, such as configuring middleware or setting up authentication.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kevinzai/commander/ccc-docs
Install

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.

Clone the repo
git clone --depth 1 https://github.com/KevinZai/commander

Made for: Claude Code.

Wrote 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.

agentmods badge for ccc-docs

README.md
[![agentmods](https://agentmods.dev/badge/commands/kevinzai/commander/ccc-docs/github.svg)](https://agentmods.dev/commands/kevinzai/commander/ccc-docs)
Your own site
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-docs"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-docs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ccc-docs

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-docs"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 408 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00408
Opus 5.5 $0.00015 $0.00163
Sonnet 5.5 $0.00008 $0.00082
Haiku 4.5 $0.00004 $0.00041

Measured 1mo ago against content hash eff18e4d5114, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ccc-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 1mo 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.

Origin

This is a copy

95% identical to docs — 42 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/ccc-docs.md · 39 lines

What it actually says

/ccc-docs — answer from current docs

CC Commander · /ccc-docs · a short answer with snippets, backed by the library's current documentation.

Usage

/ccc-docs [library name] [question]

Arguments: $ARGUMENTS. Quote multi-word arguments so each parses as one token, for example /ccc-docs "Next.js" "How do I configure middleware?".

If the library or the question is missing, ask the user for:

  1. The library or product name (for example Next.js, Prisma, Supabase).
  2. The specific question or task (for example "How do I set up middleware?").

What happens

  1. Resolve the library id: call the Context7 tool resolve-library-id with the library name and the question. It returns a Context7 id such as /vercel/next.js. The tool prefix depends on how Context7 is installed (the Commander plugin bundles it as mcp__plugin_commander_context7__*). If several ids match, pick the one whose name and description match the library; if it is still ambiguous, ask the user which one.
  2. Query the docs: call query-docs with that id and the question.
  3. Answer concisely with the relevant code examples from the fetched documentation. Name the library, and the version when the docs state one.

Fallback

If the Context7 tools are not exposed in this session, say so, then answer from training data with a clear note that the documentation may be outdated.

Done when

The answer cites the Context7 library id it came from, or states that it came from training data.

See also

/ccc-research · /ccc-knowledge

Changes

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.

  1. 1mo ago Changed · +7 lines · +25 tokens per session eff18e4d5114
  2. 2mo ago First seen · 32 lines · 13 tokens per session scan A 63f97d21e5fb

Subscribe to this mod's changes

ccc-docs is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 408 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to docs, differing in 42 lines, and is treated as a copy.

Related

ccc-docs compared with commands from other repositories

ccc-docs next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ccc-docsKevinZai/commanderCommand6todayMITA38Claude Code
loopskullninja/coco-workflowCommand71mo agoMITA28Claude Code
phaseskullninja/coco-workflowCommand71mo agoMITA21Claude Code
statusskullninja/coco-workflowCommand71mo agoMITA17Claude Code
justone-publishGodsB1025/justoneCommand26mo agoMITA22Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code