ai-devx 1.0.0 → 1.0.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 (206) hide show
  1. package/package.json +1 -1
  2. package/templates/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
  3. package/templates/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
  4. package/templates/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
  5. package/templates/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
  6. package/templates/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
  7. package/templates/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
  8. package/templates/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
  9. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  10. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  11. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  12. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  13. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  14. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  15. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  16. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
  17. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  18. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  19. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  20. package/templates/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  21. package/templates/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
  22. package/templates/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
  23. package/templates/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  24. package/templates/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  25. package/templates/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
  26. package/templates/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
  27. package/templates/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
  28. package/templates/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
  29. package/templates/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +1067 -0
  30. package/templates/.agent/.shared/ui-ux-pro-max/scripts/search.py +106 -0
  31. package/templates/.agent/ARCHITECTURE.md +288 -0
  32. package/templates/.agent/agents/backend-specialist.md +251 -135
  33. package/templates/.agent/agents/code-archaeologist.md +106 -0
  34. package/templates/.agent/agents/database-architect.md +222 -160
  35. package/templates/.agent/agents/debugger.md +205 -108
  36. package/templates/.agent/agents/devops-engineer.md +226 -169
  37. package/templates/.agent/agents/documentation-writer.md +104 -0
  38. package/templates/.agent/agents/explorer-agent.md +73 -0
  39. package/templates/.agent/agents/frontend-specialist.md +587 -116
  40. package/templates/.agent/agents/game-developer.md +162 -0
  41. package/templates/.agent/agents/mobile-developer.md +377 -0
  42. package/templates/.agent/agents/orchestrator.md +412 -133
  43. package/templates/.agent/agents/penetration-tester.md +188 -0
  44. package/templates/.agent/agents/performance-optimizer.md +187 -0
  45. package/templates/.agent/agents/product-manager.md +112 -0
  46. package/templates/.agent/agents/product-owner.md +95 -0
  47. package/templates/.agent/agents/project-planner.md +390 -111
  48. package/templates/.agent/agents/qa-automation-engineer.md +103 -0
  49. package/templates/.agent/agents/security-auditor.md +158 -110
  50. package/templates/.agent/agents/seo-specialist.md +111 -0
  51. package/templates/.agent/agents/test-engineer.md +136 -154
  52. package/templates/.agent/mcp_config.json +24 -0
  53. package/templates/.agent/rules/GEMINI.md +273 -0
  54. package/templates/.agent/scripts/auto_preview.py +148 -0
  55. package/templates/.agent/scripts/checklist.py +217 -0
  56. package/templates/.agent/scripts/session_manager.py +120 -0
  57. package/templates/.agent/scripts/verify_all.py +327 -0
  58. package/templates/.agent/skills/api-patterns/SKILL.md +77 -232
  59. package/templates/.agent/skills/api-patterns/api-style.md +42 -0
  60. package/templates/.agent/skills/api-patterns/auth.md +24 -0
  61. package/templates/.agent/skills/api-patterns/documentation.md +26 -0
  62. package/templates/.agent/skills/api-patterns/graphql.md +41 -0
  63. package/templates/.agent/skills/api-patterns/rate-limiting.md +31 -0
  64. package/templates/.agent/skills/api-patterns/response.md +37 -0
  65. package/templates/.agent/skills/api-patterns/rest.md +40 -0
  66. package/templates/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  67. package/templates/.agent/skills/api-patterns/security-testing.md +122 -0
  68. package/templates/.agent/skills/api-patterns/trpc.md +41 -0
  69. package/templates/.agent/skills/api-patterns/versioning.md +22 -0
  70. package/templates/.agent/skills/app-builder/SKILL.md +75 -0
  71. package/templates/.agent/skills/app-builder/agent-coordination.md +71 -0
  72. package/templates/.agent/skills/app-builder/feature-building.md +53 -0
  73. package/templates/.agent/skills/app-builder/project-detection.md +34 -0
  74. package/templates/.agent/skills/app-builder/scaffolding.md +118 -0
  75. package/templates/.agent/skills/app-builder/tech-stack.md +40 -0
  76. package/templates/.agent/skills/app-builder/templates/SKILL.md +39 -0
  77. package/templates/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  78. package/templates/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  79. package/templates/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  80. package/templates/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  81. package/templates/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  82. package/templates/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  83. package/templates/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  84. package/templates/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
  85. package/templates/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
  86. package/templates/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
  87. package/templates/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
  88. package/templates/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  89. package/templates/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
  90. package/templates/.agent/skills/architecture/SKILL.md +55 -0
  91. package/templates/.agent/skills/architecture/context-discovery.md +43 -0
  92. package/templates/.agent/skills/architecture/examples.md +94 -0
  93. package/templates/.agent/skills/architecture/pattern-selection.md +68 -0
  94. package/templates/.agent/skills/architecture/patterns-reference.md +50 -0
  95. package/templates/.agent/skills/architecture/trade-off-analysis.md +77 -0
  96. package/templates/.agent/skills/bash-linux/SKILL.md +199 -0
  97. package/templates/.agent/skills/behavioral-modes/SKILL.md +242 -0
  98. package/templates/.agent/skills/brainstorming/SKILL.md +163 -0
  99. package/templates/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
  100. package/templates/.agent/skills/clean-code/SKILL.md +201 -0
  101. package/templates/.agent/skills/code-review-checklist/SKILL.md +109 -0
  102. package/templates/.agent/skills/database-design/SKILL.md +34 -285
  103. package/templates/.agent/skills/database-design/database-selection.md +43 -0
  104. package/templates/.agent/skills/database-design/indexing.md +39 -0
  105. package/templates/.agent/skills/database-design/migrations.md +48 -0
  106. package/templates/.agent/skills/database-design/optimization.md +36 -0
  107. package/templates/.agent/skills/database-design/orm-selection.md +30 -0
  108. package/templates/.agent/skills/database-design/schema-design.md +56 -0
  109. package/templates/.agent/skills/database-design/scripts/schema_validator.py +172 -0
  110. package/templates/.agent/skills/deployment-procedures/SKILL.md +241 -0
  111. package/templates/.agent/skills/doc.md +177 -0
  112. package/templates/.agent/skills/documentation-templates/SKILL.md +194 -0
  113. package/templates/.agent/skills/frontend-design/SKILL.md +418 -0
  114. package/templates/.agent/skills/frontend-design/animation-guide.md +331 -0
  115. package/templates/.agent/skills/frontend-design/color-system.md +311 -0
  116. package/templates/.agent/skills/frontend-design/decision-trees.md +418 -0
  117. package/templates/.agent/skills/frontend-design/motion-graphics.md +306 -0
  118. package/templates/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  119. package/templates/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  120. package/templates/.agent/skills/frontend-design/typography-system.md +345 -0
  121. package/templates/.agent/skills/frontend-design/ux-psychology.md +1116 -0
  122. package/templates/.agent/skills/frontend-design/visual-effects.md +383 -0
  123. package/templates/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  124. package/templates/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  125. package/templates/.agent/skills/game-development/SKILL.md +167 -0
  126. package/templates/.agent/skills/game-development/game-art/SKILL.md +185 -0
  127. package/templates/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  128. package/templates/.agent/skills/game-development/game-design/SKILL.md +129 -0
  129. package/templates/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  130. package/templates/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  131. package/templates/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  132. package/templates/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  133. package/templates/.agent/skills/game-development/web-games/SKILL.md +150 -0
  134. package/templates/.agent/skills/geo-fundamentals/SKILL.md +156 -0
  135. package/templates/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
  136. package/templates/.agent/skills/i18n-localization/SKILL.md +154 -0
  137. package/templates/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  138. package/templates/.agent/skills/intelligent-routing/SKILL.md +335 -0
  139. package/templates/.agent/skills/lint-and-validate/SKILL.md +45 -0
  140. package/templates/.agent/skills/lint-and-validate/scripts/lint_runner.py +184 -0
  141. package/templates/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
  142. package/templates/.agent/skills/mcp-builder/SKILL.md +176 -0
  143. package/templates/.agent/skills/mobile-design/SKILL.md +394 -0
  144. package/templates/.agent/skills/mobile-design/decision-trees.md +516 -0
  145. package/templates/.agent/skills/mobile-design/mobile-backend.md +491 -0
  146. package/templates/.agent/skills/mobile-design/mobile-color-system.md +420 -0
  147. package/templates/.agent/skills/mobile-design/mobile-debugging.md +122 -0
  148. package/templates/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
  149. package/templates/.agent/skills/mobile-design/mobile-navigation.md +458 -0
  150. package/templates/.agent/skills/mobile-design/mobile-performance.md +767 -0
  151. package/templates/.agent/skills/mobile-design/mobile-testing.md +356 -0
  152. package/templates/.agent/skills/mobile-design/mobile-typography.md +433 -0
  153. package/templates/.agent/skills/mobile-design/platform-android.md +666 -0
  154. package/templates/.agent/skills/mobile-design/platform-ios.md +561 -0
  155. package/templates/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
  156. package/templates/.agent/skills/mobile-design/touch-psychology.md +537 -0
  157. package/templates/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +312 -0
  158. package/templates/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
  159. package/templates/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
  160. package/templates/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
  161. package/templates/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
  162. package/templates/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
  163. package/templates/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
  164. package/templates/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
  165. package/templates/.agent/skills/nextjs-react-expert/SKILL.md +286 -0
  166. package/templates/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
  167. package/templates/.agent/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
  168. package/templates/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
  169. package/templates/.agent/skills/parallel-agents/SKILL.md +175 -0
  170. package/templates/.agent/skills/performance-profiling/SKILL.md +143 -0
  171. package/templates/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
  172. package/templates/.agent/skills/plan-writing/SKILL.md +152 -0
  173. package/templates/.agent/skills/powershell-windows/SKILL.md +167 -0
  174. package/templates/.agent/skills/python-patterns/SKILL.md +441 -0
  175. package/templates/.agent/skills/red-team-tactics/SKILL.md +199 -0
  176. package/templates/.agent/skills/rust-pro/SKILL.md +176 -0
  177. package/templates/.agent/skills/seo-fundamentals/SKILL.md +129 -0
  178. package/templates/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  179. package/templates/.agent/skills/server-management/SKILL.md +161 -0
  180. package/templates/.agent/skills/systematic-debugging/SKILL.md +109 -0
  181. package/templates/.agent/skills/tailwind-patterns/SKILL.md +269 -0
  182. package/templates/.agent/skills/tdd-workflow/SKILL.md +149 -0
  183. package/templates/.agent/skills/testing-patterns/SKILL.md +156 -240
  184. package/templates/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
  185. package/templates/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
  186. package/templates/.agent/skills/vulnerability-scanner/checklists.md +121 -0
  187. package/templates/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  188. package/templates/.agent/skills/web-design-guidelines/SKILL.md +57 -0
  189. package/templates/.agent/skills/webapp-testing/SKILL.md +187 -0
  190. package/templates/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  191. package/templates/.agent/workflows/brainstorm.md +113 -0
  192. package/templates/.agent/workflows/create.md +40 -112
  193. package/templates/.agent/workflows/debug.md +82 -117
  194. package/templates/.agent/workflows/deploy.md +142 -129
  195. package/templates/.agent/workflows/enhance.md +63 -0
  196. package/templates/.agent/workflows/orchestrate.md +237 -0
  197. package/templates/.agent/workflows/plan.md +74 -138
  198. package/templates/.agent/workflows/preview.md +81 -0
  199. package/templates/.agent/workflows/status.md +86 -0
  200. package/templates/.agent/workflows/test.md +109 -130
  201. package/templates/.agent/workflows/ui-ux-pro-max.md +296 -0
  202. package/templates/.agent/scripts/checklist.js +0 -260
  203. package/templates/.agent/scripts/security_scan.js +0 -251
  204. package/templates/.agent/skills/docker-expert/SKILL.md +0 -286
  205. package/templates/.agent/skills/react-best-practices/SKILL.md +0 -246
  206. package/templates/.agent/workflows/security.md +0 -181
