kodelyth-ecc 1.7.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/CLAUDE.md +1 -1
  3. package/MARKETING_PLAN.md +893 -0
  4. package/README.md +23 -3
  5. package/VERSION +1 -1
  6. package/package.json +1 -1
  7. package/scripts/supply-chain/manifest.js +5 -4
  8. package/social/facebook-v150.svg +3 -3
  9. package/social/github-social-preview.svg +6 -6
  10. package/social/readme-hero.svg +6 -6
  11. package/social/section-install.svg +1 -1
  12. package/tests/evolve/stats.test.js +10 -2
  13. package/tests/mcp/client.test.js +8 -4
  14. package/wiki/FAQ.md +2 -2
  15. package/wiki/Home.md +18 -19
  16. package/wiki/Installation-Guide.md +1 -1
  17. package/wiki/Platform-Support.md +116 -213
  18. package/wiki/Skill-Reference.md +1 -1
  19. package/.agent/rules/README.md +0 -108
  20. package/.agent/rules/agents.md +0 -94
  21. package/.agent/rules/code-review.md +0 -124
  22. package/.agent/rules/coding-style.md +0 -122
  23. package/.agent/rules/design-quality.md +0 -63
  24. package/.agent/rules/development-workflow.md +0 -44
  25. package/.agent/rules/git-mastery.md +0 -366
  26. package/.agent/rules/git-workflow.md +0 -24
  27. package/.agent/rules/hooks.md +0 -25
  28. package/.agent/rules/kodelyth-always-on.md +0 -63
  29. package/.agent/rules/kodelyth-quickstart.md +0 -207
  30. package/.agent/rules/observability.md +0 -390
  31. package/.agent/rules/patterns.md +0 -50
  32. package/.agent/rules/performance.md +0 -178
  33. package/.agent/rules/security.md +0 -58
  34. package/.agent/rules/smart-debug.md +0 -241
  35. package/.agent/rules/soul.md +0 -32
  36. package/.agent/rules/testing.md +0 -46
  37. package/.agent/skills/api-guardian.md +0 -279
  38. package/.agent/skills/architect.md +0 -211
  39. package/.agent/skills/build-error-resolver.md +0 -114
  40. package/.agent/skills/chief-of-staff.md +0 -151
  41. package/.agent/skills/code-architect.md +0 -71
  42. package/.agent/skills/code-explorer.md +0 -69
  43. package/.agent/skills/code-reviewer.md +0 -237
  44. package/.agent/skills/code-simplifier.md +0 -47
  45. package/.agent/skills/comment-analyzer.md +0 -45
  46. package/.agent/skills/conversation-analyzer.md +0 -52
  47. package/.agent/skills/cpp-build-resolver.md +0 -90
  48. package/.agent/skills/cpp-reviewer.md +0 -72
  49. package/.agent/skills/csharp-reviewer.md +0 -101
  50. package/.agent/skills/dart-build-resolver.md +0 -201
  51. package/.agent/skills/database-reviewer.md +0 -91
  52. package/.agent/skills/debug-detective.md +0 -409
  53. package/.agent/skills/doc-updater.md +0 -107
  54. package/.agent/skills/docs-lookup.md +0 -68
  55. package/.agent/skills/e2e-runner.md +0 -107
  56. package/.agent/skills/flutter-reviewer.md +0 -243
  57. package/.agent/skills/gan-evaluator.md +0 -209
  58. package/.agent/skills/gan-generator.md +0 -131
  59. package/.agent/skills/gan-planner.md +0 -99
  60. package/.agent/skills/go-build-resolver.md +0 -94
  61. package/.agent/skills/go-reviewer.md +0 -76
  62. package/.agent/skills/harness-optimizer.md +0 -35
  63. package/.agent/skills/healthcare-reviewer.md +0 -83
  64. package/.agent/skills/java-build-resolver.md +0 -153
  65. package/.agent/skills/java-reviewer.md +0 -92
  66. package/.agent/skills/kodelyth-advisor.md +0 -172
  67. package/.agent/skills/kotlin-build-resolver.md +0 -118
  68. package/.agent/skills/kotlin-reviewer.md +0 -159
  69. package/.agent/skills/loop-operator.md +0 -36
  70. package/.agent/skills/migration-guide.md +0 -368
  71. package/.agent/skills/opensource-forker.md +0 -198
  72. package/.agent/skills/opensource-packager.md +0 -249
  73. package/.agent/skills/opensource-sanitizer.md +0 -188
  74. package/.agent/skills/pair-programmer.md +0 -260
  75. package/.agent/skills/performance-optimizer.md +0 -446
  76. package/.agent/skills/planner.md +0 -212
  77. package/.agent/skills/pr-test-analyzer.md +0 -45
  78. package/.agent/skills/python-reviewer.md +0 -98
  79. package/.agent/skills/pytorch-build-resolver.md +0 -120
  80. package/.agent/skills/refactor-cleaner.md +0 -85
  81. package/.agent/skills/rust-build-resolver.md +0 -148
  82. package/.agent/skills/rust-reviewer.md +0 -94
  83. package/.agent/skills/security-reviewer.md +0 -108
  84. package/.agent/skills/seo-specialist.md +0 -62
  85. package/.agent/skills/silent-failure-hunter.md +0 -50
  86. package/.agent/skills/tdd-guide.md +0 -91
  87. package/.agent/skills/type-design-analyzer.md +0 -41
  88. package/.agent/skills/typescript-reviewer.md +0 -112
  89. package/.agent/skills/ux-reviewer.md +0 -483
  90. package/.agent/workflows/agent-sort.md +0 -23
  91. package/.agent/workflows/aside.md +0 -164
  92. package/.agent/workflows/build-fix.md +0 -62
  93. package/.agent/workflows/checkpoint.md +0 -74
  94. package/.agent/workflows/claw.md +0 -23
  95. package/.agent/workflows/code-review.md +0 -289
  96. package/.agent/workflows/context-budget.md +0 -23
  97. package/.agent/workflows/cpp-build.md +0 -173
  98. package/.agent/workflows/cpp-review.md +0 -132
  99. package/.agent/workflows/cpp-test.md +0 -251
  100. package/.agent/workflows/devfleet.md +0 -23
  101. package/.agent/workflows/docs.md +0 -23
  102. package/.agent/workflows/e2e.md +0 -268
  103. package/.agent/workflows/eval.md +0 -23
  104. package/.agent/workflows/evolve.md +0 -178
  105. package/.agent/workflows/feature-dev.md +0 -49
  106. package/.agent/workflows/flutter-build.md +0 -164
  107. package/.agent/workflows/flutter-review.md +0 -116
  108. package/.agent/workflows/flutter-test.md +0 -144
  109. package/.agent/workflows/gan-build.md +0 -99
  110. package/.agent/workflows/gan-design.md +0 -35
  111. package/.agent/workflows/go-build.md +0 -183
  112. package/.agent/workflows/go-review.md +0 -148
  113. package/.agent/workflows/go-test.md +0 -268
  114. package/.agent/workflows/gradle-build.md +0 -70
  115. package/.agent/workflows/harness-audit.md +0 -73
  116. package/.agent/workflows/hookify-configure.md +0 -14
  117. package/.agent/workflows/hookify-help.md +0 -46
  118. package/.agent/workflows/hookify-list.md +0 -21
  119. package/.agent/workflows/hookify.md +0 -50
  120. package/.agent/workflows/instinct-export.md +0 -66
  121. package/.agent/workflows/instinct-import.md +0 -114
  122. package/.agent/workflows/instinct-status.md +0 -59
  123. package/.agent/workflows/jira.md +0 -106
  124. package/.agent/workflows/kotlin-build.md +0 -174
  125. package/.agent/workflows/kotlin-review.md +0 -140
  126. package/.agent/workflows/kotlin-test.md +0 -312
  127. package/.agent/workflows/learn-eval.md +0 -116
  128. package/.agent/workflows/learn.md +0 -70
  129. package/.agent/workflows/loop-start.md +0 -32
  130. package/.agent/workflows/loop-status.md +0 -24
  131. package/.agent/workflows/model-route.md +0 -26
  132. package/.agent/workflows/multi-backend.md +0 -158
  133. package/.agent/workflows/multi-execute.md +0 -315
  134. package/.agent/workflows/multi-frontend.md +0 -158
  135. package/.agent/workflows/multi-plan.md +0 -268
  136. package/.agent/workflows/multi-workflow.md +0 -191
  137. package/.agent/workflows/orchestrate.md +0 -135
  138. package/.agent/workflows/plan.md +0 -117
  139. package/.agent/workflows/pm2.md +0 -272
  140. package/.agent/workflows/projects.md +0 -39
  141. package/.agent/workflows/promote.md +0 -41
  142. package/.agent/workflows/prompt-optimize.md +0 -23
  143. package/.agent/workflows/prp-commit.md +0 -112
  144. package/.agent/workflows/prp-implement.md +0 -385
  145. package/.agent/workflows/prp-plan.md +0 -502
  146. package/.agent/workflows/prp-pr.md +0 -184
  147. package/.agent/workflows/prp-prd.md +0 -447
  148. package/.agent/workflows/prune.md +0 -31
  149. package/.agent/workflows/python-review.md +0 -297
  150. package/.agent/workflows/quality-gate.md +0 -29
  151. package/.agent/workflows/refactor-clean.md +0 -80
  152. package/.agent/workflows/resume-session.md +0 -156
  153. package/.agent/workflows/review-pr.md +0 -37
  154. package/.agent/workflows/rules-distill.md +0 -20
  155. package/.agent/workflows/rust-build.md +0 -187
  156. package/.agent/workflows/rust-review.md +0 -142
  157. package/.agent/workflows/rust-test.md +0 -308
  158. package/.agent/workflows/santa-loop.md +0 -175
  159. package/.agent/workflows/save-session.md +0 -275
  160. package/.agent/workflows/sessions.md +0 -333
  161. package/.agent/workflows/setup-pm.md +0 -80
  162. package/.agent/workflows/skill-create.md +0 -174
  163. package/.agent/workflows/skill-health.md +0 -54
  164. package/.agent/workflows/tdd.md +0 -231
  165. package/.agent/workflows/test-coverage.md +0 -69
  166. package/.agent/workflows/update-codemaps.md +0 -72
  167. package/.agent/workflows/update-docs.md +0 -84
  168. package/.agent/workflows/verify.md +0 -23
