ccw

A workflow orchestrator that interprets a request, selects suitable development workflows, and runs their command chains.

In plain words
What is it for?
Use it to plan or execute coding tasks, run test-driven development workflows, coordinate reviews, or turn product ideas into structured plans.
Why use it?
It provides one entry point for planning, implementation, test fixing, reviews, brainstorming, and product specification work.

Command for Claude Code

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 commands/catlog22/claude-code-workflow/ccw
Clone the repo
git clone --depth 1 https://github.com/catlog22/Claude-Code-Workflow

Made for: Claude Code.

Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 10,289 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.00020 $0.10289
Opus 5 $0.00010 $0.05144
Sonnet 5 $0.00004 $0.02058
Haiku 4.5 $0.00002 $0.01029

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

Security

Grade A, and why

ccw 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.

.claude/commands/ccw.md · 963 lines

How it starts

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

CCW Command - Main Workflow Orchestrator

Main process orchestrator: intent analysis → workflow selection → command chain execution.

Skill 映射

命令链中的 workflow 操作通过 Skill() 调用。每个 Skill 是自包含的执行单元,内部处理完整流水线。

Skill 内部流水线
workflow-lite-plan explore → plan → confirm → handoff
workflow-lite-execute task grouping → batch execution → code review → sync
workflow-plan session → context → convention → gen → verify/replan
workflow-execute session discovery → task processing → commit
workflow-tdd-plan 6-phase TDD plan → verify
workflow-test-fix session → context → analysis → gen → cycle
workflow-multi-cli-plan ACE context → CLI discussion → plan → execute
review-cycle session/module review → fix orchestration
brainstorm auto/single-role → artifacts → analysis → synthesis
spec-generator product-brief → PRD → architecture → epics
workflow:collaborative-plan-with-file understanding agent → parallel agents → plan-note.md
workflow:roadmap-with-file strategic requirement roadmap → issue creation → execution-plan.json
workflow:integration-test-cycle explore → test dev → test-fix cycle → reflection
workflow:refactor-cycle tech debt discovery → prioritize → execute → validate
team-planex planner + executor wave pipeline(适合大量零散 issue 或 roadmap 产出的清晰 issue)

Core Concept: Self-Contained Skills (自包含 Skill)

Definition: 每个 Skill 内部处理完整流水线,是天然的最小执行单元。单次 Skill 调用即完成一个有意义的工作里程碑。

Why This Matters:

  • Prevents Incomplete States: 每个 Skill 内部保证端到端完整性
  • User Experience: User gets complete results, not intermediate artifacts requiring manual follow-up
  • Simplified Orchestration: 命令链只需组合独立 Skill,无需关注内部步骤

Key Units in CCW:

单元类型 Skill 说明
轻量 Plan+Execute workflow-lite-planworkflow-lite-execute plan handoff 到 execute,分离 Skill,TodoWrite 跟踪延续 (LP-Phase → LE-Phase)
标准 Planning workflow-planworkflow-execute plan 和 execute 是独立 Skill
TDD Planning workflow-tdd-planworkflow-execute tdd-plan 和 execute 是独立 Skill
规格驱动 spec-generatorworkflow-planworkflow-execute 规格文档驱动完整开发
测试流水线 workflow-test-fix 内部完成 gen→cycle
代码审查 review-cycle 内部完成 review→fix
多CLI协作 workflow-multi-cli-plan ACE context → CLI discussion → plan → Skill(lite-execute)
分析→规划 workflow:analyze-with-fileworkflow-lite-planworkflow-lite-execute 协作分析产物自动传递给 lite-plan,Skill 调用 lite-execute
头脑风暴→规划 workflow:brainstorm-with-fileworkflow-planworkflow-execute 头脑风暴产物自动传递给正式规划
0→1 开发(小) workflow:brainstorm-with-fileworkflow-planworkflow-execute 小规模从零开始,探索+正式规划+实现
0→1 开发(中/大) workflow:brainstorm-with-fileworkflow-planworkflow-execute 探索后正式规划+执行
协作规划 workflow:collaborative-plan-with-fileworkflow:unified-execute-with-file 多 agent 协作规划→通用执行
需求路线图 workflow:roadmap-with-fileteam-planex 需求拆解→issue 创建→wave pipeline 执行(需明确 roadmap 关键词)
集成测试循环 workflow:integration-test-cycle 自迭代集成测试闭环
重构循环 workflow:refactor-cycle 技术债务发现→重构→验证

Read the full file on GitHub · 963 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 · 963 lines · 20 tokens per session scan A b91f46b05a74

Subscribe to this mod's changes

ccw is a command published in the GitHub repository catlog22/Claude-Code-Workflow (2,135 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 10,289 once invoked, about $0.0001 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-30.