ccc-doc-sync

ccc-doc-sync is a skill for Claude Code, Codex from KevinZai/commander. It costs 60 tokens per session (1,360 once invoked), scanned A, original, MIT.

A documentation synchronizer that takes counts and version numbers from `contract.json` and `package.json` and updates matching references in project documentation.

In plain words
What is it for?
Keeping plugin, agent, and hook counts correct across many documentation files, and checking for outdated values before changes are merged.
Why use it?
It prevents documentation from becoming inconsistent with the code. Its check mode can find outdated references during continuous integration (automated build and test checks).

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; positional $N argument.

Good fit Keeping plugin, agent, and hook counts correct across many documentation files, and checking for outdated values before changes are merged.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevinzai/commander/ccc-doc-sync
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.

Any agent
npx skills add KevinZai/commander --skill ccc-doc-sync
Clone the repo
git clone --depth 1 https://github.com/KevinZai/commander

Made for: Claude Code, Codex.

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-doc-sync

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevinzai/commander/ccc-doc-sync"><img src="https://agentmods.dev/badge/skills/kevinzai/commander/ccc-doc-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,360 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 original No closer match found 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.00060 $0.01360
Opus 5.5 $0.00024 $0.00544
Sonnet 5.5 $0.00012 $0.00272
Haiku 4.5 $0.00006 $0.00136

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

Security

Grade A, and why

ccc-doc-sync 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.

The scan reads SKILL.md. This mod also ships 1 executable file (sync.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

commander/cowork-plugin-codex/skills/ccc-doc-sync/SKILL.md · 109 lines

How it starts

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

$ccc-doc-sync — One source for counts

CC Commander · $ccc-doc-sync · every count and version string in the docs matches the canonical sources

When to use / when not to

  • Use inside the Commander repository after a change to commander/contract.json (plugin_skills, specialist_agents, hook_handlers) or to package.json version, or when npm run docs:sync:check fails.
  • Do not hand-edit counts in docs; add or fix a pattern in patterns.json instead.
  • Not for prose drift in a project's CLAUDE.md; use $ccc-claudemd.
  • The script resolves the project root four levels above its own directory, so it runs only from a Commander repository checkout, not from an installed plugin cache.

How it works

File Role
sync.js Runner: loads sources, applies patterns, prints drift, sets the exit code. Holds no counts.
patterns.json Declarative per-file regex replacements (the contract).
commander/contract.json Canonical plugin_skills, specialist_agents, hook_handlers.
package.json Canonical version.

Templates use ${plugin_skills}, ${specialist_agents}, ${hook_handlers} and ${version}; any other variable is an error. The run is idempotent: a second --apply changes nothing.

What happens

  1. Confirm the repo root. Run git rev-parse --show-toplevel and check that commander/contract.json and commander/cowork-plugin/skills/ccc-doc-sync/sync.js exist there. If not, stop and say the skill needs a Commander checkout.
  2. Show the canonical values.
    node -p "const c=require('./commander/contract.json'),p=require('./package.json');JSON.stringify({plugin_skills:c.plugin_skills,specialist_agents:c.specialist_agents,hook_handlers:c.hook_handlers,version:p.version})"
    
  3. List covered files (never quote a fixed list; read it):
    node -p "require('./commander/cowork-plugin/skills/ccc-doc-sync/patterns.json').patterns.map(p=>p.file).join('\n')"
    
  4. Check for drift.
    node commander/cowork-plugin/skills/ccc-doc-sync/sync.js --check   # same as: npm run docs:sync:check
    
    Exit codes: 0 in sync, 1 drift found (file names printed), 2 regex or file error. On 2, read the error, fix the pattern or missing path in patterns.json, and rerun; do not apply.
  5. Decide. If $ARGUMENTS is --check, report the result and stop. If it is --apply, go to step 6. Otherwise, on drift, ask the picker below.
  6. Apply.
    node commander/cowork-plugin/skills/ccc-doc-sync/sync.js --apply   # same as: npm run docs:sync
    git diff --stat
    
    Review the diff: only numbers and version strings should change. If a replacement touched historical text (a dated changelog entry, an old version reference), revert that hunk with Edit and narrow the regex in patterns.json.
  7. Verify with the commands in Done when.

Read the full file on GitHub · 109 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · -1 lines 357ee351ffaf
  2. 1mo ago Changed · +4 lines · +32 tokens per session dda906fded33
  3. 3mo ago First seen · 106 lines · 28 tokens per session scan A f731620e317e

Subscribe to this mod's changes

ccc-doc-sync is a skill published in the GitHub repository KevinZai/commander (6 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 1,360 once invoked, about $0.0002 per session on Opus 5.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-08-31.

Related

ccc-doc-sync compared with skills from other repositories

ccc-doc-sync next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ccc-doc-syncKevinZai/commanderSkill6yesterdayMITA60Claude Code, Codex
logingreenpolo/cc-multi-cli-pluginSkill1972d agoApache-2.0A10Claude Code
skill-devandisab/swe-marketplaceSkill232d agoMITA86Claude Code
coordinatorandisab/swe-marketplaceSkill232d agoMITA193Claude Code
mcp-tool-devandisab/swe-marketplaceSkill232d agoMITA158Claude Code
debt-ops-addbcanfield/agentic-tech-debtSkill9yesterdayMITA115Claude Code, Codex
debt-ops-metricsbcanfield/agentic-tech-debtSkill9yesterdayMITA74Claude Code, Codex