@heyai-rules/pilo-masterkit 1.2.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 (305) hide show
  1. package/.agent/agents/PILO_MASTER.md +77 -0
  2. package/.agent/agents/architect.md +211 -0
  3. package/.agent/agents/backend-specialist.md +263 -0
  4. package/.agent/agents/build-error-resolver.md +114 -0
  5. package/.agent/agents/chief-of-staff.md +151 -0
  6. package/.agent/agents/code-archaeologist.md +106 -0
  7. package/.agent/agents/code-reviewer.md +237 -0
  8. package/.agent/agents/cpp-build-resolver.md +90 -0
  9. package/.agent/agents/cpp-reviewer.md +72 -0
  10. package/.agent/agents/database-architect.md +226 -0
  11. package/.agent/agents/database-reviewer.md +91 -0
  12. package/.agent/agents/debugger.md +225 -0
  13. package/.agent/agents/devops-engineer.md +242 -0
  14. package/.agent/agents/doc-updater.md +107 -0
  15. package/.agent/agents/docs-lookup.md +68 -0
  16. package/.agent/agents/documentation-writer.md +104 -0
  17. package/.agent/agents/e2e-runner.md +107 -0
  18. package/.agent/agents/explorer-agent.md +73 -0
  19. package/.agent/agents/flutter-reviewer.md +243 -0
  20. package/.agent/agents/frontend-specialist.md +593 -0
  21. package/.agent/agents/game-developer.md +162 -0
  22. package/.agent/agents/go-build-resolver.md +94 -0
  23. package/.agent/agents/go-reviewer.md +76 -0
  24. package/.agent/agents/harness-optimizer.md +35 -0
  25. package/.agent/agents/java-build-resolver.md +153 -0
  26. package/.agent/agents/java-reviewer.md +92 -0
  27. package/.agent/agents/kotlin-build-resolver.md +118 -0
  28. package/.agent/agents/kotlin-reviewer.md +159 -0
  29. package/.agent/agents/loop-operator.md +36 -0
  30. package/.agent/agents/mobile-developer.md +377 -0
  31. package/.agent/agents/orchestrator.md +416 -0
  32. package/.agent/agents/penetration-tester.md +188 -0
  33. package/.agent/agents/performance-optimizer.md +187 -0
  34. package/.agent/agents/planner.md +212 -0
  35. package/.agent/agents/product-manager.md +112 -0
  36. package/.agent/agents/product-owner.md +95 -0
  37. package/.agent/agents/project-planner.md +406 -0
  38. package/.agent/agents/python-reviewer.md +98 -0
  39. package/.agent/agents/pytorch-build-resolver.md +120 -0
  40. package/.agent/agents/qa-automation-engineer.md +103 -0
  41. package/.agent/agents/refactor-cleaner.md +85 -0
  42. package/.agent/agents/rust-build-resolver.md +148 -0
  43. package/.agent/agents/rust-reviewer.md +94 -0
  44. package/.agent/agents/security-auditor.md +170 -0
  45. package/.agent/agents/security-reviewer.md +108 -0
  46. package/.agent/agents/seo-specialist.md +111 -0
  47. package/.agent/agents/tdd-guide.md +91 -0
  48. package/.agent/agents/test-engineer.md +158 -0
  49. package/.agent/agents/typescript-reviewer.md +112 -0
  50. package/.agent/rules/ARCHITECTURAL_BLUEPRINTS.md +62 -0
  51. package/.agent/rules/CODE_CRAFTSMANSHIP.md +69 -0
  52. package/.agent/rules/CORE_RULES.md +72 -0
  53. package/.agent/rules/PROJECT_MAP.md +58 -0
  54. package/.agent/rules/QUALITY_ASSURANCE.md +54 -0
  55. package/.agent/rules/SECURITY_ARMOR.md +44 -0
  56. package/.agent/rules/VERSION_ORCHESTRATION.md +64 -0
  57. package/.agent/rules/WORKFLOW_ORCHESTRATION.md +55 -0
  58. package/.agent/scripts/auto_preview.py +148 -0
  59. package/.agent/scripts/checklist.py +217 -0
  60. package/.agent/scripts/session_manager.py +120 -0
  61. package/.agent/scripts/verify_all.py +327 -0
  62. package/.agent/skills/api-patterns/SKILL.md +81 -0
  63. package/.agent/skills/api-patterns/api-style.md +42 -0
  64. package/.agent/skills/api-patterns/auth.md +24 -0
  65. package/.agent/skills/api-patterns/documentation.md +26 -0
  66. package/.agent/skills/api-patterns/graphql.md +41 -0
  67. package/.agent/skills/api-patterns/rate-limiting.md +31 -0
  68. package/.agent/skills/api-patterns/response.md +37 -0
  69. package/.agent/skills/api-patterns/rest.md +40 -0
  70. package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  71. package/.agent/skills/api-patterns/security-testing.md +122 -0
  72. package/.agent/skills/api-patterns/trpc.md +41 -0
  73. package/.agent/skills/api-patterns/versioning.md +22 -0
  74. package/.agent/skills/app-builder/SKILL.md +75 -0
  75. package/.agent/skills/app-builder/agent-coordination.md +71 -0
  76. package/.agent/skills/app-builder/feature-building.md +53 -0
  77. package/.agent/skills/app-builder/project-detection.md +34 -0
  78. package/.agent/skills/app-builder/scaffolding.md +118 -0
  79. package/.agent/skills/app-builder/tech-stack.md +41 -0
  80. package/.agent/skills/app-builder/templates/SKILL.md +39 -0
  81. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  82. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  83. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  84. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  85. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  86. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  87. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  88. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
  89. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
  90. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
  91. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
  92. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  93. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
  94. package/.agent/skills/architecture/SKILL.md +55 -0
  95. package/.agent/skills/architecture/context-discovery.md +43 -0
  96. package/.agent/skills/architecture/examples.md +94 -0
  97. package/.agent/skills/architecture/pattern-selection.md +68 -0
  98. package/.agent/skills/architecture/patterns-reference.md +50 -0
  99. package/.agent/skills/architecture/trade-off-analysis.md +77 -0
  100. package/.agent/skills/bash-linux/SKILL.md +199 -0
  101. package/.agent/skills/behavioral-modes/SKILL.md +242 -0
  102. package/.agent/skills/brainstorming/SKILL.md +163 -0
  103. package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
  104. package/.agent/skills/clean-code/SKILL.md +201 -0
  105. package/.agent/skills/code-review-checklist/SKILL.md +109 -0
  106. package/.agent/skills/database-design/SKILL.md +52 -0
  107. package/.agent/skills/database-design/database-selection.md +43 -0
  108. package/.agent/skills/database-design/indexing.md +39 -0
  109. package/.agent/skills/database-design/migrations.md +48 -0
  110. package/.agent/skills/database-design/optimization.md +36 -0
  111. package/.agent/skills/database-design/orm-selection.md +30 -0
  112. package/.agent/skills/database-design/schema-design.md +56 -0
  113. package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
  114. package/.agent/skills/deployment-procedures/SKILL.md +241 -0
  115. package/.agent/skills/doc.md +177 -0
  116. package/.agent/skills/documentation-templates/SKILL.md +194 -0
  117. package/.agent/skills/frontend-design/SKILL.md +452 -0
  118. package/.agent/skills/frontend-design/animation-guide.md +331 -0
  119. package/.agent/skills/frontend-design/color-system.md +311 -0
  120. package/.agent/skills/frontend-design/decision-trees.md +418 -0
  121. package/.agent/skills/frontend-design/motion-graphics.md +306 -0
  122. package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  123. package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  124. package/.agent/skills/frontend-design/typography-system.md +345 -0
  125. package/.agent/skills/frontend-design/ux-psychology.md +1116 -0
  126. package/.agent/skills/frontend-design/visual-effects.md +383 -0
  127. package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  128. package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  129. package/.agent/skills/game-development/SKILL.md +167 -0
  130. package/.agent/skills/game-development/game-art/SKILL.md +185 -0
  131. package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  132. package/.agent/skills/game-development/game-design/SKILL.md +129 -0
  133. package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  134. package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  135. package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  136. package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  137. package/.agent/skills/game-development/web-games/SKILL.md +150 -0
  138. package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
  139. package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
  140. package/.agent/skills/i18n-localization/SKILL.md +154 -0
  141. package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  142. package/.agent/skills/intelligent-routing/SKILL.md +335 -0
  143. package/.agent/skills/lint-and-validate/SKILL.md +45 -0
  144. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +184 -0
  145. package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
  146. package/.agent/skills/mcp-builder/SKILL.md +176 -0
  147. package/.agent/skills/mobile-design/SKILL.md +394 -0
  148. package/.agent/skills/mobile-design/decision-trees.md +516 -0
  149. package/.agent/skills/mobile-design/mobile-backend.md +491 -0
  150. package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
  151. package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
  152. package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
  153. package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
  154. package/.agent/skills/mobile-design/mobile-performance.md +767 -0
  155. package/.agent/skills/mobile-design/mobile-testing.md +356 -0
  156. package/.agent/skills/mobile-design/mobile-typography.md +433 -0
  157. package/.agent/skills/mobile-design/platform-android.md +666 -0
  158. package/.agent/skills/mobile-design/platform-ios.md +561 -0
  159. package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
  160. package/.agent/skills/mobile-design/touch-psychology.md +537 -0
  161. package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +351 -0
  162. package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
  163. package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
  164. package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
  165. package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
  166. package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
  167. package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
  168. package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
  169. package/.agent/skills/nextjs-react-expert/9-cache-components.md +103 -0
  170. package/.agent/skills/nextjs-react-expert/SKILL.md +293 -0
  171. package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
  172. package/.agent/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
  173. package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
  174. package/.agent/skills/parallel-agents/SKILL.md +175 -0
  175. package/.agent/skills/performance-profiling/SKILL.md +143 -0
  176. package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
  177. package/.agent/skills/plan-writing/SKILL.md +152 -0
  178. package/.agent/skills/powershell-windows/SKILL.md +167 -0
  179. package/.agent/skills/python-patterns/SKILL.md +441 -0
  180. package/.agent/skills/red-team-tactics/SKILL.md +199 -0
  181. package/.agent/skills/rust-pro/SKILL.md +176 -0
  182. package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
  183. package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  184. package/.agent/skills/server-management/SKILL.md +161 -0
  185. package/.agent/skills/systematic-debugging/SKILL.md +109 -0
  186. package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
  187. package/.agent/skills/tdd-workflow/SKILL.md +149 -0
  188. package/.agent/skills/testing-patterns/SKILL.md +178 -0
  189. package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
  190. package/.agent/skills/ui-ux-pro-max/SKILL.md +292 -0
  191. package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  192. package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  193. package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
  194. package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  195. package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  196. package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  197. package/.agent/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  198. package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  199. package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  200. package/.agent/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  201. package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  202. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  203. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  204. package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  205. package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  206. package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  207. package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  208. package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  209. package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  210. package/.agent/skills/ui-ux-pro-max/data/styles.csv +68 -0
  211. package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  212. package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  213. package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  214. package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  215. package/.agent/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-314.pyc +0 -0
  216. package/.agent/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-314.pyc +0 -0
  217. package/.agent/skills/ui-ux-pro-max/scripts/__pycache__/search.cpython-314.pyc +0 -0
  218. package/.agent/skills/ui-ux-pro-max/scripts/core.py +253 -0
  219. package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
  220. package/.agent/skills/ui-ux-pro-max/scripts/search.py +114 -0
  221. package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
  222. package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
  223. package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  224. package/.agent/skills/web-design-guidelines/SKILL.md +57 -0
  225. package/.agent/skills/webapp-testing/SKILL.md +187 -0
  226. package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  227. package/.agent/tasks/lessons.md +40 -0
  228. package/.agent/tasks/todo.md +33 -0
  229. package/.agent/workflows/aside.md +164 -0
  230. package/.agent/workflows/brainstorm.md +113 -0
  231. package/.agent/workflows/build-fix.md +62 -0
  232. package/.agent/workflows/checkpoint.md +74 -0
  233. package/.agent/workflows/claw.md +51 -0
  234. package/.agent/workflows/code-review.md +40 -0
  235. package/.agent/workflows/context-budget.md +29 -0
  236. package/.agent/workflows/cpp-build.md +173 -0
  237. package/.agent/workflows/cpp-review.md +132 -0
  238. package/.agent/workflows/cpp-test.md +251 -0
  239. package/.agent/workflows/create.md +59 -0
  240. package/.agent/workflows/debug.md +103 -0
  241. package/.agent/workflows/deploy.md +176 -0
  242. package/.agent/workflows/devfleet.md +92 -0
  243. package/.agent/workflows/docs.md +31 -0
  244. package/.agent/workflows/e2e.md +365 -0
  245. package/.agent/workflows/enhance.md +63 -0
  246. package/.agent/workflows/eval.md +120 -0
  247. package/.agent/workflows/evolve.md +178 -0
  248. package/.agent/workflows/go-build.md +183 -0
  249. package/.agent/workflows/go-review.md +148 -0
  250. package/.agent/workflows/go-test.md +268 -0
  251. package/.agent/workflows/gradle-build.md +70 -0
  252. package/.agent/workflows/harness-audit.md +71 -0
  253. package/.agent/workflows/init-docs.md +46 -0
  254. package/.agent/workflows/instinct-export.md +66 -0
  255. package/.agent/workflows/instinct-import.md +114 -0
  256. package/.agent/workflows/instinct-status.md +59 -0
  257. package/.agent/workflows/kotlin-build.md +174 -0
  258. package/.agent/workflows/kotlin-review.md +140 -0
  259. package/.agent/workflows/kotlin-test.md +312 -0
  260. package/.agent/workflows/learn-eval.md +116 -0
  261. package/.agent/workflows/learn.md +70 -0
  262. package/.agent/workflows/loop-start.md +32 -0
  263. package/.agent/workflows/loop-status.md +24 -0
  264. package/.agent/workflows/model-route.md +26 -0
  265. package/.agent/workflows/multi-backend.md +158 -0
  266. package/.agent/workflows/multi-execute.md +315 -0
  267. package/.agent/workflows/multi-frontend.md +158 -0
  268. package/.agent/workflows/multi-plan.md +268 -0
  269. package/.agent/workflows/multi-workflow.md +191 -0
  270. package/.agent/workflows/orchestrate.md +231 -0
  271. package/.agent/workflows/plan.md +115 -0
  272. package/.agent/workflows/pm2.md +272 -0
  273. package/.agent/workflows/preview.md +81 -0
  274. package/.agent/workflows/projects.md +39 -0
  275. package/.agent/workflows/promote.md +41 -0
  276. package/.agent/workflows/prompt-optimize.md +38 -0
  277. package/.agent/workflows/prune.md +31 -0
  278. package/.agent/workflows/python-review.md +297 -0
  279. package/.agent/workflows/quality-gate.md +29 -0
  280. package/.agent/workflows/refactor-clean.md +80 -0
  281. package/.agent/workflows/resume-session.md +156 -0
  282. package/.agent/workflows/rules-distill.md +11 -0
  283. package/.agent/workflows/rust-build.md +187 -0
  284. package/.agent/workflows/rust-review.md +142 -0
  285. package/.agent/workflows/rust-test.md +308 -0
  286. package/.agent/workflows/save-session.md +275 -0
  287. package/.agent/workflows/sessions.md +333 -0
  288. package/.agent/workflows/setup-pm.md +80 -0
  289. package/.agent/workflows/skill-create.md +174 -0
  290. package/.agent/workflows/skill-health.md +54 -0
  291. package/.agent/workflows/status.md +86 -0
  292. package/.agent/workflows/tdd.md +328 -0
  293. package/.agent/workflows/test-coverage.md +69 -0
  294. package/.agent/workflows/test.md +144 -0
  295. package/.agent/workflows/ui-ux-pro-max.md +296 -0
  296. package/.agent/workflows/update-codemaps.md +72 -0
  297. package/.agent/workflows/update-docs.md +84 -0
  298. package/.agent/workflows/verify.md +59 -0
  299. package/LICENSE +176 -0
  300. package/README.md +136 -0
  301. package/RELEASE.md +36 -0
  302. package/package.json +79 -0
  303. package/scripts/release-check.js +55 -0
  304. package/src/bin/cli.js +78 -0
  305. package/src/lib/installer.js +140 -0
@@ -0,0 +1,315 @@
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
@@ -0,0 +1,158 @@
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