@shinnodua/agent-workflows 0.0.0-stage → 0.2.6

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 (190) hide show
  1. package/.agents/agents/backend-developer/agent.md +39 -0
  2. package/.agents/agents/frontend-developer/agent.md +42 -0
  3. package/.agents/agents/project-manager/agent.md +37 -0
  4. package/.agents/agents/tech-lead/agent.md +41 -0
  5. package/.agents/agents/ui-ux-designer/agent.md +41 -0
  6. package/.agents/skills/add-project/SKILL.md +90 -0
  7. package/.agents/skills/add-project/agents/openai.yaml +4 -0
  8. package/.agents/skills/add-project/references/save-protocol.md +90 -0
  9. package/.agents/skills/approve-plan/SKILL.md +86 -0
  10. package/.agents/skills/approve-plan/agents/openai.yaml +4 -0
  11. package/.agents/skills/approve-prd/SKILL.md +59 -0
  12. package/.agents/skills/approve-prd/agents/openai.yaml +4 -0
  13. package/.agents/skills/auto-mode/SKILL.md +103 -0
  14. package/.agents/skills/auto-mode/agents/openai.yaml +4 -0
  15. package/.agents/skills/create-design/SKILL.md +197 -0
  16. package/.agents/skills/create-design/agents/openai.yaml +4 -0
  17. package/.agents/skills/create-diagram/SKILL.md +83 -0
  18. package/.agents/skills/create-diagram/agents/openai.yaml +4 -0
  19. package/.agents/skills/create-plan/SKILL.md +104 -0
  20. package/.agents/skills/create-plan/agents/openai.yaml +4 -0
  21. package/.agents/skills/create-prd/SKILL.md +82 -0
  22. package/.agents/skills/create-prd/agents/openai.yaml +4 -0
  23. package/.agents/skills/griling-plan/SKILL.md +114 -0
  24. package/.agents/skills/griling-plan/agents/openai.yaml +4 -0
  25. package/.agents/skills/griling-prd/SKILL.md +91 -0
  26. package/.agents/skills/griling-prd/agents/openai.yaml +4 -0
  27. package/.agents/skills/package-installation/SKILL.md +67 -0
  28. package/.agents/skills/package-installation/agents/openai.yaml +4 -0
  29. package/.agents/skills/project-setup/SKILL.md +104 -0
  30. package/.agents/skills/project-setup/agents/openai.yaml +3 -0
  31. package/.agents/skills/research/SKILL.md +61 -0
  32. package/.agents/skills/research/agents/openai.yaml +4 -0
  33. package/.agents/skills/sprint-meeting/SKILL.md +230 -0
  34. package/.agents/skills/sprint-meeting/agents/openai.yaml +4 -0
  35. package/.claude/agents/backend-developer.md +7 -0
  36. package/.claude/agents/frontend-developer.md +7 -0
  37. package/.claude/agents/project-manager.md +7 -0
  38. package/.claude/agents/tech-lead.md +7 -0
  39. package/.claude/agents/ui-ux-designer.md +7 -0
  40. package/.claude/skills/add-project/SKILL.md +10 -0
  41. package/.claude/skills/approve-plan/SKILL.md +8 -0
  42. package/.claude/skills/approve-prd/SKILL.md +8 -0
  43. package/.claude/skills/auto-mode/SKILL.md +8 -0
  44. package/.claude/skills/create-design/SKILL.md +8 -0
  45. package/.claude/skills/create-diagram/SKILL.md +8 -0
  46. package/.claude/skills/create-plan/SKILL.md +8 -0
  47. package/.claude/skills/create-prd/SKILL.md +8 -0
  48. package/.claude/skills/griling-plan/SKILL.md +8 -0
  49. package/.claude/skills/griling-prd/SKILL.md +8 -0
  50. package/.claude/skills/package-installation/SKILL.md +8 -0
  51. package/.claude/skills/project-setup/SKILL.md +8 -0
  52. package/.claude/skills/research/SKILL.md +8 -0
  53. package/.claude/skills/sprint-meeting/SKILL.md +8 -0
  54. package/.codex/prompts/add-project.md +3 -0
  55. package/.codex/prompts/approve-plan.md +3 -0
  56. package/.codex/prompts/approve-prd.md +3 -0
  57. package/.codex/prompts/auto-mode.md +3 -0
  58. package/.codex/prompts/create-design.md +3 -0
  59. package/.codex/prompts/create-diagram.md +3 -0
  60. package/.codex/prompts/create-plan.md +3 -0
  61. package/.codex/prompts/create-prd.md +3 -0
  62. package/.codex/prompts/griling-plan.md +3 -0
  63. package/.codex/prompts/griling-prd.md +3 -0
  64. package/.codex/prompts/grilling-plan.md +3 -0
  65. package/.codex/prompts/project-setup.md +3 -0
  66. package/.codex/prompts/research.md +3 -0
  67. package/.codex/prompts/sprint-meeting.md +3 -0
  68. package/.gitmodules.example +9 -0
  69. package/AGENTS.md +84 -0
  70. package/CLAUDE.md +1 -0
  71. package/INSTALL.md +284 -0
  72. package/LICENSE +21 -0
  73. package/README.md +342 -2
  74. package/bin/postinstall.js +57 -0
  75. package/bin/workflows.js +1172 -0
  76. package/bin/workflows.test.mjs +682 -0
  77. package/commands/add-project.md +20 -0
  78. package/commands/approve-plan.md +25 -0
  79. package/commands/approve-prd.md +24 -0
  80. package/commands/auto-mode.md +15 -0
  81. package/commands/create-design.md +20 -0
  82. package/commands/create-diagram.md +16 -0
  83. package/commands/create-plan.md +22 -0
  84. package/commands/create-prd.md +16 -0
  85. package/commands/griling-plan.md +16 -0
  86. package/commands/griling-prd.md +16 -0
  87. package/commands/grilling-plan.md +16 -0
  88. package/commands/project-setup.md +16 -0
  89. package/commands/research.md +16 -0
  90. package/commands/sprint-meeting.md +16 -0
  91. package/dashboard/.agents/skills/coding-conventions/SKILL.md +76 -0
  92. package/dashboard/.agents/skills/coding-conventions/agents/openai.yaml +4 -0
  93. package/dashboard/.agents/skills/design-system-guideline/SKILL.md +51 -0
  94. package/dashboard/.agents/skills/design-system-guideline/agents/openai.yaml +4 -0
  95. package/dashboard/.agents/skills/lint-and-fix/SKILL.md +55 -0
  96. package/dashboard/.agents/skills/lint-and-fix/agents/openai.yaml +4 -0
  97. package/dashboard/.agents/skills/taste-ui/SKILL.md +45 -0
  98. package/dashboard/.agents/skills/taste-ui/agents/openai.yaml +4 -0
  99. package/dashboard/AGENTS.md +43 -0
  100. package/dashboard/bun.lock +352 -0
  101. package/dashboard/index.html +12 -0
  102. package/dashboard/package.json +32 -0
  103. package/dashboard/src/App.tsx +5 -0
  104. package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.module.css +85 -0
  105. package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.tsx +80 -0
  106. package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.module.css +25 -0
  107. package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.tsx +29 -0
  108. package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.module.css +29 -0
  109. package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.tsx +35 -0
  110. package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.module.css +85 -0
  111. package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.tsx +150 -0
  112. package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.module.css +41 -0
  113. package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.tsx +41 -0
  114. package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.module.css +25 -0
  115. package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.tsx +40 -0
  116. package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.module.css +330 -0
  117. package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.tsx +299 -0
  118. package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.module.css +74 -0
  119. package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.tsx +79 -0
  120. package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.module.css +133 -0
  121. package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.tsx +233 -0
  122. package/dashboard/src/features/task-status/components/Sidebar/Sidebar.module.css +53 -0
  123. package/dashboard/src/features/task-status/components/Sidebar/Sidebar.tsx +163 -0
  124. package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.module.css +41 -0
  125. package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.tsx +48 -0
  126. package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.module.css +97 -0
  127. package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.tsx +128 -0
  128. package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.module.css +9 -0
  129. package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.tsx +318 -0
  130. package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.module.css +221 -0
  131. package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.tsx +344 -0
  132. package/dashboard/src/features/task-status/taskStatusConfig.ts +100 -0
  133. package/dashboard/src/features/task-status/utils/actionItems.ts +247 -0
  134. package/dashboard/src/features/task-status/utils/artifactGrouping.ts +328 -0
  135. package/dashboard/src/features/task-status/utils/hardnessScanner.ts +406 -0
  136. package/dashboard/src/features/task-status/utils/lifecycle.ts +73 -0
  137. package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.module.css +11 -0
  138. package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.tsx +104 -0
  139. package/dashboard/src/features/task-status/utils/markdownLinks.ts +83 -0
  140. package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.module.css +74 -0
  141. package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.tsx +326 -0
  142. package/dashboard/src/features/task-status/utils/status.ts +7 -0
  143. package/dashboard/src/features/task-status/utils/test/actionItems.test.ts +134 -0
  144. package/dashboard/src/features/task-status/utils/test/artifactGrouping.test.ts +294 -0
  145. package/dashboard/src/features/task-status/utils/test/hardnessScanner.test.ts +138 -0
  146. package/dashboard/src/features/task-status/utils/test/lifecycle.test.ts +49 -0
  147. package/dashboard/src/features/task-status/utils/test/markdownInline.test.ts +41 -0
  148. package/dashboard/src/features/task-status/utils/test/markdownLinks.test.ts +158 -0
  149. package/dashboard/src/features/task-status/utils/test/workspaceMetadata.test.ts +37 -0
  150. package/dashboard/src/features/task-status/utils/workspaceMetadata.ts +175 -0
  151. package/dashboard/src/main.tsx +16 -0
  152. package/dashboard/src/shared/design-system.css +134 -0
  153. package/dashboard/src/shared/design-system.tsx +84 -0
  154. package/dashboard/src/styles.css +41 -0
  155. package/dashboard/src/types.ts +133 -0
  156. package/dashboard/src/workspace-artifacts.d.ts +9 -0
  157. package/dashboard/tsconfig.json +22 -0
  158. package/dashboard/vite.config.ts +579 -0
  159. package/designs/.gitkeep +1 -0
  160. package/docs/add-project-command-completion.md +117 -0
  161. package/docs/public-npm-registry-completion.md +104 -0
  162. package/docs/workflows.png +0 -0
  163. package/docs/workspace-template-setup.md +229 -0
  164. package/meeting-logs/.gitkeep +1 -0
  165. package/modules/.gitkeep +1 -0
  166. package/package.json +96 -5
  167. package/plans/.gitkeep +1 -0
  168. package/prds/.gitkeep +1 -0
  169. package/project/PROJECT.md +26 -0
  170. package/project/repositories.json +72 -0
  171. package/project/validation.json +9 -0
  172. package/project/workflows.json +20 -0
  173. package/research/.gitkeep +1 -0
  174. package/roles/backend-developer.md +26 -0
  175. package/roles/frontend-developer.md +25 -0
  176. package/roles/project-manager.md +42 -0
  177. package/roles/tech-lead.md +42 -0
  178. package/roles/ui-ux-designer.md +43 -0
  179. package/scripts/add-project.mjs +990 -0
  180. package/scripts/add-project.test.mjs +804 -0
  181. package/scripts/check-staged-security.mjs +97 -0
  182. package/scripts/check-staged-security.test.mjs +68 -0
  183. package/scripts/workspace-integrity.ts +220 -0
  184. package/templates/auto-mode-completion-summary-template.md +78 -0
  185. package/templates/meeting-log-template.md +177 -0
  186. package/templates/plan-template.md +219 -0
  187. package/templates/prd-template.md +106 -0
  188. package/templates/research-template.md +119 -0
  189. package/workflows.md +590 -0
  190. package/workspace.config.json +43 -0
