ccg-workflow
ما الذي تفعله
توضح هذه المهارة تنفيذ مهمة برمجية كبيرة على مراحل، مستخدمةً أدواراً متخصصة للتحليل والتصميم والبناء وتصحيح الأخطاء والاختبار والمراجعة. وهي مناسبة لمطور أمام ميزة كاملة أو إعادة هيكلة أو خلل سببه غير معروف.
متى تستخدمها
- ✓عندما تكون المهمة ميزة كاملة أو إعادة هيكلة أو خللاً سببه غير معروف.
- ✓عندما يكون التغيير كبيراً لدرجة أن محاولة مباشرة واحدة ستكون تخميناً.
- ✓عندما تريد الاختيار بين سير عمل سريع أو قياسي أو عميق لمهمة ما.
رابط المهارة
https://github.com/fengshao1227/ccg-workflow/blob/main/dsh-ccg/skills/ccg-workflow/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“خطط لإعادة هيكلة وحدة الدفع الخاصة بي وابنِها بسير العمل المرحلي، وأخبرني بالتكلفة قبل أن نبدأ.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يختار وكيلك وضعاً حسب حجم المهمة، ويذكر عدد استدعاءات النموذج التي يستخدمها الوضع، وينتظر موافقتك، ثم ينفذ المراحل بالترتيب.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من 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
الأسئلة الشائعة
هل تحتاج إليها الأعمال الصغيرة؟
لا. التغييرات الصغيرة والواضحة تُنفَّذ مباشرة دون هذا السير.
هل يسأل قبل إنفاق استدعاءات النموذج؟
نعم. لأي شيء يتجاوز الوضع المباشر، يذكر التكلفة وينتظر الموافقة.
ما الأوضاع المتاحة؟
مباشر وقياسي وعميق وفريق، من إصلاح واحد إلى عدة متخصصين يعملون معاً.
التفاصيل
الوصف الأصلي من المؤلف
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.
الشعبية
- نجوم GitHub
- 6.0k
- الترتيب
- #14522
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
openspec-bulk-archive-change
6.0kيساعد وكيلك على أرشفة عدة تغييرات OpenSpec منتهية دفعة واحدة، مع فحص مهام كل تغيير ومواصفاته قبل الأرشفة.
openspec-continue-change
6.0kيساعد وكيلك على متابعة تغيير OpenSpec بإنشاء العنصر التالي فيه، مثل الاقتراح أو المواصفة أو التصميم أو قائمة المهام.
openspec-ff-change
6.0kيساعد وكيلك على إنشاء كل عناصر تغيير OpenSpec دفعة واحدة، ليبدأ التنفيذ دون المرور بكل عنصر على حدة.
openspec-new-change
6.0kيساعد وكيلك على بدء تغيير OpenSpec جديد لميزة أو إصلاح، فينشئ مجلده ويعرض العناصر التي يجب كتابتها بعد ذلك.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.