@@ -1,158 +0,0 @@
1
- # Backend - Backend-Focused Development
2
-
3
- Backend-focused workflow (Research → Ideation → Plan → Execute → Optimize → Review), Codex-led.
4
-
5
- ## Usage
6
-
7
- ```bash
8
- /backend <backend task description>
9
- ```
10
-
11
- ## Context
12
-
13
- - Backend task: $ARGUMENTS
14
- - Codex-led, Gemini for auxiliary reference
15
- - Applicable: API design, algorithm implementation, database optimization, business logic
16
-
17
- ## Your Role
18
-
19
- You are the **Backend Orchestrator**, coordinating multi-model collaboration for server-side tasks (Research → Ideation → Plan → Execute → Optimize → Review).
20
-
21
- **Collaborative Models**:
22
- - **Codex** – Backend logic, algorithms (**Backend authority, trustworthy**)
23
- - **Gemini** – Frontend perspective (**Backend opinions for reference only**)
24
- - **Claude (self)** – Orchestration, planning, execution, delivery
25
-
26
- ---
27
-
28
- ## Multi-Model Call Specification
29
-
30
- **Call Syntax**:
31
-
32
- ```
33
- # New session call
34
- Bash({
35
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex - \"$PWD\" <<'EOF'
36
- ROLE_FILE: <role prompt path>
37
- <TASK>
38
- Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>
39
- Context: <project context and analysis from previous phases>
40
- </TASK>
41
- OUTPUT: Expected output format
42
- EOF",
43
- run_in_background: false,
44
- timeout: 3600000,
45
- description: "Brief description"
46
- })
47
-
48
- # Resume session call
49
- Bash({
50
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex resume <SESSION_ID> - \"$PWD\" <<'EOF'
51
- ROLE_FILE: <role prompt path>
52
- <TASK>
53
- Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>
54
- Context: <project context and analysis from previous phases>
55
- </TASK>
56
- OUTPUT: Expected output format
57
- EOF",
58
- run_in_background: false,
59
- timeout: 3600000,
60
- description: "Brief description"
61
- })
62
- ```
63
-
64
- **Role Prompts**:
65
-
66
- | Phase | Codex |
67
- |-------|-------|
68
- | Analysis | `~/.claude/.ccg/prompts/codex/analyzer.md` |
69
- | Planning | `~/.claude/.ccg/prompts/codex/architect.md` |
70
- | Review | `~/.claude/.ccg/prompts/codex/reviewer.md` |
71
-
72
- **Session Reuse**: Each call returns `SESSION_ID: xxx`, use `resume xxx` for subsequent phases. Save `CODEX_SESSION` in Phase 2, use `resume` in Phases 3 and 5.
73
-
74
- ---
75
-
76
- ## Communication Guidelines
77
-
78
- 1. Start responses with mode label `[Mode: X]`, initial is `[Mode: Research]`
79
- 2. Follow strict sequence: `Research → Ideation → Plan → Execute → Optimize → Review`
80
- 3. Use `AskUserQuestion` tool for user interaction when needed (e.g., confirmation/selection/approval)
81
-
82
- ---
83
-
84
- ## Core Workflow
85
-
86
- ### Phase 0: Prompt Enhancement (Optional)
87
-
88
- `[Mode: Prepare]` - If ace-tool MCP available, call `mcp__ace-tool__enhance_prompt`, **replace original $ARGUMENTS with enhanced result for subsequent Codex calls**. If unavailable, use `$ARGUMENTS` as-is.
89
-
90
- ### Phase 1: Research
91
-
92
- `[Mode: Research]` - Understand requirements and gather context
93
-
94
- 1. **Code Retrieval** (if ace-tool MCP available): Call `mcp__ace-tool__search_context` to retrieve existing APIs, data models, service architecture. If unavailable, use built-in tools: `Glob` for file discovery, `Grep` for symbol/API search, `Read` for context gathering, `Task` (Explore agent) for deeper exploration.
95
- 2. Requirement completeness score (0-10): >=7 continue, <7 stop and supplement
96
-
97
- ### Phase 2: Ideation
98
-
99
- `[Mode: Ideation]` - Codex-led analysis
100
-
101
- **MUST call Codex** (follow call specification above):
102
- - ROLE_FILE: `~/.claude/.ccg/prompts/codex/analyzer.md`
103
- - Requirement: Enhanced requirement (or $ARGUMENTS if not enhanced)
104
- - Context: Project context from Phase 1
105
- - OUTPUT: Technical feasibility analysis, recommended solutions (at least 2), risk assessment
106
-
107
- **Save SESSION_ID** (`CODEX_SESSION`) for subsequent phase reuse.
108
-
109
- Output solutions (at least 2), wait for user selection.
110
-
111
- ### Phase 3: Planning
112
-
113
- `[Mode: Plan]` - Codex-led planning
114
-
115
- **MUST call Codex** (use `resume <CODEX_SESSION>` to reuse session):
116
- - ROLE_FILE: `~/.claude/.ccg/prompts/codex/architect.md`
117
- - Requirement: User's selected solution
118
- - Context: Analysis results from Phase 2
119
- - OUTPUT: File structure, function/class design, dependency relationships
120
-
121
- Claude synthesizes plan, save to `.claude/plan/task-name.md` after user approval.
122
-
123
- ### Phase 4: Implementation
124
-
125
- `[Mode: Execute]` - Code development
126
-
127
- - Strictly follow approved plan
128
- - Follow existing project code standards
129
- - Ensure error handling, security, performance optimization
130
-
131
- ### Phase 5: Optimization
132
-
133
- `[Mode: Optimize]` - Codex-led review
134
-
135
- **MUST call Codex** (follow call specification above):
136
- - ROLE_FILE: `~/.claude/.ccg/prompts/codex/reviewer.md`
137
- - Requirement: Review the following backend code changes
138
- - Context: git diff or code content
139
- - OUTPUT: Security, performance, error handling, API compliance issues list
140
-
141
- Integrate review feedback, execute optimization after user confirmation.
142
-
143
- ### Phase 6: Quality Review
144
-
145
- `[Mode: Review]` - Final evaluation
146
-
147
- - Check completion against plan
148
- - Run tests to verify functionality
149
- - Report issues and recommendations
150
-
151
- ---
152
-
153
- ## Key Rules
154
-
155
- 1. **Codex backend opinions are trustworthy**
156
- 2. **Gemini backend opinions for reference only**
157
- 3. External models have **zero filesystem write access**
158
- 4. Claude handles all code writes and file operations
@@ -1,315 +0,0 @@
1
- # Execute - Multi-Model Collaborative Execution
2
-
3
- Multi-model collaborative execution - Get prototype from plan → Claude refactors and implements → Multi-model audit and delivery.
4
-
5
- $ARGUMENTS
6
-
7
- ---
8
-
9
- ## Core Protocols
10
-
11
- - **Language Protocol**: Use **English** when interacting with tools/models, communicate with user in their language
12
- - **Code Sovereignty**: External models have **zero filesystem write access**, all modifications by Claude
13
- - **Dirty Prototype Refactoring**: Treat Codex/Gemini Unified Diff as "dirty prototype", must refactor to production-grade code
14
- - **Stop-Loss Mechanism**: Do not proceed to next phase until current phase output is validated
15
- - **Prerequisite**: Only execute after user explicitly replies "Y" to `/ccg:plan` output (if missing, must confirm first)
16
-
17
- ---
18
-
19
- ## Multi-Model Call Specification
20
-
21
- **Call Syntax** (parallel: use `run_in_background: true`):
22
-
23
- ```
24
- # Resume session call (recommended) - Implementation Prototype
25
- Bash({
26
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"$PWD\" <<'EOF'
27
- ROLE_FILE: <role prompt path>
28
- <TASK>
29
- Requirement: <task description>
30
- Context: <plan content + target files>
31
- </TASK>
32
- OUTPUT: Unified Diff Patch ONLY. Strictly prohibit any actual modifications.
33
- EOF",
34
- run_in_background: true,
35
- timeout: 3600000,
36
- description: "Brief description"
37
- })
38
-
39
- # New session call - Implementation Prototype
40
- Bash({
41
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"$PWD\" <<'EOF'
42
- ROLE_FILE: <role prompt path>
43
- <TASK>
44
- Requirement: <task description>
45
- Context: <plan content + target files>
46
- </TASK>
47
- OUTPUT: Unified Diff Patch ONLY. Strictly prohibit any actual modifications.
48
- EOF",
49
- run_in_background: true,
50
- timeout: 3600000,
51
- description: "Brief description"
52
- })
53
- ```
54
-
55
- **Audit Call Syntax** (Code Review / Audit):
56
-
57
- ```
58
- Bash({
59
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"$PWD\" <<'EOF'
60
- ROLE_FILE: <role prompt path>
61
- <TASK>
62
- Scope: Audit the final code changes.
63
- Inputs:
64
- - The applied patch (git diff / final unified diff)
65
- - The touched files (relevant excerpts if needed)
66
- Constraints:
67
- - Do NOT modify any files.
68
- - Do NOT output tool commands that assume filesystem access.
69
- </TASK>
70
- OUTPUT:
71
- 1) A prioritized list of issues (severity, file, rationale)
72
- 2) Concrete fixes; if code changes are needed, include a Unified Diff Patch in a fenced code block.
73
- EOF",
74
- run_in_background: true,
75
- timeout: 3600000,
76
- description: "Brief description"
77
- })
78
- ```
79
-
80
- **Model Parameter Notes**:
81
- - `{{GEMINI_MODEL_FLAG}}`: When using `--backend gemini`, replace with `--gemini-model gemini-3-pro-preview` (note trailing space); use empty string for codex
82
-
83
- **Role Prompts**:
84
-
85
- | Phase | Codex | Gemini |
86
- |-------|-------|--------|
87
- | Implementation | `~/.claude/.ccg/prompts/codex/architect.md` | `~/.claude/.ccg/prompts/gemini/frontend.md` |
88
- | Review | `~/.claude/.ccg/prompts/codex/reviewer.md` | `~/.claude/.ccg/prompts/gemini/reviewer.md` |
89
-
90
- **Session Reuse**: If `/ccg:plan` provided SESSION_ID, use `resume <SESSION_ID>` to reuse context.
91
-
92
- **Wait for Background Tasks** (max timeout 600000ms = 10 minutes):
93
-
94
- ```
95
- TaskOutput({ task_id: "<task_id>", block: true, timeout: 600000 })
96
- ```
97
-
98
- **IMPORTANT**:
99
- - Must specify `timeout: 600000`, otherwise default 30 seconds will cause premature timeout
100
- - If still incomplete after 10 minutes, continue polling with `TaskOutput`, **NEVER kill the process**
101
- - If waiting is skipped due to timeout, **MUST call `AskUserQuestion` to ask user whether to continue waiting or kill task**
102
-
103
- ---
104
-
105
- ## Execution Workflow
106
-
107
- **Execute Task**: $ARGUMENTS
108
-
109
- ### Phase 0: Read Plan
110
-
111
- `[Mode: Prepare]`
112
-
113
- 1. **Identify Input Type**:
114
- - Plan file path (e.g., `.claude/plan/xxx.md`)
115
- - Direct task description
116
-
117
- 2. **Read Plan Content**:
118
- - If plan file path provided, read and parse
119
- - Extract: task type, implementation steps, key files, SESSION_ID
120
-
121
- 3. **Pre-Execution Confirmation**:
122
- - If input is "direct task description" or plan missing `SESSION_ID` / key files: confirm with user first
123
- - If cannot confirm user replied "Y" to plan: must confirm again before proceeding
124
-
125
- 4. **Task Type Routing**:
126
-
127
- | Task Type | Detection | Route |
128
- |-----------|-----------|-------|
129
- | **Frontend** | Pages, components, UI, styles, layout | Gemini |
130
- | **Backend** | API, interfaces, database, logic, algorithms | Codex |
131
- | **Fullstack** | Contains both frontend and backend | Codex ∥ Gemini parallel |
132
-
133
- ---
134
-
135
- ### Phase 1: Quick Context Retrieval
136
-
137
- `[Mode: Retrieval]`
138
-
139
- **If ace-tool MCP is available**, use it for quick context retrieval:
140
-
141
- Based on "Key Files" list in plan, call `mcp__ace-tool__search_context`:
142
-
143
- ```
144
- mcp__ace-tool__search_context({
145
- query: "<semantic query based on plan content, including key files, modules, function names>",
146
- project_root_path: "$PWD"
147
- })
148
- ```
149
-
150
- **Retrieval Strategy**:
151
- - Extract target paths from plan's "Key Files" table
152
- - Build semantic query covering: entry files, dependency modules, related type definitions
153
- - If results insufficient, add 1-2 recursive retrievals
154
-
155
- **If ace-tool MCP is NOT available**, use Claude Code built-in tools as fallback:
156
- 1. **Glob**: Find target files from plan's "Key Files" table (e.g., `Glob("src/components/**/*.tsx")`)
157
- 2. **Grep**: Search for key symbols, function names, type definitions across the codebase
158
- 3. **Read**: Read the discovered files to gather complete context
159
- 4. **Task (Explore agent)**: For broader exploration, use `Task` with `subagent_type: "Explore"`
160
-
161
- **After Retrieval**:
162
- - Organize retrieved code snippets
163
- - Confirm complete context for implementation
164
- - Proceed to Phase 3
165
-
166
- ---
167
-
168
- ### Phase 3: Prototype Acquisition
169
-
170
- `[Mode: Prototype]`
171
-
172
- **Route Based on Task Type**:
173
-
174
- #### Route A: Frontend/UI/Styles → Gemini
175
-
176
- **Limit**: Context < 32k tokens
177
-
178
- 1. Call Gemini (use `~/.claude/.ccg/prompts/gemini/frontend.md`)
179
- 2. Input: Plan content + retrieved context + target files
180
- 3. OUTPUT: `Unified Diff Patch ONLY. Strictly prohibit any actual modifications.`
181
- 4. **Gemini is frontend design authority, its CSS/React/Vue prototype is the final visual baseline**
182
- 5. **WARNING**: Ignore Gemini's backend logic suggestions
183
- 6. If plan contains `GEMINI_SESSION`: prefer `resume <GEMINI_SESSION>`
184
-
185
- #### Route B: Backend/Logic/Algorithms → Codex
186
-
187
- 1. Call Codex (use `~/.claude/.ccg/prompts/codex/architect.md`)
188
- 2. Input: Plan content + retrieved context + target files
189
- 3. OUTPUT: `Unified Diff Patch ONLY. Strictly prohibit any actual modifications.`
190
- 4. **Codex is backend logic authority, leverage its logical reasoning and debug capabilities**
191
- 5. If plan contains `CODEX_SESSION`: prefer `resume <CODEX_SESSION>`
192
-
193
- #### Route C: Fullstack → Parallel Calls
194
-
195
- 1. **Parallel Calls** (`run_in_background: true`):
196
- - Gemini: Handle frontend part
197
- - Codex: Handle backend part
198
- 2. Wait for both models' complete results with `TaskOutput`
199
- 3. Each uses corresponding `SESSION_ID` from plan for `resume` (create new session if missing)
200
-
201
- **Follow the `IMPORTANT` instructions in `Multi-Model Call Specification` above**
202
-
203
- ---
204
-
205
- ### Phase 4: Code Implementation
206
-
207
- `[Mode: Implement]`
208
-
209
- **Claude as Code Sovereign executes the following steps**:
210
-
211
- 1. **Read Diff**: Parse Unified Diff Patch returned by Codex/Gemini
212
-
213
- 2. **Mental Sandbox**:
214
- - Simulate applying Diff to target files
215
- - Check logical consistency
216
- - Identify potential conflicts or side effects
217
-
218
- 3. **Refactor and Clean**:
219
- - Refactor "dirty prototype" to **highly readable, maintainable, enterprise-grade code**
220
- - Remove redundant code
221
- - Ensure compliance with project's existing code standards
222
- - **Do not generate comments/docs unless necessary**, code should be self-explanatory
223
-
224
- 4. **Minimal Scope**:
225
- - Changes limited to requirement scope only
226
- - **Mandatory review** for side effects
227
- - Make targeted corrections
228
-
229
- 5. **Apply Changes**:
230
- - Use Edit/Write tools to execute actual modifications
231
- - **Only modify necessary code**, never affect user's other existing functionality
232
-
233
- 6. **Self-Verification** (strongly recommended):
234
- - Run project's existing lint / typecheck / tests (prioritize minimal related scope)
235
- - If failed: fix regressions first, then proceed to Phase 5
236
-
237
- ---
238
-
239
- ### Phase 5: Audit and Delivery
240
-
241
- `[Mode: Audit]`
242
-
243
- #### 5.1 Automatic Audit
244
-
245
- **After changes take effect, MUST immediately parallel call** Codex and Gemini for Code Review:
246
-
247
- 1. **Codex Review** (`run_in_background: true`):
248
- - ROLE_FILE: `~/.claude/.ccg/prompts/codex/reviewer.md`
249
- - Input: Changed Diff + target files
250
- - Focus: Security, performance, error handling, logic correctness
251
-
252
- 2. **Gemini Review** (`run_in_background: true`):
253
- - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/reviewer.md`
254
- - Input: Changed Diff + target files
255
- - Focus: Accessibility, design consistency, user experience
256
-
257
- Wait for both models' complete review results with `TaskOutput`. Prefer reusing Phase 3 sessions (`resume <SESSION_ID>`) for context consistency.
258
-
259
- #### 5.2 Integrate and Fix
260
-
261
- 1. Synthesize Codex + Gemini review feedback
262
- 2. Weigh by trust rules: Backend follows Codex, Frontend follows Gemini
263
- 3. Execute necessary fixes
264
- 4. Repeat Phase 5.1 as needed (until risk is acceptable)
265
-
266
- #### 5.3 Delivery Confirmation
267
-
268
- After audit passes, report to user:
269
-
270
- ```markdown
271
- ## Execution Complete
272
-
273
- ### Change Summary
274
- | File | Operation | Description |
275
- |------|-----------|-------------|
276
- | path/to/file.ts | Modified | Description |
277
-
278
- ### Audit Results
279
- - Codex: <Passed/Found N issues>
280
- - Gemini: <Passed/Found N issues>
281
-
282
- ### Recommendations
283
- 1. [ ] <Suggested test steps>
284
- 2. [ ] <Suggested verification steps>
285
- ```
286
-
287
- ---
288
-
289
- ## Key Rules
290
-
291
- 1. **Code Sovereignty** – All file modifications by Claude, external models have zero write access
292
- 2. **Dirty Prototype Refactoring** – Codex/Gemini output treated as draft, must refactor
293
- 3. **Trust Rules** – Backend follows Codex, Frontend follows Gemini
294
- 4. **Minimal Changes** – Only modify necessary code, no side effects
295
- 5. **Mandatory Audit** – Must perform multi-model Code Review after changes
296
-
297
- ---
298
-
299
- ## Usage
300
-
301
- ```bash
302
- # Execute plan file
303
- /ccg:execute .claude/plan/feature-name.md
304
-
305
- # Execute task directly (for plans already discussed in context)
306
- /ccg:execute implement user authentication based on previous plan
307
- ```
308
-
309
- ---
310
-
311
- ## Relationship with /ccg:plan
312
-
313
- 1. `/ccg:plan` generates plan + SESSION_ID
314
- 2. User confirms with "Y"
315
- 3. `/ccg:execute` reads plan, reuses SESSION_ID, executes implementation
@@ -1,158 +0,0 @@
1
- # Frontend - Frontend-Focused Development
2
-
3
- Frontend-focused workflow (Research → Ideation → Plan → Execute → Optimize → Review), Gemini-led.
4
-
5
- ## Usage
6
-
7
- ```bash
8
- /frontend <UI task description>
9
- ```
10
-
11
- ## Context
12
-
13
- - Frontend task: $ARGUMENTS
14
- - Gemini-led, Codex for auxiliary reference
15
- - Applicable: Component design, responsive layout, UI animations, style optimization
16
-
17
- ## Your Role
18
-
19
- You are the **Frontend Orchestrator**, coordinating multi-model collaboration for UI/UX tasks (Research → Ideation → Plan → Execute → Optimize → Review).
20
-
21
- **Collaborative Models**:
22
- - **Gemini** – Frontend UI/UX (**Frontend authority, trustworthy**)
23
- - **Codex** – Backend perspective (**Frontend opinions for reference only**)
24
- - **Claude (self)** – Orchestration, planning, execution, delivery
25
-
26
- ---
27
-
28
- ## Multi-Model Call Specification
29
-
30
- **Call Syntax**:
31
-
32
- ```
33
- # New session call
34
- Bash({
35
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend gemini --gemini-model gemini-3-pro-preview - \"$PWD\" <<'EOF'
36
- ROLE_FILE: <role prompt path>
37
- <TASK>
38
- Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>
39
- Context: <project context and analysis from previous phases>
40
- </TASK>
41
- OUTPUT: Expected output format
42
- EOF",
43
- run_in_background: false,
44
- timeout: 3600000,
45
- description: "Brief description"
46
- })
47
-
48
- # Resume session call
49
- Bash({
50
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend gemini --gemini-model gemini-3-pro-preview resume <SESSION_ID> - \"$PWD\" <<'EOF'
51
- ROLE_FILE: <role prompt path>
52
- <TASK>
53
- Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>
54
- Context: <project context and analysis from previous phases>
55
- </TASK>
56
- OUTPUT: Expected output format
57
- EOF",
58
- run_in_background: false,
59
- timeout: 3600000,
60
- description: "Brief description"
61
- })
62
- ```
63
-
64
- **Role Prompts**:
65
-
66
- | Phase | Gemini |
67
- |-------|--------|
68
- | Analysis | `~/.claude/.ccg/prompts/gemini/analyzer.md` |
69
- | Planning | `~/.claude/.ccg/prompts/gemini/architect.md` |
70
- | Review | `~/.claude/.ccg/prompts/gemini/reviewer.md` |
71
-
72
- **Session Reuse**: Each call returns `SESSION_ID: xxx`, use `resume xxx` for subsequent phases. Save `GEMINI_SESSION` in Phase 2, use `resume` in Phases 3 and 5.
73
-
74
- ---
75
-
76
- ## Communication Guidelines
77
-
78
- 1. Start responses with mode label `[Mode: X]`, initial is `[Mode: Research]`
79
- 2. Follow strict sequence: `Research → Ideation → Plan → Execute → Optimize → Review`
80
- 3. Use `AskUserQuestion` tool for user interaction when needed (e.g., confirmation/selection/approval)
81
-
82
- ---
83
-
84
- ## Core Workflow
85
-
86
- ### Phase 0: Prompt Enhancement (Optional)
87
-
88
- `[Mode: Prepare]` - If ace-tool MCP available, call `mcp__ace-tool__enhance_prompt`, **replace original $ARGUMENTS with enhanced result for subsequent Gemini calls**. If unavailable, use `$ARGUMENTS` as-is.
89
-
90
- ### Phase 1: Research
91
-
92
- `[Mode: Research]` - Understand requirements and gather context
93
-
94
- 1. **Code Retrieval** (if ace-tool MCP available): Call `mcp__ace-tool__search_context` to retrieve existing components, styles, design system. If unavailable, use built-in tools: `Glob` for file discovery, `Grep` for component/style search, `Read` for context gathering, `Task` (Explore agent) for deeper exploration.
95
- 2. Requirement completeness score (0-10): >=7 continue, <7 stop and supplement
96
-
97
- ### Phase 2: Ideation
98
-
99
- `[Mode: Ideation]` - Gemini-led analysis
100
-
101
- **MUST call Gemini** (follow call specification above):
102
- - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/analyzer.md`
103
- - Requirement: Enhanced requirement (or $ARGUMENTS if not enhanced)
104
- - Context: Project context from Phase 1
105
- - OUTPUT: UI feasibility analysis, recommended solutions (at least 2), UX evaluation
106
-
107
- **Save SESSION_ID** (`GEMINI_SESSION`) for subsequent phase reuse.
108
-
109
- Output solutions (at least 2), wait for user selection.
110
-
111
- ### Phase 3: Planning
112
-
113
- `[Mode: Plan]` - Gemini-led planning
114
-
115
- **MUST call Gemini** (use `resume <GEMINI_SESSION>` to reuse session):
116
- - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/architect.md`
117
- - Requirement: User's selected solution
118
- - Context: Analysis results from Phase 2
119
- - OUTPUT: Component structure, UI flow, styling approach
120
-
121
- Claude synthesizes plan, save to `.claude/plan/task-name.md` after user approval.
122
-
123
- ### Phase 4: Implementation
124
-
125
- `[Mode: Execute]` - Code development
126
-
127
- - Strictly follow approved plan
128
- - Follow existing project design system and code standards
129
- - Ensure responsiveness, accessibility
130
-
131
- ### Phase 5: Optimization
132
-
133
- `[Mode: Optimize]` - Gemini-led review
134
-
135
- **MUST call Gemini** (follow call specification above):
136
- - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/reviewer.md`
137
- - Requirement: Review the following frontend code changes
138
- - Context: git diff or code content
139
- - OUTPUT: Accessibility, responsiveness, performance, design consistency issues list
140
-
141
- Integrate review feedback, execute optimization after user confirmation.
142
-
143
- ### Phase 6: Quality Review
144
-
145
- `[Mode: Review]` - Final evaluation
146
-
147
- - Check completion against plan
148
- - Verify responsiveness and accessibility
149
- - Report issues and recommendations
150
-
151
- ---
152
-
153
- ## Key Rules
154
-
155
- 1. **Gemini frontend opinions are trustworthy**
156
- 2. **Codex frontend opinions for reference only**
157
- 3. External models have **zero filesystem write access**
158
- 4. Claude handles all code writes and file operations