Agent skill

Ccg Workflow

by fengshao1227 in fengshao1227/ccg-workflow

How to run a non-trivial change end to end with the CCG role tools (ccganalyze / ccgdesign / ccgbuild / ccgdebug / ccgoptimize / ccgreview / ccgtest) and the verify- quality gates.

MITAuto-check passedTesting & QA

Install Ccg Workflow

skills CLI
$ npx skills add fengshao1227/ccg-workflow --skill ccg-workflow -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install fengshao1227/ccg-workflow ccg-workflow --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/fengshao1227/ccg-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/dsh-ccg/skills/ccg-workflow .claude/skills/ccg-workflow && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ccg-workflow
GitHub stars
5.9k
Token cost
~2.3k tokens
SKILL.md length
1,412 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

How to run a non-trivial change end to end with the CCG role tools (ccganalyze / ccgdesign / ccgbuild / ccgdebug / ccgoptimize / ccgreview / ccgtest) and the verify- quality gates.

  • Works in 3 steps: Settle every shared contract. Teammates… → Draw the file boundaries. Give every… → Say the roster and the cost, then wait…
  • A task is a whole feature
  • SKILL.md covers Picking a gear, The loop, Writing a brief and The quality gates, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ccg Workflow is an agent skill from fengshao1227/ccg-workflow. How to run a non-trivial change end to end with the CCG role tools (ccganalyze / ccgdesign / ccgbuild / ccgdebug / ccgoptimize / ccgreview / ccgtest) 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.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Quality gates and Refactoring. The repository describes itself as: 多模型协作工作流引擎 — /ccg:go 一个命令,AI 自动分析意图、选择策略、编排 Codex + Gemini + Claude 协作执行. The licence is MIT.

When your agent uses it

  • A task is a whole feature
  • A bug whose cause is not yet known
  • Any change large enough that one straight-through attempt would be a guess

Example prompts

  • “/ccg-workflow”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Settle every shared contract. Teammates cannot see each other. Any
  2. Draw the file boundaries. Give every concurrent teammate a disjoint
  3. Say the roster and the cost, then wait for a yes.

What it can do on your machine

Read from SKILL.md and the folder at commit f349e3d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ccg Workflow loads about 2.3k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 1,412 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from fengshao1227/ccg-workflow at commit f349e3d, republished under its MIT licence (© fengshao1227). 1,412 words, ~2,262 tokens.

