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,153 +1,89 @@
1
1
  ---
2
- command: /plan
3
- description: Create comprehensive task breakdown and implementation plan
4
- agent: project-planner
5
- skills:
6
- - brainstorming
7
- - plan-writing
8
- - architecture
9
- - estimation
2
+ description: Create project plan using project-planner agent. No code writing - only plan file generation.
10
3
  ---
11
4
 
12
- # /plan Workflow
13
-
14
- ## Purpose
15
- Break down complex requirements into actionable tasks with estimates, dependencies, and milestones.
16
-
17
- ## Trigger
18
- User types: `/plan <description>`
19
-
20
- ## Execution Steps
21
-
22
- ### Step 1: Requirements Clarification
23
- Ask 3-5 strategic questions:
24
- 1. What is the core problem you're solving?
25
- 2. Who are the users and what do they need?
26
- 3. What does success look like?
27
- 4. What are the constraints (time, budget, tech)?
28
- 5. Are there any dependencies or blockers?
29
-
30
- ### Step 2: Analysis
31
- - Parse user request
32
- - Identify ambiguous requirements
33
- - Determine scope and complexity
34
- - Identify technical constraints
35
-
36
- ### Step 3: Task Decomposition
37
- Break down into:
38
- - High-level objectives
39
- - Technical tasks
40
- - Dependencies between tasks
41
- - Risks and mitigations
42
-
43
- ### Step 4: Estimation
44
- Categorize tasks:
45
- - **Quick wins**: < 2 hours
46
- - **Small**: 2-4 hours
47
- - **Medium**: 4-8 hours
48
- - **Large**: 1-2 days
49
- - **Epic**: 3-5 days (break down further)
50
-
51
- Apply uncertainty multipliers:
52
- - Well-understood: 1.0x
53
- - Some uncertainty: 1.5x
54
- - High uncertainty: 2.0x
55
- - Research needed: 3.0x
56
-
57
- ### Step 5: Output Format
58
-
59
- Generate structured markdown plan:
60
-
61
- ```markdown
62
- ## Plan: [Feature Name]
63
-
64
- ### Overview
65
- [High-level description of what will be built]
66
-
67
- ### Goals
68
- - [Goal 1]
69
- - [Goal 2]
70
- - [Goal 3]
71
-
72
- ### Technical Architecture
73
- [Architecture decisions and tech stack]
74
-
75
- ### Tasks
76
-
77
- #### Phase 1: Foundation
78
- | ID | Task | Estimate | Dependencies | Priority |
79
- |----|------|----------|--------------|----------|
80
- | T1 | [Task description] | 2h | None | P0 |
81
- | T2 | [Task description] | 4h | T1 | P0 |
82
-
83
- #### Phase 2: Implementation
84
- | ID | Task | Estimate | Dependencies | Priority |
85
- |----|------|----------|--------------|----------|
86
- | T3 | [Task description] | 8h | T2 | P1 |
87
-
88
- ### Milestones
89
- 1. **Milestone 1** - [Date]: [Description]
90
- 2. **Milestone 2** - [Date]: [Description]
91
- 3. **Milestone 3** - [Date]: [Description]
92
-
93
- ### Risks
94
- | Risk | Probability | Impact | Mitigation |
95
- |------|-------------|--------|------------|
96
- | [Risk 1] | High/Med/Low | High/Med/Low | [Strategy] |
97
-
98
- ### Resources Needed
99
- - [Role 1]: [Number needed]
100
- - [Role 2]: [Number needed]
101
-
102
- ### Definition of Done
103
- - [ ] All P0 tasks complete
104
- - [ ] Code reviewed
105
- - [ ] Tests passing
106
- - [ ] Documentation updated
107
- - [ ] Deployed to staging
108
-
109
- ### Next Steps
110
- 1. [Action item 1]
111
- 2. [Action item 2]
112
- ```
5
+ # /plan - Project Planning Mode
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## ๐Ÿ”ด CRITICAL RULES
113
12
 
114
- ## Example Usage
13
+ 1. **NO CODE WRITING** - This command creates plan file only
14
+ 2. **Use project-planner agent** - NOT Antigravity Agent's native Plan mode
15
+ 3. **Socratic Gate** - Ask clarifying questions before planning
16
+ 4. **Dynamic Naming** - Plan file named based on task
115
17
 
