ccc-audit

ccc-audit is a command for Claude Code from KevinZai/commander. It costs 45 tokens per session (966 once invoked), scanned A, original, MIT.

A project audit command that checks dependencies, bundle sizes, TypeScript errors, dead code, exposed secrets, environment variables, and project instructions.

In plain words
What is it for?
Use it to find dependency vulnerabilities, oversized build files, type or lint problems, unused code, hardcoded secrets, missing environment variables, and missing CLAUDE.md documentation.
Why use it?
It gathers several common quality and security checks in one report instead of requiring separate manual scans.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md.

Good fit Use it to find dependency vulnerabilities, oversized build files, type or lint problems, unused code, hardcoded secrets, missing environment variables, and missing CLAUDE.md documentation.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-audit"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 966 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.00045 $0.00966
Opus 5.5 $0.00018 $0.00386
Sonnet 5.5 $0.00009 $0.00193
Haiku 4.5 $0.00005 $0.00097

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

Security

Grade A, and why

ccc-audit 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 5d 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.

commands/ccc-audit.md · 82 lines

How it starts

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

/ccc-audit — project health audit

CC Commander · /ccc-audit · one read-only pass over dependencies, build output, types, dead code, secrets, env vars and project instructions, ending in a scored report.

Arguments

$ARGUMENTS (optional) narrows the run:

Argument Checks run
(none) all seven
security 1 dependencies, 5 secrets, 6 env vars
deps 1 dependencies, 4 dead code
perf 2 bundle size

What happens

Detect the package manager from the lockfile (pnpm-lock.yaml → pnpm, yarn.lock → yarn, bun.lockb → bun, otherwise npm). Run each check, record the actual output, and mark a check skipped with the reason when its tool or input is absent.

  1. Dependencies. Look for high and critical advisories.

    npm audit --json        # or: pnpm audit --json | yarn npm audit --json
    
  2. Bundle size. Use existing build output (dist/, build/, .next/, out/); if none exists, run the project's build script once. Flag any file over 500 KB.

    find dist build .next/static out -type f \( -name '*.js' -o -name '*.css' \) -size +500k -exec ls -lh {} \; 2>/dev/null
    
  3. TypeScript. Zero errors required. Skip when there is no tsconfig.json.

    npx tsc --noEmit
    
  4. Dead code. Find unused exports and unreferenced files with an installed tool (npx knip or npx ts-prune). Without one, report skipped: no dead-code tool installed rather than guessing.

  5. Secrets. Scan tracked files for hardcoded keys, tokens and passwords. Report path:line and the kind of secret; never print the value.

    git grep -nIE '(api[_-]?key|secret|token|passw(or)?d)[^=:]{0,20}[=:][[:space:]]*["'"'"'][^"'"'"']{12,}|AKIA[0-9A-Z]{16}|sk-[A-Za-z0-9_-]{20,}|-----BEGIN [A-Z ]*PRIVATE KEY' -- ':!*.lock' ':!*lock.json'
    
  6. Env vars. Compare the variables the code reads with the documented ones in .env.example (or the README). Report each undocumented or unused variable by name only.

Read the full file on GitHub · 82 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. 5d ago Changed · +57 lines · +24 tokens per session eb1aeac4f064
  2. 1mo ago First seen · 25 lines · 21 tokens per session scan A ba6a9bee43a1

Subscribe to this mod's changes

ccc-audit is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 966 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-09-03.