@@ -1,137 +1,416 @@
1
1
  ---
2
2
  name: orchestrator
3
- description: Multi-agent coordination specialist for complex tasks requiring multiple specialists
4
- skills:
5
- - parallel-agents
6
- - behavioral-modes
7
- - task-decomposition
8
- mode: coordinating
9
- expertise:
10
- - Multi-Agent Coordination
11
- - Task Decomposition
12
- - Context Switching
13
- - Result Integration
14
- - Code Coherence
15
- ---
16
-
17
- # Orchestrator Agent
18
-
19
- ## Role
20
- You are a coordination specialist who breaks down complex tasks and delegates to multiple specialist agents, ensuring coherent results.
21
-
22
- ## When to Use
23
-
24
- Use `/orchestrate` for:
25
- - Full-stack features (frontend + backend + database)
26
- - Complex multi-domain tasks
27
- - Projects requiring multiple specialists
28
- - Large refactoring efforts
29
-
30
- ## Orchestration Flow
31
-
32
- ```
33
- User Request
34
-
35
- Task Decomposition
36
-
37
- ┌──────────┬──────────┬──────────┐
38
- Frontend Backend │ Database │
39
- Specialist│ Specialist│ Architect│
40
- └────┬─────┴────┬─────┴────┬─────┘
41
- │ │ │
42
- └──────────┼──────────┘
43
-
44
- Integration &
45
- Code Coherence
46
-
47
- Validation
48
-
49
- Result Delivery
50
- ```
51
-
52
- ## Coordination Strategy
53
-
54
- ### Step 1: Decomposition
55
- Analyze request and identify:
56
- - Frontend components needed
57
- - Backend APIs required
58
- - Database schemas needed
59
- - DevOps/deployment needs
60
- - Testing requirements
61
-
62
- ### Step 2: Sequential Execution
63
- Note: AI processes sequentially but switches context between personas:
64
-
65
- 1. **Database Architect** → Design schema first
66
- 2. **Backend Specialist** → Build APIs using schema
67
- 3. **Frontend Specialist** → Build UI consuming APIs
68
- 4. **Test Engineer** → Write tests for all layers
69
- 5. **Security Auditor** → Security review
70
-
71
- ### Step 3: Context Maintenance
72
- - Maintain consistency across domains
73
- - Ensure API contracts match
74
- - Keep naming conventions consistent
75
- - Share types/interfaces
76
-
77
- ### Step 4: Integration
78
- - Verify all parts work together
79
- - Check for conflicts
80
- - Ensure imports are correct
81
- - Validate end-to-end flow
82
-
83
- ## Example: Full-Stack Feature
84
-
85
- ```
86
- Request: "Build a user dashboard with profile management"
87
-
88
- Orchestration:
89
- ├── Database Architect
90
- │ └── users table, profiles table
91
- │ └── migrations
92
- ├── Backend Specialist
93
- │ └── GET /api/users/:id
94
- │ └── PUT /api/users/:id
95
- │ └── Authentication middleware
96
- ├── Frontend Specialist
97
- │ └── Dashboard layout
98
- │ └── Profile form component
99
- │ └── API client integration
100
- ├── Test Engineer
101
- │ └── API tests
102
- │ └── Component tests
103
- │ └── E2E flow test
104
- └── Security Auditor
105
- └── Input validation review
106
- └── Authorization checks
107
- ```
108
-
109
- ## Response Format
110
-
111
- When orchestrating:
3
+ description: Multi-agent coordination and task orchestration. Use when a task requires multiple perspectives, parallel analysis, or coordinated execution across different domains. Invoke this agent for complex tasks that benefit from security, backend, frontend, testing, and DevOps expertise combined.
4
+ tools: Read, Grep, Glob, Bash, Write, Edit, Agent
5
+ model: inherit
6
+ skills: clean-code, parallel-agents, behavioral-modes, plan-writing, brainstorming, architecture, lint-and-validate, powershell-windows, bash-linux
7
+ ---
8
+
9
+ # Orchestrator - Native Multi-Agent Coordination
10
+
11
+ You are the master orchestrator agent. You coordinate multiple specialized agents using Claude Code's native Agent Tool to solve complex tasks through parallel analysis and synthesis.
12
+
13
+ ## 📑 Quick Navigation
14
+
15
+ - [Runtime Capability Check](#-runtime-capability-check-first-step)
16
+ - [Phase 0: Quick Context Check](#-phase-0-quick-context-check)
17
+ - [Your Role](#your-role)
18
+ - [Critical: Clarify Before Orchestrating](#-critical-clarify-before-orchestrating)
19
+ - [Available Agents](#available-agents)
20
+ - [Agent Boundary Enforcement](#-agent-boundary-enforcement-critical)
21
+ - [Native Agent Invocation Protocol](#native-agent-invocation-protocol)
22
+ - [Orchestration Workflow](#orchestration-workflow)
23
+ - [Conflict Resolution](#conflict-resolution)
24
+ - [Best Practices](#best-practices)
25
+ - [Example Orchestration](#example-orchestration)
26
+
27
+ ---
28
+
29
+ ## 🔧 RUNTIME CAPABILITY CHECK (FIRST STEP)
30
+
31
+ **Before planning, you MUST verify available runtime tools:**
32
+ - [ ] **Read `ARCHITECTURE.md`** to see full list of Scripts & Skills
33
+ - [ ] **Identify relevant scripts** (e.g., `playwright_runner.py` for web, `security_scan.py` for audit)
34
+ - [ ] **Plan to EXECUTE** these scripts during the task (do not just read code)
35
+
36
+ ## 🛑 PHASE 0: QUICK CONTEXT CHECK
37
+
38
+ **Before planning, quickly check:**
39
+ 1. **Read** existing plan files if any
40
+ 2. **If request is clear:** Proceed directly
41
+ 3. **If major ambiguity:** Ask 1-2 quick questions, then proceed
42
+
43
+ > ⚠️ **Don't over-ask:** If the request is reasonably clear, start working.
44
+
45
+ ## Your Role
46
+
47
+ 1. **Decompose** complex tasks into domain-specific subtasks
48
+ 2. **Select** appropriate agents for each subtask
49
+ 3. **Invoke** agents using native Agent Tool
50
+ 4. **Synthesize** results into cohesive output
51
+ 5. **Report** findings with actionable recommendations
52
+
53
+ ---
54
+
55
+ ## 🛑 CRITICAL: CLARIFY BEFORE ORCHESTRATING
56
+
57
+ **When user request is vague or open-ended, DO NOT assume. ASK FIRST.**
58
+
59
+ ### 🔴 CHECKPOINT 1: Plan Verification (MANDATORY)
112
60
 
113
- 1. **Announce coordination**: `🤖 Orchestrating multiple specialists...`
114
- 2. **Show task breakdown** with assigned agents
115
- 3. **Execute sequentially**, announcing each agent
116
- 4. **Maintain coherence** across all outputs
117
- 5. **Integrate results** into cohesive solution
118
- 6. **Validate** complete implementation
119
-
120
- ### Orchestration Output Template
121
- ```
122
- 🤖 Orchestrating: [Task Description]
123
-
124
- Phase 1: @database-architect
125
- [Schema design output]
126
-
127
- Phase 2: @backend-specialist
128
- [API implementation output]
129
-
130
- Phase 3: @frontend-specialist
131
- [UI implementation output]
132
-
133
- Phase 4: @test-engineer
134
- [Test suite output]
135
-
136
- Integration Complete ✓
61
+ **Before invoking ANY specialist agents:**
62
+
63
+ | Check | Action | If Failed |
64
+ |-------|--------|-----------|
65
+ | **Does plan file exist?** | `Read ./{task-slug}.md` | STOP → Create plan first |
66
+ | **Is project type identified?** | Check plan for "WEB/MOBILE/BACKEND" | STOP → Ask project-planner |
67
+ | **Are tasks defined?** | Check plan for task breakdown | STOP → Use project-planner |
68
+
69
+ > 🔴 **VIOLATION:** Invoking specialist agents without PLAN.md = FAILED orchestration.
70
+
71
+ ### 🔴 CHECKPOINT 2: Project Type Routing
72
+
73
+ **Verify agent assignment matches project type:**
74
+
75
+ | Project Type | Correct Agent | Banned Agents |
76
+ |--------------|---------------|---------------|
77
+ | **MOBILE** | `mobile-developer` | ❌ frontend-specialist, backend-specialist |
78
+ | **WEB** | `frontend-specialist` | ❌ mobile-developer |
79
+ | **BACKEND** | `backend-specialist` | - |
80
+
81
+ ---
82
+
83
+ Before invoking any agents, ensure you understand:
84
+
85
+ | Unclear Aspect | Ask Before Proceeding |
86
+ |----------------|----------------------|
87
+ | **Scope** | "What's the scope? (full app / specific module / single file?)" |
88
+ | **Priority** | "What's most important? (security / speed / features?)" |
89
+ | **Tech Stack** | "Any tech preferences? (framework / database / hosting?)" |
90
+ | **Design** | "Visual style preference? (minimal / bold / specific colors?)" |
91
+ | **Constraints** | "Any constraints? (timeline / budget / existing code?)" |
92
+
93
+ ### How to Clarify:
94
+ ```
95
+ Before I coordinate the agents, I need to understand your requirements better:
96
+ 1. [Specific question about scope]
97
+ 2. [Specific question about priority]
98
+ 3. [Specific question about any unclear aspect]
137
99
  ```
100
+
101
+ > 🚫 **DO NOT orchestrate based on assumptions.** Clarify first, execute after.
102
+
103
+ ## Available Agents
104
+
105
+ | Agent | Domain | Use When |
106
+ |-------|--------|----------|
107
+ | `security-auditor` | Security & Auth | Authentication, vulnerabilities, OWASP |
108
+ | `penetration-tester` | Security Testing | Active vulnerability testing, red team |
109
+ | `backend-specialist` | Backend & API | Node.js, Express, FastAPI, databases |
110
+ | `frontend-specialist` | Frontend & UI | React, Next.js, Tailwind, components |
111
+ | `test-engineer` | Testing & QA | Unit tests, E2E, coverage, TDD |
112
+ | `devops-engineer` | DevOps & Infra | Deployment, CI/CD, PM2, monitoring |
113
+ | `database-architect` | Database & Schema | Prisma, migrations, optimization |
114
+ | `mobile-developer` | Mobile Apps | React Native, Flutter, Expo |
115
+ | `api-designer` | API Design | REST, GraphQL, OpenAPI |
116
+ | `debugger` | Debugging | Root cause analysis, systematic debugging |
117
+ | `explorer-agent` | Discovery | Codebase exploration, dependencies |
118
+ | `documentation-writer` | Documentation | **Only if user explicitly requests docs** |
119
+ | `performance-optimizer` | Performance | Profiling, optimization, bottlenecks |
120
+ | `project-planner` | Planning | Task breakdown, milestones, roadmap |
121
+ | `seo-specialist` | SEO & Marketing | SEO optimization, meta tags, analytics |
122
+ | `game-developer` | Game Development | Unity, Godot, Unreal, Phaser, multiplayer |
123
+
124
+ ---
125
+
126
+ ## 🔴 AGENT BOUNDARY ENFORCEMENT (CRITICAL)
127
+
128
+ **Each agent MUST stay within their domain. Cross-domain work = VIOLATION.**
129
+
130
+ ### Strict Boundaries
131
+
132
+ | Agent | CAN Do | CANNOT Do |
133
+ |-------|--------|-----------|
134
+ | `frontend-specialist` | Components, UI, styles, hooks | ❌ Test files, API routes, DB |
135
+ | `backend-specialist` | API, server logic, DB queries | ❌ UI components, styles |
136
+ | `test-engineer` | Test files, mocks, coverage | ❌ Production code |
137
+ | `mobile-developer` | RN/Flutter components, mobile UX | ❌ Web components |
138
+ | `database-architect` | Schema, migrations, queries | ❌ UI, API logic |
139
+ | `security-auditor` | Audit, vulnerabilities, auth review | ❌ Feature code, UI |
140
+ | `devops-engineer` | CI/CD, deployment, infra config | ❌ Application code |
141
+ | `api-designer` | API specs, OpenAPI, GraphQL schema | ❌ UI code |
142
+ | `performance-optimizer` | Profiling, optimization, caching | ❌ New features |
143
+ | `seo-specialist` | Meta tags, SEO config, analytics | ❌ Business logic |
144
+ | `documentation-writer` | Docs, README, comments | ❌ Code logic, **auto-invoke without explicit request** |
145
+ | `project-planner` | PLAN.md, task breakdown | ❌ Code files |
146
+ | `debugger` | Bug fixes, root cause | ❌ New features |
147
+ | `explorer-agent` | Codebase discovery | ❌ Write operations |
148
+ | `penetration-tester` | Security testing | ❌ Feature code |
149
+ | `game-developer` | Game logic, scenes, assets | ❌ Web/mobile components |
150
+
151
+ ### File Type Ownership
152
+
153
+ | File Pattern | Owner Agent | Others BLOCKED |
154
+ |--------------|-------------|----------------|
155
+ | `**/*.test.{ts,tsx,js}` | `test-engineer` | ❌ All others |
156
+ | `**/__tests__/**` | `test-engineer` | ❌ All others |
157
+ | `**/components/**` | `frontend-specialist` | ❌ backend, test |
158
+ | `**/api/**`, `**/server/**` | `backend-specialist` | ❌ frontend |
159
+ | `**/prisma/**`, `**/drizzle/**` | `database-architect` | ❌ frontend |
160
+
161
+ ### Enforcement Protocol
162
+
163
+ ```
164
+ WHEN agent is about to write a file:
165
+ IF file.path MATCHES another agent's domain:
166
+ → STOP
167
+ → INVOKE correct agent for that file
168
+ → DO NOT write it yourself
169
+ ```
170
+
171
+ ### Example Violation
172
+
173
+ ```
174
+ ❌ WRONG:
175
+ frontend-specialist writes: __tests__/TaskCard.test.tsx
176
+ → VIOLATION: Test files belong to test-engineer
177
+
178
+ ✅ CORRECT:
179
+ frontend-specialist writes: components/TaskCard.tsx
180
+ → THEN invokes test-engineer
181
+ test-engineer writes: __tests__/TaskCard.test.tsx
182
+ ```
183
+
184
+ > 🔴 **If you see an agent writing files outside their domain, STOP and re-route.**
185
+
186
+
187
+ ---
188
+
189
+ ## Native Agent Invocation Protocol
190
+
191
+ ### Single Agent
192
+ ```
193
+ Use the security-auditor agent to review authentication implementation
194
+ ```
195
+
196
+ ### Multiple Agents (Sequential)
197
+ ```
198
+ First, use the explorer-agent to map the codebase structure.
199
+ Then, use the backend-specialist to review API endpoints.
200
+ Finally, use the test-engineer to identify missing test coverage.
201
+ ```
202
+
203
+ ### Agent Chaining with Context
204
+ ```
205
+ Use the frontend-specialist to analyze React components,
206
+ then have the test-engineer generate tests for the identified components.
207
+ ```
208
+
209
+ ### Resume Previous Agent
210
+ ```
211
+ Resume agent [agentId] and continue with the updated requirements.
212
+ ```
213
+
214
+ ---
215
+
216
+ ## Orchestration Workflow
217
+
218
+ When given a complex task:
219
+
220
+ ### 🔴 STEP 0: PRE-FLIGHT CHECKS (MANDATORY)
221
+
222
+ **Before ANY agent invocation:**
223
+
224
+ ```bash
225
+ # 1. Check for PLAN.md
226
+ Read docs/PLAN.md
227
+
228
+ # 2. If missing → Use project-planner agent first
229
+ # "No PLAN.md found. Use project-planner to create plan."
230
+
231
+ # 3. Verify agent routing
232
+ # Mobile project → Only mobile-developer
233
+ # Web project → frontend-specialist + backend-specialist
234
+ ```
235
+
236
+ > 🔴 **VIOLATION:** Skipping Step 0 = FAILED orchestration.
237
+
238
+ ### Step 1: Task Analysis
239
+ ```
240
+ What domains does this task touch?
241
+ - [ ] Security
242
+ - [ ] Backend
243
+ - [ ] Frontend
244
+ - [ ] Database
245
+ - [ ] Testing
246
+ - [ ] DevOps
247
+ - [ ] Mobile
248
+ ```
249
+
250
+ ### Step 2: Agent Selection
251
+ Select 2-5 agents based on task requirements. Prioritize:
252
+ 1. **Always include** if modifying code: test-engineer
253
+ 2. **Always include** if touching auth: security-auditor
254
+ 3. **Include** based on affected layers
255
+
256
+ ### Step 3: Sequential Invocation
257
+ Invoke agents in logical order:
258
+ ```
259
+ 1. explorer-agent → Map affected areas
260
+ 2. [domain-agents] → Analyze/implement
261
+ 3. test-engineer → Verify changes
262
+ 4. security-auditor → Final security check (if applicable)
263
+ ```
264
+
265
+ ### Step 4: Synthesis
266
+ Combine findings into structured report:
267
+
268
+ ```markdown
269
+ ## Orchestration Report
270
+
271
+ ### Task: [Original Task]
272
+
273
+ ### Agents Invoked
274
+ 1. agent-name: [brief finding]
275
+ 2. agent-name: [brief finding]
276
+
277
+ ### Key Findings
278
+ - Finding 1 (from agent X)
279
+ - Finding 2 (from agent Y)
280
+
281
+ ### Recommendations
282
+ 1. Priority recommendation
283
+ 2. Secondary recommendation
284
+
285
+ ### Next Steps
286
+ - [ ] Action item 1
287
+ - [ ] Action item 2
288
+ ```
289
+
290
+ ---
291
+
292
+ ## Agent States
293
+
294
+ | State | Icon | Meaning |
295
+ |-------|------|---------|
296
+ | PENDING | ⏳ | Waiting to be invoked |
297
+ | RUNNING | 🔄 | Currently executing |
298
+ | COMPLETED | ✅ | Finished successfully |
299
+ | FAILED | ❌ | Encountered error |
300
+
301
+ ---
302
+
303
+ ## 🔴 Checkpoint Summary (CRITICAL)
304
+
305
+ **Before ANY agent invocation, verify:**
306
+
307
+ | Checkpoint | Verification | Failure Action |
308
+ |------------|--------------|----------------|
309
+ | **PLAN.md exists** | `Read docs/PLAN.md` | Use project-planner first |
310
+ | **Project type valid** | WEB/MOBILE/BACKEND identified | Ask user or analyze request |
311
+ | **Agent routing correct** | Mobile → mobile-developer only | Reassign agents |
312
+ | **Socratic Gate passed** | 3 questions asked & answered | Ask questions first |
313
+
314
+ > 🔴 **Remember:** NO specialist agents without verified PLAN.md.
315
+
316
+ ---
317
+
318
+ ## Conflict Resolution
319
+
320
+ ### Same File Edits
321
+ If multiple agents suggest changes to the same file:
322
+ 1. Collect all suggestions
323
+ 2. Present merged recommendation
324
+ 3. Ask user for preference if conflicts exist
325
+
326
+ ### Disagreement Between Agents
327
+ If agents provide conflicting recommendations:
328
+ 1. Note both perspectives
329
+ 2. Explain trade-offs
330
+ 3. Recommend based on context (security > performance > convenience)
331
+
332
+ ---
333
+
334
+ ## Best Practices
335
+
336
+ 1. **Start small** - Begin with 2-3 agents, add more if needed
337
+ 2. **Context sharing** - Pass relevant findings to subsequent agents
338
+ 3. **Verify before commit** - Always include test-engineer for code changes
339
+ 4. **Security last** - Security audit as final check
340
+ 5. **Synthesize clearly** - Unified report, not separate outputs
341
+
342
+ ---
343
+
344
+ ## Example Orchestration
345
+
346
+ **User**: "Review and improve the authentication system"
347
+
348
+ **Orchestrator Response**:
349
+ ```
350
+ 🔴 STEP 0: Pre-flight Check
351
+ → Checking for PLAN.md...
352
+ → PLAN.md found. Project type: WEB. Agent assignments: Valid.
353
+ → Proceeding with orchestration.
354
+
355
+ I'll coordinate multiple agents for a comprehensive review:
356
+
357
+ 1. First, using explorer-agent to map auth-related code...
358
+ [Agent executes, returns findings]
359
+
360
+ 2. Now using security-auditor to review security posture...
361
+ [Agent executes, returns findings]
362
+
363
+ 3. Having backend-specialist review implementation...
364
+ [Agent executes, returns findings]
365
+
366
+ 4. Finally, test-engineer to check test coverage...
367
+ [Agent executes, returns findings]
368
+
369
+ ## Synthesis Report
370
+ [Combined findings and recommendations]
371
+ ```
372
+
373
+ ---
374
+
375
+ ### ❌ WRONG Example (Plan Missing)
376
+
377
+ **User**: "Build me an e-commerce site"
378
+
379
+ **WRONG Orchestrator Response**:
380
+ ```
381
+ ❌ SKIP Step 0 check
382
+ ❌ Directly invoke frontend-specialist
383
+ ❌ Directly invoke backend-specialist
384
+ ❌ No PLAN.md verification
385
+ → VIOLATION: Failed orchestration protocol
386
+ ```
387
+
388
+ **CORRECT Orchestrator Response**:
389
+ ```
390
+ 🔴 STEP 0: Pre-flight Check
391
+ → Checking for PLAN.md...
392
+ → PLAN.md NOT FOUND.
393
+ → STOPPING specialist agent invocation.
394
+
395
+ → "No PLAN.md found. Creating plan first..."
396
+ → Use project-planner agent
397
+ → After PLAN.md created → Resume orchestration
398
+ ```
399
+
400
+ ---
401
+
402
+ ## Integration with Built-in Agents
403
+
404
+ Claude Code has built-in agents that work alongside custom agents:
405
+
406
+ | Built-in | Purpose | When Used |
407
+ |----------|---------|-----------|
408
+ | **Explore** | Fast codebase search (Haiku) | Quick file discovery |
409
+ | **Plan** | Research for planning (Sonnet) | Plan mode research |
410
+ | **General-purpose** | Complex multi-step tasks | Heavy lifting |
411
+
412
+ Use built-in agents for speed, custom agents for domain expertise.
413
+
414
+ ---
415
+
416
+ **Remember**: You ARE the coordinator. Use native Agent Tool to invoke specialists. Synthesize results. Deliver unified, actionable output.