116
- **User**: `/plan Build a user authentication system with JWT`
18
+ ---
117
19
 
118
- **Response**:
20
+ ## Task
21
+
22
+ Use the `project-planner` agent with this context:
23
+
24
+ ```
25
+ CONTEXT:
26
+ - User Request: $ARGUMENTS
27
+ - Mode: PLANNING ONLY (no code)
28
+ - Output: docs/PLAN-{task-slug}.md (dynamic naming)
29
+
30
+ NAMING RULES:
31
+ 1. Extract 2-3 key words from request
32
+ 2. Lowercase, hyphen-separated
33
+ 3. Max 30 characters
34
+ 4. Example: "e-commerce cart" โ†’ PLAN-ecommerce-cart.md
35
+
36
+ RULES:
37
+ 1. Follow project-planner.md Phase -1 (Context Check)
38
+ 2. Follow project-planner.md Phase 0 (Socratic Gate)
39
+ 3. Create PLAN-{slug}.md with task breakdown
40
+ 4. DO NOT write any code files
41
+ 5. REPORT the exact file name created
119
42
  ```
120
- โšก Executing /plan
121
43
 
122
- ## Plan: User Authentication System with JWT
44
+ ---
45
+
46
+ ## Expected Output
123
47
 
124
- ### Overview
125
- Implement secure user authentication using JWT tokens with login, signup, and protected routes.
48
+ | Deliverable | Location |
49
+ |-------------|----------|
50
+ | Project Plan | `docs/PLAN-{task-slug}.md` |
51
+ | Task Breakdown | Inside plan file |
52
+ | Agent Assignments | Inside plan file |
53
+ | Verification Checklist | Phase X in plan file |
126
54
 
127
- ### Tasks
55
+ ---
128
56
 
129
- #### Phase 1: Backend (2 days)
130
- | ID | Task | Estimate | Dependencies |
131
- |----|------|----------|--------------|
132
- | T1 | Design user schema | 2h | None |
133
- | T2 | Implement password hashing | 2h | T1 |
134
- | T3 | Create signup endpoint | 4h | T2 |
135
- | T4 | Create login endpoint | 4h | T2 |
136
- | T5 | Implement JWT middleware | 4h | T4 |
57
+ ## After Planning
137
58
 
138
- #### Phase 2: Frontend (1.5 days)
139
- | ID | Task | Estimate | Dependencies |
140
- |----|------|----------|--------------|
141
- | T6 | Create login form | 4h | None |
142
- | T7 | Create signup form | 4h | None |
143
- | T8 | Implement auth context | 4h | T6, T7 |
59
+ Tell user:
60
+ ```
61
+ [OK] Plan created: docs/PLAN-{slug}.md
144
62
 
145
- Total: 3.5 days
63
+ Next steps:
64
+ - Review the plan
65
+ - Run `/create` to start implementation
66
+ - Or modify plan manually
146
67
  ```
147
68
 
