@namch/agent-assistant 1.1.1 → 1.2.1

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 (255) hide show
  1. package/CHANGELOG.md +35 -1
  2. package/README.md +7 -2
  3. package/agents/backend-engineer.md +1 -1
  4. package/agents/brainstormer.md +1 -1
  5. package/agents/business-analyst.md +1 -1
  6. package/agents/database-architect.md +1 -1
  7. package/agents/debugger.md +1 -1
  8. package/agents/designer.md +1 -1
  9. package/agents/devops-engineer.md +1 -1
  10. package/agents/docs-manager.md +1 -1
  11. package/agents/frontend-engineer.md +1 -1
  12. package/agents/game-engineer.md +1 -1
  13. package/agents/mobile-engineer.md +1 -1
  14. package/agents/performance-engineer.md +1 -1
  15. package/agents/planner.md +1 -1
  16. package/agents/project-manager.md +1 -1
  17. package/agents/reporter.md +1 -1
  18. package/agents/researcher.md +1 -1
  19. package/agents/reviewer.md +1 -1
  20. package/agents/scouter.md +1 -1
  21. package/agents/security-engineer.md +1 -1
  22. package/agents/teams/backend-team/executor.md +188 -0
  23. package/agents/teams/backend-team/reviewer.md +328 -0
  24. package/agents/teams/backend-team/techlead.md +166 -0
  25. package/agents/teams/database-team/executor.md +189 -0
  26. package/agents/teams/database-team/reviewer.md +333 -0
  27. package/agents/teams/database-team/techlead.md +168 -0
  28. package/agents/teams/debug-team/executor.md +195 -0
  29. package/agents/teams/debug-team/reviewer.md +324 -0
  30. package/agents/teams/debug-team/techlead.md +173 -0
  31. package/agents/teams/design-team/executor.md +196 -0
  32. package/agents/teams/design-team/reviewer.md +405 -0
  33. package/agents/teams/design-team/techlead.md +170 -0
  34. package/agents/teams/devops-team/executor.md +199 -0
  35. package/agents/teams/devops-team/reviewer.md +332 -0
  36. package/agents/teams/devops-team/techlead.md +168 -0
  37. package/agents/teams/docs-team/executor.md +196 -0
  38. package/agents/teams/docs-team/reviewer.md +331 -0
  39. package/agents/teams/docs-team/techlead.md +168 -0
  40. package/agents/teams/frontend-team/executor.md +190 -0
  41. package/agents/teams/frontend-team/reviewer.md +333 -0
  42. package/agents/teams/frontend-team/techlead.md +169 -0
  43. package/agents/teams/fullstack-team/executor.md +290 -0
  44. package/agents/teams/fullstack-team/reviewer.md +365 -0
  45. package/agents/teams/fullstack-team/techlead.md +254 -0
  46. package/agents/teams/game-team/executor.md +193 -0
  47. package/agents/teams/game-team/reviewer.md +331 -0
  48. package/agents/teams/game-team/techlead.md +167 -0
  49. package/agents/teams/mobile-team/executor.md +192 -0
  50. package/agents/teams/mobile-team/reviewer.md +328 -0
  51. package/agents/teams/mobile-team/techlead.md +168 -0
  52. package/agents/teams/performance-team/executor.md +192 -0
  53. package/agents/teams/performance-team/reviewer.md +322 -0
  54. package/agents/teams/performance-team/techlead.md +175 -0
  55. package/agents/teams/planning-team/executor.md +197 -0
  56. package/agents/teams/planning-team/reviewer.md +279 -0
  57. package/agents/teams/planning-team/techlead.md +169 -0
  58. package/agents/teams/project-team/executor.md +190 -0
  59. package/agents/teams/project-team/reviewer.md +328 -0
  60. package/agents/teams/project-team/techlead.md +168 -0
  61. package/agents/teams/qa-team/executor.md +198 -0
  62. package/agents/teams/qa-team/reviewer.md +271 -0
  63. package/agents/teams/qa-team/techlead.md +175 -0
  64. package/agents/teams/report-team/executor.md +195 -0
  65. package/agents/teams/report-team/reviewer.md +328 -0
  66. package/agents/teams/report-team/techlead.md +168 -0
  67. package/agents/teams/research-team/executor.md +200 -0
  68. package/agents/teams/research-team/reviewer.md +272 -0
  69. package/agents/teams/research-team/techlead.md +168 -0
  70. package/agents/teams/security-team/executor.md +193 -0
  71. package/agents/teams/security-team/reviewer.md +338 -0
  72. package/agents/teams/security-team/techlead.md +178 -0
  73. package/agents/tech-lead.md +1 -1
  74. package/agents/tester.md +1 -1
  75. package/cli/README.md +19 -2
  76. package/cli/install.js +282 -7
  77. package/cli/install.test.js.example +1 -1
  78. package/code-assistants/codex-assistant/CODEX.md +235 -0
  79. package/code-assistants/codex-assistant/agents/backend-engineer.toml +26 -0
  80. package/code-assistants/codex-assistant/agents/brainstormer.toml +26 -0
  81. package/code-assistants/codex-assistant/agents/business-analyst.toml +26 -0
  82. package/code-assistants/codex-assistant/agents/database-architect.toml +26 -0
  83. package/code-assistants/codex-assistant/agents/debugger.toml +26 -0
  84. package/code-assistants/codex-assistant/agents/designer.toml +26 -0
  85. package/code-assistants/codex-assistant/agents/devops-engineer.toml +26 -0
  86. package/code-assistants/codex-assistant/agents/docs-manager.toml +26 -0
  87. package/code-assistants/codex-assistant/agents/frontend-engineer.toml +26 -0
  88. package/code-assistants/codex-assistant/agents/game-engineer.toml +26 -0
  89. package/code-assistants/codex-assistant/agents/mobile-engineer.toml +26 -0
  90. package/code-assistants/codex-assistant/agents/performance-engineer.toml +26 -0
  91. package/code-assistants/codex-assistant/agents/planner.toml +26 -0
  92. package/code-assistants/codex-assistant/agents/project-manager.toml +26 -0
  93. package/code-assistants/codex-assistant/agents/reporter.toml +26 -0
  94. package/code-assistants/codex-assistant/agents/researcher.toml +26 -0
  95. package/code-assistants/codex-assistant/agents/reviewer.toml +26 -0
  96. package/code-assistants/codex-assistant/agents/scouter.toml +26 -0
  97. package/code-assistants/codex-assistant/agents/security-engineer.toml +26 -0
  98. package/code-assistants/codex-assistant/agents/tech-lead.toml +26 -0
  99. package/code-assistants/codex-assistant/agents/tester.toml +26 -0
  100. package/code-assistants/codex-assistant/config.toml +109 -0
  101. package/code-assistants/codex-assistant/skills/agent-assistant-ask/SKILL.md +18 -0
  102. package/code-assistants/codex-assistant/skills/agent-assistant-ask/agents/openai.yaml +4 -0
  103. package/code-assistants/codex-assistant/skills/agent-assistant-ask-fast/SKILL.md +18 -0
  104. package/code-assistants/codex-assistant/skills/agent-assistant-ask-fast/agents/openai.yaml +4 -0
  105. package/code-assistants/codex-assistant/skills/agent-assistant-ask-hard/SKILL.md +18 -0
  106. package/code-assistants/codex-assistant/skills/agent-assistant-ask-hard/agents/openai.yaml +4 -0
  107. package/code-assistants/codex-assistant/skills/agent-assistant-auto/SKILL.md +18 -0
  108. package/code-assistants/codex-assistant/skills/agent-assistant-auto/agents/openai.yaml +4 -0
  109. package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm/SKILL.md +18 -0
  110. package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm/agents/openai.yaml +4 -0
  111. package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-fast/SKILL.md +18 -0
  112. package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-fast/agents/openai.yaml +4 -0
  113. package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-hard/SKILL.md +18 -0
  114. package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-hard/agents/openai.yaml +4 -0
  115. package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-team/SKILL.md +18 -0
  116. package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-team/agents/openai.yaml +4 -0
  117. package/code-assistants/codex-assistant/skills/agent-assistant-code/SKILL.md +18 -0
  118. package/code-assistants/codex-assistant/skills/agent-assistant-code/agents/openai.yaml +4 -0
  119. package/code-assistants/codex-assistant/skills/agent-assistant-code-fast/SKILL.md +18 -0
  120. package/code-assistants/codex-assistant/skills/agent-assistant-code-fast/agents/openai.yaml +4 -0
  121. package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/SKILL.md +18 -0
  122. package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/agents/openai.yaml +4 -0
  123. package/code-assistants/codex-assistant/skills/agent-assistant-code-hard/SKILL.md +18 -0
  124. package/code-assistants/codex-assistant/skills/agent-assistant-code-hard/agents/openai.yaml +4 -0
  125. package/code-assistants/codex-assistant/skills/agent-assistant-code-team/SKILL.md +18 -0
  126. package/code-assistants/codex-assistant/skills/agent-assistant-code-team/agents/openai.yaml +4 -0
  127. package/code-assistants/codex-assistant/skills/agent-assistant-cook/SKILL.md +18 -0
  128. package/code-assistants/codex-assistant/skills/agent-assistant-cook/agents/openai.yaml +4 -0
  129. package/code-assistants/codex-assistant/skills/agent-assistant-cook-fast/SKILL.md +18 -0
  130. package/code-assistants/codex-assistant/skills/agent-assistant-cook-fast/agents/openai.yaml +4 -0
  131. package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/SKILL.md +18 -0
  132. package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/agents/openai.yaml +4 -0
  133. package/code-assistants/codex-assistant/skills/agent-assistant-cook-hard/SKILL.md +18 -0
  134. package/code-assistants/codex-assistant/skills/agent-assistant-cook-hard/agents/openai.yaml +4 -0
  135. package/code-assistants/codex-assistant/skills/agent-assistant-cook-team/SKILL.md +18 -0
  136. package/code-assistants/codex-assistant/skills/agent-assistant-cook-team/agents/openai.yaml +4 -0
  137. package/code-assistants/codex-assistant/skills/agent-assistant-debug/SKILL.md +18 -0
  138. package/code-assistants/codex-assistant/skills/agent-assistant-debug/agents/openai.yaml +4 -0
  139. package/code-assistants/codex-assistant/skills/agent-assistant-debug-fast/SKILL.md +18 -0
  140. package/code-assistants/codex-assistant/skills/agent-assistant-debug-fast/agents/openai.yaml +4 -0
  141. package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/SKILL.md +18 -0
  142. package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/agents/openai.yaml +4 -0
  143. package/code-assistants/codex-assistant/skills/agent-assistant-debug-hard/SKILL.md +18 -0
  144. package/code-assistants/codex-assistant/skills/agent-assistant-debug-hard/agents/openai.yaml +4 -0
  145. package/code-assistants/codex-assistant/skills/agent-assistant-debug-team/SKILL.md +18 -0
  146. package/code-assistants/codex-assistant/skills/agent-assistant-debug-team/agents/openai.yaml +4 -0
  147. package/code-assistants/codex-assistant/skills/agent-assistant-deploy/SKILL.md +18 -0
  148. package/code-assistants/codex-assistant/skills/agent-assistant-deploy/agents/openai.yaml +4 -0
  149. package/code-assistants/codex-assistant/skills/agent-assistant-deploy-check/SKILL.md +18 -0
  150. package/code-assistants/codex-assistant/skills/agent-assistant-deploy-check/agents/openai.yaml +4 -0
  151. package/code-assistants/codex-assistant/skills/agent-assistant-deploy-preview/SKILL.md +18 -0
  152. package/code-assistants/codex-assistant/skills/agent-assistant-deploy-preview/agents/openai.yaml +4 -0
  153. package/code-assistants/codex-assistant/skills/agent-assistant-deploy-production/SKILL.md +18 -0
  154. package/code-assistants/codex-assistant/skills/agent-assistant-deploy-production/agents/openai.yaml +4 -0
  155. package/code-assistants/codex-assistant/skills/agent-assistant-deploy-rollback/SKILL.md +18 -0
  156. package/code-assistants/codex-assistant/skills/agent-assistant-deploy-rollback/agents/openai.yaml +4 -0
  157. package/code-assistants/codex-assistant/skills/agent-assistant-design/SKILL.md +18 -0
  158. package/code-assistants/codex-assistant/skills/agent-assistant-design/agents/openai.yaml +4 -0
  159. package/code-assistants/codex-assistant/skills/agent-assistant-design-fast/SKILL.md +18 -0
  160. package/code-assistants/codex-assistant/skills/agent-assistant-design-fast/agents/openai.yaml +4 -0
  161. package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/SKILL.md +18 -0
  162. package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/agents/openai.yaml +4 -0
  163. package/code-assistants/codex-assistant/skills/agent-assistant-design-hard/SKILL.md +18 -0
  164. package/code-assistants/codex-assistant/skills/agent-assistant-design-hard/agents/openai.yaml +4 -0
  165. package/code-assistants/codex-assistant/skills/agent-assistant-design-team/SKILL.md +18 -0
  166. package/code-assistants/codex-assistant/skills/agent-assistant-design-team/agents/openai.yaml +4 -0
  167. package/code-assistants/codex-assistant/skills/agent-assistant-docs/SKILL.md +18 -0
  168. package/code-assistants/codex-assistant/skills/agent-assistant-docs/agents/openai.yaml +4 -0
  169. package/code-assistants/codex-assistant/skills/agent-assistant-docs-audit/SKILL.md +18 -0
  170. package/code-assistants/codex-assistant/skills/agent-assistant-docs-audit/agents/openai.yaml +4 -0
  171. package/code-assistants/codex-assistant/skills/agent-assistant-docs-business/SKILL.md +18 -0
  172. package/code-assistants/codex-assistant/skills/agent-assistant-docs-business/agents/openai.yaml +4 -0
  173. package/code-assistants/codex-assistant/skills/agent-assistant-docs-core/SKILL.md +18 -0
  174. package/code-assistants/codex-assistant/skills/agent-assistant-docs-core/agents/openai.yaml +4 -0
  175. package/code-assistants/codex-assistant/skills/agent-assistant-fix/SKILL.md +18 -0
  176. package/code-assistants/codex-assistant/skills/agent-assistant-fix/agents/openai.yaml +4 -0
  177. package/code-assistants/codex-assistant/skills/agent-assistant-fix-fast/SKILL.md +18 -0
  178. package/code-assistants/codex-assistant/skills/agent-assistant-fix-fast/agents/openai.yaml +4 -0
  179. package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/SKILL.md +18 -0
  180. package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/agents/openai.yaml +4 -0
  181. package/code-assistants/codex-assistant/skills/agent-assistant-fix-hard/SKILL.md +18 -0
  182. package/code-assistants/codex-assistant/skills/agent-assistant-fix-hard/agents/openai.yaml +4 -0
  183. package/code-assistants/codex-assistant/skills/agent-assistant-fix-team/SKILL.md +18 -0
  184. package/code-assistants/codex-assistant/skills/agent-assistant-fix-team/agents/openai.yaml +4 -0
  185. package/code-assistants/codex-assistant/skills/agent-assistant-plan/SKILL.md +18 -0
  186. package/code-assistants/codex-assistant/skills/agent-assistant-plan/agents/openai.yaml +4 -0
  187. package/code-assistants/codex-assistant/skills/agent-assistant-plan-fast/SKILL.md +18 -0
  188. package/code-assistants/codex-assistant/skills/agent-assistant-plan-fast/agents/openai.yaml +4 -0
  189. package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/SKILL.md +18 -0
  190. package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/agents/openai.yaml +4 -0
  191. package/code-assistants/codex-assistant/skills/agent-assistant-plan-hard/SKILL.md +18 -0
  192. package/code-assistants/codex-assistant/skills/agent-assistant-plan-hard/agents/openai.yaml +4 -0
  193. package/code-assistants/codex-assistant/skills/agent-assistant-plan-team/SKILL.md +18 -0
  194. package/code-assistants/codex-assistant/skills/agent-assistant-plan-team/agents/openai.yaml +4 -0
  195. package/code-assistants/codex-assistant/skills/agent-assistant-report/SKILL.md +18 -0
  196. package/code-assistants/codex-assistant/skills/agent-assistant-report/agents/openai.yaml +4 -0
  197. package/code-assistants/codex-assistant/skills/agent-assistant-report-fast/SKILL.md +18 -0
  198. package/code-assistants/codex-assistant/skills/agent-assistant-report-fast/agents/openai.yaml +4 -0
  199. package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/SKILL.md +18 -0
  200. package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/agents/openai.yaml +4 -0
  201. package/code-assistants/codex-assistant/skills/agent-assistant-report-hard/SKILL.md +18 -0
  202. package/code-assistants/codex-assistant/skills/agent-assistant-report-hard/agents/openai.yaml +4 -0
  203. package/code-assistants/codex-assistant/skills/agent-assistant-report-team/SKILL.md +18 -0
  204. package/code-assistants/codex-assistant/skills/agent-assistant-report-team/agents/openai.yaml +4 -0
  205. package/code-assistants/codex-assistant/skills/agent-assistant-review/SKILL.md +18 -0
  206. package/code-assistants/codex-assistant/skills/agent-assistant-review/agents/openai.yaml +4 -0
  207. package/code-assistants/codex-assistant/skills/agent-assistant-review-fast/SKILL.md +18 -0
  208. package/code-assistants/codex-assistant/skills/agent-assistant-review-fast/agents/openai.yaml +4 -0
  209. package/code-assistants/codex-assistant/skills/agent-assistant-review-hard/SKILL.md +18 -0
  210. package/code-assistants/codex-assistant/skills/agent-assistant-review-hard/agents/openai.yaml +4 -0
  211. package/code-assistants/codex-assistant/skills/agent-assistant-review-team/SKILL.md +18 -0
  212. package/code-assistants/codex-assistant/skills/agent-assistant-review-team/agents/openai.yaml +4 -0
  213. package/code-assistants/codex-assistant/skills/agent-assistant-test/SKILL.md +18 -0
  214. package/code-assistants/codex-assistant/skills/agent-assistant-test/agents/openai.yaml +4 -0
  215. package/code-assistants/codex-assistant/skills/agent-assistant-test-fast/SKILL.md +18 -0
  216. package/code-assistants/codex-assistant/skills/agent-assistant-test-fast/agents/openai.yaml +4 -0
  217. package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/SKILL.md +18 -0
  218. package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/agents/openai.yaml +4 -0
  219. package/code-assistants/codex-assistant/skills/agent-assistant-test-hard/SKILL.md +18 -0
  220. package/code-assistants/codex-assistant/skills/agent-assistant-test-hard/agents/openai.yaml +4 -0
  221. package/code-assistants/codex-assistant/skills/agent-assistant-test-team/SKILL.md +18 -0
  222. package/code-assistants/codex-assistant/skills/agent-assistant-test-team/agents/openai.yaml +4 -0
  223. package/code-assistants/copilot-assistant/agent-assistant.agent.md +0 -25
  224. package/commands/brainstorm/team.md +295 -0
  225. package/commands/brainstorm.md +5 -0
  226. package/commands/code/team.md +456 -0
  227. package/commands/code.md +5 -0
  228. package/commands/cook/team.md +609 -0
  229. package/commands/cook.md +5 -0
  230. package/commands/debug/team.md +396 -0
  231. package/commands/debug.md +5 -0
  232. package/commands/design/team.md +567 -0
  233. package/commands/design.md +5 -0
  234. package/commands/fix/team.md +596 -0
  235. package/commands/fix.md +5 -0
  236. package/commands/plan/team.md +358 -0
  237. package/commands/plan.md +5 -0
  238. package/commands/report/team.md +502 -0
  239. package/commands/report.md +5 -0
  240. package/commands/review/team.md +353 -0
  241. package/commands/review.md +5 -0
  242. package/commands/test/team.md +303 -0
  243. package/commands/test.md +5 -0
  244. package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +4 -2
  245. package/documents/business/business-prd.md +2 -1
  246. package/documents/business/business-workflows.md +2 -2
  247. package/documents/knowledge-architecture.md +13 -12
  248. package/documents/knowledge-domain.md +2 -2
  249. package/documents/knowledge-overview.md +2 -2
  250. package/documents/knowledge-source-base.md +4 -0
  251. package/package.json +5 -2
  252. package/rules/AGENTS.md +55 -0
  253. package/rules/CORE.md +1 -0
  254. package/rules/PHASES.md +58 -0
  255. package/rules/TEAMS.md +530 -0
