@theproductguy/create-mission-control 1.0.0

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 (195) hide show
  1. package/README.md +37 -0
  2. package/bin/cli.js +170 -0
  3. package/package.json +44 -0
  4. package/src/template/App.tsx +28 -0
  5. package/src/template/agent-os/commands/create-tasks/1-get-spec-requirements.md +19 -0
  6. package/src/template/agent-os/commands/create-tasks/2-create-tasks-list.md +234 -0
  7. package/src/template/agent-os/commands/create-tasks/create-tasks.md +254 -0
  8. package/src/template/agent-os/commands/design-screen/design-screen.md +32 -0
  9. package/src/template/agent-os/commands/design-shell/design-shell.md +34 -0
  10. package/src/template/agent-os/commands/design-tokens/design-tokens.md +36 -0
  11. package/src/template/agent-os/commands/export-product/export-product.md +181 -0
  12. package/src/template/agent-os/commands/implement-tasks/1-determine-tasks.md +13 -0
  13. package/src/template/agent-os/commands/implement-tasks/2-implement-tasks.md +63 -0
  14. package/src/template/agent-os/commands/implement-tasks/3-verify-implementation.md +113 -0
  15. package/src/template/agent-os/commands/implement-tasks/implement-tasks.md +207 -0
  16. package/src/template/agent-os/commands/initialize-design/initialize-design.md +67 -0
  17. package/src/template/agent-os/commands/orchestrate-tasks/orchestrate-tasks.md +180 -0
  18. package/src/template/agent-os/commands/plan-product/1-product-concept.md +53 -0
  19. package/src/template/agent-os/commands/plan-product/2-create-mission.md +78 -0
  20. package/src/template/agent-os/commands/plan-product/3-create-roadmap.md +73 -0
  21. package/src/template/agent-os/commands/plan-product/4-create-tech-stack.md +46 -0
  22. package/src/template/agent-os/commands/plan-product/plan-product.md +241 -0
  23. package/src/template/agent-os/commands/sample-data/sample-data.md +51 -0
  24. package/src/template/agent-os/commands/scaffold-implementation/scaffold-implementation.md +35 -0
  25. package/src/template/agent-os/commands/screenshot-design/screenshot-design.md +21 -0
  26. package/src/template/agent-os/commands/shape-spec/1-initialize-spec.md +95 -0
  27. package/src/template/agent-os/commands/shape-spec/2-shape-spec.md +300 -0
  28. package/src/template/agent-os/commands/shape-spec/shape-spec.md +40 -0
  29. package/src/template/agent-os/commands/write-spec/write-spec.md +134 -0
  30. package/src/template/agent-os/config.yml +13 -0
  31. package/src/template/agent-os/product/mission.md +29 -0
  32. package/src/template/agent-os/product/roadmap.md +9 -0
  33. package/src/template/agent-os/product/tech-stack.md +14 -0
  34. package/src/template/agent-os/scripts/generate_docs.sh +150 -0
  35. package/src/template/agent-os/specs/README.md +1 -0
  36. package/src/template/agent-os/standards/backend/api.md +10 -0
  37. package/src/template/agent-os/standards/backend/migrations.md +9 -0
  38. package/src/template/agent-os/standards/backend/models.md +10 -0
  39. package/src/template/agent-os/standards/backend/queries.md +9 -0
  40. package/src/template/agent-os/standards/frontend/accessibility.md +10 -0
  41. package/src/template/agent-os/standards/frontend/components.md +11 -0
  42. package/src/template/agent-os/standards/frontend/css.md +7 -0
  43. package/src/template/agent-os/standards/frontend/responsive.md +11 -0
  44. package/src/template/agent-os/standards/global/coding-style.md +10 -0
  45. package/src/template/agent-os/standards/global/commenting.md +5 -0
  46. package/src/template/agent-os/standards/global/conventions.md +11 -0
  47. package/src/template/agent-os/standards/global/error-handling.md +9 -0
  48. package/src/template/agent-os/standards/global/tech-stack.md +31 -0
  49. package/src/template/agent-os/standards/global/validation.md +11 -0
  50. package/src/template/agent-os/standards/testing/test-writing.md +9 -0
  51. package/src/template/agent-os-ui/README.md +73 -0
  52. package/src/template/agent-os-ui/package.json +54 -0
  53. package/src/template/agent-os-ui/src/components/AgentShell.tsx +31 -0
  54. package/src/template/agent-os-ui/src/components/AgentSidebar.tsx +65 -0
  55. package/src/template/agent-os-ui/src/components/GuidanceCard.tsx +75 -0
  56. package/src/template/agent-os-ui/src/components/MarkdownViewer.tsx +25 -0
  57. package/src/template/agent-os-ui/src/components/PromptButton.tsx +28 -0
  58. package/src/template/agent-os-ui/src/components/StatusItem.tsx +45 -0
  59. package/src/template/agent-os-ui/src/components/ThemeToggle.tsx +72 -0
  60. package/src/template/agent-os-ui/src/index.ts +11 -0
  61. package/src/template/agent-os-ui/src/style.css +3 -0
  62. package/src/template/agent-os-ui/tsconfig.json +33 -0
  63. package/src/template/agent-os-ui/vite.config.ts +32 -0
  64. package/src/template/control-center/backend/index.js +253 -0
  65. package/src/template/control-center/backend/package.json +19 -0
  66. package/src/template/control-center/frontend/README.md +73 -0
  67. package/src/template/control-center/frontend/eslint.config.js +23 -0
  68. package/src/template/control-center/frontend/index.html +21 -0
  69. package/src/template/control-center/frontend/package.json +43 -0
  70. package/src/template/control-center/frontend/postcss.config.js +6 -0
  71. package/src/template/control-center/frontend/public/favicon.svg +4 -0
  72. package/src/template/control-center/frontend/public/runtime-config.json +11 -0
  73. package/src/template/control-center/frontend/public/vite.svg +1 -0
  74. package/src/template/control-center/frontend/src/App.css +42 -0
  75. package/src/template/control-center/frontend/src/App.tsx +835 -0
  76. package/src/template/control-center/frontend/src/assets/react.svg +1 -0
  77. package/src/template/control-center/frontend/src/components/ThemeToggle.tsx +64 -0
  78. package/src/template/control-center/frontend/src/components/ui/ToastContext.tsx +81 -0
  79. package/src/template/control-center/frontend/src/index.css +149 -0
  80. package/src/template/control-center/frontend/src/main.tsx +14 -0
  81. package/src/template/control-center/frontend/src/vite-env.d.ts +1 -0
  82. package/src/template/control-center/frontend/tailwind.config.js +81 -0
  83. package/src/template/control-center/frontend/tsconfig.app.json +28 -0
  84. package/src/template/control-center/frontend/tsconfig.json +7 -0
  85. package/src/template/control-center/frontend/tsconfig.node.json +26 -0
  86. package/src/template/control-center/frontend/vite.config.ts +21 -0
  87. package/src/template/design/.claude/commands/design-os/data-model.md +122 -0
  88. package/src/template/design/.claude/commands/design-os/design-screen.md +309 -0
  89. package/src/template/design/.claude/commands/design-os/design-shell.md +238 -0
  90. package/src/template/design/.claude/commands/design-os/design-tokens.md +166 -0
  91. package/src/template/design/.claude/commands/design-os/export-product.md +1105 -0
  92. package/src/template/design/.claude/commands/design-os/product-roadmap.md +121 -0
  93. package/src/template/design/.claude/commands/design-os/product-vision.md +99 -0
  94. package/src/template/design/.claude/commands/design-os/sample-data.md +263 -0
  95. package/src/template/design/.claude/commands/design-os/screenshot-design.md +112 -0
  96. package/src/template/design/.claude/commands/design-os/shape-section.md +138 -0
  97. package/src/template/design/.claude/skills/frontend-design/SKILL.md +42 -0
  98. package/src/template/design/.github/CODE_OF_CONDUCT.md +5 -0
  99. package/src/template/design/.github/CONTRIBUTING.md +51 -0
  100. package/src/template/design/.github/ISSUE_TEMPLATE/config.yml +22 -0
  101. package/src/template/design/.github/PULL_REQUEST_TEMPLATE.md +20 -0
  102. package/src/template/design/.github/SECURITY.yml +5 -0
  103. package/src/template/design/.github/SUPPORT.md +19 -0
  104. package/src/template/design/.github/workflows/pr-decline.yml +135 -0
  105. package/src/template/design/.github/workflows/stale.yml +25 -0
  106. package/src/template/design/CHANGELOG.md +13 -0
  107. package/src/template/design/LICENSE +21 -0
  108. package/src/template/design/README.md +54 -0
  109. package/src/template/design/agents.md +218 -0
  110. package/src/template/design/claude.md +1 -0
  111. package/src/template/design/components.json +22 -0
  112. package/src/template/design/docs/codebase-implementation.md +153 -0
  113. package/src/template/design/docs/design-section.md +135 -0
  114. package/src/template/design/docs/export.md +149 -0
  115. package/src/template/design/docs/getting-started.md +59 -0
  116. package/src/template/design/docs/index.md +56 -0
  117. package/src/template/design/docs/product-planning.md +113 -0
  118. package/src/template/design/docs/requirements.md +22 -0
  119. package/src/template/design/docs/usage.md +62 -0
  120. package/src/template/design/eslint.config.js +23 -0
  121. package/src/template/design/index.html +21 -0
  122. package/src/template/design/package.json +46 -0
  123. package/src/template/design/postcss.config.js +6 -0
  124. package/src/template/design/public/favicon.svg +4 -0
  125. package/src/template/design/public/vite.svg +1 -0
  126. package/src/template/design/src/assets/react.svg +1 -0
  127. package/src/template/design/src/components/AppLayout.tsx +95 -0
  128. package/src/template/design/src/components/DataCard.tsx +139 -0
  129. package/src/template/design/src/components/DataModelPage.tsx +120 -0
  130. package/src/template/design/src/components/DesignPage.tsx +284 -0
  131. package/src/template/design/src/components/EmptyState.tsx +158 -0
  132. package/src/template/design/src/components/ExportPage.tsx +354 -0
  133. package/src/template/design/src/components/NextPhaseButton.tsx +33 -0
  134. package/src/template/design/src/components/PhaseNav.tsx +152 -0
  135. package/src/template/design/src/components/PhaseWarningBanner.tsx +81 -0
  136. package/src/template/design/src/components/ProductOverviewCard.tsx +102 -0
  137. package/src/template/design/src/components/ProductPage.tsx +97 -0
  138. package/src/template/design/src/components/ScreenDesignPage.tsx +370 -0
  139. package/src/template/design/src/components/ScreenDesignsCard.tsx +49 -0
  140. package/src/template/design/src/components/SectionPage.tsx +256 -0
  141. package/src/template/design/src/components/SectionsCard.tsx +47 -0
  142. package/src/template/design/src/components/SectionsPage.tsx +181 -0
  143. package/src/template/design/src/components/ShellCard.tsx +85 -0
  144. package/src/template/design/src/components/ShellDesignPage.tsx +242 -0
  145. package/src/template/design/src/components/SpecCard.tsx +121 -0
  146. package/src/template/design/src/components/StepIndicator.tsx +75 -0
  147. package/src/template/design/src/components/ThemeToggle.tsx +86 -0
  148. package/src/template/design/src/components/ui/ToastContext.tsx +81 -0
  149. package/src/template/design/src/components/ui/avatar.tsx +53 -0
  150. package/src/template/design/src/components/ui/badge.tsx +46 -0
  151. package/src/template/design/src/components/ui/button.tsx +60 -0
  152. package/src/template/design/src/components/ui/card.tsx +92 -0
  153. package/src/template/design/src/components/ui/collapsible.tsx +48 -0
  154. package/src/template/design/src/components/ui/dialog.tsx +143 -0
  155. package/src/template/design/src/components/ui/dropdown-menu.tsx +255 -0
  156. package/src/template/design/src/components/ui/input.tsx +21 -0
  157. package/src/template/design/src/components/ui/label.tsx +22 -0
  158. package/src/template/design/src/components/ui/progress.tsx +24 -0
  159. package/src/template/design/src/components/ui/scroll-area.tsx +18 -0
  160. package/src/template/design/src/components/ui/select.tsx +67 -0
  161. package/src/template/design/src/components/ui/separator.tsx +28 -0
  162. package/src/template/design/src/components/ui/sheet.tsx +137 -0
  163. package/src/template/design/src/components/ui/skeleton.tsx +13 -0
  164. package/src/template/design/src/components/ui/switch.tsx +46 -0
  165. package/src/template/design/src/components/ui/table.tsx +116 -0
  166. package/src/template/design/src/components/ui/tabs.tsx +64 -0
  167. package/src/template/design/src/index.css +239 -0
  168. package/src/template/design/src/lib/data-model-loader.ts +91 -0
  169. package/src/template/design/src/lib/design-system-loader.ts +101 -0
  170. package/src/template/design/src/lib/product-loader.ts +221 -0
  171. package/src/template/design/src/lib/router.tsx +61 -0
  172. package/src/template/design/src/lib/section-loader.ts +272 -0
  173. package/src/template/design/src/lib/shell-loader.ts +175 -0
  174. package/src/template/design/src/lib/utils.ts +6 -0
  175. package/src/template/design/src/main.tsx +15 -0
  176. package/src/template/design/src/sections/.gitkeep +0 -0
  177. package/src/template/design/src/sections/ai-orchestration-engine-oai/OrchestrationEngine.tsx +348 -0
  178. package/src/template/design/src/sections/core-platform-shell/AppShell.tsx +403 -0
  179. package/src/template/design/src/sections/gemini-live-integration/GeminiIntegration.tsx +332 -0
  180. package/src/template/design/src/sections/interactive-2d-canvas/WhiteboardCanvas.tsx +334 -0
  181. package/src/template/design/src/sections/participation-equity-tracker/EquityTracker.tsx +383 -0
  182. package/src/template/design/src/sections/persistent-memory-system/PersistentMemory.tsx +308 -0
  183. package/src/template/design/src/sections/real-time-communication-layer/VideoSession.tsx +342 -0
  184. package/src/template/design/src/sections/visual-intelligence-agents/VisualAgents.tsx +311 -0
  185. package/src/template/design/src/types/product.ts +97 -0
  186. package/src/template/design/src/types/section.ts +33 -0
  187. package/src/template/design/tailwind.config.js +77 -0
  188. package/src/template/design/tsconfig.app.json +34 -0
  189. package/src/template/design/tsconfig.json +13 -0
  190. package/src/template/design/tsconfig.node.json +26 -0
  191. package/src/template/design/vite.config.ts +17 -0
  192. package/src/template/index.css +102 -0
  193. package/src/template/package.json +27 -0
  194. package/src/template/tailwind.config.js +80 -0
  195. package/src/template/vite.config.ts +9 -0