148
- ## Success Criteria
149
- - Clear task breakdown with estimates
150
- - Identified dependencies
151
- - Risk assessment
152
- - Realistic timeline
153
- - Actionable next steps
69
+ ---
70
+
71
+ ## Naming Examples
72
+
73
+ | Request | Plan File |
74
+ |---------|-----------|
75
+ | `/plan e-commerce site with cart` | `docs/PLAN-ecommerce-cart.md` |
76
+ | `/plan mobile app for fitness` | `docs/PLAN-fitness-app.md` |
77
+ | `/plan add dark mode feature` | `docs/PLAN-dark-mode.md` |
78
+ | `/plan fix authentication bug` | `docs/PLAN-auth-fix.md` |
79
+ | `/plan SaaS dashboard` | `docs/PLAN-saas-dashboard.md` |
80
+
81
+ ---
82
+
83
+ ## Usage
84
+
85
+ ```
86
+ /plan e-commerce site with cart
87
+ /plan mobile app for fitness tracking
88
+ /plan SaaS dashboard with analytics
89
+ ```
@@ -0,0 +1,81 @@
1
+ ---
2
+ description: Preview server start, stop, and status check. Local development server management.
3
+ ---
4
+
5
+ # /preview - Preview Management
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Task
12
+
13
+ Manage preview server: start, stop, status check.
14
+
15
+ ### Commands
16
+
17
+ ```
18
+ /preview - Show current status
19
+ /preview start - Start server
20
+ /preview stop - Stop server
21
+ /preview restart - Restart
22
+ /preview check - Health check
23
+ ```
24
+
25
+ ---
26
+
27
+ ## Usage Examples
28
+
29
+ ### Start Server
30
+ ```
31
+ /preview start
32
+
33
+ Response:
34
+ ๐Ÿš€ Starting preview...
35
+ Port: 3000
36
+ Type: Next.js
37
+
38
+ โœ… Preview ready!
39
+ URL: http://localhost:3000
40
+ ```
41
+
42
+ ### Status Check
43
+ ```
44
+ /preview
45
+
46
+ Response:
47
+ === Preview Status ===
48
+
49
+ ๐ŸŒ URL: http://localhost:3000
50
+ ๐Ÿ“ Project: C:/projects/my-app
51
+ ๐Ÿท๏ธ Type: nextjs
52
+ ๐Ÿ’š Health: OK
53
+ ```
54
+
55
+ ### Port Conflict
56
+ ```
57
+ /preview start
58
+
59
+ Response:
60
+ โš ๏ธ Port 3000 is in use.
61
+
62
+ Options:
63
+ 1. Start on port 3001
64
+ 2. Close app on 3000
65
+ 3. Specify different port
66
+
67
+ Which one? (default: 1)
68
+ ```
69
+
70
+ ---
71
+
72
+ ## Technical
73
+
74
+ Auto preview uses `auto_preview.py` script:
75
+
76
+ ```bash
77
+ python .agent/scripts/auto_preview.py start [port]
78
+ python .agent/scripts/auto_preview.py stop
79
+ python .agent/scripts/auto_preview.py status
80
+ ```
81
+
@@ -0,0 +1,86 @@
1
+ ---
2
+ description: Display agent and project status. Progress tracking and status board.
3
+ ---
4
+
5
+ # /status - Show Status
6
+
7
+ $ARGUMENTS
8
+
9
+ ---
10
+
11
+ ## Task
12
+
13
+ Show current project and agent status.
14
+
15
+ ### What It Shows
16
+
17
+ 1. **Project Info**
18
+ - Project name and path
19
+ - Tech stack
20
+ - Current features
21
+
22
+ 2. **Agent Status Board**
23
+ - Which agents are running
24
+ - Which tasks are completed
25
+ - Pending work
26
+
27
+ 3. **File Statistics**
28
+ - Files created count
29
+ - Files modified count
30
+
31
+ 4. **Preview Status**
32
+ - Is server running
33
+ - URL
34
+ - Health check
35
+
36
+ ---
37
+
38
+ ## Example Output
39
+
40
+ ```
41
+ === Project Status ===
42
+
43
+ ๐Ÿ“ Project: my-ecommerce
44
+ ๐Ÿ“‚ Path: C:/projects/my-ecommerce
45
+ ๐Ÿท๏ธ Type: nextjs-ecommerce
46
+ ๐Ÿ“Š Status: active
47
+
48
+ ๐Ÿ”ง Tech Stack:
49
+ Framework: next.js
50
+ Database: postgresql
51
+ Auth: clerk
52
+ Payment: stripe
53
+
54
+ โœ… Features (5):
55
+ โ€ข product-listing
56
+ โ€ข cart
57
+ โ€ข checkout
58
+ โ€ข user-auth
59
+ โ€ข order-history
60
+
61
+ โณ Pending (2):
62
+ โ€ข admin-panel
63
+ โ€ข email-notifications
64
+
65
+ ๐Ÿ“„ Files: 73 created, 12 modified
66
+
67
+ === Agent Status ===
68
+
69
+ โœ… database-architect โ†’ Completed
70
+ โœ… backend-specialist โ†’ Completed
71
+ ๐Ÿ”„ frontend-specialist โ†’ Dashboard components (60%)
72
+ โณ test-engineer โ†’ Waiting
73
+
74
+ === Preview ===
75
+
76
+ ๐ŸŒ URL: http://localhost:3000
77
+ ๐Ÿ’š Health: OK
78
+ ```
79
+
80
+ ---
81
+
82
+ ## Technical
83
+
84
+ Status uses these scripts:
85
+ - `python .agent/scripts/session_manager.py status`
86
+ - `python .agent/scripts/auto_preview.py status`
@@ -1,165 +1,144 @@
1
1
  ---
