ccg-workflow
What it does
This skill explains how to run a larger coding task in stages, using specialist roles for analysis, design, building, debugging, testing and review. It is for developers facing a whole feature, a refactor or an unclear bug.
When to use it
- βWhen a task is a whole feature, a refactor or a bug with an unknown cause.
- βWhen a change is large enough that one straight attempt would be a guess.
- βWhen you want to choose between a quick, standard or deep workflow for a task.
Skill link
https://github.com/fengshao1227/ccg-workflow/blob/main/dsh-ccg/skills/ccg-workflow/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βPlan and build a refactor of my payment module using the staged workflow, and tell me the cost before starting.β
5 new skills a week. 1 minute to read.
How it works
The agent picks a mode based on the task size, states the number of model calls the mode uses, waits for your approval, and then runs the stages in order.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
CCG workflow
Seven role tools are available, each running a child agent on its own model with its own expert persona. This is how to chain them so the work converges instead of sprawling.
Skip all of this for small, obvious work. A one-line fix, a rename, a question you can answer by reading two files β do it yourself. Delegation buys depth, and it costs a round trip and a fresh context. Spend it only where depth is the thing you lack.
Picking a gear
Four modes. The user should not have to name one: read what they asked for, pick, say which you picked in a line, and β for anything past Direct β say what it costs and wait for a yes. They are paying per model call.
| Mode | For | Runs |
|---|---|---|
| Direct | a one-line fix, a rename, a question you can answer by reading | you, alone |
| Standard | an ordinary feature, a bug with a known cause, a contained refactor | design β build β review |
| Deep | a design with real alternatives, an unclear bug, a migration, anything expensive to get wrong | analyze β design β build β test β review |
| Team | work that splits across files and will keep developing | ccg_team β several specialists at once, each owning its own files |
A role holding several models answers with all of them at once, so Deep costs more than its phase count suggests β quote the real number of model calls, not the number of phases. If the user names a mode, run that one. If a phase changes what you believe, say so and re-pick rather than finishing a plan you no longer believe in.
Deep and Team are not a ranking. Deep buys certainty about one thing by asking several models about it. Team buys throughput on several things by running colleagues at once. A hard question is Deep even if it is small; a wide job is Team even if every part is easy. Something both hard and wide is Deep first β settle the design and the contracts β then Team to build it.
The loop
| Phase | Tool | Ends when |
|---|---|---|
| 1. Understand | ccg_analyze |
you can state the constraints and the options with their trade-offs |
| 2. Design | ccg_design |
the interfaces and the boundaries are settled |
| 3. Build | ccg_build |
the code exists and its verify command passes |
| 4. Verify | ccg_review + the gates |
findings are triaged and the criticals are gone |
Diagnose before you build when the cause is unknown (ccg_debug), and treat
ccg_optimize and ccg_test as phases of their own when the task is
performance or coverage rather than a feature.
Not every task needs four phases. A well-understood change is design β build β review. An investigation may be analyze β debug and stop there, with no code at all.
Writing a brief
A child sees none of this conversation. It gets your prompt and nothing else, so an under-specified brief is the main way this goes wrong. Every brief carries:
- The goal β one sentence on what the child must produce.
- The anchors β the exact files, symbols and commands it should start from. Paths, not descriptions.
- The constraints β what it must not change, the conventions to follow, the decisions already made (and by whom).
- The shape of the answer β a diff, a report, a ranked list. Say which.
Bad: "look at the auth code and improve it."
Good: "In src/auth/session.ts, the refresh path drops the CSRF token when a
retry follows a 401 (see refreshSession, lines 40-80). Diagnose the root
cause. Do not change code. Report ranked hypotheses with the minimal test that
would confirm each."
The quality gates
Bundled beside this skill, each runnable through the shell and each documenting its own arguments:
| Gate | Use it after |
|---|---|
verify-change |
any change β analyses the diff and flags docs that drifted |
verify-quality |
a complex or refactored module β complexity, duplication, naming, length |
verify-security |
new modules, auth/crypto/input handling, anything touching secrets |
verify-module |
a newly created module β structure and required docs |
gen-docs |
creating a module β scaffolds its README and DESIGN |
They are deterministic scanners, not opinions: run them before ccg_review so
the reviewer spends its turn on judgement rather than on what a script already
knows. A gate's findings are input to your decision, not a verdict β a flagged
line can still be correct.
What stays with you
Delegate the turn, never the decision.
- **Choosing betwe
FAQ
Is it needed for small jobs?
No. Small, obvious changes should be done directly without this workflow.
Does it ask before spending model calls?
Yes. For anything beyond the direct mode, it states the cost and waits for a yes.
What modes are there?
Direct, standard, deep and team, from a single fix up to several specialists working at once.
Details
Original description by the author
How to run a non-trivial change end to end with the CCG role tools (ccg_analyze / ccg_design / ccg_build / ccg_debug / ccg_optimize / ccg_review / ccg_test) and the verify-* quality gates. Use when a task is a whole feature, a refactor, a bug whose cause is not yet known, or any change large enough that one straight-through attempt would be a guess.
Popularity
- GitHub stars
- 6.0k
- Ranking position
- #14522
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
openspec-bulk-archive-change
6.0kHelps your agent archive several finished OpenSpec changes in one go, checking each change's tasks and specs before archiving.
openspec-continue-change
6.0kHelps your agent continue an OpenSpec change by creating its next artifact, such as a proposal, spec, design or task list.
openspec-ff-change
6.0kHelps your agent create all the OpenSpec artifacts for a change in one go, so implementation can start without stepping through each one.
openspec-new-change
6.0kHelps your agent start a new OpenSpec change for a feature or fix, creating its folder and showing which artifacts to write next.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.