ccc-quality-gate

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

A command that runs a project's available formatting, linting, type-checking, and related quality checks.

In plain words
What is it for?
Use it on a file or project directory before committing, with an optional mode that applies configured automatic fixes.
Why use it?
It gathers common checks in one place and produces a short list of problems to fix. Strict mode can treat warnings as failures where supported.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it on a file or project directory before committing, with an optional mode that applies configured automatic fixes.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-quality-gate"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-quality-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 775 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 89% 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.00041 $0.00775
Opus 5.5 $0.00016 $0.00310
Sonnet 5.5 $0.00008 $0.00155
Haiku 4.5 $0.00004 $0.00077

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

Security

Grade A, and why

ccc-quality-gate 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.

Origin

This is a copy

89% identical to quality-gate — 61 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-quality-gate.md · 53 lines

How it starts

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

/ccc-quality-gate — format, lint and type checks on demand

CC Commander · /ccc-quality-gate · runs the checks the post-edit quality hooks run, on a scope you choose, and returns a remediation list.

Arguments

/ccc-quality-gate [path|.] [--fix] [--strict] — parsed from $ARGUMENTS:

  • [path|.] — target; defaults to the current directory
  • --fix — allow auto-format and auto-fix where the tool supports it
  • --strict — treat warnings as failures where the tool supports it

What happens

  1. Detect tooling for the target. Prefer the project's own scripts in package.json, pyproject.toml, Makefile or justfile over the defaults below, and only run tools that are installed (command -v <tool> or a local node_modules/.bin/<tool>). Record every tool that is configured but missing.

    Stack Formatter check (--fix form) Lint / type check (--strict form)
    JS/TS npx prettier --check <path> (--write) or npx biome check <path> (--write) npx eslint <path> (--max-warnings 0; --fix), npx tsc --noEmit
    Python ruff format --check <path> (ruff format <path>) or black --check <path> (black <path>) ruff check <path> (--fix), mypy <path> (--strict only if the project config allows it)
    Go gofmt -l <path> (gofmt -w) go vet ./..., staticcheck ./... when installed
    Rust cargo fmt --check (cargo fmt) cargo clippy (-- -D warnings)
    Shell — shellcheck <files>
  2. Run formatter checks. Without --fix, run check-only forms. With --fix, run the write forms.

  3. Run lint and type checks. Apply --strict flags only when --strict was passed. Capture exit code and the first lines of each failure.

  4. Verify after --fix. Re-run the check-only forms from steps 2 and 3, then show what changed:

    git status --short
    git diff --stat
    
  5. Report a remediation list grouped by severity: errors (non-zero exit), warnings, then missing tools. Each item is path:line — rule — one-line fix.

Read the full file on GitHub · 53 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 · +19 lines · +20 tokens per session 5e1971da2dc6
  2. 1mo ago First seen · 34 lines · 21 tokens per session scan A aca199fd8f78

Subscribe to this mod's changes

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