2
- command: /test
3
- description: Generate and run tests for code coverage and quality assurance
4
- agent: test-engineer
5
- skills:
6
- - testing-patterns
7
- - webapp-testing
8
- - tdd-workflow
9
- mode: thorough
2
+ description: Test generation and test running command. Creates and executes tests for code.
10
3
  ---
11
4
 
12
- # /test Workflow
5
+ # /test - Test Generation and Execution
13
6
 
14
- ## Purpose
15
- Generate comprehensive tests, run test suites, and improve code coverage.
7
+ $ARGUMENTS
16
8
 
17
- ## Trigger
18
- User types: `/test <target>` or `/test all`
9
+ ---
19
10
 
20
- ## Execution Steps
11
+ ## Purpose
21
12
 
22
- ### Step 1: Test Discovery
23
- Identify what needs testing:
24
- - Untested files/functions
25
- - Critical business logic
26
- - API endpoints
27
- - UI components
28
- - Edge cases
13
+ This command generates tests, runs existing tests, or checks test coverage.
29
14
 
30
- ### Step 2: Test Generation
15
+ ---
31
16
 
32
- **Unit Tests:**
33
- ```typescript
34
- - Test happy paths
35
- - Test error cases
36
- - Test edge cases
37
- - Test boundary conditions
38
- - Mock external dependencies
39
- ```
17
+ ## Sub-commands
40
18
 
41
- **Integration Tests:**
42
- ```typescript
43
- - Test API endpoints
44
- - Test database interactions
45
- - Test service integrations
46
- - Test authentication flows
47
19
  ```
48
-
49
- **E2E Tests:**
50
- ```typescript
51
- - Test critical user flows
52
- - Test form submissions
53
- - Test navigation
54
- - Test error handling
20
+ /test - Run all tests
21
+ /test [file/feature] - Generate tests for specific target
22
+ /test coverage - Show test coverage report
23
+ /test watch - Run tests in watch mode
55
24
  ```
56
25
 
57
- ### Step 3: Test Implementation
58
- Follow AAA pattern:
59
- ```typescript
60
- describe('functionName', () => {
61
- it('should [expected behavior] when [condition]', () => {
62
- // Arrange
63
- const input = ...;
64
-
65
- // Act
66
- const result = functionName(input);
67
-
68
- // Assert
69
- expect(result).toBe(expected);
70
- });
71
- });
72
- ```
26
+ ---
73
27
 
74
- ### Step 4: Test Execution
75
- Run tests and report:
76
- - Total tests
77
- - Passed/Failed
78
- - Coverage percentage
79
- - Duration
28
+ ## Behavior
80
29
 
81
- ### Step 5: Coverage Analysis
82
- Check coverage gaps:
83
- - Branches not covered
84
- - Functions not tested
85
- - Lines not executed
86
- - Prioritize critical code
30
+ ### Generate Tests
87
31
 
88
- ### Step 6: Coverage Improvement
89
- Add tests for uncovered code:
90
- - Edge cases
91
- - Error paths
92
- - Complex logic
32
+ When asked to test a file or feature:
93
33
 
94
- ## Response Format
34
+ 1. **Analyze the code**
35
+ - Identify functions and methods
36
+ - Find edge cases
37
+ - Detect dependencies to mock
95
38
 
96
- ```
97
- โšก Executing /test
39
+ 2. **Generate test cases**
40
+ - Happy path tests
41
+ - Error cases
42
+ - Edge cases
43
+ - Integration tests (if needed)
44
+
45
+ 3. **Write tests**
46
+ - Use project's test framework (Jest, Vitest, etc.)
47
+ - Follow existing test patterns
48
+ - Mock external dependencies
98
49
 
99
- ๐Ÿค– Applying @test-engineer...
50
+ ---
51
+
52
+ ## Output Format
53
+
54
+ ### For Test Generation
100
55
 
101
- ## Test Generation
56
+ ```markdown
57
+ ## ๐Ÿงช Tests: [Target]
102
58
 
