ccg-workflow
Ce qu’il fait
Cette skill explique comment mener une tâche de codage importante par étapes, en faisant appel à des rôles spécialisés pour l'analyse, la conception, la réalisation, le débogage, les tests et la relecture. Elle s'adresse aux développeurs face à une fonctionnalité complète, un refactoring ou un bogue à la cause inconnue.
Quand l’utiliser
- ✓Quand une tâche est une fonctionnalité complète, un refactoring ou un bogue dont la cause est inconnue.
- ✓Quand un changement est assez grand pour qu'une tentative directe ressemble à un pari.
- ✓Quand vous voulez choisir entre un flux rapide, standard ou approfondi pour une tâche.
Lien du skill
https://github.com/fengshao1227/ccg-workflow/blob/main/dsh-ccg/skills/ccg-workflow/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Planifie et réalise un refactoring de mon module de paiement avec le flux par étapes, et indique-moi le coût avant de commencer.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent choisit un mode selon la taille de la tâche, annonce le nombre d'appels de modèle que ce mode utilise, attend votre accord, puis exécute les étapes dans l'ordre.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Est-ce nécessaire pour les petits travaux ?
Non. Les petites modifications évidentes doivent être faites directement, sans ce flux de travail.
Demande-t-elle l'accord avant de dépenser des appels de modèle ?
Oui. Pour tout ce qui dépasse le mode direct, elle annonce le coût et attend votre accord.
Quels modes existent ?
Direct, standard, approfondi et équipe, de la correction unique à plusieurs spécialistes travaillant en parallèle.
Détails
Description originale de l’auteur
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.
Popularité
- Étoiles GitHub
- 6.0k
- Position au classement
- #14522
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
openspec-bulk-archive-change
6.0kAide votre agent à archiver plusieurs changements OpenSpec terminés en une seule fois, en vérifiant les tâches et les spécifications de chacun avant l'archivage.
openspec-continue-change
6.0kAide votre agent à poursuivre un changement OpenSpec en créant son prochain artefact, comme une proposition, une spécification, un design ou une liste de tâches.
openspec-ff-change
6.0kAide votre agent à créer tous les artefacts OpenSpec d'un changement d'un seul coup, pour que l'implémentation puisse démarrer sans passer par chacun d'eux.
openspec-new-change
6.0kAide votre agent à démarrer un nouveau changement OpenSpec pour une fonctionnalité ou une correction, en créant son dossier et en indiquant les prochains artefacts à rédiger.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.