Download SKILL.mdSave it as .claude/skills/ccg-workflow/SKILL.md (or your agent's skills folder).
name
ccg-workflow
description
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.

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.

ModeForRuns
Directa one-line fix, a rename, a question you can answer by readingyou, alone
Standardan ordinary feature, a bug with a known cause, a contained refactordesign → build → review
Deepa design with real alternatives, an unclear bug, a migration, anything expensive to get wronganalyze → design → build → test → review
Teamwork that splits across files and will keep developingccg_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

PhaseToolEnds when
1. Understandccg_analyzeyou can state the constraints and the options with their trade-offs
2. Designccg_designthe interfaces and the boundaries are settled
3. Buildccg_buildthe code exists and its verify command passes
4. Verifyccg_review + the gatesfindings 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:

GateUse it after
verify-changeany change — analyses the diff and flags docs that drifted
verify-qualitya complex or refactored module — complexity, duplication, naming, length
verify-securitynew modules, auth/crypto/input handling, anything touching secrets
verify-modulea newly created module — structure and required docs
gen-docscreating 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 between options is yours. A child ranks; you pick, and you own the reason.
  • Acceptance is yours. Never let a child's "looks good" close a task. Read what came back and judge it — children are confident about work they cannot see the context of.
  • Integration is yours. Children work in isolation; nothing but you is watching how the pieces meet.
  • Contradictions are signal. When the analyzer and the reviewer disagree, that disagreement is the most valuable thing you have. Resolve it explicitly instead of averaging it away.

Running them in parallel

Independent delegations can run at once — a review of one module and tests for another have nothing to say to each other. Wait (run_in_background: false) only when your next move depends on the answer.

Do not parallelise work that writes to the same files. Two builders editing one module will produce a conflict nobody asked for; sequence those, or split the work along file boundaries first.

Show full SKILL.md (547 more words)Show less

Running a team

ccg_team hires a role as a colleague instead of asking it a question: it stays alive across turns, takes more work through send_message, and reports back on its own. Use it when the job splits into substantial parts that do not wait on each other and will keep developing. For a single question, the role's own tool is cheaper.

Before hiring anything:

  1. Settle every shared contract. Teammates cannot see each other. Any interface two of them meet at — a signature, a schema, an event name, a file format — has to be decided and written into both briefs, or each will invent a reasonable version and neither will fit. Read the code and pin the contract down yourself; this is the step that decides whether the team works. Record it with ccg_remember as you settle it — the next session should not have to re-derive it, and neither should you after a compaction.
  2. Draw the file boundaries. Give every concurrent teammate a disjoint owns set. Two agents editing one file lose each other's work with no error. A hire that reaches into someone else's files is refused, naming the holder, so a refusal is a prompt to re-split the work — not an error to route around.
  3. Say the roster and the cost, then wait for a yes.

ccg_roster is the durable answer to "who owns what". Read it whenever you are unsure — after a compaction it is the only thing that still knows, and it is the difference between routing a fix to its owner and quietly overwriting them.

While they work, do not sleep or poll — a report wakes you by itself, so ending your turn is how you wait, and it costs nothing. Say who is working on what and stop.

As reports land: read each one, integrate it, and route what it implies. A teammate reporting a changed contract is the signal to send_message whoever depends on it. When integration turns up a fault in a file a live teammate owns, send it back to them rather than fixing it quietly — they still think they own that file, and their next assignment would overwrite you. Take a file back only by saying so.

Then verify the whole yourself: run the thing end to end, check the contract that every part was supposed to honour, and review the assembled result. No teammate can see the seam it was built against.

What to write down

ccg_remember puts one thing in .ccg/memory.md, which loads itself into every later session in this workspace. Use it the moment something is settled that would otherwise be re-argued:

KindWrite it when
decisionyou chose between real alternatives — record the reason and what you rejected, or it can only be obeyed, never revisited
contracttwo parts must agree: a signature, a schema, an event name, a file format
conventionthis project does something in a way a newcomer would guess wrong
gotchasomething looks fine and is not

Not a log of what happened. The transcript is that already, and a memory that fills with narration stops being worth loading. If you find a note is wrong or out of date, say so and fix the file — a stale note does more damage than a missing one.

© fengshao1227, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in dsh-ccg/skills/ccg-workflow of fengshao1227/ccg-workflow.

Open the folder on GitHubat commit f349e3d

Compare with similar skills

Ccg Workflow next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ccg Workflow compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ccg Workflow this skillfengshao1227/ccg-workflow5.9k—~2.3kAutomated safety check: PassMIT
Asw Remove AI Slopswjgoarxiv/antigravity-swarm166—~2.7kAutomated safety check: PassMIT
Triage Sonarqubenetdata/netdata81k—~2.8kAutomated safety check: NotesGPL-3.0
Sonarqube Analysishbmartin/graphviz2drawio275—~508Automated safety check: NotesGPL-3.0
Code SolvingHoangTheQuyen/think-better122—~3.7kAutomated safety check: PassMIT
Developing MarchatCod-e-Codes/marchat137—~870Automated safety check: PassMIT

Similar skills

  • Asw Remove AI Slops

    wjgoarxiv/antigravity-swarm

    Remove AI-looking code smells from branch changes or explicit files.

    166 GitHub stars~2.7k tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • Triage Sonarqube

    netdata/netdata

    Inspect, review, or apply authorized triage decisions to SonarCloud issues and security hotspots; also review the Sonar helpers.

    81k GitHub stars~2.8k tokensUpdated today
    Testing & QAAuto-check: notes
  • Sonarqube Analysis

    hbmartin/graphviz2drawio

    Inspect SonarQube Cloud/SonarCloud findings for this repository using local .env credentials.

    275 GitHub stars~508 tokensUpdated 2 mo ago
    Testing & QAAuto-check: notes
  • Code Solving

    HoangTheQuyen/think-better

    Structured coding workflow for non-trivial code work: debug, build features, refactor, optimize, migrate and review code through 7 steps with evidence-based quality gates.

    122 GitHub stars~3.7k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Developing Marchat

    Cod-e-Codes/marchat

    Implements and refactors marchat Go code with project toolchain and quality gates.

    137 GitHub stars~870 tokensUpdated 7 days ago
    Testing & QAAuto-check passed
  • Refactor To Rules

    openfootmanager/openfootmanager

    Decompose OpenFoot Manager code by responsibility when a quality gate is red, a reviewer requests a split or a refactor is authorized.

    1.1k GitHub stars~1.3k tokensUpdated today
    Testing & QAAuto-check: notes

More from fengshao1227/ccg-workflow

  • Change Verification Gate

    fengshao1227/ccg-workflow

    Analyzes a code diff for documentation sync, test coverage and impact scope, warning when docs or tests lag behind a design-level change or a large edit.

    5.9k GitHub stars~511 tokensUpdated 24 days ago
    Auto-check: notes
  • Module Completeness Check

    fengshao1227/ccg-workflow

    Scans a module directory for the required README.md and DESIGN.md plus recommended files and reports what is missing, so a module is not delivered incomplete.

    5.9k GitHub stars~473 tokensUpdated 24 days ago
    Auto-check: notes
  • Code Quality Gate

    fengshao1227/ccg-workflow

    Scans code for complexity, long functions, duplicated blocks, naming problems and code smells with a Node script, then reports and suggests refactors.

    5.9k GitHub stars~593 tokensUpdated 24 days ago
    Auto-check: notes
  • Security Verification Gate

    fengshao1227/ccg-workflow

    Scans code with a bundled Node script for injection, secrets, XSS and other risky patterns, ranks findings by severity and checks that security decisions are documented.

    5.9k GitHub stars~621 tokensUpdated 24 days ago
    Auto-check: notes
  • README and DESIGN Generator

    fengshao1227/ccg-workflow

    Generates README.md and DESIGN.md skeletons for a module by scanning its structure with a Node script, then lists what to fill in by hand.

    5.9k GitHub stars~410 tokensUpdated 24 days ago
    Auto-check: notes

Categories

Questions about Ccg Workflow

What does Ccg Workflow do?

How to run a non-trivial change end to end with the CCG role tools (ccganalyze / ccgdesign / ccgbuild / ccgdebug / ccgoptimize / ccgreview / ccgtest) and the verify- quality gates. Ccg Workflow is an agent skill from fengshao1227/ccg-workflow. How to run a non-trivial change end to end with the CCG role tools (ccganalyze / ccgdesign / ccgbuild / ccgdebug / ccgoptimize / ccgreview / ccgtest) and the verify- quality gates.

When should I use Ccg Workflow?

Ccg Workflow fits situations like: A task is a whole feature; A bug whose cause is not yet known; any change large enough that one straight-through attempt would be a guess.

How do I install Ccg Workflow in Claude Code?

Run `npx skills add fengshao1227/ccg-workflow --skill ccg-workflow -a claude-code`. Or copy the skill folder (dsh-ccg/skills/ccg-workflow in fengshao1227/ccg-workflow) into .claude/skills/ccg-workflow in your project. Claude Code loads it when a task matches its description.

How do I install Ccg Workflow in Codex?

Run `npx skills add fengshao1227/ccg-workflow --skill ccg-workflow -a codex`. Or copy the skill folder (dsh-ccg/skills/ccg-workflow in fengshao1227/ccg-workflow) into .agents/skills/ccg-workflow in your project. Codex loads it when a task matches its description.

Can I use Ccg Workflow in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add fengshao1227/ccg-workflow --skill ccg-workflow -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ccg-workflow, .gemini/skills/ccg-workflow, .github/skills/ccg-workflow and .opencode/skills/ccg-workflow in your project.

What does Ccg Workflow need to run?

SKILL.md names no scripts, command-line tools or credentials: Ccg Workflow is instructions for the agent only.

Does Ccg Workflow access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ccg Workflow safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ccg Workflow use?

Ccg Workflow is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ccg Workflow use?

About 2.3k tokens (SKILL.md is roughly 9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ccg Workflow?

Skills that share tags, products or a category with Ccg Workflow: Asw Remove AI Slops (wjgoarxiv/antigravity-swarm, 166 stars), Triage Sonarqube (netdata/netdata, 81k stars), Sonarqube Analysis (hbmartin/graphviz2drawio, 275 stars) and Code Solving (HoangTheQuyen/think-better, 122 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ccg Workflow?

fengshao1227 (a GitHub user) maintains it in fengshao1227/ccg-workflow, which has 5,935 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on September 15, 2026.

Source: fengshao1227/ccg-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.