ccc-update-docs

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

A documentation synchronizer that creates reference material from project source files such as package manifests, environment templates, API definitions, source exports, and Docker configuration.

In plain words
What is it for?
Use it to document package scripts, environment variables, API endpoints, public code interfaces, and Docker-based setup.
Why use it?
It reduces the gap between the code and its documentation by deriving details from files that define how the project works. This helps keep commands, environment variables, APIs, and setup instructions current.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: names the AskUserQuestion tool.

Good fit Use it to document package scripts, environment variables, API endpoints, public code interfaces, and Docker-based setup.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kevinzai/commander/ccc-update-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-update-docs

README.md
[![agentmods](https://agentmods.dev/badge/commands/kevinzai/commander/ccc-update-docs/github.svg)](https://agentmods.dev/commands/kevinzai/commander/ccc-update-docs)
Your own site
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-update-docs"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-update-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-update-docs

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-update-docs"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-update-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,002 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 98% 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.00056 $0.01002
Opus 5.5 $0.00022 $0.00401
Sonnet 5.5 $0.00011 $0.00200
Haiku 4.5 $0.00006 $0.00100

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

Security

Grade A, and why

ccc-update-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

98% identical to update-docs — 113 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-update-docs.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/ccc-update-docs — docs generated from the code

CC Commander · /ccc-update-docs · updates only marked, generated sections from source-of-truth files and reports what changed and what is stale.

Arguments

$ARGUMENTS optionally limits the run to scripts, env, contributing, runbook or stale. Empty runs every step whose source exists.

Sources of truth

Source Generates
package.json scripts, Makefile, Cargo.toml, pyproject.toml Commands reference
.env.example, .env.template, .env.sample Environment variable reference
openapi.yaml / route files API endpoint reference
Source code exports Public API reference
Dockerfile, docker-compose.yml Infrastructure setup

Every generated block sits between markers so later runs replace only that block:

<!-- AUTO-GENERATED:scripts -->
...
<!-- /AUTO-GENERATED:scripts -->

What happens

  1. Commands reference. Read the scripts from the sources above (for Node: node -e 'console.log(JSON.stringify(require("./package.json").scripts,null,2))'). Describe each from its command line and any comment, and write a table into the scripts block:

    | Command | Description |
    |---|---|
    | `npm run dev` | Start the development server with hot reload |
    | `npm run build` | Production build with type checking |
    | `npm test` | Run the test suite with coverage |
    
  2. Environment reference. Read the example env file only (never .env or .env.local). For each variable record required or optional, purpose, format and an example value taken from the example file, never a real value:

    | Variable | Required | Description | Example |
    |---|---|---|---|
    | `DATABASE_URL` | Yes | PostgreSQL connection string | `postgres://user:pass@host:5432/db` |
    | `LOG_LEVEL` | No | Logging verbosity (default: info) | `debug`, `info`, `warn`, `error` |
    
  3. Contributing guide. Update the generated blocks of docs/CONTRIBUTING.md: environment setup (prerequisites, install steps), available scripts, how to run and write tests, code style enforcement (linter, formatter, pre-commit hooks) and the PR checklist.

Read the full file on GitHub · 94 lines

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 · +5 lines · +41 tokens per session 22892542a9d7
  2. 2mo ago First seen · 89 lines · 15 tokens per session scan A 94bce891fbab

Subscribe to this mod's changes

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

Related

ccc-update-docs compared with commands from other repositories

ccc-update-docs next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ccc-update-docsKevinZai/commanderCommand6yesterdayMITA56Claude Code
statusskullninja/coco-workflowCommand71mo agoMITA17Claude Code
doc-genhalflength-ampleness75/claude-code-recipesCommand31mo agoMITA16Claude Code
generatemasterleopold/book-captureCommand154mo agoMITA16Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code
analyzegithub/spec-kitCommand153k3d agoMITA26Claude Code