ccc-xray

ccc-xray is a command for Claude Code from KevinZai/commander. It costs 56 tokens per session (1,148 once invoked), scanned A, original, MIT.

A project health scanner that checks six areas of a codebase: security, testing, DevOps, code quality, documentation, and architecture. It produces scores, a maturity level, and recommended skills.

In plain words
What is it for?
Use it to check for secrets, old dependencies, missing tests, CI/CD and Docker setup, weak documentation, and architecture issues.
Why use it?
It replaces a broad manual review with one report showing where a project needs attention. Prioritized recommendations help turn findings into next actions.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Good fit Use it to check for secrets, old dependencies, missing tests, CI/CD and Docker setup, weak documentation, and architecture issues.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-xray"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-xray.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,148 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.00056 $0.01148
Opus 5.5 $0.00022 $0.00459
Sonnet 5.5 $0.00011 $0.00230
Haiku 4.5 $0.00006 $0.00115

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

Security

Grade A, and why

ccc-xray 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.

commands/ccc-xray.md · 87 lines

How it starts

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

/ccc-xray — project health scan

CC Commander · /ccc-xray · a read-only scan of the current project that returns dimension scores, a maturity level and impact-ranked skill recommendations.

Arguments

None. The scan always runs against the current working directory ($PWD).

What happens

  1. Resolve the install. The scanner ships with the CC Commander CLI as commander/xray-report.js:

    CCC_ROOT="$(cd "$(dirname "$(realpath "$(command -v ccc)")")/.." && pwd)"
    

    If ccc is not on PATH, set CCC_ROOT to the root of a CC Commander checkout (the directory that contains commander/xray-report.js). If neither exists, say the CLI is not installed, point to /ccc-audit for a manual audit, and stop. Shell state does not carry between Bash calls, so repeat the CCC_ROOT= line at the top of the step 2 command.

  2. Run the scan. One call returns the structured result:

    CCC_ROOT="$(cd "$(dirname "$(realpath "$(command -v ccc)")")/.." && pwd)"
    node -e 'const r=require(process.argv[1]+"/commander/xray-report").generateReport(process.argv[2]);console.log(JSON.stringify({overall:r.health.overall,maturity:r.maturity,dimensions:r.health.dimensions,issues:r.health.issueCounts,recommendations:r.recommendations}))' "$CCC_ROOT" "$PWD"
    

    The scanner reads project signals in six dimensions:

    Dimension Signals
    security committed env secrets, lockfile presence, outdated dependencies
    testing test files, coverage, E2E config
    devops CI/CD workflows, Dockerfile, deploy config
    quality lint, formatter and TypeScript config, oversized files
    docs README, CLAUDE.md, CHANGELOG, API docs
    architecture error handling, input validation, circular dependencies, monolith size

    Each dimension starts at 100 and loses points per matching recommendation; the overall score is the average of the six. When the signal scanner cannot load, the script falls back to file-presence checks only; say so in the report. A non-zero exit or a stack trace means the scan failed: report the error text and stop rather than estimating scores.

Read the full file on GitHub · 87 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 · +48 lines · +37 tokens per session feec060627bc
  2. 2mo ago First seen · 39 lines · 19 tokens per session scan A eac80dbfbf9a

Subscribe to this mod's changes

ccc-xray 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,148 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-04.

Related

ccc-xray compared with commands from other repositories

ccc-xray next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ccc-xrayKevinZai/commanderCommand6yesterdayMITA56Claude Code
loopskullninja/coco-workflowCommand71mo agoMITA28Claude Code
phaseskullninja/coco-workflowCommand71mo agoMITA21Claude Code
statusskullninja/coco-workflowCommand71mo agoMITA17Claude Code
justone-publishGodsB1025/justoneCommand26mo agoMITA22Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code