@@ -0,0 +1,254 @@
1
+ I want you to create a tasks breakdown from a given spec and requirements for a new feature using the following MULTI-PHASE process and instructions.
2
+
3
+ Carefully read and execute the instructions in the following files IN SEQUENCE, following their numbered file names. Only proceed to the next numbered instruction file once the previous numbered instruction has been executed.
4
+
5
+ Instructions to follow in sequence:
6
+
7
+ # PHASE 1: Get Spec Requirements
8
+
9
+ The FIRST STEP is to make sure you have ONE OR BOTH of these files to inform your tasks breakdown:
10
+ - `agent-os/specs/[this-spec]/spec.md`
11
+ - `agent-os/specs/[this-spec]/planning/requirements.md`
12
+
13
+ IF you don't have ONE OR BOTH of those files in your current conversation context, then ask user to provide direction on where to you can find them by outputting the following request then wait for user's response:
14
+
15
+ "I'll need a spec.md or requirements.md (or both) in order to build a tasks list.
16
+
17
+ Please direct me to where I can find those. If you haven't created them yet, you can run /shape-spec or /write-spec."
18
+
19
+ # PHASE 2: Create Tasks List
20
+
21
+ Now that you have the spec.md AND/OR requirements.md, please break those down into an actionable tasks list with strategic grouping and ordering, by following these instructions:
22
+
23
+ # Task List Creation
24
+
25
+ ## Core Responsibilities
26
+
27
+ 1. **Analyze spec and requirements**: Read and analyze the spec.md and/or requirements.md to inform the tasks list you will create.
28
+ 2. **Plan task execution order**: Break the requirements into a list of tasks in an order that takes their dependencies into account.
29
+ 3. **Group tasks by specialization**: Group tasks that require the same skill or stack specialization together (backend, api, ui design, etc.)
30
+ 4. **Create Tasks list**: Create the markdown tasks list broken into groups with sub-tasks.
31
+
32
+ ## Workflow
33
+
34
+ ### Step 1: Analyze Spec & Requirements
35
+
36
+ Read each of these files (whichever are available) and analyze them to understand the requirements for this feature implementation:
37
+ - `agent-os/specs/[this-spec]/spec.md`
38
+ - `agent-os/specs/[this-spec]/planning/requirements.md`
39
+
40
+ Use your learnings to inform the tasks list and groupings you will create in the next step.
41
+
42
+
43
+ ### Step 2: Create Tasks Breakdown
44
+
45
+ Generate `agent-os/specs/[current-spec]/tasks.md`.
46
+
47
+ **Important**: The exact tasks, task groups, and organization will vary based on the feature's specific requirements. The following is an example format - adapt the content of the tasks list to match what THIS feature actually needs.
48
+
49
+ ```markdown
50
+ # Task Breakdown: [Feature Name]
51
+
52
+ ## Overview
53
+ Total Tasks: [count]
54
+
55
+ ## Task List
56
+
57
+ ### Database Layer
58
+
59
+ #### Task Group 1: Data Models and Migrations
60
+ **Dependencies:** None
61
+
62
+ - [ ] 1.0 Complete database layer
63
+ - [ ] 1.1 Write 2-8 focused tests for [Model] functionality
64
+ - Limit to 2-8 highly focused tests maximum
65
+ - Test only critical model behaviors (e.g., primary validation, key association, core method)
66
+ - Skip exhaustive coverage of all methods and edge cases
67
+ - [ ] 1.2 Create [Model] with validations
68
+ - Fields: [list]
69
+ - Validations: [list]
70
+ - Reuse pattern from: [existing model if applicable]
71
+ - [ ] 1.3 Create migration for [table]
72
+ - Add indexes for: [fields]
73
+ - Foreign keys: [relationships]
74
+ - [ ] 1.4 Set up associations
75
+ - [Model] has_many [related]
76
+ - [Model] belongs_to [parent]
77
+ - [ ] 1.5 Ensure database layer tests pass
78
+ - Run ONLY the 2-8 tests written in 1.1
79
+ - Verify migrations run successfully
80
+ - Do NOT run the entire test suite at this stage
81
+
82
+ **Acceptance Criteria:**
83
+ - The 2-8 tests written in 1.1 pass
84
+ - Models pass validation tests
85
+ - Migrations run successfully
86
+ - Associations work correctly
87
+
88
+ ### API Layer
89
+
90
+ #### Task Group 2: API Endpoints
91
+ **Dependencies:** Task Group 1
92
+
93
+ - [ ] 2.0 Complete API layer
94
+ - [ ] 2.1 Write 2-8 focused tests for API endpoints
95
+ - Limit to 2-8 highly focused tests maximum
96
+ - Test only critical controller actions (e.g., primary CRUD operation, auth check, key error case)
97
+ - Skip exhaustive testing of all actions and scenarios
98
+ - [ ] 2.2 Create [resource] controller
99
+ - Actions: index, show, create, update, destroy
100
+ - Follow pattern from: [existing controller]
101
+ - [ ] 2.3 Implement authentication/authorization
102
+ - Use existing auth pattern
103
+ - Add permission checks
104
+ - [ ] 2.4 Add API response formatting
105
+ - JSON responses
106
+ - Error handling
107
+ - Status codes
108
+ - [ ] 2.5 Ensure API layer tests pass
109
+ - Run ONLY the 2-8 tests written in 2.1
110
+ - Verify critical CRUD operations work
111
+ - Do NOT run the entire test suite at this stage
112
+
113
+ **Acceptance Criteria:**
114
+ - The 2-8 tests written in 2.1 pass
115
+ - All CRUD operations work
116
+ - Proper authorization enforced
117
+ - Consistent response format
118
+
119
+ ### Frontend Components
120
+
121
+ #### Task Group 3: UI Design
122
+ **Dependencies:** Task Group 2
123
+
124
+ - [ ] 3.0 Complete UI components
125
+ - [ ] 3.1 Write 2-8 focused tests for UI components
126
+ - Limit to 2-8 highly focused tests maximum
127
+ - Test only critical component behaviors (e.g., primary user interaction, key form submission, main rendering case)
128
+ - Skip exhaustive testing of all component states and interactions
129
+ - [ ] 3.2 Create [Component] component
130
+ - Reuse: [existing component] as base
131
+ - Props: [list]
132
+ - State: [list]
133
+ - [ ] 3.3 Implement [Feature] form
134
+ - Fields: [list]
135
+ - Validation: client-side
136
+ - Submit handling
137
+ - [ ] 3.4 Build [View] page
138
+ - Layout: [description]
139
+ - Components: [list]
140
+ - Match mockup: `planning/visuals/[file]`
141
+ - [ ] 3.5 Apply base styles
142
+ - Follow existing design system
143
+ - Use variables from: [style file]
144
+ - [ ] 3.6 Implement responsive design
145
+ - Mobile: 320px - 768px
146
+ - Tablet: 768px - 1024px
147
+ - Desktop: 1024px+
148
+ - [ ] 3.7 Add interactions and animations
149
+ - Hover states
150
+ - Transitions
151
+ - Loading states
152
+ - [ ] 3.8 Ensure UI component tests pass
153
+ - Run ONLY the 2-8 tests written in 3.1
154
+ - Verify critical component behaviors work
155
+ - Do NOT run the entire test suite at this stage
156
+
157
+ **Acceptance Criteria:**
158
+ - The 2-8 tests written in 3.1 pass
159
+ - Components render correctly
160
+ - Forms validate and submit
161
+ - Matches visual design
162
+
163
+ ### Testing
164
+
165
+ #### Task Group 4: Test Review & Gap Analysis
166
+ **Dependencies:** Task Groups 1-3
167
+
168
+ - [ ] 4.0 Review existing tests and fill critical gaps only
169
+ - [ ] 4.1 Review tests from Task Groups 1-3
170
+ - Review the 2-8 tests written by database-engineer (Task 1.1)
171
+ - Review the 2-8 tests written by api-engineer (Task 2.1)
172
+ - Review the 2-8 tests written by ui-designer (Task 3.1)
173
+ - Total existing tests: approximately 6-24 tests
174
+ - [ ] 4.2 Analyze test coverage gaps for THIS feature only
175
+ - Identify critical user workflows that lack test coverage
176
+ - Focus ONLY on gaps related to this spec's feature requirements
177
+ - Do NOT assess entire application test coverage
178
+ - Prioritize end-to-end workflows over unit test gaps
179
+ - [ ] 4.3 Write up to 10 additional strategic tests maximum
180
+ - Add maximum of 10 new tests to fill identified critical gaps
181
+ - Focus on integration points and end-to-end workflows
182
+ - Do NOT write comprehensive coverage for all scenarios
183
+ - Skip edge cases, performance tests, and accessibility tests unless business-critical
184
+ - [ ] 4.4 Run feature-specific tests only
185
+ - Run ONLY tests related to this spec's feature (tests from 1.1, 2.1, 3.1, and 4.3)
186
+ - Expected total: approximately 16-34 tests maximum
187
+ - Do NOT run the entire application test suite
188
+ - Verify critical workflows pass
189
+
190
+ **Acceptance Criteria:**
191
+ - All feature-specific tests pass (approximately 16-34 tests total)
192
+ - Critical user workflows for this feature are covered
193
+ - No more than 10 additional tests added when filling in testing gaps
194
+ - Testing focused exclusively on this spec's feature requirements
195
+
196
+ ## Execution Order
197
+
198
+ Recommended implementation sequence:
199
+ 1. Database Layer (Task Group 1)
200
+ 2. API Layer (Task Group 2)
201
+ 3. Frontend Design (Task Group 3)
202
+ 4. Test Review & Gap Analysis (Task Group 4)
203
+ ```
204
+
205
+ **Note**: Adapt this structure based on the actual feature requirements. Some features may need:
206
+ - Different task groups (e.g., email notifications, payment processing, data migration)
207
+ - Different execution order based on dependencies
208
+ - More or fewer sub-tasks per group
209
+
210
+ ## Important Constraints
211
+
212
+ - **Create tasks that are specific and verifiable**
213
+ - **Group related tasks:** For example, group back-end engineering tasks together and front-end UI tasks together.
214
+ - **Limit test writing during development**:
215
+ - Each task group (1-3) should write 2-8 focused tests maximum
216
+ - Tests should cover only critical behaviors, not exhaustive coverage
217
+ - Test verification should run ONLY the newly written tests, not the entire suite
218
+ - If there is a dedicated test coverage group for filling in gaps in test coverage, this group should add only a maximum of 10 additional tests IF NECESSARY to fill critical gaps
219
+ - **Use a focused test-driven approach** where each task group starts with writing 2-8 tests (x.1 sub-task) and ends with running ONLY those tests (final sub-task)
220
+ - **Include acceptance criteria** for each task group
221
+ - **Reference visual assets** if visuals are available
222
+
223
+
224
+ ## Display confirmation and next step
225
+
226
+ Display the following message to the user:
227
+
228
+ ```
229
+ The tasks list has created at `agent-os/specs/[this-spec]/tasks.md`.
230
+
231
+ Review it closely to make sure it all looks good.
232
+
233
+ NEXT STEP 👉 Run `/implement-tasks` (simple, effective) or `/orchestrate-tasks` (advanced, powerful) to start building!
234
+ ```
235
+
236
+ ## User Standards & Preferences Compliance
237
+
238
+ IMPORTANT: Ensure that the tasks list is ALIGNED and DOES NOT CONFLICT with the user's preferences and standards as detailed in the following files:
239
+
240
+ @agent-os/standards/backend/api.md
241
+ @agent-os/standards/backend/migrations.md
242
+ @agent-os/standards/backend/models.md
243
+ @agent-os/standards/backend/queries.md
244
+ @agent-os/standards/frontend/accessibility.md
245
+ @agent-os/standards/frontend/components.md
246
+ @agent-os/standards/frontend/css.md
247
+ @agent-os/standards/frontend/responsive.md
248
+ @agent-os/standards/global/coding-style.md
249
+ @agent-os/standards/global/commenting.md
250
+ @agent-os/standards/global/conventions.md
251
+ @agent-os/standards/global/error-handling.md
252
+ @agent-os/standards/global/tech-stack.md
253
+ @agent-os/standards/global/validation.md
254
+ @agent-os/standards/testing/test-writing.md
@@ -0,0 +1,32 @@
1
+ # COMMAND: Design Screen Component
2
+
3
+ ## Goal
4
+ Implement a React component for a specific screen design within a section.
5
+
6
+ ## Prerequisites
7
+ - `design-system/product/sections/[section-id]/spec.md` (for requirements).
8
+ - `design-system/product/sections/[section-id]/data.json` (for sample data).
9
+ - `design-system/src/components/ui` (Design System components must be used).
10
+ - You must know the **Section Title** and **Section ID**.
11
+
12
+ ## Instructions
13
+
14
+ ### Step 1: Analyze Requirements
15
+ - Read the Spec to understand the user flow and UI requirements.
16
+ - Read the Data to understand the content structure.
17
+
18
+ ### Step 2: Create Component
19
+ Create `design-system/src/sections/[section-id]/[ComponentName].tsx`.
20
+
21
+ **Guidelines:**
22
+ - Use `lucide-react` for icons.
23
+ - Use `Tailwind CSS` for styling (matching `colors.json` and `typography.json`).
24
+ - Import UI components from `@/components/ui/...`.
25
+ - **Mock Data**: Import data from the section's `data.json` if possible, or define strictly typed mock data within the file matching the real data structure.
26
+ - **Props**: The component can accept props but should have a default export with no required props for easy rendering in the viewer.
27
+
28
+ ### Step 3: Register Component
29
+ (Note: The `section-loader.ts` will automatically pick up any `.tsx` file in `src/sections/[id]/` as a screen design. No manual registration needed.)
30
+
31
+ ### Step 4: Verification
32
+ - Output: "Screen design '[ComponentName]' created! You can now view it in Design OS."
@@ -0,0 +1,34 @@
1
+ # COMMAND: Generate App Shell
2
+
3
+ ## Goal
4
+ Design the application shell (navigation, layout) for the product.
5
+
6
+ ## Prerequisites
7
+ - `design-system/product/product-roadmap.md` must exist (to determine navigation items).
8
+ - `design-system/product/product-overview.md` must exist.
9
+
10
+ ## Instructions
11
+
12
+ ### Step 1: Analyze Roadmap
13
+ Read the roadmap to determine the main navigation sections (e.g. Dashboard, Settings, Projects).
14
+
15
+ ### Step 2: Create Shell Spec
16
+ Create `design-system/product/shell/spec.md`.
17
+
18
+ Format:
19
+ ```markdown
20
+ # Application Shell Specification
21
+
22
+ ## Overview
23
+ [Describe the layout strategy - e.g. Sidebar layout for complex apps, Top-nav for simple tools]
24
+
25
+ ## Navigation Structure
26
+ - [Nav Item 1] -> [Link to Section]
27
+ - [Nav Item 2] -> [Link to Section]
28
+
29
+ ## Layout Pattern
30
+ [Description of the layout components]
31
+ ```
32
+
33
+ ### Step 3: Verification
34
+ - Output: "App Shell designed! You can now view the layout in Design OS."
@@ -0,0 +1,36 @@
1
+ # COMMAND: Generate Design Tokens
2
+
3
+ ## Goal
4
+ Create the visual foundation (colors, typography) for the product based on its Mission and Brand.
5
+
6
+ ## Prerequisites
7
+ - `design-system/product/product-overview.md` must exist.
8
+
9
+ ## Instructions
10
+
11
+ ### Step 1: Analyze Product Brand
12
+ Read `design-system/product/product-overview.md` to understand the product's mood, target audience, and vibe (e.g., "Professional & Trustworthy" vs "Playful & Vibrant").
13
+
14
+ ### Step 2: Generate Color Key
15
+ Create `design-system/product/design-system/colors.json` with the following structure. select colors that match the brand.
16
+ ```json
17
+ {
18
+ "primary": "blue", // e.g. blue, indigo, violet, rose (Tailwind color names)
19
+ "secondary": "slate", // e.g. slate, gray, zinc, stone
20
+ "neutral": "gray" // e.g. slate, gray, zinc, stone
21
+ }
22
+ ```
23
+
24
+ ### Step 3: Generate Typography
25
+ Create `design-system/product/design-system/typography.json`.
26
+ ```json
27
+ {
28
+ "heading": "Inter", // e.g. Inter, DM Sans, Roboto, Playfair Display
29
+ "body": "Inter", // e.g. Inter, Roboto, Open Sans
30
+ "mono": "JetBrains Mono" // e.g. JetBrains Mono, Fira Code, IBM Plex Mono
31
+ }
32
+ ```
33
+
34
+ ### Step 4: Verification
35
+ - Check that the files exist.
36
+ - Output: "Design Tokens generated! You can now view them in Design OS."
@@ -0,0 +1,181 @@
1
+ # Export Product Package
2
+
3
+ You are helping the user export their complete product design as a handoff package for implementation. This generates all files needed to build the product in a real codebase.
4
+
5
+ ## Step 1: Check Prerequisites
6
+
7
+ Verify the minimum requirements exist:
8
+
9
+ **Required:**
10
+ - `design-system/product/product-overview.md` — Product overview
11
+ - `design-system/product/product-roadmap.md` — Sections defined
12
+ - At least one section with screen designs in `design-system/src/sections/[section-id]/`
13
+
14
+ **Recommended (show warning if missing):**
15
+ - `design-system/product/data-model/data-model.md` — Global data model
16
+ - `design-system/public/product/design-system/colors.json` — Color tokens
17
+ - `design-system/public/product/design-system/typography.json` — Typography tokens
18
+ - `design-system/src/shell/components/AppShell.tsx` — Application shell
19
+
20
+ If required files are missing, stop and ask the user to complete them first.
21
+
22
+ ## Step 2: Create Export Directory Structure
23
+
24
+ Create the `product-plan/` directory in the project root with this structure:
25
+
26
+ ```
27
+ product-plan/
28
+ ├── README.md # Quick start guide
29
+ ├── product-overview.md # Product summary (always provide)
30
+ │
31
+ ├── prompts/ # Ready-to-use prompts for coding agents
32
+ │ ├── one-shot-prompt.md # Prompt for full implementation
33
+ │ └── section-prompt.md # Prompt template for section-by-section
34
+ │
35
+ ├── instructions/ # Implementation instructions
36
+ │ ├── one-shot-instructions.md # All milestones combined
37
+ │ └── incremental/ # For milestone-by-milestone implementation
38
+ │ ├── 01-foundation.md
39
+ │ ├── 02-[first-section].md
40
+ │ ├── 03-[second-section].md
41
+ │ └── ...
42
+ │
43
+ ├── design-system/ # Design tokens
44
+ │ ├── tokens.css
45
+ │ ├── tailwind-colors.md
46
+ │ └── fonts.md
47
+ │ ├── colors.json
48
+ │ └── typography.json
49
+ │
50
+ ├── data-model/ # Data model
51
+ │ ├── README.md
52
+ │ ├── types.ts
53
+ │ └── sample-data.json
54
+ │
55
+ ├── shell/ # Shell components
56
+ │ ├── README.md
57
+ │ ├── components/
58
+ │ └── screenshot.png (if exists)
59
+ │
60
+ └── sections/ # Section components
61
+ └── [section-id]/
62
+ ├── README.md
63
+ ├── tests.md # Test-writing instructions for TDD
64
+ ├── components/
65
+ ├── types.ts
66
+ ├── sample-data.json
67
+ └── screenshot.png (if exists)
68
+ ```
69
+
70
+ ## Step 3: Copy Core Documentation
71
+
72
+ 1. Copy `design-system/product/product-overview.md` to `product-plan/product-overview.md`
73
+ 2. Copy `design-system/product/product-roadmap.md` to `product-plan/product-roadmap.md`
74
+
75
+ ## Step 4: Generate Design System Files
76
+
77
+ ### tokens.css
78
+ Create `product-plan/design-system/tokens.css` based on `colors.json` and `typography.json` found in `design-system/public/product/design-system/`.
79
+
80
+ ### tailwind-colors.md
81
+ Create `product-plan/design-system/tailwind-colors.md` mapping the colors to proper Tailwind configuration.
82
+
83
+ ### Copy JSONs
84
+ Copy `colors.json` and `typography.json` to `product-plan/design-system/`.
85
+
86
+ ## Step 5: Generate Data Model Files
87
+
88
+ If `design-system/product/data-model/data-model.md` exists, copy it to `product-plan/data-model/README.md`.
89
+ If schema types exist (e.g. `schema.ts`), copy to `product-plan/data-model/types.ts`.
90
+
91
+ ## Step 6: Generate Milestone Instructions
92
+
93
+ (Same logic as internal Design OS command, adapted for path `design-system/src/...`)
94
+
95
+ ### 01-foundation.md
96
+ Create `product-plan/instructions/incremental/01-foundation.md`.
97
+ Includes: Design tokens setup, App Shell (copy from `design-system/src/shell/`), and Routing structure.
98
+
99
+ ### Section Milestones
100
+ For each section in the roadmap (`design-system/product/sections/[id]/`):
101
+ Create `product-plan/instructions/incremental/[NN]-[section-id].md`.
102
+ Content should include:
103
+ - Goal & Overview
104
+ - TDD Instructions (reference `product-plan/sections/[id]/tests.md`)
105
+ - Components listing
106
+ - Data Layer requirements
107
+ - Expected User Flows
108
+
109
+ ## Step 7: Generate Section Assets
110
+
111
+ For each section:
112
+ 1. Creates `product-plan/sections/[section-id]/README.md`
113
+ 2. Creates `product-plan/sections/[section-id]/tests.md` (Framework-agnostic test specs)
114
+ 3. Copies components from `design-system/src/sections/[section-id]/` to `product-plan/sections/[section-id]/components/`
115
+ - **Crucial:** Transform imports to be relative!
116
+ 4. Copies types and data from `design-system/product/sections/[section-id]/` to `product-plan/sections/[section-id]/`
117
+
118
+ ## Step 8: Generate Prompt Files
119
+
120
+ **This is the most important step for the user.**
121
+
122
+ ### product-plan/prompts/one-shot-prompt.md
123
+
124
+ ```markdown
125
+ # One-Shot Implementation Prompt
126
+
127
+ I need you to implement a complete web application based on detailed design specifications.
128
+
129
+ ## Instructions
130
+ 1. Read **@product-plan/product-overview.md**
131
+ 2. Read **@product-plan/instructions/one-shot-instructions.md** (which combines all milestones)
132
+
133
+ ## Context
134
+ - **Design System:** @product-plan/design-system/
135
+ - **Data Model:** @product-plan/data-model/
136
+ - **Shell:** @product-plan/shell/
137
+ - **Sections:** @product-plan/sections/
138
+
139
+ ## Before coding
140
+ Ask me satisfying questions about:
141
+ 1. Authentication
142
+ 2. User Modeling
143
+ 3. Tech Stack
144
+ 4. Backend Logic
145
+
146
+ Then create a plan and implement.
147
+ ```
148
+
149
+ ### product-plan/prompts/section-prompt.md
150
+
151
+ ```markdown
152
+ # Section Implementation Prompt
153
+
154
+ ## Variables
155
+ - **SECTION_ID**: [folder name]
156
+
157
+ ## Instructions
158
+ I need you to implement the **SECTION_ID** section.
159
+
160
+ 1. Read **@product-plan/product-overview.md**
161
+ 2. Read **@product-plan/instructions/incremental/[Milestone]-SECTION_ID.md**
162
+
163
+ ## Approach
164
+ Use Test-Driven Development (TDD) based on `@product-plan/sections/SECTION_ID/tests.md`.
165
+ ```
166
+
167
+ ## Step 9: Zip and Handoff
168
+
169
+ 1. Zip `product-plan/` into `product-plan.zip`.
170
+ 2. Sync key files to `app/agent-os/product/` (Overview, Roadmap, Data Model, Design System) to update the status in the main app dashboard.
171
+
172
+ ## Final Output
173
+
174
+ Tell the user:
175
+ "Export complete!
176
+ - **Prompts:** `product-plan/prompts/`
177
+ - **Instructions:** `product-plan/instructions/`
178
+ - **Assets:** `product-plan/sections/`
179
+ - **Zip:** `product-plan.zip`
180
+
181
+ You can use `product-plan/prompts/one-shot-prompt.md` to start building!"
@@ -0,0 +1,13 @@
1
+ First, check if the user has already provided instructions about which task group(s) to implement.
2
+
3
+ **If the user HAS provided instructions:** Proceed to PHASE 2 to delegate implementation of those specified task group(s) to the **implementer** subagent.
4
+
5
+ **If the user has NOT provided instructions:**
6
+
7
+ Read `agent-os/specs/[this-spec]/tasks.md` to review the available task groups, then output the following message to the user and WAIT for their response:
8
+
9
+ ```
10
+ Should we proceed with implementation of all task groups in tasks.md?
11
+
12
+ If not, then please specify which task(s) to implement.
13
+ ```
@@ -0,0 +1,63 @@
1
+ Now that you have the task group(s) to be implemented, proceed with implementation by following these instructions:
2
+
3
+ Implement all tasks assigned to you and ONLY those task(s) that have been assigned to you.
4
+
5
+ ## Implementation process:
6
+
7
+ 1. Analyze the provided spec.md, requirements.md, and visuals (if any)
8
+ 2. Analyze patterns in the codebase according to its built-in workflow
9
+ 3. Implement the assigned task group according to requirements and standards
10
+ 4. Update `agent-os/specs/[this-spec]/tasks.md` to update the tasks you've implemented to mark that as done by updating their checkbox to checked state: `- [x]`
11
+
12
+ ## Guide your implementation using:
13
+ - **The existing patterns** that you've found and analyzed in the codebase.
14
+ - **Specific notes provided in requirements.md, spec.md AND/OR tasks.md**
15
+ - **Visuals provided (if any)** which would be located in `agent-os/specs/[this-spec]/planning/visuals/`
16
+ - **User Standards & Preferences** which are defined below.
17
+
18
+ ## Self-verify and test your work by:
19
+ - Running ONLY the tests you've written (if any) and ensuring those tests pass.
20
+ - IF your task involves user-facing UI, and IF you have access to browser testing tools, open a browser and use the feature you've implemented as if you are a user to ensure a user can use the feature in the intended way.
21
+ - Take screenshots of the views and UI elements you've tested and store those in `agent-os/specs/[this-spec]/verification/screenshots/`. Do not store screenshots anywhere else in the codebase other than this location.
22
+ - Analyze the screenshot(s) you've taken to check them against your current requirements.
23
+
24
+
25
+ ## Display confirmation and next step
26
+
27
+ Display a summary of what was implemented.
28
+
29
+ IF all tasks are now marked as done (with `- [x]`) in tasks.md, display this message to user:
30
+
31
+ ```
32
+ All tasks have been implemented: `agent-os/specs/[this-spec]/tasks.md`.
33
+
34
+ NEXT STEP 👉 Run `3-verify-implementation.md` to verify the implementation.
35
+ ```
36
+
37
+ IF there are still tasks in tasks.md that have yet to be implemented (marked unfinished with `- [ ]`) then display this message to user:
38
+
39
+ ```
40
+ Would you like to proceed with implementation of the remaining tasks in tasks.md?
41
+
42
+ If not, please specify which task group(s) to implement next.
43
+ ```
44
+
45
+ ## User Standards & Preferences Compliance
46
+
47
+ IMPORTANT: Ensure that the tasks list is ALIGNED and DOES NOT CONFLICT with the user's preferences and standards as detailed in the following files:
48
+
49
+ @agent-os/standards/backend/api.md
50
+ @agent-os/standards/backend/migrations.md
51
+ @agent-os/standards/backend/models.md
52
+ @agent-os/standards/backend/queries.md
53
+ @agent-os/standards/frontend/accessibility.md
54
+ @agent-os/standards/frontend/components.md
55
+ @agent-os/standards/frontend/css.md
56
+ @agent-os/standards/frontend/responsive.md
57
+ @agent-os/standards/global/coding-style.md
58
+ @agent-os/standards/global/commenting.md
59
+ @agent-os/standards/global/conventions.md
60
+ @agent-os/standards/global/error-handling.md
61
+ @agent-os/standards/global/tech-stack.md
62
+ @agent-os/standards/global/validation.md
63
+ @agent-os/standards/testing/test-writing.md