@@ -0,0 +1,567 @@
1
+ ---
2
+ description: "🔺 Team Design — Golden Triangle adversarial collaboration for maximum quality design"
3
+ version: "2.0"
4
+ category: design
5
+ execution-mode: execute
6
+ ---
7
+
8
+ # /design:team — Golden Triangle Design System Development
9
+
10
+ > **MISSION**: Maximum quality UI/UX design through adversarial collaboration.
11
+ > Each phase spawns a **Golden Triangle** of 3 agents: Tech Lead (coordinator),
12
+ > Executor (implementer), Reviewer (devil's advocate). Output is released ONLY
13
+ > upon consensus after debate.
14
+
15
+ <request>$ARGUMENTS</request>
16
+
17
+ ---
18
+
19
+ ## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS PHASE 1)
20
+
21
+ **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
22
+
23
+ 1. CORE.md — Identity, Laws, Routing
24
+ 2. PHASES.md — Phase Execution
25
+ 3. AGENTS.md — Tiered Execution
26
+ 4. **TEAMS.md** — Golden Triangle protocol (MANDATORY)
27
+
28
+ **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
29
+
30
+ **Skills Resolution**: Load `SKILLS.md` on-demand for fitness calculation and dynamic discovery.
31
+
32
+ ---
33
+
34
+ ## 🔀 TIERED EXECUTION
35
+
36
+ > Reference: AGENTS.md (Tiered Execution) + TEAMS.md (Golden Triangle Protocol)
37
+
38
+ | Tier | When | Action |
39
+ | ---------- | ----------------------------- | ------------------------------------------------------------------------- |
40
+ | **TIER 1** | runSubagent/Agent Tool EXISTS | Orchestrator spawns Tech Lead → Tech Lead spawns Executor + Reviewer |
41
+ | **TIER 2** | Tool MISSING or SYSTEM error | EMBODY Tech Lead → EMBODY Executor → EMBODY Reviewer → EMBODY Tech Lead|
42
+
43
+ **❌ Anti-Lazy**: Never use TIER 2 when TIER 1 tool available.
44
+
45
+ **TIER 2 Golden Triangle Embodiment** (per TEAMS.md):
46
+ ```
47
+ 1. EMBODY Tech Lead → decompose task → produce Shared Task List → dispatch
48
+ 2. EMBODY Executor → implement assigned tasks → post SUBMISSION to Mailbox
49
+ 3. EMBODY Reviewer → review submissions → post REVIEW to Mailbox
50
+ 4. IF FAIL → EMBODY Executor again → fix/defend → EMBODY Reviewer → re-check
51
+ 5. Repeat steps 3-4 max 3 rounds
52
+ 6. EMBODY Tech Lead → arbitrate if needed → post DECISION → synthesize output
53
+ ```
54
+
55
+ ---
56
+
57
+ ## 📬 MAILBOX — Central Communication Hub
58
+
59
+ **Location**: `./reports/MAILBOX-{date}.md`
60
+
61
+ All 3 triangle agents READ from and APPEND to this file. Never overwrite — append only.
62
+
63
+ **Message Format**:
64
+ ```markdown
65
+ ---
66
+ ## [{TIMESTAMP}] {MESSAGE_TYPE} | {AGENT} → {TARGET}
67
+ **Phase**: {phase number}
68
+ **Task**: {task ID from Shared Task List}
69
+ **Content**:
70
+ {message body}
71
+ ---
72
+ ```
73
+
74
+ **Message Types**:
75
+
76
+ | Type | Sender | Receiver | Purpose |
77
+ | ----------------- | --------- | --------- | ---------------------------------------------- |
78
+ | TASK_ASSIGNMENT | Tech Lead | Executor | Assign task with requirements and context |
79
+ | SUBMISSION | Executor | Reviewer | Submit completed work for review |
80
+ | REVIEW | Reviewer | Executor | Review result: PASS or FAIL with findings |
81
+ | DEFENSE | Executor | Reviewer | Defend design decision against FAIL findings |
82
+ | RESUBMISSION | Executor | Reviewer | Resubmit after fixing FAIL findings |
83
+ | APPROVAL | Reviewer | Tech Lead | Confirm task passes all review criteria |
84
+ | ESCALATION | Any | Tech Lead | Escalate unresolvable disagreement |
85
+ | ARBITRATION | Tech Lead | All | Tech Lead resolves dispute with binding decision|
86
+ | DECISION | Tech Lead | All | Final phase decision with consensus stamp |
87
+
88
+ ---
89
+
90
+ ## 📁 DELIVERABLE FILES
91
+
92
+ | Phase / Team | Output |
93
+ | ------------------ | ------------------------------------------------- |
94
+ | Phase 1 (Research) | `./reports/researchers/RESEARCH-{request}.md` |
95
+ | Phase 1 (Research) | `./reports/scouts/SCOUT-{request}.md` |
96
+ | Phase 2 (Spec) | `./reports/designs/DESIGN-{request}.md` |
97
+ | Phase 3 (Impl.) | `./reports/designs/DESIGN-SPEC-{request}.md` |
98
+ | Phase 4 (Handoff) | `./reports/reviews/REVIEW-{request}.md` |
99
+ | ALL Phases | `./reports/MAILBOX-{date}.md` |
100
+
101
+ All files in `./reports/` → English only.
102
+
103
+ ---
104
+
105
+ ## 🔗 PHASE DEPENDENCIES
106
+
107
+ | Phase | Requires | Blocking |
108
+ | ------------------------------- | --------------------------------- | ----------- |
109
+ | P1: Design Research | User request | No |
110
+ | P2: Design Spec & Wireframes | Research findings from P1 | **YES** |
111
+ | 🛡️ CHECKPOINT | DESIGN file + User approval | **YES** |
112
+ | P3: Implementation Spec | Approved DESIGN from P2 | **YES** |
113
+ | P4: Review & Handoff | DESIGN-SPEC from P3 | **YES** |
114
+
115
+ **⛔ Blocking**: If input missing → STOP → Create it first → Resume
116
+
117
+ ---
118
+
119
+ ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
120
+
121
+ One phase at a time. Within each phase:
122
+
123
+ ```
124
+ 1. Spawn Golden Triangle (Tech Lead + Executor + Reviewer)
125
+ 2. Tech Lead decomposes → publishes Shared Task List
126
+ 3. Executor implements → posts SUBMISSION to Mailbox
127
+ 4. Reviewer critiques → posts REVIEW to Mailbox
128
+ 5. Debate loop: fix/defend → re-review (max 3 rounds)
129
+ 6. Consensus reached → Tech Lead posts DECISION → Phase output released
130
+ ```
131
+
132
+ **Consensus Stamp Format** (required to close each phase):
133
+ ```
134
+ ✅ CONSENSUS: {TechLead} ✓ | {Executor} ✓ | {Reviewer} ✓
135
+ ```
136
+
137
+ Format: rules/PHASES.md § Phase output structure + rules/TEAMS.md § Golden Triangle Phase Output Format.
138
+
139
+ ---
140
+
141
+ ## 🔺 GOLDEN TRIANGLE LOOP — Universal Protocol
142
+
143
+ > Every phase below follows this exact loop. Deviations are PROHIBITED.
144
+
145
+ ```
146
+ ┌─────────────────────────────────────────────────────────────────────┐
147
+ │ GOLDEN TRIANGLE LOOP │
148
+ │ │
149
+ │ 1. Tech Lead decomposes phase goal into tasks │
150
+ │ → Publishes Shared Task List │
151
+ │ → Posts TASK_ASSIGNMENT to Mailbox for each task │
152
+ │ │
153
+ │ 2. Executor works each task │
154
+ │ → Posts SUBMISSION to Mailbox per task │
155
+ │ → Includes: what was done, files/artifacts, approach, notes │
156
+ │ │
157
+ │ 3. Reviewer reviews each SUBMISSION │
158
+ │ → Posts REVIEW to Mailbox: PASS or FAIL │
159
+ │ → FAIL includes: findings table, severity, required actions │
160
+ │ │
161
+ │ 4. IF FAIL (debate loop, max 3 rounds): │
162
+ │ → Executor reads findings │
163
+ │ → For each finding: Fix (if valid) or DEFENSE (if disputed) │
164
+ │ → Posts RESUBMISSION or DEFENSE to Mailbox │
165
+ │ → Reviewer re-reviews → back to step 3 │
166
+ │ → After 3 rounds without resolution → ESCALATION to Tech Lead │
167
+ │ │
168
+ │ 5. IF PASS: │
169
+ │ → Reviewer posts APPROVAL to Mailbox │
170
+ │ → Task marked ✅ in Shared Task List │
171
+ │ │
172
+ │ 6. After ALL tasks complete: │
173
+ │ → Tech Lead verifies integration/coherence │
174
+ │ → Tech Lead posts DECISION with consensus stamp │
175
+ │ → Phase output released │
176
+ │ │
177
+ │ OUTPUT: ✅ CONSENSUS: TechLead ✓ | Executor ✓ | Reviewer ✓ │
178
+ └─────────────────────────────────────────────────────────────────────┘
179
+ ```
180
+
181
+ ---
182
+
183
+ ## 🎭 Phase 1: DESIGN RESEARCH — 🔺 GOLDEN TRIANGLE
184
+
185
+ | Role | Agent | Mission |
186
+ | --------- | ------------------------------------ | ---------------------------------------------------------- |
187
+ | Tech Lead | `designer` | Decompose: research areas, user needs analysis, design constraints |
188
+ | Executor | `researcher` + `scouter` | Execute: audit existing design system, research patterns, competitive analysis |
189
+ | Reviewer | `brainstormer` (Devil's Advocate) | Challenge: assumptions about users, missing use cases, accessibility concerns |
190
+
191
+ **Triangle Loop**:
192
+ 1. `designer` decomposes research into areas: user needs, existing design system audit, competitive analysis, pattern research, accessibility requirements
193
+ 2. `designer` posts TASK_ASSIGNMENT to Mailbox for each area → dispatches to `researcher` + `scouter`
194
+ 3. `researcher` researches UX patterns, competitive designs, accessibility standards → posts SUBMISSION with findings per area
195
+ 4. `scouter` audits existing codebase for design tokens, component inventory, styling patterns → posts SUBMISSION with audit results
196
+ 5. `brainstormer` reviews each SUBMISSION → posts REVIEW to Mailbox:
197
+ - Are user assumptions validated or just guesses?
198
+ - What personas or use cases are missing?
199
+ - Are accessibility needs (WCAG 2.1 AA) truly covered?
200
+ - Is the competitive analysis shallow or does it reveal actionable insights?
201
+ - What edge cases in user flows are unaccounted for?
202
+ 6. If REVIEW = FAIL → `researcher`/`scouter` addresses gaps or defends findings → posts RESUBMISSION/DEFENSE
203
+ 7. `brainstormer` re-reviews → max 3 rounds → ESCALATION to `designer` if unresolved
204
+ 8. `designer` synthesizes all approved findings into unified design research document
205
+
206
+ **Deliverable**: `./reports/researchers/RESEARCH-{request}.md` + `./reports/scouts/SCOUT-{request}.md`
207
+ **Exit Criteria**: User needs validated, existing design system audited, competitive patterns identified, accessibility constraints mapped, research gaps challenged
208
+ **Consensus**: ✅ CONSENSUS: designer ✓ | researcher+scouter ✓ | brainstormer ✓
209
+
210
+ ---
211
+
212
+ ## 🎭 Phase 2: DESIGN SPEC & WIREFRAMES — 🔺 GOLDEN TRIANGLE (CRITICAL)
213
+
214
+ > **THIS IS THE MOST CRITICAL PHASE.** Every step is detailed. No shortcuts.
215
+
216
+ | Role | Agent | Mission |
217
+ | --------- | --------------------------------------------- | ---------------------------------------------------------- |
218
+ | Tech Lead | `designer` | Coordinate: component hierarchy, interaction patterns, design tokens |
219
+ | Executor | `designer` (self-implements) | Execute: create detailed design specs, component structures, layout |
220
+ | Reviewer | `frontend-engineer` + `reviewer` lens | Challenge: technical feasibility, responsive concerns, accessibility (WCAG), performance impact |
221
+
222
+ **Prerequisite**: **READ** RESEARCH + SCOUT files from P1 before starting.
223
+
224
+ ### GOLDEN TRIANGLE DESIGN LOOP (CRITICAL — Step by Step)
225
+
226
+ ```
227
+ ╔══════════════════════════════════════════════════════════════════════╗
228
+ ║ PHASE 2: DESIGN SPEC LOOP — FOLLOW EXACTLY ║
229
+ ╠══════════════════════════════════════════════════════════════════════╣
230
+ ║ ║
231
+ ║ STEP 1: Designer reads RESEARCH + SCOUT files ║
232
+ ║ ───────────────────────────────────────── ║
233
+ ║ - Load all research findings into working context ║
234
+ ║ - Identify all design areas (layout, tokens, components, states) ║
235
+ ║ - Map user needs → design requirements matrix ║
236
+ ║ ║
237
+ ║ STEP 2: Designer creates Shared Task List ║
238
+ ║ ───────────────────────────────────────── ║
239
+ ║ - Break design into atomic areas: ║
240
+ ║ * Design tokens (colors, typography, spacing, shadows) ║
241
+ ║ * Component hierarchy and composition ║
242
+ ║ * Layout structure and grid system ║
243
+ ║ * Interaction patterns and state machines ║
244
+ ║ * Responsive breakpoints and adaptive behavior ║
245
+ ║ * Accessibility specifications ║
246
+ ║ - Format: [ID] [Status] [Description] [Components] [Acceptance] ║
247
+ ║ - Post Shared Task List in Mailbox as TASK_ASSIGNMENT ║
248
+ ║ ║
249
+ ║ STEP 3: Designer dispatches ALL tasks ║
250
+ ║ ───────────────────────────────────────── ║
251
+ ║ - Posts TASK_ASSIGNMENT to Mailbox for each design area ║
252
+ ║ - Each assignment includes: ║
253
+ ║ * Task ID and design area description ║
254
+ ║ * Components to be designed ║
255
+ ║ * User research backing (from P1) ║
256
+ ║ * Acceptance criteria ║
257
+ ║ ║
258
+ ║ STEP 4: FOR EACH TASK — Designer creates specs ║
259
+ ║ ───────────────────────────────────────── ║
260
+ ║ a. Designer reads TASK_ASSIGNMENT from Mailbox ║
261
+ ║ b. Designer creates design spec for the area: ║
262
+ ║ - Visual hierarchy and layout ║
263
+ ║ - Typography scale and color usage ║
264
+ ║ - Component structure with props/variants ║
265
+ ║ - All interactive states (default, hover, active, disabled, ║
266
+ ║ error, loading, empty, focused, selected) ║
267
+ ║ - Micro-interactions and transitions ║
268
+ ║ - Responsive behavior at each breakpoint ║
269
+ ║ c. Designer posts SUBMISSION to Mailbox: ║
270
+ ║ ┌──────────────────────────────────────┐ ║
271
+ ║ │ SUBMISSION │ ║
272
+ ║ │ Task: {task ID} │ ║
273
+ ║ │ Design area: {description} │ ║
274
+ ║ │ Components: {list of components} │ ║
275
+ ║ │ States covered: {list of states} │ ║
276
+ ║ │ Tokens used: {design tokens} │ ║
277
+ ║ │ Responsive: {breakpoint behavior} │ ║
278
+ ║ │ A11y notes: {accessibility approach} │ ║
279
+ ║ │ Research backing: {P1 reference} │ ║
280
+ ║ └──────────────────────────────────────┘ ║
281
+ ║ ║
282
+ ║ STEP 5: Frontend Engineer reviews each SUBMISSION ║
283
+ ║ ───────────────────────────────────────── ║
284
+ ║ d. Frontend Engineer reads SUBMISSION from Mailbox ║
285
+ ║ e. Frontend Engineer checks against ALL 5 dimensions: ║
286
+ ║ ┌──────────────────────────────────────────────────────┐ ║
287
+ ║ │ 1. FEASIBILITY — Can this be built with current │ ║
288
+ ║ │ framework/component library? Performance cost? │ ║
289
+ ║ │ 2. ACCESSIBILITY — WCAG 2.1 AA? ARIA? Keyboard nav? │ ║
290
+ ║ │ Screen reader? Color contrast ratios? │ ║
291
+ ║ │ 3. RESPONSIVE — All breakpoints addressed? Touch │ ║
292
+ ║ │ targets sized? Mobile-first considered? │ ║
293
+ ║ │ 4. CONSISTENCY — Matches existing design system? │ ║
294
+ ║ │ Token reuse? Component composition patterns? │ ║
295
+ ║ │ 5. PERFORMANCE — Render cost? Animation performance? │ ║
296
+ ║ │ Asset weight? Lazy-loadable? Bundle impact? │ ║
297
+ ║ └──────────────────────────────────────────────────────┘ ║
298
+ ║ f. Frontend Engineer posts REVIEW to Mailbox: ║
299
+ ║ ┌──────────────────────────────────────┐ ║
300
+ ║ │ REVIEW │ ║
301
+ ║ │ Task: {task ID} │ ║
302
+ ║ │ Status: PASS or FAIL │ ║
303
+ ║ │ Findings: │ ║
304
+ ║ │ | # | Finding | Severity | Action | │ ║
305
+ ║ │ |---|---------|----------|--------| │ ║
306
+ ║ │ | 1 | ... | CRITICAL | Fix | │ ║
307
+ ║ │ | 2 | ... | MINOR | Suggest| │ ║
308
+ ║ │ Required actions: {list} │ ║
309
+ ║ └──────────────────────────────────────┘ ║
310
+ ║ ║
311
+ ║ STEP 6: IF FAIL — Debate Loop (max 3 rounds) ║
312
+ ║ ───────────────────────────────────────── ║
313
+ ║ g. Designer reads REVIEW findings from Mailbox ║
314
+ ║ h. For EACH finding: ║
315
+ ║ - If VALID → Adjust the design → Note what was changed ║
316
+ ║ - If DISPUTED → Write DEFENSE with design rationale: ║
317
+ ║ "Finding #2 is invalid because [user research says X, ║
318
+ ║ accessibility standard Y requires this approach]" ║
319
+ ║ i. Designer posts RESUBMISSION or DEFENSE to Mailbox: ║
320
+ ║ ┌──────────────────────────────────────┐ ║
321
+ ║ │ RESUBMISSION / DEFENSE │ ║
322
+ ║ │ Task: {task ID} │ ║
323
+ ║ │ Round: {1/2/3} │ ║
324
+ ║ │ Design changes: {list} │ ║
325
+ ║ │ Defended findings: {list + rationale} │ ║
326
+ ║ └──────────────────────────────────────┘ ║
327
+ ║ j. Frontend Engineer re-reviews → posts new REVIEW → back to (e) ║
328
+ ║ k. After round 3 without resolution: ║
329
+ ║ → Frontend Engineer posts ESCALATION to Mailbox ║
330
+ ║ → Designer (as Tech Lead) reads all debate history ║
331
+ ║ → Designer posts ARBITRATION with binding resolution ║
332
+ ║ → Arbitration weighs: user need > accessibility > feasibility ║
333
+ ║ ║
334
+ ║ STEP 7: IF PASS ║
335
+ ║ ───────────── ║
336
+ ║ l. Frontend Engineer posts APPROVAL to Mailbox ║
337
+ ║ m. Designer marks task ✅ in Shared Task List ║
338
+ ║ n. Move to next task → back to step (a) ║
339
+ ║ ║
340
+ ║ STEP 8: After ALL tasks complete ║
341
+ ║ ──────────────────────────── ║
342
+ ║ o. Designer verifies full design coherence: ║
343
+ ║ - All tasks ✅ in Shared Task List ║
344
+ ║ - No cross-component inconsistencies ║
345
+ ║ - Design tokens consistent across all components ║
346
+ ║ - All interactive states covered for every component ║
347
+ ║ - Responsive behavior coherent at all breakpoints ║
348
+ ║ p. Designer posts DECISION to Mailbox: ║
349
+ ║ ┌──────────────────────────────────────┐ ║
350
+ ║ │ DECISION │ ║
351
+ ║ │ Phase: 2 — Design Spec & Wireframes │ ║
352
+ ║ │ Status: COMPLETE │ ║
353
+ ║ │ Tasks completed: {count}/{total} │ ║
354
+ ║ │ Disputes resolved: {count} │ ║
355
+ ║ │ Arbitrations needed: {count} │ ║
356
+ ║ │ ✅ CONSENSUS: designer ✓ | │ ║
357
+ ║ │ designer(exec) ✓ | │ ║
358
+ ║ │ frontend-engineer ✓ │ ║
359
+ ║ └──────────────────────────────────────┘ ║
360
+ ║ q. Phase output released ║
361
+ ╚══════════════════════════════════════════════════════════════════════╝
362
+ ```
363
+
364
+ **Deliverable**: `./reports/designs/DESIGN-{request}.md` containing:
365
+ - Visual design specs (layout, typography, color, spacing)
366
+ - Design token definitions
367
+ - Component hierarchy with props, variants, and composition
368
+ - Interaction patterns and state diagrams (default, hover, active, disabled, error, loading, empty, focused, selected)
369
+ - Micro-interactions and transition specs
370
+ - Responsive breakpoints and adaptive behavior
371
+ - Accessibility specifications (WCAG 2.1 AA, ARIA roles, keyboard nav, color contrast)
372
+ - Technical feasibility notes from frontend engineer
373
+
374
+ **Exit Criteria**: Design specs complete, all states covered, accessibility verified, feasibility validated, responsive defined, tokens documented
375
+ **Consensus**: ✅ CONSENSUS: designer ✓ | designer(exec) ✓ | frontend-engineer ✓
376
+
377
+ ---
378
+
379
+ ## 🛡️ VERIFICATION CHECKPOINT
380
+
381
+ > **⛔ BLOCKING**: Load Context Gate protocol NOW before proceeding.
382
+ >
383
+ > **LOAD**: `rules/CONTEXT-GATE.md` — Execute HARD MODE protocol
384
+ >
385
+ > This is a MANDATORY checkpoint. Cannot skip or bypass.
386
+
387
+ ### ⚡ OPTIONS (Present to User)
388
+
389
+ ```markdown
390
+ ## 🛡️ Context Optimization Checkpoint
391
+
392
+ **Design Complete** — Design specs created at: `./reports/designs/DESIGN-{request}.md`
393
+
394
+ **Choose how to proceed:**
395
+
396
+ | Option | Action | Description |
397
+ |--------|--------|-------------|
398
+ | **1. 🚀 Clear context & Proceed to Implementation Spec** | `RECOMMENDED` | Fresh start: Reload Design file, ignore exploration history |
399
+ | **2. ⏸️ Review Design First** | `SAFE` | Clear context, show design summary, wait for approval before proceeding |
400
+ | **3. ⚠️ Continue (No Clear)** | `RISKY` | Keep design history (may affect spec quality) |
401
+
402
+ ⏳ Awaiting selection...
403
+ ```
404
+
405
+ ### 🔄 EXECUTION BEHAVIOR
406
+
407
+ ```yaml
408
+ option_1_clear_proceed:
409
+ behavior: "RECOMMENDED - Clean handoff to implementation spec"
410
+ steps:
411
+ 1. ACKNOWLEDGE: "🚀 Context optimized. Design ready for implementation spec."
412
+ 2. CONTEXT_DIRECTIVE: |
413
+ ⛔ IGNORE all design exploration and rejected alternatives.
414
+ ✅ DESIGN FILE is SOLE SOURCE OF TRUTH.
415
+ 3. RELOAD: Read DESIGN-{request}.md as primary context
416
+ 4. PROCEED: Execute Phase 3
417
+
418
+ option_2_review_first:
419
+ behavior: "SAFE - User approves before spec"
420
+ steps:
421
+ 1. CLEAR context of exploration noise
422
+ 2. DISPLAY: Design summary from DESIGN-{request}.md
423
+ 3. WAIT: User approval
424
+ 4. PROCEED: Execute Phase 3 on approval
425
+
426
+ option_3_continue:
427
+ behavior: "RISKY - Context may be noisy"
428
+ steps:
429
+ 1. WARN: "⚠️ Context contains exploration history. Spec quality may degrade."
430
+ 2. PROCEED: Execute Phase 3 immediately
431
+ ```
432
+
433
+ **DO NOT proceed to Phase 3 until user selects option.**
434
+
435
+ ---
436
+
437
+ ## 🎭 Phase 3: IMPLEMENTATION SPEC — 🔺 GOLDEN TRIANGLE
438
+
439
+ | Role | Agent | Mission |
440
+ | --------- | ------------------------------------ | ---------------------------------------------------------- |
441
+ | Tech Lead | `tech-lead` | Synthesize: bridge design → code, define component contracts |
442
+ | Executor | `frontend-engineer` | Execute: write DESIGN-SPEC-{request}.md with component API, props, states |
443
+ | Reviewer | `designer` | Challenge: spec matches design intent? Missing interactions? Visual fidelity? |
444
+
445
+ **Prerequisite**: **READ** `./reports/designs/DESIGN-{request}.md` before starting.
446
+
447
+ **Triangle Loop**:
448
+ 1. `tech-lead` reads DESIGN file → decomposes into implementation specification areas:
449
+ - Component API contracts (props, events, slots)
450
+ - State management approach per component
451
+ - Design token → CSS variable mapping
452
+ - Animation and transition implementation
453
+ - Responsive implementation strategy
454
+ - Accessibility implementation requirements
455
+ 2. `tech-lead` posts TASK_ASSIGNMENT to Mailbox for each spec area → dispatches to `frontend-engineer`
456
+ 3. `frontend-engineer` writes implementation spec per area → posts SUBMISSION with:
457
+ - Component API definition (TypeScript interfaces, prop types)
458
+ - State machine definitions for interactive states
459
+ - CSS architecture (token usage, responsive breakpoints, container queries)
460
+ - Animation specs (CSS transitions, keyframes, performance targets)
461
+ - ARIA implementation plan (roles, labels, live regions)
462
+ - Data flow and event contracts between components
463
+ 4. `designer` reviews each SUBMISSION → posts REVIEW:
464
+ - Does the component API capture all design variants?
465
+ - Are all interaction states from the design represented in state machines?
466
+ - Do responsive breakpoints match the design spec exactly?
467
+ - Are micro-interactions and transitions faithfully translated?
468
+ - Will the implementation preserve visual hierarchy and spacing?
469
+ - Any design nuances lost in the translation to code spec?
470
+ 5. If REVIEW = FAIL → `frontend-engineer` adjusts spec or defends technical approach → posts RESUBMISSION/DEFENSE
471
+ 6. `designer` re-reviews → max 3 rounds → ESCALATION to `tech-lead` if unresolved
472
+ 7. `tech-lead` synthesizes all approved specs into unified implementation specification
473
+
474
+ **Deliverable**: `./reports/designs/DESIGN-SPEC-{request}.md` containing:
475
+ - Component API contracts (TypeScript interfaces)
476
+ - State machine definitions
477
+ - Design token → code mapping
478
+ - CSS architecture plan
479
+ - Animation implementation specs
480
+ - Accessibility implementation checklist
481
+ - Integration points between components
482
+
483
+ **Exit Criteria**: All components spec'd with APIs, all design states mapped to code, designer confirms fidelity, technical approach sound
484
+ **Consensus**: ✅ CONSENSUS: tech-lead ✓ | frontend-engineer ✓ | designer ✓
485
+
486
+ ---
487
+
488
+ ## 🎭 Phase 4: REVIEW & HANDOFF — 🔺 GOLDEN TRIANGLE
489
+
490
+ | Role | Agent | Mission |
491
+ | --------- | ------------------------------------ | ---------------------------------------------------------- |
492
+ | Tech Lead | `designer` | Final review, design system compliance, handoff coordination |
493
+ | Executor | `docs-manager` | Execute: write design documentation, component catalog entry |
494
+ | Reviewer | `tech-lead` | Challenge: handoff complete? Developer questions addressed? Edge states? |
495
+
496
+ **Prerequisite**: **READ** `DESIGN-{request}.md` + `DESIGN-SPEC-{request}.md` from previous phases.
497
+
498
+ **Triangle Loop**:
499
+ 1. `designer` decomposes handoff into documentation areas: component catalog, usage guidelines, do/don't examples, design token reference, developer FAQ
500
+ 2. `designer` posts TASK_ASSIGNMENT to Mailbox for each area → dispatches to `docs-manager`
501
+ 3. `docs-manager` writes documentation per area → posts SUBMISSION with:
502
+ - Component catalog entries (name, purpose, variants, usage)
503
+ - Usage guidelines with do/don't examples
504
+ - Design token reference table
505
+ - Integration guide for developers
506
+ - Edge case documentation (empty states, error states, loading patterns)
507
+ - Migration notes (if updating existing components)
508
+ 4. `tech-lead` reviews each SUBMISSION → posts REVIEW:
509
+ - Can a developer implement from this documentation alone?
510
+ - Are all edge states and error conditions documented?
511
+ - Are props, events, and slots clearly described with examples?
512
+ - Is the token reference complete and accurate?
513
+ - Any questions a developer would ask that aren't answered?
514
+ - Does documentation match both DESIGN and DESIGN-SPEC files?
515
+ 5. If REVIEW = FAIL → `docs-manager` addresses gaps or defends → posts RESUBMISSION/DEFENSE
516
+ 6. `tech-lead` re-reviews → max 3 rounds → ESCALATION to `designer` if unresolved
517
+ 7. `designer` performs final design system compliance check across all deliverables
518
+
519
+ **Deliverable**: `./reports/reviews/REVIEW-{request}.md` containing:
520
+ - Design system compliance audit results
521
+ - Component catalog entries
522
+ - Usage guidelines and documentation
523
+ - Developer handoff checklist
524
+ - Outstanding questions or known limitations
525
+
526
+ **Exit Criteria**: Documentation complete, developer handoff verified, design system compliance confirmed, all edge states documented
527
+ **Consensus**: ✅ CONSENSUS: designer ✓ | docs-manager ✓ | tech-lead ✓
528
+
529
+ ---
530
+
531
+ ## ✅ COMPLETION
532
+
533
+ Present final design report with consensus stamps from ALL phases:
534
+
535
+ ```markdown
536
+ # 🔺 Golden Triangle Design Report: {request}
537
+
538
+ ## Phase Results
539
+ | Phase | Triangle | Consensus | Rounds |
540
+ |-------|----------|-----------|--------|
541
+ | P1: Design Research | designer / researcher+scouter / brainstormer | ✅ | {n} |
542
+ | P2: Design Spec & Wireframes | designer / designer / frontend-engineer | ✅ | {n} |
543
+ | P3: Implementation Spec | tech-lead / frontend-engineer / designer | ✅ | {n} |
544
+ | P4: Review & Handoff | designer / docs-manager / tech-lead | ✅ | {n} |
545
+
546
+ ## Debate Summary
547
+ - Total submissions: {count}
548
+ - First-pass approvals: {count}
549
+ - Debates triggered: {count}
550
+ - Arbitrations needed: {count}
551
+
552
+ ## Mailbox Reference
553
+ Full debate history: `./reports/MAILBOX-{date}.md`
554
+
555
+ ## Deliverables
556
+ - `./reports/researchers/RESEARCH-{request}.md`
557
+ - `./reports/scouts/SCOUT-{request}.md`
558
+ - `./reports/designs/DESIGN-{request}.md`
559
+ - `./reports/designs/DESIGN-SPEC-{request}.md`
560
+ - `./reports/reviews/REVIEW-{request}.md`
561
+
562
+ ## Next Actions
563
+ 1. ✅ **Done** — Design complete (triangle-validated across all phases)
564
+ 2. 🚀 **Implement** → `/cook:team {request}` — Build from design specs
565
+ 3. 📋 **Plan first** → `/plan:team {request}` — Create implementation plan
566
+ 4. 🔄 **Iterate** → Address review feedback and re-run affected phases
567
+ ```
@@ -37,6 +37,9 @@ IF design is complex (full feature, system):
37
37
  IF design is complex AND clean implementation handoff is critical:
38
38
  → Route to /design:focus
39
39
 
40
+ IF design is complex AND maximum quality with team collaboration needed:
41
+ → Route to /design:team
42
+
40
43
  IF unsure:
41
44
  → Default to /design:fast
42
45
  ```
@@ -50,6 +53,7 @@ IF unsure:
50
53
  | `/design:fast` | Quick component design, simple UI |
51
54
  | `/design:hard` | Full feature design, system design |
52
55
  | `/design:focus` | Full design with **enforced context optimization** |
56
+ | `/design:team` | Maximum quality with parallel agent team collaboration |
53
57
 
54
58
  ---
55
59
 
@@ -65,6 +69,7 @@ IF unsure:
65
69
  1. ⚡ **Fast** → `/design:fast` — Quick design
66
70
  2. ⚡⚡⚡ **Hard** → `/design:hard` — Full design process
67
71
  3. 🎯 **Focus** → `/design:focus` — Full design with **automatic context clearing** (clean implementation handoff)
72
+ 4. 👥 **Team** → `/design:team` — Full team collaboration (parallel agents, maximum quality)
68
73
 
69
74
  ⏳ Awaiting selection...
70
75
  ```