strikethroo 3.21.2 → 3.21.3
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/dist-web/assets/{arc-Dnj8t_Cg.js → arc-8Mxnwqfp.js} +1 -1
- package/dist-web/assets/{architectureDiagram-3BPJPVTR-7x3i_pmi.js → architectureDiagram-3BPJPVTR-CjR6ApxR.js} +1 -1
- package/dist-web/assets/{blockDiagram-GPEHLZMM-Cg2a93ny.js → blockDiagram-GPEHLZMM-DhGYH8V9.js} +1 -1
- package/dist-web/assets/{c4Diagram-AAUBKEIU-DMmHyu1B.js → c4Diagram-AAUBKEIU-BpUJqbui.js} +1 -1
- package/dist-web/assets/channel-BJWsQ6W2.js +1 -0
- package/dist-web/assets/{chunk-2J33WTMH-BarACI5V.js → chunk-2J33WTMH-BX8NM2bi.js} +1 -1
- package/dist-web/assets/{chunk-4BX2VUAB-D1jdtJjC.js → chunk-4BX2VUAB-ChNDzlNh.js} +1 -1
- package/dist-web/assets/{chunk-55IACEB6-D3ecVMrb.js → chunk-55IACEB6-62ChSXXQ.js} +1 -1
- package/dist-web/assets/{chunk-727SXJPM-DXNd005W.js → chunk-727SXJPM-DM_m3yWL.js} +1 -1
- package/dist-web/assets/{chunk-AQP2D5EJ-C0VOl8ox.js → chunk-AQP2D5EJ-DZcEQaCW.js} +1 -1
- package/dist-web/assets/{chunk-FMBD7UC4-DcTxd98r.js → chunk-FMBD7UC4-jITTRsf2.js} +1 -1
- package/dist-web/assets/{chunk-ND2GUHAM-CAMtgZHg.js → chunk-ND2GUHAM-D73huh8-.js} +1 -1
- package/dist-web/assets/{chunk-QZHKN3VN-DWfV0bq5.js → chunk-QZHKN3VN-DqdeIFoN.js} +1 -1
- package/dist-web/assets/classDiagram-4FO5ZUOK-yCIjCNKh.js +1 -0
- package/dist-web/assets/classDiagram-v2-Q7XG4LA2-yCIjCNKh.js +1 -0
- package/dist-web/assets/{cose-bilkent-S5V4N54A-Csc9VNPk.js → cose-bilkent-S5V4N54A-B6y8LQMc.js} +1 -1
- package/dist-web/assets/{dagre-BM42HDAG-BnwRiOXb.js → dagre-BM42HDAG-CEudzPZe.js} +1 -1
- package/dist-web/assets/{diagram-2AECGRRQ-wPIOyrHK.js → diagram-2AECGRRQ-ADCpFrWI.js} +1 -1
- package/dist-web/assets/{diagram-5GNKFQAL-TccsDwtZ.js → diagram-5GNKFQAL-BQcNfKgC.js} +1 -1
- package/dist-web/assets/{diagram-KO2AKTUF-DtAJCwJt.js → diagram-KO2AKTUF-2Y25ZUgl.js} +1 -1
- package/dist-web/assets/{diagram-LMA3HP47-BvMQVWoO.js → diagram-LMA3HP47-qiLQPz0R.js} +1 -1
- package/dist-web/assets/{diagram-OG6HWLK6-BPxOm_5c.js → diagram-OG6HWLK6-5tV6wHg0.js} +1 -1
- package/dist-web/assets/{erDiagram-TEJ5UH35-CRPnIDwq.js → erDiagram-TEJ5UH35-C9KwzSBJ.js} +1 -1
- package/dist-web/assets/{flowDiagram-I6XJVG4X-DBLbHpW_.js → flowDiagram-I6XJVG4X-DWFT6yjl.js} +1 -1
- package/dist-web/assets/{ganttDiagram-6RSMTGT7-gZhN1gnI.js → ganttDiagram-6RSMTGT7-CwOaaOj-.js} +1 -1
- package/dist-web/assets/{gitGraphDiagram-PVQCEYII-Dssi43fY.js → gitGraphDiagram-PVQCEYII-D9GwiRiE.js} +1 -1
- package/dist-web/assets/{index-CEGCvBkm.js → index-CJtNiGoR.js} +1 -1
- package/dist-web/assets/{index-BdDnJAsd.js → index-CXzu9Ojw.js} +1 -1
- package/dist-web/assets/{index-Nz3QPmKb.js → index-R-j45X6T.js} +4 -4
- package/dist-web/assets/{infoDiagram-5YYISTIA-sXzUxho2.js → infoDiagram-5YYISTIA-8s7z_vpg.js} +1 -1
- package/dist-web/assets/{ishikawaDiagram-YF4QCWOH-BPHTll-A.js → ishikawaDiagram-YF4QCWOH-mkZLBAJy.js} +1 -1
- package/dist-web/assets/{journeyDiagram-JHISSGLW-h2TzQwJC.js → journeyDiagram-JHISSGLW-CrSmLI8k.js} +1 -1
- package/dist-web/assets/{kanban-definition-UN3LZRKU-1xkUO8WZ.js → kanban-definition-UN3LZRKU-jB_Pkb2G.js} +1 -1
- package/dist-web/assets/{linear-D_7aXIXs.js → linear-BmZe-JSe.js} +1 -1
- package/dist-web/assets/{mermaid.core-Bwdbg8D0.js → mermaid.core-kJp9v7BU.js} +4 -4
- package/dist-web/assets/{mindmap-definition-RKZ34NQL-eAYjLKqV.js → mindmap-definition-RKZ34NQL-BygLhP5m.js} +1 -1
- package/dist-web/assets/{pieDiagram-4H26LBE5-CWfU-OAg.js → pieDiagram-4H26LBE5-CERgWyaB.js} +1 -1
- package/dist-web/assets/{quadrantDiagram-W4KKPZXB-CgKKzr9p.js → quadrantDiagram-W4KKPZXB-BA_bITko.js} +1 -1
- package/dist-web/assets/{requirementDiagram-4Y6WPE33-Dx-cDqCB.js → requirementDiagram-4Y6WPE33-BkZUv4kJ.js} +1 -1
- package/dist-web/assets/{sankeyDiagram-5OEKKPKP-B_yYv0Dy.js → sankeyDiagram-5OEKKPKP-DpAA7Nm0.js} +1 -1
- package/dist-web/assets/{sequenceDiagram-3UESZ5HK--QLtZ1Rs.js → sequenceDiagram-3UESZ5HK-D1A1wk57.js} +1 -1
- package/dist-web/assets/{stateDiagram-AJRCARHV-DVmFu5R7.js → stateDiagram-AJRCARHV-GNvrUmkz.js} +1 -1
- package/dist-web/assets/stateDiagram-v2-BHNVJYJU-DkJ7czmr.js +1 -0
- package/dist-web/assets/{timeline-definition-PNZ67QCA-BUtZCLUr.js → timeline-definition-PNZ67QCA-GEOSAbn6.js} +1 -1
- package/dist-web/assets/{vennDiagram-CIIHVFJN-CiAEMMvF.js → vennDiagram-CIIHVFJN-D_IwvMPq.js} +1 -1
- package/dist-web/assets/{wardley-L42UT6IY-CzeU7tOS.js → wardley-L42UT6IY-CpNQq-PK.js} +1 -1
- package/dist-web/assets/{wardleyDiagram-YWT4CUSO-vvP_uZTz.js → wardleyDiagram-YWT4CUSO-DjyTS7lS.js} +1 -1
- package/dist-web/assets/{xychartDiagram-2RQKCTM6-vSFbOWXi.js → xychartDiagram-2RQKCTM6-Bi0kYEuJ.js} +1 -1
- package/dist-web/index.html +1 -1
- package/package.json +1 -1
- package/templates/harness/skills/st-code-review/SKILL.md +3 -7
- package/templates/harness/skills/st-create-plan/SKILL.md +22 -44
- package/templates/harness/skills/st-execute-blueprint/SKILL.md +26 -63
- package/templates/harness/skills/st-execute-task/SKILL.md +24 -83
- package/templates/harness/skills/st-full-workflow/SKILL.md +125 -273
- package/templates/harness/skills/st-generate-tasks/SKILL.md +82 -157
- package/templates/harness/skills/st-refine-plan/SKILL.md +54 -111
- package/dist-web/assets/channel-Bb0_vDD8.js +0 -1
- package/dist-web/assets/classDiagram-4FO5ZUOK-R25Yhm3n.js +0 -1
- package/dist-web/assets/classDiagram-v2-Q7XG4LA2-R25Yhm3n.js +0 -1
- package/dist-web/assets/stateDiagram-v2-BHNVJYJU-DBs8K0hr.js +0 -1
- package/templates/harness/skills/st-full-workflow/references/task-frontmatter.md +0 -23
- package/templates/harness/skills/st-full-workflow/references/test-philosophy.md +0 -17
- package/templates/harness/skills/st-generate-tasks/references/task-frontmatter.md +0 -23
- package/templates/harness/skills/st-generate-tasks/references/test-philosophy.md +0 -17
|
@@ -5,9 +5,6 @@ description: Use when the user asks to decompose, break down, or generate tasks
|
|
|
5
5
|
|
|
6
6
|
# st-generate-tasks
|
|
7
7
|
|
|
8
|
-
Drive the end-to-end decomposition of an existing Strikethroo plan into
|
|
9
|
-
atomic Markdown task files.
|
|
10
|
-
|
|
11
8
|
## Inputs
|
|
12
9
|
|
|
13
10
|
The user supplies the numeric plan ID conversationally.
|
|
@@ -16,20 +13,15 @@ The user supplies the numeric plan ID conversationally.
|
|
|
16
13
|
|
|
17
14
|
### 1. Locate the strikethroo root
|
|
18
15
|
|
|
19
|
-
Run `scripts/find-strikethroo-root.cjs` from the user's working directory.
|
|
20
|
-
|
|
21
|
-
If the script exits non-zero, the working directory is not inside an
|
|
22
|
-
initialized strikethroo workspace. Stop and ask the user to run the project
|
|
23
|
-
initializer (e.g. `npx strikethroo init`) before continuing. Do
|
|
24
|
-
not attempt to generate tasks outside of a valid root.
|
|
16
|
+
Run `scripts/find-strikethroo-root.cjs` from the user's working directory. If
|
|
17
|
+
it exits non-zero, stop and ask the user to run `npx strikethroo init`.
|
|
25
18
|
|
|
26
|
-
|
|
19
|
+
Treat the path it prints as `<root>` for every subsequent step.
|
|
27
20
|
|
|
28
21
|
### 2. Resolve the plan
|
|
29
22
|
|
|
30
|
-
Run `scripts/validate-plan-blueprint.cjs <plan-id> planFile`
|
|
31
|
-
absolute path
|
|
32
|
-
field alone.
|
|
23
|
+
Run `scripts/validate-plan-blueprint.cjs <plan-id> planFile` for the plan
|
|
24
|
+
file's absolute path. Another field name prints that field instead.
|
|
33
25
|
|
|
34
26
|
If the script exits non-zero, stop and ask the user to confirm the plan ID.
|
|
35
27
|
Do not guess a different ID.
|
|
@@ -38,12 +30,11 @@ Do not guess a different ID.
|
|
|
38
30
|
|
|
39
31
|
Read these files, in order:
|
|
40
32
|
|
|
41
|
-
- `<root>/config/STRIKETHROO.md` — directory conventions
|
|
42
|
-
|
|
43
|
-
- The plan body at the path returned by step 2 — this is the contract for
|
|
33
|
+
- `<root>/config/STRIKETHROO.md` — project and directory conventions.
|
|
34
|
+
- The plan body at the path returned by step 2 — the contract for
|
|
44
35
|
what tasks must exist.
|
|
45
|
-
- `<root>/config/templates/TASK_TEMPLATE.md` — every task file
|
|
46
|
-
|
|
36
|
+
- `<root>/config/templates/TASK_TEMPLATE.md` — the schema every task file
|
|
37
|
+
must match.
|
|
47
38
|
- `<root>/config/shared/anti-rationalization.md` — apply in step 4.
|
|
48
39
|
|
|
49
40
|
### 4. Analyze and decompose the plan
|
|
@@ -56,23 +47,10 @@ Decompose each deliverable into atomic tasks only when genuinely needed.
|
|
|
56
47
|
- Create only the minimum number of tasks necessary. Target a 20–30%
|
|
57
48
|
reduction from comprehensive lists by questioning the necessity of each
|
|
58
49
|
candidate.
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
to meet the plan objectives?"
|
|
64
|
-
- **Avoid Gold-plating**: resist comprehensive features the plan does not
|
|
65
|
-
require.
|
|
66
|
-
|
|
67
|
-
**Antipatterns to avoid:**
|
|
68
|
-
|
|
69
|
-
- Separating "error handling" from the main implementation when it can be
|
|
70
|
-
inline.
|
|
71
|
-
- Splitting trivially small operations into multiple tasks (e.g. "validate
|
|
72
|
-
input" + "process input" as separate units).
|
|
73
|
-
- Adding tasks for "future extensibility" or "best practices" the plan does
|
|
74
|
-
not mention.
|
|
75
|
-
- Comprehensive test suites for trivial functionality.
|
|
50
|
+
- Every task corresponds to an explicit requirement, never a nice-to-have, a
|
|
51
|
+
"best practice", or future extensibility the plan does not mention.
|
|
52
|
+
- Each task has a unique, non-overlapping purpose.
|
|
53
|
+
- Keep error handling inside the task that owns the behavior it guards.
|
|
76
54
|
|
|
77
55
|
Apply `<root>/config/shared/anti-rationalization.md` to this rationalization table:
|
|
78
56
|
|
|
@@ -94,80 +72,68 @@ Each task must be:
|
|
|
94
72
|
concrete, runnable verification step (a command plus its expected output, or
|
|
95
73
|
another observable signal). Never settle for a vague "works correctly".
|
|
96
74
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
- 2 skills — complementary domains (e.g. `["api-endpoints", "database"]`,
|
|
102
|
-
`["react-components", "vitest"]`).
|
|
103
|
-
- 3+ skills indicates the task should be broken down further.
|
|
75
|
+
Infer skills in kebab-case from the task's technical requirements. Use one
|
|
76
|
+
skill for a single-domain task and two for complementary domains, such as
|
|
77
|
+
`["api-endpoints", "database"]`. Three or more means the task must be broken
|
|
78
|
+
down further.
|
|
104
79
|
|
|
105
80
|
### 6. Test philosophy: "write a few tests, mostly integration"
|
|
106
81
|
|
|
107
|
-
|
|
82
|
+
**Write tests for:**
|
|
108
83
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
84
|
+
- Custom business logic and algorithms.
|
|
85
|
+
- Critical user workflows and data transformations.
|
|
86
|
+
- Edge cases and error conditions in core functionality.
|
|
87
|
+
- Integration points between components.
|
|
88
|
+
- Complex validation or calculation logic.
|
|
112
89
|
|
|
113
|
-
|
|
114
|
-
what deserves a test and what does not.
|
|
90
|
+
**Do not write tests for:**
|
|
115
91
|
|
|
116
|
-
|
|
92
|
+
- Third-party library and framework functionality.
|
|
93
|
+
- Simple CRUD without custom logic.
|
|
94
|
+
- Trivial getters/setters and static configuration.
|
|
95
|
+
- Obvious functionality that would break immediately if incorrect.
|
|
117
96
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
- Question whether simple functions need a dedicated test task.
|
|
97
|
+
Combine related test scenarios into one task ("Test user authentication flow",
|
|
98
|
+
not separate tasks for login, logout, and validation). Favor integration and
|
|
99
|
+
critical-path coverage over per-method unit tests. Never create one test task
|
|
100
|
+
per CRUD operation.
|
|
123
101
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
executing agent applies them.
|
|
102
|
+
Copy these rules into the "Implementation Notes" of every test task you
|
|
103
|
+
generate.
|
|
127
104
|
|
|
128
105
|
### 7. Dependency analysis
|
|
129
106
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
A task B depends on A if B requires A's output or artifacts, modifies code
|
|
136
|
-
created by A, or tests functionality implemented by A. Validate that the
|
|
137
|
-
final dependency graph is acyclic.
|
|
107
|
+
Task B depends on task A when B requires A's output or artifacts, modifies
|
|
108
|
+
code created by A, or tests functionality implemented by A. Record it as a
|
|
109
|
+
**hard dependency** when B cannot start before A completes and as a **soft
|
|
110
|
+
dependency** when B merely runs better after A. Validate that the final
|
|
111
|
+
dependency graph is acyclic.
|
|
138
112
|
|
|
139
113
|
### 8. Complexity analysis
|
|
140
114
|
|
|
141
115
|
For every candidate task, assign a `complexity_score` (integer 1–10) before
|
|
142
116
|
writing any file. Read `references/complexity-rubric.md` before scoring; it
|
|
143
|
-
defines the four dimensions each band is judged on.
|
|
117
|
+
defines the four dimensions each band is judged on. Then apply these rules:
|
|
144
118
|
|
|
145
|
-
**Pre-emission sanity rules** — apply these before any task is written:
|
|
146
|
-
|
|
147
|
-
- 3+ skills assigned → split the task into smaller tasks, each with 1–2 skills.
|
|
148
|
-
- Vague acceptance criteria → sharpen them until they include at least one
|
|
149
|
-
concrete, runnable verification step.
|
|
150
|
-
- Trivially small adjacent tasks → merge them into a single task.
|
|
151
119
|
- Score ≥ 8 → decompose further; do not emit as-is.
|
|
152
|
-
- Score 6–7 →
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
120
|
+
- Score 6–7 → sharpen or split; do not emit without an explicit reason.
|
|
121
|
+
- Vague acceptance criteria → sharpen them into a concrete, runnable
|
|
122
|
+
verification step.
|
|
123
|
+
- Trivially small adjacent tasks → merge them.
|
|
156
124
|
|
|
157
|
-
|
|
158
|
-
re-score the adjusted tasks. Repeat
|
|
125
|
+
**Loop-back rule:** after applying split, sharpen, or merge, re-run dependency
|
|
126
|
+
analysis and re-score the adjusted tasks. Repeat no more than three times. If
|
|
159
127
|
complexity is still unresolved after three passes, stop and surface the
|
|
160
128
|
blocker to the user.
|
|
161
129
|
|
|
162
130
|
### 9. Allocate task IDs
|
|
163
131
|
|
|
164
|
-
Run `scripts/get-next-task-id.cjs <plan-id>`
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
The slug derives from a short task title: lowercase, alphanumeric and
|
|
170
|
-
hyphens only, collapsed, trimmed.
|
|
132
|
+
Run `scripts/get-next-task-id.cjs <plan-id>` once for the first available task
|
|
133
|
+
ID, then allocate the rest by incrementing in-process. Use the unpadded
|
|
134
|
+
integer in the task frontmatter `id` field and the zero-padded form in the
|
|
135
|
+
filename. The slug derives from a short task title: lowercase, alphanumeric
|
|
136
|
+
and hyphens only, collapsed, trimmed.
|
|
171
137
|
|
|
172
138
|
### 10. Emit the task files
|
|
173
139
|
|
|
@@ -177,34 +143,23 @@ Write each task to:
|
|
|
177
143
|
<root>/plans/<plan-dir-name>/tasks/{padded-id}--{slug}.md
|
|
178
144
|
```
|
|
179
145
|
|
|
180
|
-
Each file must conform to `<root>/config/templates/TASK_TEMPLATE.md`.
|
|
181
|
-
`
|
|
182
|
-
|
|
146
|
+
Each file must conform to `<root>/config/templates/TASK_TEMPLATE.md`. Add
|
|
147
|
+
`complexity_notes` only when the score needs justification. Never write
|
|
148
|
+
`execution_profile`; the routing helper writes it.
|
|
183
149
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
so a non-thinking LLM could execute the task from that section alone.
|
|
150
|
+
Fill every body section with task-specific content. Place detailed
|
|
151
|
+
implementation guidance inside a `<details>` block under "Implementation
|
|
152
|
+
Notes", written so a non-thinking LLM could execute the task from that
|
|
153
|
+
section alone.
|
|
189
154
|
|
|
190
155
|
### 11. Validation checklist
|
|
191
156
|
|
|
192
157
|
Before declaring task generation complete, verify:
|
|
193
158
|
|
|
194
|
-
-
|
|
195
|
-
|
|
196
|
-
- Dependencies form an acyclic graph
|
|
197
|
-
-
|
|
198
|
-
`get-next-task-id.cjs`.
|
|
199
|
-
- Groups are consistent and meaningful.
|
|
200
|
-
- Every task's Acceptance Criteria includes at least one concrete, runnable
|
|
201
|
-
verification step (command + expected output / observable signal), not a
|
|
202
|
-
vague "works correctly".
|
|
203
|
-
- Every **explicitly stated** deliverable in the plan is covered.
|
|
204
|
-
- No redundant or overlapping tasks.
|
|
205
|
-
- Minimization applied (20–30% reduction target).
|
|
206
|
-
- Test tasks focus on business logic, not framework functionality.
|
|
207
|
-
- No gold-plating: only plan requirements are addressed.
|
|
159
|
+
- Every **explicitly stated** deliverable in the plan is covered by a task.
|
|
160
|
+
- No two tasks overlap in purpose.
|
|
161
|
+
- Dependencies form an acyclic graph, with no orphan or circular references.
|
|
162
|
+
- Groups are consistent across the plan.
|
|
208
163
|
- After writing the task files, run
|
|
209
164
|
`scripts/validate-plan-blueprint.cjs <plan-id> complexityScoresValid`. Stop
|
|
210
165
|
unless it prints `yes`; if it prints `no`, run
|
|
@@ -216,62 +171,32 @@ Before declaring task generation complete, verify:
|
|
|
216
171
|
Read `<root>/config/hooks/TASK_EXECUTION_ROUTING.md` and follow its
|
|
217
172
|
instructions together with this procedure:
|
|
218
173
|
|
|
219
|
-
1. Run `scripts/route-task-execution.cjs profiles <plan-id
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
2.
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
the emitted task files to reconstruct information you already hold. If
|
|
228
|
-
the plan carried task files from an earlier generation run, read those
|
|
229
|
-
files (and only those) to classify them — the mapping must cover every
|
|
230
|
-
task in the plan. Assign each task ID exactly one configured profile
|
|
231
|
-
name. Never invent a profile name, model, or harness.
|
|
174
|
+
1. Run `scripts/route-task-execution.cjs profiles <plan-id>`. On `no-config`
|
|
175
|
+
or `disabled`, routing is off; skip the remaining routing steps and
|
|
176
|
+
continue. On `invalid-config`, stop and surface the errors to the user; do
|
|
177
|
+
not generate the blueprint.
|
|
178
|
+
2. Assign every task in the plan's `tasks/` directory exactly one configured
|
|
179
|
+
profile name. Classify the tasks generated in this run from the content
|
|
180
|
+
already in your context. If the plan carried task files from an earlier
|
|
181
|
+
generation run, read those files to classify them.
|
|
232
182
|
3. Write the complete task-ID-to-profile mapping as a JSON object to a
|
|
233
183
|
temporary file, for example `{"1": "routine", "2": "demanding"}`.
|
|
234
|
-
4. Run
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
and surface the JSON errors to the user. Never proceed to blueprint
|
|
244
|
-
generation with partially routed tasks.
|
|
245
|
-
|
|
246
|
-
Profile names are durable routing labels. Persist them only through the
|
|
247
|
-
helper's `execution_profile` field; never hand-write a concrete `execution`
|
|
248
|
-
target into task frontmatter or task bodies.
|
|
184
|
+
4. Run `scripts/route-task-execution.cjs apply <plan-id> <mapping-file>`.
|
|
185
|
+
Target selection happens later at task dispatch, never during generation.
|
|
186
|
+
5. On `routed`, delete the temporary mapping file and continue. On any failure
|
|
187
|
+
result (`invalid-assignments`, `invalid-tasks`, `routing-failure`,
|
|
188
|
+
`infrastructure-failure`), stop and surface the JSON errors to the user.
|
|
189
|
+
Never continue to blueprint generation with partially routed tasks.
|
|
190
|
+
|
|
191
|
+
Never hand-write a concrete execution target into task frontmatter or task
|
|
192
|
+
bodies.
|
|
249
193
|
|
|
250
194
|
### 13. Run the POST_TASK_GENERATION_ALL hook
|
|
251
195
|
|
|
252
196
|
Read `<root>/config/hooks/POST_TASK_GENERATION_ALL.md` and follow its
|
|
253
|
-
instructions
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
- Appending an Execution Blueprint section to the plan document, including a
|
|
257
|
-
Mermaid dependency diagram and explicit phase groupings (Phase 1 contains
|
|
258
|
-
zero-dependency tasks; each subsequent phase contains tasks whose
|
|
259
|
-
dependencies all live in earlier phases). Use
|
|
260
|
-
`<root>/config/templates/BLUEPRINT_TEMPLATE.md` for structure.
|
|
261
|
-
|
|
262
|
-
### 14. Emit the structured summary
|
|
263
|
-
|
|
264
|
-
Conclude with exactly this block as the final output:
|
|
265
|
-
|
|
266
|
-
```
|
|
267
|
-
---
|
|
268
|
-
Task Generation Summary:
|
|
269
|
-
- Plan ID: [numeric-id]
|
|
270
|
-
- Tasks: [count]
|
|
271
|
-
- Status: Ready for execution
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
The summary is consumed by downstream automation; keep the format exact.
|
|
197
|
+
instructions, using `<root>/config/templates/BLUEPRINT_TEMPLATE.md` for the
|
|
198
|
+
Execution Blueprint structure. Run the hook only after routing succeeded or
|
|
199
|
+
reported routing off.
|
|
275
200
|
|
|
276
201
|
## Failure Modes
|
|
277
202
|
|
|
@@ -5,8 +5,6 @@ description: Use when the user asks to review, refine, improve, interrogate, pre
|
|
|
5
5
|
|
|
6
6
|
# st-refine-plan
|
|
7
7
|
|
|
8
|
-
Drive the end-to-end refinement of an existing Strikethroo plan.
|
|
9
|
-
|
|
10
8
|
## Inputs
|
|
11
9
|
|
|
12
10
|
The user supplies the numeric plan ID conversationally, plus any optional refinement notes.
|
|
@@ -15,49 +13,39 @@ The user supplies the numeric plan ID conversationally, plus any optional refine
|
|
|
15
13
|
|
|
16
14
|
### 1. Locate the strikethroo root
|
|
17
15
|
|
|
18
|
-
Run `scripts/find-strikethroo-root.cjs` from the user's working directory.
|
|
19
|
-
|
|
20
|
-
If the script exits non-zero, the working directory is not inside an
|
|
21
|
-
initialized strikethroo workspace. Stop and ask the user to run the project
|
|
22
|
-
initializer (e.g. `npx strikethroo init`) before continuing. Do
|
|
23
|
-
not attempt to refine a plan outside of a valid root.
|
|
16
|
+
Run `scripts/find-strikethroo-root.cjs` from the user's working directory. If
|
|
17
|
+
it exits non-zero, stop and ask the user to run `npx strikethroo init`.
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
Treat the path it prints as `<root>` for every subsequent step.
|
|
26
20
|
|
|
27
21
|
### 2. Resolve the plan
|
|
28
22
|
|
|
29
|
-
Run `scripts/validate-plan-blueprint.cjs <plan-id> planFile`
|
|
30
|
-
absolute path
|
|
31
|
-
field alone.
|
|
23
|
+
Run `scripts/validate-plan-blueprint.cjs <plan-id> planFile` for the plan
|
|
24
|
+
file's absolute path. Another field name prints that field instead.
|
|
32
25
|
|
|
33
26
|
If the script exits non-zero, stop and ask the user to confirm the plan ID.
|
|
34
27
|
Do not guess a different ID.
|
|
35
28
|
|
|
36
29
|
### 3. Load project context
|
|
37
30
|
|
|
38
|
-
Read
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- `<root>/config/templates/PLAN_TEMPLATE.md` — the structural baseline the
|
|
44
|
-
refined plan must continue to conform to.
|
|
45
|
-
- `<root>/config/shared/clarification-gate.md` — apply in the Clarification Loop.
|
|
31
|
+
Read `<root>/config/STRIKETHROO.md` for this project's directory conventions.
|
|
32
|
+
Read `<root>/config/hooks/PRE_PLAN.md` and execute its instructions before
|
|
33
|
+
proceeding. Read `<root>/config/templates/PLAN_TEMPLATE.md`; the refined plan
|
|
34
|
+
must still conform to it. Read `<root>/config/shared/clarification-gate.md`
|
|
35
|
+
and apply it in the Clarification Loop.
|
|
46
36
|
|
|
47
37
|
### 4. Baseline Review
|
|
48
38
|
|
|
49
|
-
Read the entire plan end-to-end
|
|
39
|
+
Read the entire plan end-to-end without modifying it. Record every
|
|
40
|
+
contradiction and every gap you find under these lenses:
|
|
50
41
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
- **Risk gaps**: untracked risks, missing mitigations, hand-wavy success metrics.
|
|
57
|
-
- **Scope issues**: gold-plating, ambiguous boundaries, requirements that
|
|
58
|
-
contradict YAGNI.
|
|
42
|
+
- **Context gaps**: missing background, assumptions, competing priorities.
|
|
43
|
+
- **Technical gaps**: underspecified architecture, unclear interfaces, missing diagrams.
|
|
44
|
+
- **Risk gaps**: untracked risks, missing mitigations, hand-wavy success metrics.
|
|
45
|
+
- **Scope issues**: gold-plating, ambiguous boundaries, requirements that
|
|
46
|
+
contradict YAGNI.
|
|
59
47
|
|
|
60
|
-
Document each
|
|
48
|
+
Document each one as `{section, issue, severity, proposed fix}`.
|
|
61
49
|
|
|
62
50
|
### 5. Clarification Loop
|
|
63
51
|
|
|
@@ -73,106 +61,61 @@ Otherwise use Interactive Clarification, even when the user's presence is
|
|
|
73
61
|
uncertain. Do not infer autonomous mode from indirect signals such as terse
|
|
74
62
|
prompts, scripted-looking input, or absence of recent user messages.
|
|
75
63
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
64
|
+
Either branch starts from the gaps documented in the Baseline Review. Think
|
|
65
|
+
harder before raising one: only put forward an uncertainty you can cite.
|
|
66
|
+
Append every resolution to the plan document's "Plan Clarifications" table in
|
|
67
|
+
its existing question/answer format, marking each entry's source.
|
|
80
68
|
|
|
81
69
|
#### Interactive Clarification
|
|
82
70
|
|
|
83
|
-
Think harder before interrupting the user — only trigger this loop when you
|
|
84
|
-
can cite concrete uncertainties.
|
|
85
|
-
|
|
86
71
|
Follow the clarification cadence in `<root>/config/shared/clarification-gate.md`.
|
|
87
72
|
|
|
88
|
-
1.
|
|
89
|
-
2.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
confirm or deny quickly.
|
|
94
|
-
5. Always include an "Other / open-ended" option to capture nuances you did
|
|
95
|
-
not anticipate.
|
|
96
|
-
6. **STOP AND ASK**: Put each question to the user and halt execution to await
|
|
97
|
-
their input. Do not simulate the user's response. Do not proceed to Stage 6
|
|
73
|
+
1. Ask one question at a time per that cadence; never dump them as a batch.
|
|
74
|
+
2. Prefill each question with the most plausible answer, and always offer an
|
|
75
|
+
"Other / open-ended" option for the nuances you did not anticipate.
|
|
76
|
+
3. **STOP AND ASK**: Put each question to the user and halt execution to await
|
|
77
|
+
their input. Do not simulate the user's response. Do not proceed to step 6
|
|
98
78
|
until you have received explicit answers and confirmed the resolved scope.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
this loop.
|
|
79
|
+
4. Record a question the user cannot or will not answer as unresolved, with
|
|
80
|
+
mitigation notes so downstream assistants know the risk, then proceed with
|
|
81
|
+
the available context.
|
|
82
|
+
5. Re-evaluate whether the answers opened new gaps. If so, repeat this loop.
|
|
104
83
|
|
|
105
84
|
#### Autonomous Clarification
|
|
106
85
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
- Reviewing assistant documents and README files.
|
|
115
|
-
- Making reasonable assumptions based on common practices and project
|
|
116
|
-
context.
|
|
117
|
-
3. Record all resolutions in the Plan Clarifications table. Mark each
|
|
118
|
-
entry's source as either "auto-resolved" (confirmed via codebase) or
|
|
119
|
-
"assumption" (best-effort guess with rationale).
|
|
120
|
-
4. For truly unresolvable questions, record them as unresolved with
|
|
121
|
-
mitigation notes so downstream assistants know the risk.
|
|
122
|
-
5. If no gaps remain (or all have been resolved or documented), proceed to
|
|
123
|
-
Stage 6.
|
|
86
|
+
1. Resolve each gap from the codebase, its configuration files, its
|
|
87
|
+
documentation, and the project's established patterns. Fall back to a
|
|
88
|
+
reasonable assumption only where those do not answer it.
|
|
89
|
+
2. Mark each resolution's source as "auto-resolved" (confirmed in the
|
|
90
|
+
codebase) or "assumption" (best-effort guess, with its rationale).
|
|
91
|
+
3. Record a gap you can resolve neither way as unresolved, with mitigation
|
|
92
|
+
notes so downstream assistants know the risk.
|
|
124
93
|
|
|
125
94
|
### 6. Refinement Implementation
|
|
126
95
|
|
|
127
|
-
|
|
128
|
-
refine the plan directly in-place. The plan file path is the one returned by
|
|
129
|
-
step 2.
|
|
96
|
+
Refine the plan in place, at the path step 2 resolved.
|
|
130
97
|
|
|
131
|
-
1. **Maintain Identity**: Keep the existing `id` and directory.
|
|
132
|
-
a new plan ID
|
|
133
|
-
2. **Structure Compliance**:
|
|
134
|
-
`<root>/config/templates/PLAN_TEMPLATE.md
|
|
135
|
-
necessary.
|
|
98
|
+
1. **Maintain Identity**: Keep the existing `id` and directory. Never allocate
|
|
99
|
+
a new plan ID and never move the plan.
|
|
100
|
+
2. **Structure Compliance**: Keep the plan conformant to
|
|
101
|
+
`<root>/config/templates/PLAN_TEMPLATE.md`, adding any missing section.
|
|
136
102
|
3. **Content Updates**:
|
|
137
|
-
- Refresh the executive summary
|
|
138
|
-
- Update architectural sections, diagrams, and risk mitigations
|
|
139
|
-
|
|
140
|
-
- Trim
|
|
141
|
-
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
states what changed in this refinement session (e.g.,
|
|
148
|
-
`- 2025-03-16: Clarified auth flow tokens and updated architecture diagram`).
|
|
103
|
+
- Refresh the executive summary against the clarifications.
|
|
104
|
+
- Update the architectural sections, diagrams, and risk mitigations the
|
|
105
|
+
gaps named.
|
|
106
|
+
- Trim scope creep that is not explicitly required.
|
|
107
|
+
- Point each affected section back at the Q&A table.
|
|
108
|
+
4. **Net-New Sections**: Add a subsection the plan now needs (Decision Log,
|
|
109
|
+
Data Contracts) under `Notes`, clearly labeled.
|
|
110
|
+
5. **Change Log**: Append to `Notes` a bullet stating what this session
|
|
111
|
+
changed, such as
|
|
112
|
+
`- 2025-03-16: Clarified auth flow tokens and updated architecture diagram`.
|
|
149
113
|
|
|
150
114
|
### 7. Run the post-plan hook
|
|
151
115
|
|
|
152
|
-
Execute `<root>/config/hooks/POST_PLAN.md
|
|
153
|
-
|
|
154
|
-
### 8. Emit the structured summary
|
|
155
|
-
|
|
156
|
-
Conclude with exactly this block as the final output:
|
|
157
|
-
|
|
158
|
-
```
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
Plan Refinement Summary:
|
|
162
|
-
- Plan ID: [numeric-id]
|
|
163
|
-
- Plan File: [absolute-path-to-plan-file]
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
The summary is consumed by downstream automation; keep the format exact.
|
|
116
|
+
Execute `<root>/config/hooks/POST_PLAN.md`.
|
|
167
117
|
|
|
168
118
|
## Failure Modes
|
|
169
119
|
|
|
170
|
-
- **User refuses to answer a clarifying question that blocks refinement.**
|
|
171
|
-
Record the unresolved question in the Plan Clarifications table with
|
|
172
|
-
mitigation notes, proceed with available context, and flag the remaining
|
|
173
|
-
risk in the Refinement Report.
|
|
174
120
|
- **A helper script fails unexpectedly.** Surface stderr to the user and
|
|
175
121
|
stop — do not fall back to manual path discovery.
|
|
176
|
-
- **Plan file is missing after resolution.** This indicates a consistency
|
|
177
|
-
issue in the strikethroo workspace. Stop and report the error without
|
|
178
|
-
attempting to recreate the plan.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as a,C as n}from"./mermaid.core-Bwdbg8D0.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a,a as s,c as e,C as t}from"./chunk-727SXJPM-DXNd005W.js";import{b as i}from"./mermaid.core-Bwdbg8D0.js";import"./chunk-FMBD7UC4-DcTxd98r.js";import"./chunk-ND2GUHAM-CAMtgZHg.js";import"./chunk-55IACEB6-D3ecVMrb.js";import"./chunk-2J33WTMH-BarACI5V.js";import"./index-Nz3QPmKb.js";var n={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a,a as s,c as e,C as t}from"./chunk-727SXJPM-DXNd005W.js";import{b as i}from"./mermaid.core-Bwdbg8D0.js";import"./chunk-FMBD7UC4-DcTxd98r.js";import"./chunk-ND2GUHAM-CAMtgZHg.js";import"./chunk-55IACEB6-D3ecVMrb.js";import"./chunk-2J33WTMH-BarACI5V.js";import"./index-Nz3QPmKb.js";var n={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e,a as r,s as a,S as s}from"./chunk-AQP2D5EJ-C0VOl8ox.js";import{b as i}from"./mermaid.core-Bwdbg8D0.js";import"./chunk-55IACEB6-D3ecVMrb.js";import"./chunk-2J33WTMH-BarACI5V.js";import"./index-Nz3QPmKb.js";var u={parser:a,get db(){return new s(2)},renderer:r,styles:e,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{u as diagram};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Task frontmatter fields
|
|
2
|
-
|
|
3
|
-
Required frontmatter fields:
|
|
4
|
-
|
|
5
|
-
- `id` (integer)
|
|
6
|
-
- `group` (string)
|
|
7
|
-
- `dependencies` (array of task IDs, possibly empty)
|
|
8
|
-
- `status` — `pending` for new tasks
|
|
9
|
-
- `created` (YYYY-MM-DD)
|
|
10
|
-
- `skills` (array of 1–2 kebab-case skills)
|
|
11
|
-
|
|
12
|
-
Required additional frontmatter:
|
|
13
|
-
|
|
14
|
-
- `complexity_score` (integer 1–10, required on every emitted task)
|
|
15
|
-
|
|
16
|
-
Optional frontmatter:
|
|
17
|
-
|
|
18
|
-
- `complexity_notes` (string) — include when the score needs justification,
|
|
19
|
-
such as "Decomposed from a cross-cutting parent task" or "Ambiguous API
|
|
20
|
-
contract".
|
|
21
|
-
- `execution_profile` (string) — optional durable routing profile metadata.
|
|
22
|
-
Omit it during initial task emission; the routing helper writes it only
|
|
23
|
-
after validating the complete task-to-profile mapping.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# When to write tests
|
|
2
|
-
|
|
3
|
-
**When TO write tests:**
|
|
4
|
-
|
|
5
|
-
- Custom business logic and algorithms.
|
|
6
|
-
- Critical user workflows and data transformations.
|
|
7
|
-
- Edge cases and error conditions for core functionality.
|
|
8
|
-
- Integration points between components.
|
|
9
|
-
- Complex validation logic or calculations.
|
|
10
|
-
|
|
11
|
-
**When NOT to write tests:**
|
|
12
|
-
|
|
13
|
-
- Third-party library functionality.
|
|
14
|
-
- Framework features.
|
|
15
|
-
- Simple CRUD operations without custom logic.
|
|
16
|
-
- Trivial getters/setters or static configuration.
|
|
17
|
-
- Obvious functionality that would break immediately if incorrect.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Task frontmatter fields
|
|
2
|
-
|
|
3
|
-
Required frontmatter fields:
|
|
4
|
-
|
|
5
|
-
- `id` (integer)
|
|
6
|
-
- `group` (string)
|
|
7
|
-
- `dependencies` (array of task IDs, possibly empty)
|
|
8
|
-
- `status` — `pending` for new tasks
|
|
9
|
-
- `created` (YYYY-MM-DD)
|
|
10
|
-
- `skills` (array of 1–2 kebab-case skills)
|
|
11
|
-
|
|
12
|
-
Required additional frontmatter:
|
|
13
|
-
|
|
14
|
-
- `complexity_score` (integer 1–10, required on every emitted task)
|
|
15
|
-
|
|
16
|
-
Optional frontmatter:
|
|
17
|
-
|
|
18
|
-
- `complexity_notes` (string) — include when the score needs justification,
|
|
19
|
-
such as "Decomposed from a cross-cutting parent task" or "Ambiguous API
|
|
20
|
-
contract".
|
|
21
|
-
- `execution_profile` (string) — optional durable routing profile metadata.
|
|
22
|
-
Omit it during initial task emission; the routing helper writes it only
|
|
23
|
-
after validating the complete task-to-profile mapping.
|