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.
git clone --depth 1 https://github.com/KevinZai/commanderWrote 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.
[](https://agentmods.dev/commands/kevinzai/commander/ccc-prompt-optimize)<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-prompt-optimize"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-prompt-optimize/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.
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-prompt-optimize"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-prompt-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.00786 |
| Opus 5.5 | $0.00018 | $0.00314 |
| Sonnet 5.5 | $0.00009 | $0.00157 |
| Haiku 4.5 | $0.00004 | $0.00079 |
Grade A, and why
ccc-prompt-optimize 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.
This is a copy
89% identical to prompt-optimize — 57 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.
How it starts
The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/ccc-prompt-optimize — sharpen a prompt before running it
CC Commander · /ccc-prompt-optimize · a diagnosis, the components to use, and a Full and Quick version of the prompt, ready to paste into a new session.
Input
$ARGUMENTS is the draft prompt. If it is empty, ask the user for the prompt in plain text and stop until they provide it.
What happens
- Load the method. If the vendored
prompt-optimizerskill is available (vendor/everything-claude-code/skills/prompt-optimizer/SKILL.mdin a repo checkout), read it and use its Output Format. Otherwise follow the pipeline below as written. - Project detection. Read the project
CLAUDE.mdwhen present and detect the stack from manifest files (package.json,pyproject.toml,go.mod,Cargo.toml, and similar). Use the file count fromgit ls-files | wc -las the codebase-size signal. - Intent. Classify the task: new feature, bug fix, refactor, research, testing, review, documentation, infrastructure, or design.
- Scope. Rate it TRIVIAL, LOW, MEDIUM, HIGH or EPIC, using codebase size as one signal.
- Component matching. Map the task to the skills, commands and agents that exist in this install (check
commands/, the pluginskills/andagents/directories rather than recalling names). Name skills as skills ("use the blueprint skill"), never as slash commands; only real commands get a/prefix. - Missing context. List the gaps (acceptance criteria, target files, constraints, environment). When three or more critical items are missing, ask the user to fill them before generating, in plain text, and stop.
- Workflow and model. Place the task in the lifecycle (plan, build, verify, ship). Recommend a tier by alias only where it changes the outcome:
fablefor architecture, migrations and threat models;opusfor implementation and review;sonnetfor bounded edits and docs;haikufor classification and extraction. State that the user's selected model stays in effect unless they choose otherwise. Split HIGH and EPIC work into a sequence of prompts.
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.
- 1mo ago Changed · +6 lines · +14 tokens per session 5f3ffe892770
- 2mo ago First seen · 39 lines · 30 tokens per session scan A 7d4fae0abdf0
ccc-prompt-optimize is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 786 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 prompt-optimize, differing in 57 lines, and is treated as a copy.
ccc-prompt-optimize compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ccc-prompt-optimizeKevinZai/commander | Command | 6 | yesterday | MIT | A | 44 | Claude Code |
| loopskullninja/coco-workflow | Command | 7 | 1mo ago | MIT | A | 28 | Claude Code |
| phaseskullninja/coco-workflow | Command | 7 | 1mo ago | MIT | A | 21 | Claude Code |
| statusskullninja/coco-workflow | Command | 7 | 1mo ago | MIT | A | 17 | Claude Code |
| justone-publishGodsB1025/justone | Command | 2 | 6mo ago | MIT | A | 22 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |