owflow 0.6.0 → 0.7.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.
- package/LICENSE +21 -21
- package/README.md +448 -283
- package/dist/agents/bottleneck-analyzer.md +332 -333
- package/dist/agents/code-quality-pragmatist.md +353 -354
- package/dist/agents/code-reviewer.md +238 -239
- package/dist/agents/codebase-analysis-reporter.md +245 -246
- package/dist/agents/docs-operator.md +22 -23
- package/dist/agents/e2e-test-verifier.md +447 -448
- package/dist/agents/gap-analyzer.md +501 -502
- package/dist/agents/implementation-completeness-checker.md +219 -220
- package/dist/agents/implementation-planner.md +308 -309
- package/dist/agents/information-gatherer.md +690 -691
- package/dist/agents/production-readiness-checker.md +278 -279
- package/dist/agents/project-analyzer.md +403 -403
- package/dist/agents/reality-assessor.md +365 -366
- package/dist/agents/research-planner.md +449 -450
- package/dist/agents/research-synthesizer.md +402 -403
- package/dist/agents/solution-brainstormer.md +256 -257
- package/dist/agents/solution-designer.md +371 -372
- package/dist/agents/spec-auditor.md +297 -298
- package/dist/agents/specification-creator.md +333 -334
- package/dist/agents/task-classifier.md +449 -450
- package/dist/agents/task-group-implementer.md +283 -284
- package/dist/agents/test-suite-runner.md +194 -195
- package/dist/agents/user-docs-generator.md +508 -509
- package/dist/commands/reviews-code.md +90 -90
- package/dist/commands/reviews-pragmatic.md +99 -99
- package/dist/commands/reviews-production-readiness.md +113 -113
- package/dist/commands/reviews-reality-check.md +110 -110
- package/dist/commands/reviews-spec-audit.md +114 -114
- package/dist/commands/work.md +280 -280
- package/dist/configuration/agents-config.d.ts +2 -0
- package/dist/configuration/agents-config.js +8 -44
- package/dist/configuration/commands-config.d.ts +23 -0
- package/dist/configuration/commands-config.js +17 -17
- package/dist/configuration/skills-config.d.ts +2 -0
- package/dist/configuration/skills-config.js +3 -3
- package/dist/hooks/hooks-diagnostics.d.ts +3 -0
- package/dist/hooks/hooks-diagnostics.js +21 -0
- package/dist/hooks/hooks-persistence.d.ts +17 -0
- package/dist/hooks/hooks-persistence.js +207 -0
- package/dist/hooks/hooks-registry.d.ts +6 -0
- package/dist/hooks/hooks-registry.js +104 -0
- package/dist/hooks/hooks-wrapper.d.ts +25 -0
- package/dist/hooks/hooks-wrapper.js +318 -0
- package/dist/hooks/internal/before-tool.d.ts +6 -0
- package/dist/hooks/internal/before-tool.js +13 -0
- package/dist/hooks/internal/session-compaction.d.ts +9 -0
- package/dist/hooks/{session-compaction.js → internal/session-compaction.js} +9 -7
- package/dist/hooks/runtime/circuit-breaker.d.ts +23 -0
- package/dist/hooks/runtime/circuit-breaker.js +39 -0
- package/dist/hooks/runtime/failure-policy.d.ts +15 -0
- package/dist/hooks/runtime/failure-policy.js +49 -0
- package/dist/hooks/runtime/process-executor.d.ts +33 -0
- package/dist/hooks/runtime/process-executor.js +147 -0
- package/dist/hooks/runtime/status-recorder.d.ts +27 -0
- package/dist/hooks/runtime/status-recorder.js +111 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +111 -40
- package/dist/skills/agents-md-generator/SKILL.md +223 -223
- package/dist/skills/codebase-analyzer/SKILL.md +162 -162
- package/dist/skills/codebase-analyzer/references/code-analysis.md +63 -63
- package/dist/skills/codebase-analyzer/references/combined.md +31 -31
- package/dist/skills/codebase-analyzer/references/context-discovery.md +63 -63
- package/dist/skills/codebase-analyzer/references/file-discovery.md +51 -51
- package/dist/skills/codebase-analyzer/references/migration-target.md +23 -23
- package/dist/skills/codebase-analyzer/references/pattern-mining.md +22 -22
- package/dist/skills/dev-analyze/SKILL.md +115 -115
- package/dist/skills/dev-bugfix/SKILL.md +452 -452
- package/dist/skills/dev-finalize/SKILL.md +118 -118
- package/dist/skills/dev-implement/SKILL.md +167 -167
- package/dist/skills/dev-plan/SKILL.md +147 -147
- package/dist/skills/dev-spec/SKILL.md +182 -182
- package/dist/skills/dev-tdd-red/SKILL.md +94 -94
- package/dist/skills/dev-verify/SKILL.md +153 -153
- package/dist/skills/development/SKILL.md +260 -260
- package/dist/skills/diagrams-mermaid/SKILL.md +183 -159
- package/dist/skills/diagrams-mermaid/references/reference.md +220 -148
- package/dist/skills/docs-manager/SKILL.md +379 -379
- package/dist/skills/docs-manager/docs/INDEX.md +199 -199
- package/dist/skills/docs-manager/docs/standards/backend/api.md +25 -25
- package/dist/skills/docs-manager/docs/standards/backend/migrations.md +22 -22
- package/dist/skills/docs-manager/docs/standards/backend/models.md +25 -25
- package/dist/skills/docs-manager/docs/standards/backend/queries.md +22 -22
- package/dist/skills/docs-manager/docs/standards/frontend/accessibility.md +25 -25
- package/dist/skills/docs-manager/docs/standards/frontend/components.md +28 -28
- package/dist/skills/docs-manager/docs/standards/frontend/css.md +16 -16
- package/dist/skills/docs-manager/docs/standards/frontend/responsive.md +28 -28
- package/dist/skills/docs-manager/docs/standards/global/coding-style.md +25 -25
- package/dist/skills/docs-manager/docs/standards/global/commenting.md +10 -10
- package/dist/skills/docs-manager/docs/standards/global/conventions.md +31 -31
- package/dist/skills/docs-manager/docs/standards/global/error-handling.md +22 -22
- package/dist/skills/docs-manager/docs/standards/global/minimal-implementation.md +22 -22
- package/dist/skills/docs-manager/docs/standards/global/validation.md +28 -28
- package/dist/skills/docs-manager/docs/standards/testing/test-writing.md +25 -25
- package/dist/skills/docs-manager/references/agents-md-template.md +29 -29
- package/dist/skills/docs-manager/references/index-md-template.md +73 -73
- package/dist/skills/flow-init/SKILL.md +234 -234
- package/dist/skills/flow-init/references/architecture-template.md +45 -45
- package/dist/skills/flow-init/references/roadmap-templates.md +93 -93
- package/dist/skills/flow-init/references/tech-stack-template.md +70 -70
- package/dist/skills/flow-init/references/vision-templates.md +75 -75
- package/dist/skills/goal-development/SKILL.md +96 -96
- package/dist/skills/goal-migration/SKILL.md +114 -114
- package/dist/skills/goal-performance/SKILL.md +126 -126
- package/dist/skills/goal-research/SKILL.md +118 -118
- package/dist/skills/html-renderer/SKILL.md +173 -173
- package/dist/skills/html-renderer/references/index.html +318 -318
- package/dist/skills/html-renderer/references/styles.css +388 -388
- package/dist/skills/html-renderer/references/tokens.json +104 -104
- package/dist/skills/implementation-plan-executor/SKILL.md +378 -378
- package/dist/skills/implementation-verifier/SKILL.md +307 -307
- package/dist/skills/migration/SKILL.md +268 -268
- package/dist/skills/migration-analyze/SKILL.md +126 -126
- package/dist/skills/migration-finalize/SKILL.md +161 -161
- package/dist/skills/migration-fix/SKILL.md +155 -155
- package/dist/skills/migration-implement/SKILL.md +131 -131
- package/dist/skills/migration-plan/SKILL.md +131 -131
- package/dist/skills/migration-spec/SKILL.md +135 -135
- package/dist/skills/migration-spec/references/migration-strategies.md +430 -430
- package/dist/skills/migration-target/SKILL.md +134 -134
- package/dist/skills/migration-target/references/migration-types.md +489 -489
- package/dist/skills/migration-verify/SKILL.md +184 -184
- package/dist/skills/orchestrator-framework/SKILL.md +65 -65
- package/dist/skills/orchestrator-framework/references/command-namespacing.md +7 -7
- package/dist/skills/orchestrator-framework/references/confirm-or-revise-exception.md +20 -20
- package/dist/skills/orchestrator-framework/references/delegation-rules.md +54 -54
- package/dist/skills/orchestrator-framework/references/dispatcher-handoff.md +27 -27
- package/dist/skills/orchestrator-framework/references/fix-loop-contract.md +65 -65
- package/dist/skills/orchestrator-framework/references/gate-contract.md +122 -122
- package/dist/skills/orchestrator-framework/references/orchestrator-creation-checklist.md +51 -51
- package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +235 -235
- package/dist/skills/performance/SKILL.md +267 -267
- package/dist/skills/performance-analyze/SKILL.md +129 -129
- package/dist/skills/performance-analyze/references/performance-optimization-guide.md +271 -271
- package/dist/skills/performance-finalize/SKILL.md +117 -117
- package/dist/skills/performance-implement/SKILL.md +114 -114
- package/dist/skills/performance-plan/SKILL.md +112 -112
- package/dist/skills/performance-spec/SKILL.md +145 -145
- package/dist/skills/performance-verify/SKILL.md +164 -164
- package/dist/skills/research/SKILL.md +249 -249
- package/dist/skills/research-brainstorm/SKILL.md +120 -120
- package/dist/skills/research-brainstorm/references/brainstorming-techniques.md +84 -84
- package/dist/skills/research-converge/SKILL.md +130 -130
- package/dist/skills/research-design/SKILL.md +146 -146
- package/dist/skills/research-design/references/design-techniques.md +40 -40
- package/dist/skills/research-finalize/SKILL.md +125 -125
- package/dist/skills/research-fork/SKILL.md +190 -190
- package/dist/skills/research-gather/SKILL.md +133 -133
- package/dist/skills/research-plan/SKILL.md +141 -141
- package/dist/skills/research-plan/references/research-methodologies.md +710 -710
- package/dist/skills/research-quick/SKILL.md +139 -139
- package/dist/skills/research-synthesize/SKILL.md +127 -127
- package/dist/skills/rule-reviewer/SKILL.md +334 -334
- package/dist/skills/standards-discover/SKILL.md +260 -260
- package/dist/skills/standards-discover/references/aggregation-strategy.md +76 -76
- package/dist/skills/standards-discover/references/code-pattern-prompt.md +68 -68
- package/dist/skills/standards-discover/references/config-analyzer-prompt.md +67 -67
- package/dist/skills/standards-discover/references/docs-extractor-prompt.md +65 -65
- package/dist/skills/standards-discover/references/external-analyzer-prompt.md +75 -75
- package/dist/skills/standards-update/SKILL.md +207 -207
- package/dist/templates/orchestrator-state-base.yml +17 -17
- package/dist/templates/orchestrator-state-development.yml +95 -95
- package/dist/templates/orchestrator-state-migration.yml +95 -95
- package/dist/templates/orchestrator-state-performance.yml +64 -64
- package/dist/templates/orchestrator-state-research.yml +67 -67
- package/dist/tools/fork_task.d.ts +17 -0
- package/dist/tools/fork_task.js +21 -11
- package/dist/tools/verify_template.d.ts +11 -0
- package/dist/tools/verify_template.js +32 -17
- package/dist/tui/hooks-dialogs.d.ts +20 -0
- package/dist/tui/hooks-dialogs.js +181 -0
- package/dist/tui/hooks-presenter.d.ts +15 -0
- package/dist/tui/hooks-presenter.js +70 -0
- package/dist/tui/hooks-sidebar.d.ts +10 -0
- package/dist/tui/hooks-sidebar.js +104 -0
- package/dist/tui/primitives.d.ts +21 -0
- package/dist/tui/primitives.js +47 -0
- package/dist/tui.d.ts +12 -0
- package/dist/tui.js +129 -0
- package/dist/types/hook-types.d.ts +125 -0
- package/dist/types/hook-types.js +76 -0
- package/dist/types/opencode-types.d.ts +13 -0
- package/dist/utils/file-util.d.ts +2 -0
- package/dist/utils/file-util.js +6 -6
- package/dist/utils/fork-task.d.ts +27 -0
- package/dist/utils/fork-task.js +18 -23
- package/dist/utils/plugin-info.d.ts +3 -0
- package/dist/utils/plugin-info.js +8 -10
- package/dist/utils/workflow-paths.d.ts +17 -0
- package/dist/utils/workflow-paths.js +18 -0
- package/dist/utils/yaml-structure.d.ts +7 -0
- package/dist/utils/yaml-structure.js +7 -11
- package/package.json +68 -48
- package/dist/hooks/before-tool.js +0 -19
|
@@ -1,309 +1,308 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: implementation-planner
|
|
3
|
-
description: Creates detailed implementation plans from specifications. Breaks work into task groups by specialty (database, API, frontend, testing), creates implementation steps with test-driven approach (2-8 tests per group), sets dependencies, and defines acceptance criteria. Does not interact with users.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
| `
|
|
32
|
-
| `
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- `
|
|
38
|
-
- `
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
**
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
- [ ] N.
|
|
112
|
-
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
- [ ] N.
|
|
138
|
-
- [ ] N.
|
|
139
|
-
- [ ] N.
|
|
140
|
-
- [ ] N.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
- `
|
|
197
|
-
- `
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
-
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
|
215
|
-
|
|
|
216
|
-
|
|
|
217
|
-
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
-
|
|
227
|
-
-
|
|
228
|
-
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
- All groups
|
|
238
|
-
- All groups
|
|
239
|
-
-
|
|
240
|
-
-
|
|
241
|
-
-
|
|
242
|
-
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
|
252
|
-
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
-
|
|
304
|
-
-
|
|
305
|
-
-
|
|
306
|
-
-
|
|
307
|
-
-
|
|
308
|
-
-
|
|
309
|
-
- Task group items created with correct dependencies
|
|
1
|
+
---
|
|
2
|
+
name: implementation-planner
|
|
3
|
+
description: Creates detailed implementation plans from specifications. Breaks work into task groups by specialty (database, API, frontend, testing), creates implementation steps with test-driven approach (2-8 tests per group), sets dependencies, and defines acceptance criteria. Does not interact with users.
|
|
4
|
+
mode: subagent
|
|
5
|
+
hidden: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Implementation Planner
|
|
9
|
+
|
|
10
|
+
You are the implementation-planner subagent. Your role is to transform a specification into a detailed, actionable implementation plan with task groups, test-driven steps, and dependency chains.
|
|
11
|
+
|
|
12
|
+
## Purpose
|
|
13
|
+
|
|
14
|
+
Create `implementation/implementation-plan.md` from an approved specification. Break work into specialty task groups with test-driven steps, set dependencies, and create task items for tracking.
|
|
15
|
+
|
|
16
|
+
**You do NOT ask users questions** - you work autonomously from the specification and accumulated context.
|
|
17
|
+
|
|
18
|
+
**You do NOT create directories** - the orchestrator has already created the task folder structure.
|
|
19
|
+
|
|
20
|
+
**You do NOT write specifications or code** - specs come from specification-creator; code comes from implementation-plan-executor.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Input Requirements
|
|
25
|
+
|
|
26
|
+
The Task prompt MUST include:
|
|
27
|
+
|
|
28
|
+
| Input | Source | Purpose |
|
|
29
|
+
| ---------------------- | ------------------ | ------------------------------------------ |
|
|
30
|
+
| `task_path` | Orchestrator | Absolute path to task directory |
|
|
31
|
+
| `task_characteristics` | Orchestrator state | Detected characteristics from gap-analyzer |
|
|
32
|
+
| `task_description` | User input | What's being built |
|
|
33
|
+
|
|
34
|
+
**Accumulated Context** (Pattern 7):
|
|
35
|
+
|
|
36
|
+
- `phase_summaries`: Prior phase summaries (specification, gap analysis, codebase analysis)
|
|
37
|
+
- `research_context`: Research findings path (if research-informed development)
|
|
38
|
+
- Migration-specific: `migration_type`, `current_system`, `target_system` (if migration)
|
|
39
|
+
|
|
40
|
+
**Required File** (must exist on disk):
|
|
41
|
+
|
|
42
|
+
- `{task_path}/implementation/spec.md` — the specification to plan from
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Workflow
|
|
47
|
+
|
|
48
|
+
### Phase 1: Analyze Specification
|
|
49
|
+
|
|
50
|
+
Read `implementation/spec.md` and extract:
|
|
51
|
+
|
|
52
|
+
- Technical layers needed (database, API, frontend)
|
|
53
|
+
- Special requirements (email, background jobs, file storage, auth, payment)
|
|
54
|
+
- Reusable components from spec
|
|
55
|
+
- New components required
|
|
56
|
+
- Complexity indicators
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
### Phase 2: Determine Task Groups
|
|
61
|
+
|
|
62
|
+
#### Layer Detection
|
|
63
|
+
|
|
64
|
+
| Spec Mentions | Add Task Group |
|
|
65
|
+
| ----------------------------------- | ------------------------- |
|
|
66
|
+
| Data storage, models, migrations | Database Layer |
|
|
67
|
+
| API, endpoints, backend logic | API/Backend Layer |
|
|
68
|
+
| UI, interface, components, pages | Frontend/UI Layer |
|
|
69
|
+
| Email, notify, alert | Email/Notifications Layer |
|
|
70
|
+
| Async, queue, background, scheduled | Background Jobs Layer |
|
|
71
|
+
| Upload, download, file | File Storage Layer |
|
|
72
|
+
| Login, auth, permission | Authentication Layer |
|
|
73
|
+
| Payment, billing, checkout | Payment Processing Layer |
|
|
74
|
+
| Migrate existing data | Data Migration Layer |
|
|
75
|
+
|
|
76
|
+
#### Complexity Adaptation
|
|
77
|
+
|
|
78
|
+
| Scope | Groups | Example |
|
|
79
|
+
| ------------------ | ------ | -------------------------------- |
|
|
80
|
+
| Small (1-3 files) | 1-2 | Fix + Testing |
|
|
81
|
+
| Medium (4-8 files) | 3-4 | Database, API, Frontend, Testing |
|
|
82
|
+
| Large (9+ files) | 5-6 | + Email, Background Jobs, etc. |
|
|
83
|
+
|
|
84
|
+
#### Testing Group
|
|
85
|
+
|
|
86
|
+
IF total implementation groups >= 3:
|
|
87
|
+
|
|
88
|
+
- ADD: Test Review & Gap Analysis (as final group)
|
|
89
|
+
|
|
90
|
+
#### Dependencies
|
|
91
|
+
|
|
92
|
+
Common patterns:
|
|
93
|
+
|
|
94
|
+
- Database → API → Frontend
|
|
95
|
+
- API → Background Jobs, Email
|
|
96
|
+
- All implementation → Testing
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
### Phase 3: Create Implementation Steps
|
|
101
|
+
|
|
102
|
+
#### Test-Driven Pattern (Every Group)
|
|
103
|
+
|
|
104
|
+
```markdown
|
|
105
|
+
### Task Group N: [Layer Name]
|
|
106
|
+
|
|
107
|
+
**Dependencies:** [group numbers or "None"]
|
|
108
|
+
**Estimated Steps:** [count]
|
|
109
|
+
|
|
110
|
+
- [ ] N.0 Complete [layer] layer
|
|
111
|
+
- [ ] N.1 Write 2-8 focused tests for [component]
|
|
112
|
+
- Test only critical behaviors
|
|
113
|
+
- Skip exhaustive coverage
|
|
114
|
+
- [ ] N.2 [Implementation step]
|
|
115
|
+
- Detail with specifics
|
|
116
|
+
- Reuse: [existing component] (if in spec)
|
|
117
|
+
- [ ] N.3 [Another step]
|
|
118
|
+
- Reference mockup: `analysis/visuals/[file]` (if applicable)
|
|
119
|
+
- [ ] N.n Ensure [layer] tests pass
|
|
120
|
+
- Run ONLY the 2-8 tests written in N.1
|
|
121
|
+
- Do NOT run entire test suite
|
|
122
|
+
|
|
123
|
+
**Acceptance Criteria:**
|
|
124
|
+
|
|
125
|
+
- The 2-8 tests pass
|
|
126
|
+
- [Specific completion markers]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
#### Testing Group (When >= 3 Groups)
|
|
130
|
+
|
|
131
|
+
```markdown
|
|
132
|
+
### Task Group N: Test Review & Gap Analysis
|
|
133
|
+
|
|
134
|
+
**Dependencies:** All previous groups
|
|
135
|
+
|
|
136
|
+
- [ ] N.0 Review and fill critical gaps
|
|
137
|
+
- [ ] N.1 Review tests from previous groups (6-24 existing tests)
|
|
138
|
+
- [ ] N.2 Analyze gaps for THIS feature only
|
|
139
|
+
- [ ] N.3 Write up to 10 additional strategic tests
|
|
140
|
+
- [ ] N.4 Run feature-specific tests only (expect 16-34 total)
|
|
141
|
+
|
|
142
|
+
**Acceptance Criteria:**
|
|
143
|
+
|
|
144
|
+
- All feature tests pass (~16-34 total)
|
|
145
|
+
- No more than 10 additional tests added
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
### Phase 4: Write Implementation Plan
|
|
151
|
+
|
|
152
|
+
Create `implementation/implementation-plan.md`:
|
|
153
|
+
|
|
154
|
+
```markdown
|
|
155
|
+
# Implementation Plan: [Task Name]
|
|
156
|
+
|
|
157
|
+
## Overview
|
|
158
|
+
|
|
159
|
+
Total Steps: [count]
|
|
160
|
+
Task Groups: [count]
|
|
161
|
+
Expected Tests: [calculation]
|
|
162
|
+
|
|
163
|
+
## Implementation Steps
|
|
164
|
+
|
|
165
|
+
[All task groups with test-driven pattern]
|
|
166
|
+
|
|
167
|
+
## Execution Order
|
|
168
|
+
|
|
169
|
+
1. [Group 1] ([N] steps)
|
|
170
|
+
2. [Group 2] ([N] steps, depends on 1)
|
|
171
|
+
...
|
|
172
|
+
|
|
173
|
+
## Standards Compliance
|
|
174
|
+
|
|
175
|
+
Follow standards from `.owflow/docs/standards/`:
|
|
176
|
+
|
|
177
|
+
- global/ - Always applicable
|
|
178
|
+
- [area]/ - Area-specific
|
|
179
|
+
|
|
180
|
+
## Notes
|
|
181
|
+
|
|
182
|
+
- Test-Driven: Each group starts with 2-8 tests
|
|
183
|
+
- Run Incrementally: Only new tests after each group
|
|
184
|
+
- Mark Progress: Check off steps as completed
|
|
185
|
+
- Reuse First: Prioritize existing components from spec
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### Phase 4.5: Create Task Group Items
|
|
191
|
+
|
|
192
|
+
After writing the implementation plan file, create structured task items for group-level tracking:
|
|
193
|
+
|
|
194
|
+
1. For each task group, call `TaskCreate`:
|
|
195
|
+
- `subject`: "Group N: [Layer Name]" (e.g., "Group 1: Database Layer")
|
|
196
|
+
- `description`: Acceptance criteria + step count + dependency info
|
|
197
|
+
- `activeForm`: "Implementing [Layer Name]"
|
|
198
|
+
|
|
199
|
+
2. Set dependencies with `TaskUpdate addBlockedBy` mirroring the plan's dependency chain:
|
|
200
|
+
- Database → API → Frontend (matches `Dependencies:` field in each group)
|
|
201
|
+
- All implementation groups → Test Review & Gap Analysis (if present)
|
|
202
|
+
|
|
203
|
+
**Why both markdown AND Task system?**
|
|
204
|
+
|
|
205
|
+
- Markdown checkboxes = step-level tracking (N.1, N.2, etc.) + resume source of truth
|
|
206
|
+
- Task system = group-level visibility with dependencies, timing, ownership
|
|
207
|
+
- They complement each other at different granularity levels
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## Test Limits (Strict)
|
|
212
|
+
|
|
213
|
+
| Scope | Tests |
|
|
214
|
+
| -------------------------- | ------ |
|
|
215
|
+
| Per implementation group | 2-8 |
|
|
216
|
+
| Testing group (additional) | Max 10 |
|
|
217
|
+
| Total per feature | ~16-34 |
|
|
218
|
+
|
|
219
|
+
**Critical**: Run only new tests after each group, NOT entire suite.
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## Step Quality Guidelines
|
|
224
|
+
|
|
225
|
+
- Specific and verifiable
|
|
226
|
+
- Include technical details (fields, validations, endpoints)
|
|
227
|
+
- Reference visual mockups by filename
|
|
228
|
+
- Note reusable components from spec
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## Validation Checklist
|
|
233
|
+
|
|
234
|
+
Before completing, verify:
|
|
235
|
+
|
|
236
|
+
- All groups have parent task (X.0)
|
|
237
|
+
- All groups start with tests (X.1)
|
|
238
|
+
- All groups end with test verification (X.n)
|
|
239
|
+
- Test limits specified (2-8 per group)
|
|
240
|
+
- Dependencies marked correctly
|
|
241
|
+
- Reusable components referenced
|
|
242
|
+
- Standards section included
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Output
|
|
247
|
+
|
|
248
|
+
### Files Created
|
|
249
|
+
|
|
250
|
+
| File | Content |
|
|
251
|
+
| --------------------------------------- | ---------------------------- |
|
|
252
|
+
| `implementation/implementation-plan.md` | Complete implementation plan |
|
|
253
|
+
|
|
254
|
+
### Task Items Created
|
|
255
|
+
|
|
256
|
+
- One `TaskCreate` per task group
|
|
257
|
+
- Dependencies set via `TaskUpdate addBlockedBy`
|
|
258
|
+
|
|
259
|
+
### Structured Result (returned to orchestrator)
|
|
260
|
+
|
|
261
|
+
```yaml
|
|
262
|
+
status: "success" | "failed"
|
|
263
|
+
plan_path: "implementation/implementation-plan.md"
|
|
264
|
+
|
|
265
|
+
summary:
|
|
266
|
+
task_groups: [count]
|
|
267
|
+
total_steps: [count]
|
|
268
|
+
expected_tests: [range, e.g., "16-34"]
|
|
269
|
+
has_testing_group: true | false
|
|
270
|
+
|
|
271
|
+
groups:
|
|
272
|
+
- name: "[Layer Name]"
|
|
273
|
+
steps: [count]
|
|
274
|
+
tests: [count]
|
|
275
|
+
dependencies: [group numbers or "None"]
|
|
276
|
+
- ...
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
## Integration
|
|
282
|
+
|
|
283
|
+
**Invoked by**: dev-plan, migration-plan
|
|
284
|
+
|
|
285
|
+
**Prerequisites**:
|
|
286
|
+
|
|
287
|
+
- Task directory exists with `implementation/` subdirectory
|
|
288
|
+
- `implementation/spec.md` exists (created by specification-creator)
|
|
289
|
+
|
|
290
|
+
**Input**: Task path, task_characteristics, description, accumulated context
|
|
291
|
+
|
|
292
|
+
**Output**: `implementation/implementation-plan.md` + task group items + structured result
|
|
293
|
+
|
|
294
|
+
**Next Phase**: Plan feeds into implementation-plan-executor (executes the plan)
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
## Success Criteria
|
|
299
|
+
|
|
300
|
+
Your implementation plan is successful when:
|
|
301
|
+
|
|
302
|
+
- All spec requirements are covered by task groups
|
|
303
|
+
- Every group follows the test-driven pattern (tests first, implementation, verify)
|
|
304
|
+
- Test limits are respected (2-8 per group, max 10 additional)
|
|
305
|
+
- Dependencies reflect technical ordering
|
|
306
|
+
- Reusable components from spec are referenced in steps
|
|
307
|
+
- Standards compliance section references project standards
|
|
308
|
+
- Task group items created with correct dependencies
|