103
- ### Files to Test
104
- - [file1]: [reason]
105
- - [file2]: [reason]
59
+ ### Test Plan
60
+ | Test Case | Type | Coverage |
61
+ |-----------|------|----------|
62
+ | Should create user | Unit | Happy path |
63
+ | Should reject invalid email | Unit | Validation |
64
+ | Should handle db error | Unit | Error case |
106
65
 
107
66
  ### Generated Tests
108
67
 
109
- #### Unit Tests
110
- ```typescript
111
- [Code]
68
+ `tests/[file].test.ts`
69
+
70
+ [Code block with tests]
71
+
72
+ ---
73
+
74
+ Run with: `npm test`
112
75
  ```
113
76
 
114
- #### Integration Tests
115
- ```typescript
116
- [Code]
77
+ ### For Test Execution
78
+
117
79
  ```
80
+ ๐Ÿงช Running tests...
81
+
82
+ โœ… auth.test.ts (5 passed)
83
+ โœ… user.test.ts (8 passed)
84
+ โŒ order.test.ts (2 passed, 1 failed)
85
+
86
+ Failed:
87
+ โœ— should calculate total with discount
88
+ Expected: 90
89
+ Received: 100
90
+
91
+ Total: 15 tests (14 passed, 1 failed)
92
+ ```
93
+
94
+ ---
95
+
96
+ ## Examples
118
97
 
119
- ## Test Results
120
-
121
- ### Summary
122
- - Total: 50 tests
123
- - Passed: 48 โœ…
124
- - Failed: 2 โŒ
125
- - Skipped: 0
126
-
127
- ### Coverage
128
- | Metric | Before | After | Target |
129
- |--------|--------|-------|--------|
130
- | Statements | 60% | 85% | 80% โœ… |
131
- | Branches | 50% | 75% | 80% โš ๏ธ |
132
- | Functions | 70% | 90% | 80% โœ… |
133
- | Lines | 65% | 85% | 80% โœ… |
134
-
135
- ### Failed Tests
136
- 1. [Test name]: [Error]
137
- - Fix: [Solution]
138
-
139
- ## Recommendations
140
- - [Recommendation 1]
141
- - [Recommendation 2]
142
98
  ```
99
+ /test src/services/auth.service.ts
100
+ /test user registration flow
101
+ /test coverage
102
+ /test fix failed tests
103
+ ```
104
+
105
+ ---
143
106
 
144
- ## Commands
107
+ ## Test Patterns
145
108
 
146
- **Test specific file:**
147
- `/test UserService.ts`
109
+ ### Unit Test Structure
148
110
 
149
- **Test all:**
150
- `/test all`
111
+ ```typescript
112
+ describe('AuthService', () => {
113
+ describe('login', () => {
114
+ it('should return token for valid credentials', async () => {
115
+ // Arrange
116
+ const credentials = { email: 'test@test.com', password: 'pass123' };
117
+
118
+ // Act
119
+ const result = await authService.login(credentials);
120
+
121
+ // Assert
122
+ expect(result.token).toBeDefined();
123
+ });
124
+
125
+ it('should throw for invalid password', async () => {
126
+ // Arrange
127
+ const credentials = { email: 'test@test.com', password: 'wrong' };
128
+
129
+ // Act & Assert
130
+ await expect(authService.login(credentials)).rejects.toThrow('Invalid credentials');
131
+ });
132
+ });
133
+ });
134
+ ```
151
135
 
152
- **Test specific type:**
153
- `/test --unit`
154
- `/test --integration`
155
- `/test --e2e`
136
+ ---
156
137
 
157
- **Coverage report:**
158
- `/test --coverage`
138
+ ## Key Principles
159
139
 
160
- ## Success Criteria
161
- - New tests generated
162
- - Coverage improved
163
- - Critical paths tested
164
- - All tests passing
165
- - Edge cases covered
140
+ - **Test behavior not implementation**
141
+ - **One assertion per test** (when practical)
142
+ - **Descriptive test names**
143
+ - **Arrange-Act-Assert pattern**
144
+ - **Mock external dependencies**