ccc-plan-exec

A two-stage coding workflow in which a fast, lower-cost model creates a plan or repeatable loop and a more capable model carries out each step. A loop repeats the same kind of work across a list of items.

In plain words
What is it for?
Use it to split multi-step work into a plan and execution phase, repeat work across items, and route tasks according to their complexity.
Why use it?
It reduces the cost of using a capable model for routine planning while reserving it for tasks that need deeper reasoning.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/kevinzai/commander/ccc-plan-exec
Any agent
npx skills add KevinZai/commander --skill ccc-plan-exec
Clone the repo
git clone --depth 1 https://github.com/KevinZai/commander

Made for: Claude Code, Codex.

Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,094 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00044 $0.02094
Opus 5 $0.00022 $0.01047
Sonnet 5 $0.00009 $0.00419
Haiku 4.5 $0.00004 $0.00209

Measured 2d ago against content hash c061f01b7dff, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ccc-plan-exec 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 2d 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.

commander/cowork-plugin-codex/skills/ccc-plan-exec/SKILL.md · 137 lines

How it starts

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

$ccc-plan-exec — Plan Cheap, Execute Capable

Plan-exec splits work into two phases on two models. A cheap, fast model drafts the plan — the step list, the loop body, the structure. Then a capable model (Opus/Fable) executes each step. You write a loop, not a one-shot prompt: the structure is decided once, cheaply, then run N times against the expensive reasoner only where reasoning earns its cost.

CC Commander · Plan-Exec Mode · Docs

Plan-exec is the canonical workflow-first doctrine (commander/cowork-plugin/rules/workflow-first.md) applied to cost: let the cheap model decide the shape, let the capable model do the thinking. Motto: "Pay for Fable on the thinking, not the typing."


Write loops, not prompts

A prompt is a one-shot: "do this whole thing." A loop is a structure plus a body that repeats: "for each item, do the body." The loop body is small, predictable, and capable-model-worthy. The structure around it — the item list, the order, the guards — is boring scaffolding a cheap model nails for cents.

One-shot prompt Loop (plan-exec)
Who plans Capable model (wasteful) Cheap/fast model
Who executes Capable model Capable model, per step
Cost shape Pay expensive for scaffolding + thinking Pay cheap for scaffolding, expensive only for thinking
Failure mode Whole run dies, re-pay everything One step retries, rest survives
Verifiability Monolithic blob Step-by-step, each checkable

If the work decomposes into "the same body, N times," it's a loop. Plan it cheap.

Terminology: "loop" here is the plan-exec sense — a repeating per-step body inside one run. The $ccc-loop taxonomy names the session-level loops (/loop interval re-prompts, /goal converge-until-gate, /schedule cron routines). A plan-exec loop that must repeat until an external gate holds (tests green, criteria met) graduates into a /goal loop — use that primitive rather than hand-rolling retries.

Read the full file on GitHub · 137 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. 2d ago First seen · 137 lines · 44 tokens per session scan A c061f01b7dff

Subscribe to this mod's changes

ccc-plan-exec is a skill published in the GitHub repository KevinZai/commander (6 stars, last pushed 3d ago), licensed MIT. It adds 44 tokens to every session and 2,094 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

crewai

Expert in CrewAI - the leading role-based multi-agent framework used by 60% of Fortune 500 companies. Covers agent design with roles and goals, task definition, crew orchestration, process types (sequential, hierarchical, parallel), memory systems, and flows for complex workflows. Essential for building collaborative…

davila7/claude-code-templates · 89 tokens

extension-creator

Create, scaffold, customize, validate, and locally test Qwen Code extensions. Use when the user wants a new Qwen Code extension, needs help choosing an extension template, wants to add QWEN.md context, commands, skills, agents, MCP servers, settings, hooks, channels, or LSP servers, or asks how to link and test an…

QwenLM/qwen-code · 96 tokens

agent-memory-systems

Memory is the cornerstone of intelligent agents. Without it, every interaction starts from zero. This skill covers the architecture of agent memory: short-term (context window), long-term (vector stores), and the cognitive architectures that organize them. Key insight: Memory isn't just storage - it's retrieval. A…

davila7/claude-code-templates · 100 tokens

dispatching-parallel-agents

当面对 2 个以上可以独立进行、无共享状态或顺序依赖的任务时使用.

jnMetaCode/superpowers-zh · 30 tokens

agent-workflow-designer

../../../engineering/skills/agent-workflow-designer/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

ai-security

../../../engineering-team/skills/ai-security/SKILL.md.

alirezarezvani/claude-skills · 0 tokens