@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.
- package/.agents/agents/backend-developer/agent.md +39 -0
- package/.agents/agents/frontend-developer/agent.md +42 -0
- package/.agents/agents/project-manager/agent.md +37 -0
- package/.agents/agents/tech-lead/agent.md +41 -0
- package/.agents/agents/ui-ux-designer/agent.md +41 -0
- package/.agents/skills/add-project/SKILL.md +90 -0
- package/.agents/skills/add-project/agents/openai.yaml +4 -0
- package/.agents/skills/add-project/references/save-protocol.md +90 -0
- package/.agents/skills/approve-plan/SKILL.md +86 -0
- package/.agents/skills/approve-plan/agents/openai.yaml +4 -0
- package/.agents/skills/approve-prd/SKILL.md +59 -0
- package/.agents/skills/approve-prd/agents/openai.yaml +4 -0
- package/.agents/skills/auto-mode/SKILL.md +103 -0
- package/.agents/skills/auto-mode/agents/openai.yaml +4 -0
- package/.agents/skills/create-design/SKILL.md +197 -0
- package/.agents/skills/create-design/agents/openai.yaml +4 -0
- package/.agents/skills/create-diagram/SKILL.md +83 -0
- package/.agents/skills/create-diagram/agents/openai.yaml +4 -0
- package/.agents/skills/create-plan/SKILL.md +104 -0
- package/.agents/skills/create-plan/agents/openai.yaml +4 -0
- package/.agents/skills/create-prd/SKILL.md +82 -0
- package/.agents/skills/create-prd/agents/openai.yaml +4 -0
- package/.agents/skills/griling-plan/SKILL.md +114 -0
- package/.agents/skills/griling-plan/agents/openai.yaml +4 -0
- package/.agents/skills/griling-prd/SKILL.md +91 -0
- package/.agents/skills/griling-prd/agents/openai.yaml +4 -0
- package/.agents/skills/package-installation/SKILL.md +67 -0
- package/.agents/skills/package-installation/agents/openai.yaml +4 -0
- package/.agents/skills/project-setup/SKILL.md +104 -0
- package/.agents/skills/project-setup/agents/openai.yaml +3 -0
- package/.agents/skills/research/SKILL.md +61 -0
- package/.agents/skills/research/agents/openai.yaml +4 -0
- package/.agents/skills/sprint-meeting/SKILL.md +230 -0
- package/.agents/skills/sprint-meeting/agents/openai.yaml +4 -0
- package/.claude/agents/backend-developer.md +7 -0
- package/.claude/agents/frontend-developer.md +7 -0
- package/.claude/agents/project-manager.md +7 -0
- package/.claude/agents/tech-lead.md +7 -0
- package/.claude/agents/ui-ux-designer.md +7 -0
- package/.claude/skills/add-project/SKILL.md +10 -0
- package/.claude/skills/approve-plan/SKILL.md +8 -0
- package/.claude/skills/approve-prd/SKILL.md +8 -0
- package/.claude/skills/auto-mode/SKILL.md +8 -0
- package/.claude/skills/create-design/SKILL.md +8 -0
- package/.claude/skills/create-diagram/SKILL.md +8 -0
- package/.claude/skills/create-plan/SKILL.md +8 -0
- package/.claude/skills/create-prd/SKILL.md +8 -0
- package/.claude/skills/griling-plan/SKILL.md +8 -0
- package/.claude/skills/griling-prd/SKILL.md +8 -0
- package/.claude/skills/package-installation/SKILL.md +8 -0
- package/.claude/skills/project-setup/SKILL.md +8 -0
- package/.claude/skills/research/SKILL.md +8 -0
- package/.claude/skills/sprint-meeting/SKILL.md +8 -0
- package/.codex/prompts/add-project.md +3 -0
- package/.codex/prompts/approve-plan.md +3 -0
- package/.codex/prompts/approve-prd.md +3 -0
- package/.codex/prompts/auto-mode.md +3 -0
- package/.codex/prompts/create-design.md +3 -0
- package/.codex/prompts/create-diagram.md +3 -0
- package/.codex/prompts/create-plan.md +3 -0
- package/.codex/prompts/create-prd.md +3 -0
- package/.codex/prompts/griling-plan.md +3 -0
- package/.codex/prompts/griling-prd.md +3 -0
- package/.codex/prompts/grilling-plan.md +3 -0
- package/.codex/prompts/project-setup.md +3 -0
- package/.codex/prompts/research.md +3 -0
- package/.codex/prompts/sprint-meeting.md +3 -0
- package/.gitmodules.example +9 -0
- package/AGENTS.md +84 -0
- package/CLAUDE.md +1 -0
- package/INSTALL.md +284 -0
- package/LICENSE +21 -0
- package/README.md +342 -2
- package/bin/postinstall.js +57 -0
- package/bin/workflows.js +1172 -0
- package/bin/workflows.test.mjs +682 -0
- package/commands/add-project.md +20 -0
- package/commands/approve-plan.md +25 -0
- package/commands/approve-prd.md +24 -0
- package/commands/auto-mode.md +15 -0
- package/commands/create-design.md +20 -0
- package/commands/create-diagram.md +16 -0
- package/commands/create-plan.md +22 -0
- package/commands/create-prd.md +16 -0
- package/commands/griling-plan.md +16 -0
- package/commands/griling-prd.md +16 -0
- package/commands/grilling-plan.md +16 -0
- package/commands/project-setup.md +16 -0
- package/commands/research.md +16 -0
- package/commands/sprint-meeting.md +16 -0
- package/dashboard/.agents/skills/coding-conventions/SKILL.md +76 -0
- package/dashboard/.agents/skills/coding-conventions/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/design-system-guideline/SKILL.md +51 -0
- package/dashboard/.agents/skills/design-system-guideline/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/lint-and-fix/SKILL.md +55 -0
- package/dashboard/.agents/skills/lint-and-fix/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/taste-ui/SKILL.md +45 -0
- package/dashboard/.agents/skills/taste-ui/agents/openai.yaml +4 -0
- package/dashboard/AGENTS.md +43 -0
- package/dashboard/bun.lock +352 -0
- package/dashboard/index.html +12 -0
- package/dashboard/package.json +32 -0
- package/dashboard/src/App.tsx +5 -0
- package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.module.css +85 -0
- package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.tsx +80 -0
- package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.module.css +25 -0
- package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.tsx +29 -0
- package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.module.css +29 -0
- package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.tsx +35 -0
- package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.module.css +85 -0
- package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.tsx +150 -0
- package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.module.css +41 -0
- package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.tsx +41 -0
- package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.module.css +25 -0
- package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.tsx +40 -0
- package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.module.css +330 -0
- package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.tsx +299 -0
- package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.module.css +74 -0
- package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.tsx +79 -0
- package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.module.css +133 -0
- package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.tsx +233 -0
- package/dashboard/src/features/task-status/components/Sidebar/Sidebar.module.css +53 -0
- package/dashboard/src/features/task-status/components/Sidebar/Sidebar.tsx +163 -0
- package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.module.css +41 -0
- package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.tsx +48 -0
- package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.module.css +97 -0
- package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.tsx +128 -0
- package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.module.css +9 -0
- package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.tsx +318 -0
- package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.module.css +221 -0
- package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.tsx +344 -0
- package/dashboard/src/features/task-status/taskStatusConfig.ts +100 -0
- package/dashboard/src/features/task-status/utils/actionItems.ts +247 -0
- package/dashboard/src/features/task-status/utils/artifactGrouping.ts +328 -0
- package/dashboard/src/features/task-status/utils/hardnessScanner.ts +406 -0
- package/dashboard/src/features/task-status/utils/lifecycle.ts +73 -0
- package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.module.css +11 -0
- package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.tsx +104 -0
- package/dashboard/src/features/task-status/utils/markdownLinks.ts +83 -0
- package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.module.css +74 -0
- package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.tsx +326 -0
- package/dashboard/src/features/task-status/utils/status.ts +7 -0
- package/dashboard/src/features/task-status/utils/test/actionItems.test.ts +134 -0
- package/dashboard/src/features/task-status/utils/test/artifactGrouping.test.ts +294 -0
- package/dashboard/src/features/task-status/utils/test/hardnessScanner.test.ts +138 -0
- package/dashboard/src/features/task-status/utils/test/lifecycle.test.ts +49 -0
- package/dashboard/src/features/task-status/utils/test/markdownInline.test.ts +41 -0
- package/dashboard/src/features/task-status/utils/test/markdownLinks.test.ts +158 -0
- package/dashboard/src/features/task-status/utils/test/workspaceMetadata.test.ts +37 -0
- package/dashboard/src/features/task-status/utils/workspaceMetadata.ts +175 -0
- package/dashboard/src/main.tsx +16 -0
- package/dashboard/src/shared/design-system.css +134 -0
- package/dashboard/src/shared/design-system.tsx +84 -0
- package/dashboard/src/styles.css +41 -0
- package/dashboard/src/types.ts +133 -0
- package/dashboard/src/workspace-artifacts.d.ts +9 -0
- package/dashboard/tsconfig.json +22 -0
- package/dashboard/vite.config.ts +579 -0
- package/designs/.gitkeep +1 -0
- package/docs/add-project-command-completion.md +117 -0
- package/docs/public-npm-registry-completion.md +104 -0
- package/docs/workflows.png +0 -0
- package/docs/workspace-template-setup.md +229 -0
- package/meeting-logs/.gitkeep +1 -0
- package/modules/.gitkeep +1 -0
- package/package.json +96 -5
- package/plans/.gitkeep +1 -0
- package/prds/.gitkeep +1 -0
- package/project/PROJECT.md +26 -0
- package/project/repositories.json +72 -0
- package/project/validation.json +9 -0
- package/project/workflows.json +20 -0
- package/research/.gitkeep +1 -0
- package/roles/backend-developer.md +26 -0
- package/roles/frontend-developer.md +25 -0
- package/roles/project-manager.md +42 -0
- package/roles/tech-lead.md +42 -0
- package/roles/ui-ux-designer.md +43 -0
- package/scripts/add-project.mjs +990 -0
- package/scripts/add-project.test.mjs +804 -0
- package/scripts/check-staged-security.mjs +97 -0
- package/scripts/check-staged-security.test.mjs +68 -0
- package/scripts/workspace-integrity.ts +220 -0
- package/templates/auto-mode-completion-summary-template.md +78 -0
- package/templates/meeting-log-template.md +177 -0
- package/templates/plan-template.md +219 -0
- package/templates/prd-template.md +106 -0
- package/templates/research-template.md +119 -0
- package/workflows.md +590 -0
- 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:
|