@@ -0,0 +1,219 @@
1
+ # Plan Template
2
+
3
+ Copy this file after an approved PRD exists.
4
+
5
+ Before creating any plan, read and adopt `roles/tech-lead.md`. Plans must be written from the Tech Lead role: translate the approved PRD into technical architecture, keep shared contracts in the core/shared repository as the single source of truth, and make server and client work explicitly rely on those shared structures.
6
+
7
+ Root overview plans belong in the workspace root `plans/` directory. If the task affects one or more submodules, create a detailed implementation plan in that repository's configured plans directory from `project/repositories.json` and link those plans from the root overview plan.
8
+
9
+ When creating submodule or platform plans, the master agent owns the root overview plan and must spawn a sub-agent for each affected planning target. Give the sub-agent the approved PRD path, draft root plan path, root architecture summary, platform responsibility, cross-repo dependencies, validation expectations, risks, open questions, target plan path, and required parent-plan link. The sub-agent must read the affected repository's `agentGuide` from `project/repositories.json` before writing its plan.
10
+
11
+ ## Root Overview Plan
12
+
13
+ Use this section for the root workspace plan file.
14
+
15
+ ### Metadata
16
+
17
+ - Plan ID: `PLAN-<YYYYMMDD>-<short-slug>`
18
+ - PRD ID: `PRD-<YYYYMMDD>-<short-slug>`
19
+ - Type: `plan`
20
+ - PRD link: [`../prds/<prd-file>.md`](../prds/<prd-file>.md)
21
+ - Research sources:
22
+ - `<RESEARCH-YYYYMMDD-short-slug or "None">: [<research title>](../research/<research-file>.md) - <one-line planning relevance>`
23
+ - Status: `draft | approved | in-progress | blocked | complete`
24
+ - Created: `<YYYY-MM-DD>`
25
+ - Last updated: `<YYYY-MM-DD>`
26
+ - Owner: `tech-lead`
27
+ - Related artifact IDs: `[]`
28
+
29
+ ### Title
30
+
31
+ `<feature-or-task-name>`
32
+
33
+ ### Goal
34
+
35
+ Describe the implementation outcome in a few sentences. This must trace directly to the approved PRD.
36
+
37
+ ### Research Inputs
38
+
39
+ Summarize the research, repository evidence, external references, or prior
40
+ artifacts used to shape architecture, sequencing, dependencies, risks, and
41
+ validation. Carry forward research sources from the PRD and add any planning
42
+ research discovered while creating this plan. Use `None` only when no source was
43
+ provided or discovered.
44
+
45
+ - Research brief: `<RESEARCH-YYYYMMDD-short-slug or "None">`
46
+ - Key planning implications:
47
+ - `<finding that affects architecture, ownership, sequencing, validation, or risk>`
48
+ - Source gaps:
49
+ - `<missing research, unresolved source, or "None">`
50
+
51
+ ### Scope
52
+
53
+ In scope:
54
+
55
+ - `<item>`
56
+
57
+ Out of scope:
58
+
59
+ - `<item>`
60
+
61
+ ### Affected Platforms
62
+
63
+ List only the platforms affected by this task.
64
+
65
+ | Platform | Responsibility | Detailed Plan |
66
+ | --- | --- | --- |
67
+ | `<repository or platform id>` | `<short summary of work>` | [`modules/<repo>/plans/<plan-file>.md`](../modules/<repo>/plans/<plan-file>.md) |
68
+
69
+ Remove rows for platforms that are not affected.
70
+
71
+ ### Cross-Repo Design
72
+
73
+ Explain how the affected repositories interact for this task.
74
+
75
+ - Data contracts:
76
+ - Shared packages or APIs:
77
+ - Runtime flow:
78
+ - Dependency direction:
79
+
80
+ ### Sequence
81
+
82
+ Implementation proceeds by dependency-safe stages. Skip platforms that are not
83
+ in this plan.
84
+
85
+ 1. `<shared/core repository, when affected>`
86
+ 2. `<service/API repository, when affected>`
87
+ 3. Frontend stage:
88
+ - `<web frontend repository, when affected>`
89
+ - `<app frontend repository, when affected>`
90
+
91
+ After core and API work are implemented and validated, reassess whether the
92
+ frontend stage can run in parallel. If both frontend platforms are present in
93
+ the approved plan, their required shared contracts and APIs are already
94
+ available locally, and neither frontend depends on the other's unimplemented
95
+ changes, spawn one implementation sub-agent for each ready frontend platform.
96
+
97
+ If either frontend platform still depends on another platform's unimplemented
98
+ local changes, implement the blocked dependency first and reassess parallel
99
+ safety before continuing.
100
+
101
+ After each dependency stage, stop and ask the developer whether to continue to
102
+ the next stage or stop. If continuing and the next stage depends on newly
103
+ changed local packages or APIs, ask whether to link local packages/use local
104
+ code or depend on deployed/published packages or services.
105
+ When workspace auto mode is enabled for the active feature, continue after each
106
+ validated stage and use available validated local dependencies. Ask only when
107
+ the dependency decision requires developer intent or information.
108
+
109
+ ### Validation
110
+
111
+ List the checks required before finishing.
112
+
113
+ - Root:
114
+ - `<affected repository id>`:
115
+
116
+ Remove validation entries for unaffected platforms.
117
+
118
+ ### Risks
119
+
120
+ - `<risk and mitigation>`
121
+
122
+ ### Open Questions
123
+
124
+ - `<question or "None">`
125
+
126
+ ### Approval
127
+
128
+ - Approved by: `<developer name or handle>`
129
+ - Approved on: `<YYYY-MM-DD>`
130
+ - Approval command: `$approve-plan <plan-id>`
131
+
132
+ ## Submodule Detailed Plan
133
+
134
+ Use this section as the template for each affected platform plan. Save it inside the affected submodule's `plans/` directory.
135
+
136
+ The submodule plan must be detailed enough for an agent to implement that platform's part of the feature without re-deriving the full approach.
137
+
138
+ ### Metadata
139
+
140
+ - Plan ID: `PLAN-<YYYYMMDD>-<short-slug>-<platform>`
141
+ - Parent plan ID: `PLAN-<YYYYMMDD>-<short-slug>`
142
+ - PRD ID: `PRD-<YYYYMMDD>-<short-slug>`
143
+ - Research sources:
144
+ - `<RESEARCH-YYYYMMDD-short-slug or "None">: [<research title>](../../../research/<research-file>.md) - <one-line platform relevance>`
145
+ - Status: `draft | approved | in-progress | blocked | complete`
146
+ - Created: `<YYYY-MM-DD>`
147
+ - Last updated: `<YYYY-MM-DD>`
148
+
149
+ ### Title
150
+
151
+ `<feature-or-task-name> - <platform-name>`
152
+
153
+ ### Parent Overview Plan
154
+
155
+ Link back to the root overview plan. From `modules/<repo>/plans/`, use:
156
+
157
+ [`../../../plans/<plan-file>.md`](../../../plans/<plan-file>.md)
158
+
159
+ ### Platform Responsibility
160
+
161
+ Summarize what this platform owns for the task.
162
+
163
+ ### Research Inputs
164
+
165
+ Carry forward only the research findings that materially affect this platform's
166
+ implementation. Include repository findings, external references, source gaps,
167
+ or `None` when no source applies.
168
+
169
+ - Research brief: `<RESEARCH-YYYYMMDD-short-slug or "None">`
170
+ - Platform-specific implications:
171
+ - `<finding that affects files, APIs, contracts, sequencing, validation, or risk>`
172
+ - Source gaps:
173
+ - `<missing research, unresolved source, or "None">`
174
+
175
+ ### Local Scope
176
+
177
+ In scope:
178
+
179
+ - `<item>`
180
+
181
+ Out of scope:
182
+
183
+ - `<item>`
184
+
185
+ ### Files And Areas To Inspect
186
+
187
+ - `<path or area>`
188
+
189
+ ### Expected Code Changes
190
+
191
+ - `<specific module, component, endpoint, package, or config change>`
192
+
193
+ ### Implementation Steps
194
+
195
+ 1. `<step>`
196
+ 2. `<step>`
197
+ 3. `<step>`
198
+
199
+ ### Dependencies
200
+
201
+ List dependencies on other submodules, packages, APIs, migrations, releases, or user decisions.
202
+
203
+ - `<dependency>`
204
+
205
+ ### Validation Commands
206
+
207
+ Run these from the submodule root unless noted otherwise.
208
+
209
+ ```sh
210
+ <command>
211
+ ```
212
+
213
+ ### Risks
214
+
215
+ - `<risk and mitigation>`
216
+
217
+ ### Open Questions
218
+
219
+ - `<question or "None">`
@@ -0,0 +1,106 @@
1
+ # PRD Template
2
+
3
+ Copy this file when creating a new PRD with `$create-prd <description>`.
4
+
5
+ PRDs are the source of truth for user requirements. Store PRDs in the workspace root `prds/` directory. Status flows from `draft` to `need-design` (if UI/UX design is needed), `design-done` (once design is linked), and `approved` (ready for planning and implementation). Do not create plans or edit code for the feature until the PRD status is `approved`.
6
+
7
+ ## Metadata
8
+
9
+ - PRD ID: `PRD-<YYYYMMDD>-<short-slug>`
10
+ - Title: `<feature-or-task-name>`
11
+ - Type: `prd`
12
+ - Status: `draft | need-design | design-done | approved | superseded`
13
+ - Created: `<YYYY-MM-DD>`
14
+ - Last updated: `<YYYY-MM-DD>`
15
+ - Owner: `project-manager`
16
+ - Related artifact IDs: `[]`
17
+ - Source request: `<original $create-prd description>`
18
+ - Research sources:
19
+ - `<RESEARCH-YYYYMMDD-short-slug or "None">: [<research title>](../research/<research-file>.md) - <one-line relevance>`
20
+
21
+ ## Problem
22
+
23
+ Describe the user problem, business need, or engineering gap this PRD addresses.
24
+
25
+ ## Research Context
26
+
27
+ List the saved research briefs, repository findings, external sources, or prior
28
+ artifacts that informed this PRD. Use `None` only when no research source was
29
+ provided or discovered.
30
+
31
+ - Research brief: `<RESEARCH-YYYYMMDD-short-slug or "None">`
32
+ - Key findings used:
33
+ - `<finding that shaped requirements, scope, risks, or acceptance criteria>`
34
+ - Source gaps:
35
+ - `<missing research, unresolved source, or "None">`
36
+
37
+ ## Goals
38
+
39
+ - `<goal>`
40
+
41
+ ## Non-Goals
42
+
43
+ - `<non-goal>`
44
+
45
+ ## Users And Use Cases
46
+
47
+ - User: `<user type>`
48
+ - Use case: `<what they need to do>`
49
+
50
+ ## Requirements
51
+
52
+ Functional requirements:
53
+
54
+ - `<requirement>`
55
+
56
+ Non-functional requirements:
57
+
58
+ - `<requirement>`
59
+
60
+ ## User Flows
61
+
62
+ 1. `<step>`
63
+ 2. `<step>`
64
+ 3. `<step>`
65
+
66
+ ## Affected Platforms
67
+
68
+ List only the platforms likely affected by this PRD. Use repository IDs and
69
+ platform labels from `project/repositories.json`.
70
+
71
+ - `<repository or platform id>`: `<why or "not affected">`
72
+
73
+ ## Data, API, And Package Contracts
74
+
75
+ Describe expected contracts between repositories.
76
+
77
+ - Shared types or packages:
78
+ - API endpoints:
79
+ - Events or runtime interfaces:
80
+ - Compatibility requirements:
81
+
82
+ ## UX Notes
83
+
84
+ Describe expected user experience, edge cases, loading states, empty states, errors, and accessibility requirements.
85
+
86
+ ## Acceptance Criteria
87
+
88
+ - `<testable acceptance criterion>`
89
+
90
+ ## Risks And Tradeoffs
91
+
92
+ - `<risk and mitigation>`
93
+
94
+ ## Open Questions
95
+
96
+ - `<question or "None">`
97
+
98
+ ## Design Artifacts
99
+
100
+ - `<DESIGN-YYYYMMDD-short-slug or Open Design reference>: [<design title>](<../designs/design-file.md or Open Design URL/locator>) - <status>; source: <designs/ or Open Design>; <one-line purpose>.`
101
+
102
+ ## Approval
103
+
104
+ - Approved by: `<developer name or handle>`
105
+ - Approved on: `<YYYY-MM-DD>`
106
+ - Approval command: `$approve-prd <prd-id>`
@@ -0,0 +1,119 @@
1
+ # Research Template
2
+
3
+ Copy this file when creating research with `$research <description>`.
4
+
5
+ Research briefs preserve project and external context so future PRDs, plans, and
6
+ implementation agents do not need to rediscover the same information. Store
7
+ research files in the workspace root `research/` directory.
8
+
9
+ ## Metadata
10
+
11
+ - Research ID: `RESEARCH-<YYYYMMDD>-<short-slug>`
12
+ - Title: `<research-topic>`
13
+ - Type: `research`
14
+ - Status: `draft | reviewed | superseded`
15
+ - Created: `<YYYY-MM-DD>`
16
+ - Last updated: `<YYYY-MM-DD>`
17
+ - Owner: `tech-lead`
18
+ - Related artifact IDs: `[]`
19
+ - Source request: `<original $research description>`
20
+ - Researcher role: `Project Manager + Tech Lead`
21
+
22
+ ## Executive Summary
23
+
24
+ Summarize the most important findings, recommendations, and uncertainties.
25
+
26
+ ## Short Version
27
+
28
+ Summarize the research in a concise, final-answer style. Include the practical
29
+ recommendation, the main affected areas, and the most important caveat.
30
+
31
+ ## Research Questions
32
+
33
+ - `<question this research answers>`
34
+
35
+ ## Context
36
+
37
+ Describe the product, user, business, technical, or ecosystem context needed to
38
+ understand the topic.
39
+
40
+ ## Current Workspace Findings
41
+
42
+ Summarize relevant local repository evidence.
43
+
44
+ - Root workspace:
45
+ - `<repository or platform id from project/repositories.json>`:
46
+
47
+ ## External Findings
48
+
49
+ Summarize external research when used. Prefer primary sources and include links.
50
+
51
+ - Source: `<title or organization>` - `<url>` - `<finding>`
52
+
53
+ ## Reference URLs
54
+
55
+ List every external URL used for this research, including official API docs,
56
+ standards, product pages, or other primary sources when available.
57
+
58
+ - `<title or organization>` - `<url>` - `<why this source matters or date accessed>`
59
+
60
+ ## Product Implications
61
+
62
+ - Users and use cases:
63
+ - Goals this may support:
64
+ - Non-goals or scope boundaries:
65
+ - UX and workflow notes:
66
+
67
+ ## Technical Implications
68
+
69
+ - Affected repositories:
70
+ - Shared contracts or data models:
71
+ - API/backend considerations:
72
+ - Web/client considerations:
73
+ - App/runtime considerations:
74
+ - Security, privacy, or compliance notes:
75
+ - Performance, reliability, or scalability notes:
76
+
77
+ ## Options
78
+
79
+ Describe credible approaches when more than one path exists.
80
+
81
+ - Option: `<name>`
82
+ - Summary:
83
+ - Pros:
84
+ - Cons:
85
+ - When to choose:
86
+
87
+ ## Recommendation
88
+
89
+ State the recommended direction and why.
90
+
91
+ ## Risks And Mitigations
92
+
93
+ - Risk: `<risk>`
94
+ - Impact:
95
+ - Mitigation:
96
+
97
+ ## Highest-Risk Unknowns Or Clarifications Needed
98
+
99
+ List the unknowns, decisions, or clarifying questions most likely to affect
100
+ scope, architecture, sequencing, or acceptance criteria. Use `None` only when no
101
+ material uncertainty remains.
102
+
103
+ - `<unknown, decision, or clarification needed>`
104
+
105
+ ## Validation Ideas
106
+
107
+ - `<test, check, prototype, spike, or manual validation>`
108
+
109
+ ## Open Questions
110
+
111
+ - `<question or "None">`
112
+
113
+ ## Follow-Up Inputs For PRD Or Plan
114
+
115
+ - Suggested PRD scope:
116
+ - Suggested affected platforms:
117
+ - Suggested acceptance criteria:
118
+ - Suggested sequencing:
119
+ - Dependencies or decisions needed first: