ccg-workflow
Skill này làm gì
Skill này giải thích cách thực hiện một tác vụ code lớn theo từng giai đoạn, với các vai trò chuyên biệt cho phân tích, thiết kế, xây dựng, gỡ lỗi, kiểm thử và review. Skill dành cho lập trình viên đang làm một tính năng đầy đủ, một đợt tái cấu trúc hoặc một lỗi chưa rõ nguyên nhân.
Khi nào nên dùng
- ✓Khi một tác vụ là cả một tính năng, một đợt tái cấu trúc hoặc một lỗi chưa biết nguyên nhân.
- ✓Khi thay đổi đủ lớn đến mức một lần làm thẳng sẽ chỉ là đoán mò.
- ✓Khi bạn muốn chọn giữa quy trình nhanh, tiêu chuẩn hoặc sâu cho một tác vụ.
Liên kết skill
https://github.com/fengshao1227/ccg-workflow/blob/main/dsh-ccg/skills/ccg-workflow/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Lên kế hoạch và xây dựng việc tái cấu trúc module thanh toán của tôi theo quy trình nhiều giai đoạn, và cho tôi biết chi phí trước khi bắt đầu.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chọn chế độ dựa trên quy mô tác vụ, nêu số lượt gọi mô hình mà chế độ đó dùng, chờ bạn đồng ý, rồi chạy các giai đoạn theo thứ tự.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Skill có cần cho các việc nhỏ không?
Không. Các thay đổi nhỏ, rõ ràng nên làm trực tiếp, không cần quy trình này.
Skill có hỏi trước khi tiêu tốn lượt gọi mô hình không?
Có. Với mọi chế độ vượt quá chế độ trực tiếp, skill nêu chi phí và chờ bạn đồng ý.
Có những chế độ nào?
Trực tiếp, tiêu chuẩn, sâu và nhóm, từ một bản sửa đơn lẻ đến nhiều chuyên gia làm việc cùng lúc.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 6.0k
- Vị trí xếp hạng
- #14522
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
openspec-bulk-archive-change
6.0kGiúp agent của bạn lưu trữ nhiều thay đổi OpenSpec đã hoàn thành cùng lúc, kiểm tra tác vụ và đặc tả của từng thay đổi trước khi lưu trữ.
openspec-continue-change
6.0kGiúp agent của bạn tiếp tục một thay đổi OpenSpec bằng cách tạo tài liệu tiếp theo, như đề xuất, đặc tả, thiết kế hoặc danh sách tác vụ.
openspec-ff-change
6.0kGiúp agent của bạn tạo tất cả tài liệu OpenSpec cho một thay đổi chỉ trong một lần, để có thể bắt đầu triển khai mà không phải đi qua từng bước.
openspec-new-change
6.0kGiúp agent của bạn bắt đầu một thay đổi OpenSpec mới cho tính năng hoặc bản sửa lỗi, tạo thư mục và chỉ ra tài liệu nào cần viết tiếp theo.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.