strikethroo 3.22.0 → 3.22.1
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/__tests__/built-skills.d.ts +15 -0
- package/dist/__tests__/built-skills.d.ts.map +1 -0
- package/dist/__tests__/built-skills.js +53 -0
- package/dist/__tests__/built-skills.js.map +1 -0
- package/dist-web/assets/{arc-CguPlWfb.js → arc-Hwddr2kO.js} +1 -1
- package/dist-web/assets/{architectureDiagram-3BPJPVTR-D65RMVqJ.js → architectureDiagram-3BPJPVTR-i11AtK7_.js} +1 -1
- package/dist-web/assets/{blockDiagram-GPEHLZMM-CNIwP_yH.js → blockDiagram-GPEHLZMM-BBT6cVNX.js} +1 -1
- package/dist-web/assets/{c4Diagram-AAUBKEIU-CuZ4SoKV.js → c4Diagram-AAUBKEIU-C3vqlA6y.js} +1 -1
- package/dist-web/assets/channel-Cur0s-J7.js +1 -0
- package/dist-web/assets/{chunk-2J33WTMH-DM4ZcjVq.js → chunk-2J33WTMH-B2qLeglu.js} +1 -1
- package/dist-web/assets/{chunk-4BX2VUAB-DI3-zGiF.js → chunk-4BX2VUAB-BOoURq0p.js} +1 -1
- package/dist-web/assets/{chunk-55IACEB6-DBdh-eer.js → chunk-55IACEB6-DucbZmPO.js} +1 -1
- package/dist-web/assets/{chunk-727SXJPM-B0HDPh0I.js → chunk-727SXJPM-D1jwNHG5.js} +1 -1
- package/dist-web/assets/{chunk-AQP2D5EJ-C0MnLmRm.js → chunk-AQP2D5EJ-DEqgF-yl.js} +1 -1
- package/dist-web/assets/{chunk-FMBD7UC4-CmggDcp1.js → chunk-FMBD7UC4-DyqowetS.js} +1 -1
- package/dist-web/assets/{chunk-ND2GUHAM-BSIdB1y0.js → chunk-ND2GUHAM-B5m1NGQ0.js} +1 -1
- package/dist-web/assets/{chunk-QZHKN3VN-BTHsXhgb.js → chunk-QZHKN3VN-DuDvOVer.js} +1 -1
- package/dist-web/assets/classDiagram-4FO5ZUOK-CjiILMRI.js +1 -0
- package/dist-web/assets/classDiagram-v2-Q7XG4LA2-CjiILMRI.js +1 -0
- package/dist-web/assets/{cose-bilkent-S5V4N54A-IXUMXU5h.js → cose-bilkent-S5V4N54A-C9HUgr5R.js} +1 -1
- package/dist-web/assets/{dagre-BM42HDAG-CtwBET_X.js → dagre-BM42HDAG-DT3KjQHY.js} +1 -1
- package/dist-web/assets/{diagram-2AECGRRQ-DRe1AFa_.js → diagram-2AECGRRQ-DrCpXRj9.js} +1 -1
- package/dist-web/assets/{diagram-5GNKFQAL-D9IRdgWX.js → diagram-5GNKFQAL-QcCYThB2.js} +1 -1
- package/dist-web/assets/{diagram-KO2AKTUF-CQi7gmRS.js → diagram-KO2AKTUF-BsaZwGbo.js} +1 -1
- package/dist-web/assets/{diagram-LMA3HP47-B0fp5jh8.js → diagram-LMA3HP47-B6ZqNLaZ.js} +1 -1
- package/dist-web/assets/{diagram-OG6HWLK6-B2ujFhv2.js → diagram-OG6HWLK6-ZfJLCrYD.js} +1 -1
- package/dist-web/assets/{erDiagram-TEJ5UH35-DcxHh3A8.js → erDiagram-TEJ5UH35-BlnJ9PIz.js} +1 -1
- package/dist-web/assets/{flowDiagram-I6XJVG4X-Btsglt1O.js → flowDiagram-I6XJVG4X-CIfl3CnE.js} +1 -1
- package/dist-web/assets/{ganttDiagram-6RSMTGT7-BRaGl6R4.js → ganttDiagram-6RSMTGT7-CPrwdiin.js} +1 -1
- package/dist-web/assets/{gitGraphDiagram-PVQCEYII-Cl1DR87j.js → gitGraphDiagram-PVQCEYII-DcY9oRGk.js} +1 -1
- package/dist-web/assets/{index-DXt7jz3h.js → index-COfame-T.js} +4 -4
- package/dist-web/assets/{index-CxXoZ0_J.js → index-DGtMmSy6.js} +1 -1
- package/dist-web/assets/{index-DZ4QtqqW.js → index-j2lPssdc.js} +1 -1
- package/dist-web/assets/{infoDiagram-5YYISTIA-GMZDkbDI.js → infoDiagram-5YYISTIA-DVU5i5FV.js} +1 -1
- package/dist-web/assets/{ishikawaDiagram-YF4QCWOH-DC8HBMwN.js → ishikawaDiagram-YF4QCWOH-B8Ga6Rav.js} +1 -1
- package/dist-web/assets/{journeyDiagram-JHISSGLW-4KT1uAXJ.js → journeyDiagram-JHISSGLW-DOzvgBoA.js} +1 -1
- package/dist-web/assets/{kanban-definition-UN3LZRKU-bBpM_7W0.js → kanban-definition-UN3LZRKU-BGc6pe_I.js} +1 -1
- package/dist-web/assets/{linear-BzW5Mi4V.js → linear-BpZOijWC.js} +1 -1
- package/dist-web/assets/{mermaid.core-BZXehlCp.js → mermaid.core-C_2qQ8rS.js} +4 -4
- package/dist-web/assets/{mindmap-definition-RKZ34NQL-B8RhYsaN.js → mindmap-definition-RKZ34NQL-DkMM_7Yr.js} +1 -1
- package/dist-web/assets/{pieDiagram-4H26LBE5-DV749i9Y.js → pieDiagram-4H26LBE5-1TkSQl-I.js} +1 -1
- package/dist-web/assets/{quadrantDiagram-W4KKPZXB-Cduffe8j.js → quadrantDiagram-W4KKPZXB-cmPoFli_.js} +1 -1
- package/dist-web/assets/{requirementDiagram-4Y6WPE33-C7KngwZn.js → requirementDiagram-4Y6WPE33-BRm2ySws.js} +1 -1
- package/dist-web/assets/{sankeyDiagram-5OEKKPKP-CJjwUGG3.js → sankeyDiagram-5OEKKPKP-Bm7c5KA3.js} +1 -1
- package/dist-web/assets/{sequenceDiagram-3UESZ5HK-BARiZOtJ.js → sequenceDiagram-3UESZ5HK-TsJi1UnU.js} +1 -1
- package/dist-web/assets/{stateDiagram-AJRCARHV-DA1dHBGx.js → stateDiagram-AJRCARHV-C96-LO_W.js} +1 -1
- package/dist-web/assets/stateDiagram-v2-BHNVJYJU-DyP066tY.js +1 -0
- package/dist-web/assets/{timeline-definition-PNZ67QCA-ClE6cvJF.js → timeline-definition-PNZ67QCA-CXS_QOle.js} +1 -1
- package/dist-web/assets/{vennDiagram-CIIHVFJN-BLR57Itf.js → vennDiagram-CIIHVFJN-C2GyjnKb.js} +1 -1
- package/dist-web/assets/{wardley-L42UT6IY-EA8x1UUF.js → wardley-L42UT6IY-B4Z1vQiy.js} +1 -1
- package/dist-web/assets/{wardleyDiagram-YWT4CUSO-DHktlei-.js → wardleyDiagram-YWT4CUSO-C4rdUwqJ.js} +1 -1
- package/dist-web/assets/{xychartDiagram-2RQKCTM6-DOxQD_Ha.js → xychartDiagram-2RQKCTM6-ldEuZMCT.js} +1 -1
- package/dist-web/index.html +1 -1
- package/package.json +2 -1
- package/dist-web/assets/channel-BL14r_5w.js +0 -1
- package/dist-web/assets/classDiagram-4FO5ZUOK-DBkbEi_3.js +0 -1
- package/dist-web/assets/classDiagram-v2-Q7XG4LA2-DBkbEi_3.js +0 -1
- package/dist-web/assets/stateDiagram-v2-BHNVJYJU-D4ioaqC3.js +0 -1
- package/templates/harness/skills/st-code-review/SKILL.md +0 -52
- package/templates/harness/skills/st-code-review/references/review-example.xml.md +0 -18
- package/templates/harness/skills/st-code-review/scripts/code-review.cjs +0 -3887
- package/templates/harness/skills/st-code-review/scripts/find-strikethroo-root.cjs +0 -116
- package/templates/harness/skills/st-code-review/scripts/validate-plan-blueprint.cjs +0 -429
- package/templates/harness/skills/st-create-plan/SKILL.md +0 -111
- package/templates/harness/skills/st-create-plan/scripts/check-for-updates.cjs +0 -2502
- package/templates/harness/skills/st-create-plan/scripts/find-strikethroo-root.cjs +0 -116
- package/templates/harness/skills/st-create-plan/scripts/get-next-plan-id.cjs +0 -197
- package/templates/harness/skills/st-execute-blueprint/SKILL.md +0 -195
- package/templates/harness/skills/st-execute-blueprint/scripts/capture-base-commit.cjs +0 -330
- package/templates/harness/skills/st-execute-blueprint/scripts/check-for-updates.cjs +0 -2502
- package/templates/harness/skills/st-execute-blueprint/scripts/check-phase-readiness.cjs +0 -471
- package/templates/harness/skills/st-execute-blueprint/scripts/create-feature-branch.cjs +0 -374
- package/templates/harness/skills/st-execute-blueprint/scripts/dispatch-task-execution.cjs +0 -6816
- package/templates/harness/skills/st-execute-blueprint/scripts/find-strikethroo-root.cjs +0 -116
- package/templates/harness/skills/st-execute-blueprint/scripts/validate-plan-blueprint.cjs +0 -429
- package/templates/harness/skills/st-execute-task/SKILL.md +0 -154
- package/templates/harness/skills/st-execute-task/scripts/check-for-updates.cjs +0 -2502
- package/templates/harness/skills/st-execute-task/scripts/check-task-dependencies.cjs +0 -462
- package/templates/harness/skills/st-execute-task/scripts/dispatch-task-execution.cjs +0 -6816
- package/templates/harness/skills/st-execute-task/scripts/find-strikethroo-root.cjs +0 -116
- package/templates/harness/skills/st-execute-task/scripts/validate-plan-blueprint.cjs +0 -429
- package/templates/harness/skills/st-full-workflow/SKILL.md +0 -470
- package/templates/harness/skills/st-full-workflow/references/complexity-rubric.md +0 -8
- package/templates/harness/skills/st-full-workflow/scripts/capture-base-commit.cjs +0 -330
- package/templates/harness/skills/st-full-workflow/scripts/check-for-updates.cjs +0 -2502
- package/templates/harness/skills/st-full-workflow/scripts/check-phase-readiness.cjs +0 -471
- package/templates/harness/skills/st-full-workflow/scripts/create-feature-branch.cjs +0 -374
- package/templates/harness/skills/st-full-workflow/scripts/dispatch-task-execution.cjs +0 -6816
- package/templates/harness/skills/st-full-workflow/scripts/find-strikethroo-root.cjs +0 -116
- package/templates/harness/skills/st-full-workflow/scripts/get-next-plan-id.cjs +0 -197
- package/templates/harness/skills/st-full-workflow/scripts/get-next-task-id.cjs +0 -295
- package/templates/harness/skills/st-full-workflow/scripts/route-task-execution.cjs +0 -2874
- package/templates/harness/skills/st-full-workflow/scripts/validate-plan-blueprint.cjs +0 -429
- package/templates/harness/skills/st-generate-tasks/SKILL.md +0 -218
- package/templates/harness/skills/st-generate-tasks/references/complexity-rubric.md +0 -8
- package/templates/harness/skills/st-generate-tasks/scripts/check-for-updates.cjs +0 -2502
- package/templates/harness/skills/st-generate-tasks/scripts/find-strikethroo-root.cjs +0 -116
- package/templates/harness/skills/st-generate-tasks/scripts/get-next-task-id.cjs +0 -295
- package/templates/harness/skills/st-generate-tasks/scripts/route-task-execution.cjs +0 -2874
- package/templates/harness/skills/st-generate-tasks/scripts/validate-plan-blueprint.cjs +0 -429
- package/templates/harness/skills/st-refine-plan/SKILL.md +0 -132
- package/templates/harness/skills/st-refine-plan/scripts/check-for-updates.cjs +0 -2502
- package/templates/harness/skills/st-refine-plan/scripts/find-strikethroo-root.cjs +0 -116
- package/templates/harness/skills/st-refine-plan/scripts/validate-plan-blueprint.cjs +0 -429
|
@@ -1,470 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: st-full-workflow
|
|
3
|
-
description: Use when the user asks to run the complete end-to-end Strikethroo workflow for a work order in one shot in this repository — triggers include full workflow, end-to-end, plan and execute, do everything, run the whole strikethroo workflow. Do not use when the user wants only one stage (create a plan, generate tasks, or execute a blueprint); use the dedicated skill for that stage instead.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# st-full-workflow
|
|
7
|
-
|
|
8
|
-
## Critical Rule
|
|
9
|
-
|
|
10
|
-
Execute all three steps sequentially without waiting for user input between them.
|
|
11
|
-
|
|
12
|
-
## Inputs
|
|
13
|
-
|
|
14
|
-
The user supplies the work order conversationally.
|
|
15
|
-
|
|
16
|
-
## Operating Procedure
|
|
17
|
-
|
|
18
|
-
### Step 1: Plan Creation
|
|
19
|
-
|
|
20
|
-
#### 1. Locate the strikethroo root
|
|
21
|
-
|
|
22
|
-
Run `scripts/find-strikethroo-root.cjs` from the user's working directory. If
|
|
23
|
-
it exits non-zero, stop and ask the user to run `npx strikethroo init`.
|
|
24
|
-
|
|
25
|
-
Treat the path it prints as `<root>` for every subsequent step.
|
|
26
|
-
|
|
27
|
-
Delegated execution workers skip this step and do not emit update notices.
|
|
28
|
-
|
|
29
|
-
Run `scripts/check-for-updates.cjs "<root>"` as a separate command using this
|
|
30
|
-
skill's script path. Keep the user's working directory. Read the one JSON line
|
|
31
|
-
on stdout. When `notice` is present, retain its exact text for the final
|
|
32
|
-
user-facing response. Never pause for permission and never run an update.
|
|
33
|
-
|
|
34
|
-
#### 2. Load project context
|
|
35
|
-
|
|
36
|
-
Read `<root>/config/STRIKETHROO.md` for this project's directory conventions.
|
|
37
|
-
Read `<root>/config/hooks/PRE_PLAN.md` and execute its instructions before
|
|
38
|
-
proceeding. Read `<root>/config/templates/PLAN_TEMPLATE.md`; the plan must
|
|
39
|
-
conform to it.
|
|
40
|
-
|
|
41
|
-
Also read `<root>/config/shared/anti-rationalization.md`.
|
|
42
|
-
|
|
43
|
-
#### 3. Analyze the work order
|
|
44
|
-
|
|
45
|
-
Identify:
|
|
46
|
-
|
|
47
|
-
- Objective.
|
|
48
|
-
- Scope and explicit boundaries.
|
|
49
|
-
- Success criteria.
|
|
50
|
-
- Dependencies, prerequisites, blockers.
|
|
51
|
-
- Technical requirements and constraints.
|
|
52
|
-
|
|
53
|
-
#### 4. Clarification loop
|
|
54
|
-
|
|
55
|
-
If any critical context is missing, ask the user targeted questions. Keep
|
|
56
|
-
looping until you have no further questions. Explicitly confirm whether
|
|
57
|
-
backwards compatibility is required. Never invent answers; never paper over
|
|
58
|
-
a missing answer.
|
|
59
|
-
|
|
60
|
-
If the user declines to clarify a blocking question, stop and report the
|
|
61
|
-
plan as needing clarification. Do not produce a partial plan.
|
|
62
|
-
|
|
63
|
-
Apply `<root>/config/shared/anti-rationalization.md` to this rationalization table:
|
|
64
|
-
|
|
65
|
-
| You catch yourself thinking… | The binding rule |
|
|
66
|
-
| --- | --- |
|
|
67
|
-
| "I can reasonably assume the answer." | An assumption is not an answer. Ask the question; never invent answers. |
|
|
68
|
-
| "Asking again is annoying." | A question the user can decline is recoverable; a silent wrong assumption is not. Ask. |
|
|
69
|
-
| "The user implied it, so it's settled." | An implication is not a confirmation. Surface it as a question and get an explicit answer. |
|
|
70
|
-
|
|
71
|
-
#### 5. Allocate the next plan ID
|
|
72
|
-
|
|
73
|
-
Run `scripts/get-next-plan-id.cjs` for the next available plan ID. Compute its
|
|
74
|
-
zero-padded form for the directory name (`{padded-id}--{slug}`) and use the
|
|
75
|
-
unpadded integer in the plan frontmatter.
|
|
76
|
-
|
|
77
|
-
#### 6. Emit the plan
|
|
78
|
-
|
|
79
|
-
Write the plan to
|
|
80
|
-
`<root>/plans/{padded-id}--{slug}/plan-{padded-id}--{slug}.md`, conforming to
|
|
81
|
-
`<root>/config/templates/PLAN_TEMPLATE.md` in both frontmatter and sections.
|
|
82
|
-
Include no time estimates, task lists, or code samples; those belong to the
|
|
83
|
-
task-generation step.
|
|
84
|
-
|
|
85
|
-
Derive `<slug>` from the plan summary: lowercase, alphanumeric and hyphens
|
|
86
|
-
only, collapsed, trimmed.
|
|
87
|
-
|
|
88
|
-
#### 7. Run post-plan hook
|
|
89
|
-
|
|
90
|
-
Execute `<root>/config/hooks/POST_PLAN.md`.
|
|
91
|
-
|
|
92
|
-
#### 8. Emit the Step 1 structured summary
|
|
93
|
-
|
|
94
|
-
Conclude Step 1 with exactly this block (a retained update notice, when present, follows after the workflow's final summary):
|
|
95
|
-
|
|
96
|
-
```
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
Plan Summary:
|
|
100
|
-
- Plan ID: [numeric-id]
|
|
101
|
-
- Plan File: [absolute-path-to-plan-file]
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
Parse the `Plan ID` value from this output and pass it to Step 2.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
### Step 2: Task Generation
|
|
109
|
-
|
|
110
|
-
Using the plan ID from Step 1:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
#### 1. Resolve the plan
|
|
115
|
-
|
|
116
|
-
Run `scripts/validate-plan-blueprint.cjs <plan-id> planFile` for the plan
|
|
117
|
-
file's absolute path. Another field name prints that field instead.
|
|
118
|
-
|
|
119
|
-
If the script exits non-zero, surface its stderr to the user and stop the
|
|
120
|
-
workflow.
|
|
121
|
-
Do not guess a different ID.
|
|
122
|
-
|
|
123
|
-
#### 2. Load project context
|
|
124
|
-
|
|
125
|
-
Read these files, in order:
|
|
126
|
-
|
|
127
|
-
- `<root>/config/STRIKETHROO.md` — project and directory conventions.
|
|
128
|
-
- The plan body at the path returned by step 1 — the contract for
|
|
129
|
-
what tasks must exist.
|
|
130
|
-
- `<root>/config/templates/TASK_TEMPLATE.md` — the schema every task file
|
|
131
|
-
must match.
|
|
132
|
-
- `<root>/config/shared/anti-rationalization.md` — apply in step 3.
|
|
133
|
-
|
|
134
|
-
#### 3. Analyze and decompose the plan
|
|
135
|
-
|
|
136
|
-
Read the entire plan. Identify all concrete deliverables **explicitly stated**.
|
|
137
|
-
Decompose each deliverable into atomic tasks only when genuinely needed.
|
|
138
|
-
|
|
139
|
-
**Task minimization (mandatory):**
|
|
140
|
-
|
|
141
|
-
- Create only the minimum number of tasks necessary. Target a 20–30%
|
|
142
|
-
reduction from comprehensive lists by questioning the necessity of each
|
|
143
|
-
candidate.
|
|
144
|
-
- Every task corresponds to an explicit requirement, never a nice-to-have, a
|
|
145
|
-
"best practice", or future extensibility the plan does not mention.
|
|
146
|
-
- Each task has a unique, non-overlapping purpose.
|
|
147
|
-
- Keep error handling inside the task that owns the behavior it guards.
|
|
148
|
-
|
|
149
|
-
Apply `<root>/config/shared/anti-rationalization.md` to this rationalization table:
|
|
150
|
-
|
|
151
|
-
| You catch yourself thinking… | The binding rule |
|
|
152
|
-
| --- | --- |
|
|
153
|
-
| "One extra task won't hurt." | It violates the 20–30% minimization target. Every task traces to an **explicitly stated** deliverable or it does not exist. |
|
|
154
|
-
| "This edge case deserves its own task." | Fold it into the task that owns the behavior. Do not split trivially small operations into separate units. |
|
|
155
|
-
| "I'll add a test suite to be safe." | Comprehensive tests for trivial functionality are gold-plating. Follow the test philosophy — meaningful tests only. |
|
|
156
|
-
| "Future extensibility justifies this task." | YAGNI. The plan does not mention it, so it is not a task. |
|
|
157
|
-
|
|
158
|
-
#### 4. Apply granularity and skill rules
|
|
159
|
-
|
|
160
|
-
Each task must be:
|
|
161
|
-
|
|
162
|
-
- **Single-purpose** — one clear deliverable.
|
|
163
|
-
- **Atomic** — cannot be meaningfully split further.
|
|
164
|
-
- **Skill-specific** — executable by an agent with 1–2 technical skills.
|
|
165
|
-
- **Verifiable** — has explicit acceptance criteria that include at least one
|
|
166
|
-
concrete, runnable verification step (a command plus its expected output, or
|
|
167
|
-
another observable signal). Never settle for a vague "works correctly".
|
|
168
|
-
|
|
169
|
-
Infer skills in kebab-case from the task's technical requirements. Use one
|
|
170
|
-
skill for a single-domain task and two for complementary domains, such as
|
|
171
|
-
`["api-endpoints", "database"]`. Three or more means the task must be broken
|
|
172
|
-
down further.
|
|
173
|
-
|
|
174
|
-
#### 5. Test philosophy: "write a few tests, mostly integration"
|
|
175
|
-
|
|
176
|
-
**Write tests for:**
|
|
177
|
-
|
|
178
|
-
- Custom business logic and algorithms.
|
|
179
|
-
- Critical user workflows and data transformations.
|
|
180
|
-
- Edge cases and error conditions in core functionality.
|
|
181
|
-
- Integration points between components.
|
|
182
|
-
- Complex validation or calculation logic.
|
|
183
|
-
|
|
184
|
-
**Do not write tests for:**
|
|
185
|
-
|
|
186
|
-
- Third-party library and framework functionality.
|
|
187
|
-
- Simple CRUD without custom logic.
|
|
188
|
-
- Trivial getters/setters and static configuration.
|
|
189
|
-
- Obvious functionality that would break immediately if incorrect.
|
|
190
|
-
|
|
191
|
-
Combine related test scenarios into one task ("Test user authentication flow",
|
|
192
|
-
not separate tasks for login, logout, and validation). Favor integration and
|
|
193
|
-
critical-path coverage over per-method unit tests. Never create one test task
|
|
194
|
-
per CRUD operation.
|
|
195
|
-
|
|
196
|
-
Copy these rules into the "Implementation Notes" of every test task you
|
|
197
|
-
generate.
|
|
198
|
-
|
|
199
|
-
#### 6. Dependency analysis
|
|
200
|
-
|
|
201
|
-
Task B depends on task A when B requires A's output or artifacts, modifies
|
|
202
|
-
code created by A, or tests functionality implemented by A. Record it as a
|
|
203
|
-
**hard dependency** when B cannot start before A completes and as a **soft
|
|
204
|
-
dependency** when B merely runs better after A. Validate that the final
|
|
205
|
-
dependency graph is acyclic.
|
|
206
|
-
|
|
207
|
-
#### 7. Complexity analysis
|
|
208
|
-
|
|
209
|
-
For every candidate task, assign a `complexity_score` (integer 1–10) before
|
|
210
|
-
writing any file. Read `references/complexity-rubric.md` before scoring; it
|
|
211
|
-
defines the four dimensions each band is judged on. Then apply these rules:
|
|
212
|
-
|
|
213
|
-
- Score ≥ 8 → decompose further; do not emit as-is.
|
|
214
|
-
- Score 6–7 → sharpen or split; do not emit without an explicit reason.
|
|
215
|
-
- Vague acceptance criteria → sharpen them into a concrete, runnable
|
|
216
|
-
verification step.
|
|
217
|
-
- Trivially small adjacent tasks → merge them.
|
|
218
|
-
|
|
219
|
-
**Loop-back rule:** after applying split, sharpen, or merge, re-run dependency
|
|
220
|
-
analysis and re-score the adjusted tasks. Repeat no more than three times. If
|
|
221
|
-
complexity is still unresolved after three passes, stop and surface the
|
|
222
|
-
blocker to the user.
|
|
223
|
-
|
|
224
|
-
#### 8. Allocate task IDs
|
|
225
|
-
|
|
226
|
-
Run `scripts/get-next-task-id.cjs <plan-id>` once for the first available task
|
|
227
|
-
ID, then allocate the rest by incrementing in-process. Use the unpadded
|
|
228
|
-
integer in the task frontmatter `id` field and the zero-padded form in the
|
|
229
|
-
filename. The slug derives from a short task title: lowercase, alphanumeric
|
|
230
|
-
and hyphens only, collapsed, trimmed.
|
|
231
|
-
|
|
232
|
-
#### 9. Emit the task files
|
|
233
|
-
|
|
234
|
-
Write each task to:
|
|
235
|
-
|
|
236
|
-
```
|
|
237
|
-
<root>/plans/<plan-dir-name>/tasks/{padded-id}--{slug}.md
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
Each file must conform to `<root>/config/templates/TASK_TEMPLATE.md`. Add
|
|
241
|
-
`complexity_notes` only when the score needs justification. Never write
|
|
242
|
-
`execution_profile`; the routing helper writes it.
|
|
243
|
-
|
|
244
|
-
Fill every body section with task-specific content. Place detailed
|
|
245
|
-
implementation guidance inside a `<details>` block under "Implementation
|
|
246
|
-
Notes", written so a non-thinking LLM could execute the task from that
|
|
247
|
-
section alone.
|
|
248
|
-
|
|
249
|
-
#### 10. Validation checklist
|
|
250
|
-
|
|
251
|
-
Before declaring task generation complete, verify:
|
|
252
|
-
|
|
253
|
-
- Every **explicitly stated** deliverable in the plan is covered by a task.
|
|
254
|
-
- No two tasks overlap in purpose.
|
|
255
|
-
- Dependencies form an acyclic graph, with no orphan or circular references.
|
|
256
|
-
- Groups are consistent across the plan.
|
|
257
|
-
- After writing the task files, run
|
|
258
|
-
`scripts/validate-plan-blueprint.cjs <plan-id> complexityScoresValid`. Stop
|
|
259
|
-
unless it prints `yes`; if it prints `no`, run
|
|
260
|
-
`scripts/validate-plan-blueprint.cjs <plan-id> invalidComplexityTasks` to see
|
|
261
|
-
which files are missing, non-integer, or out-of-range, fix them, and re-run.
|
|
262
|
-
|
|
263
|
-
#### 11. Route task execution
|
|
264
|
-
|
|
265
|
-
Read `<root>/config/hooks/TASK_EXECUTION_ROUTING.md` and follow its
|
|
266
|
-
instructions together with this procedure:
|
|
267
|
-
|
|
268
|
-
1. Run `scripts/route-task-execution.cjs profiles <plan-id>`. On `no-config`
|
|
269
|
-
or `disabled`, routing is off; skip the remaining routing steps and
|
|
270
|
-
continue. On `invalid-config`, stop and surface the errors to the user; do
|
|
271
|
-
not generate the blueprint.
|
|
272
|
-
2. Assign every task in the plan's `tasks/` directory exactly one configured
|
|
273
|
-
profile name. Classify the tasks generated in this run from the content
|
|
274
|
-
already in your context. If the plan carried task files from an earlier
|
|
275
|
-
generation run, read those files to classify them.
|
|
276
|
-
3. Write the complete task-ID-to-profile mapping as a JSON object to a
|
|
277
|
-
temporary file, for example `{"1": "routine", "2": "demanding"}`.
|
|
278
|
-
4. Run `scripts/route-task-execution.cjs apply <plan-id> <mapping-file>`.
|
|
279
|
-
Target selection happens later at task dispatch, never during generation.
|
|
280
|
-
5. On `routed`, delete the temporary mapping file and continue. On any failure
|
|
281
|
-
result (`invalid-assignments`, `invalid-tasks`, `routing-failure`,
|
|
282
|
-
`infrastructure-failure`), stop and surface the JSON errors to the user.
|
|
283
|
-
Never continue to blueprint generation with partially routed tasks.
|
|
284
|
-
|
|
285
|
-
Never hand-write a concrete execution target into task frontmatter or task
|
|
286
|
-
bodies.
|
|
287
|
-
|
|
288
|
-
#### 12. Run the POST_TASK_GENERATION_ALL hook
|
|
289
|
-
|
|
290
|
-
Read `<root>/config/hooks/POST_TASK_GENERATION_ALL.md` and follow its
|
|
291
|
-
instructions, using `<root>/config/templates/BLUEPRINT_TEMPLATE.md` for the
|
|
292
|
-
Execution Blueprint structure. Run the hook only after routing succeeded or
|
|
293
|
-
reported routing off.
|
|
294
|
-
|
|
295
|
-
### Step 3: Blueprint Execution
|
|
296
|
-
|
|
297
|
-
Using the plan ID from Step 1:
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
#### 1. Resolve the plan
|
|
302
|
-
|
|
303
|
-
Run `scripts/validate-plan-blueprint.cjs <plan-id> planFile` for the plan
|
|
304
|
-
file's absolute path. Another field name prints that field instead.
|
|
305
|
-
|
|
306
|
-
If the script exits non-zero, surface its stderr to the user and stop the
|
|
307
|
-
workflow.
|
|
308
|
-
Do not guess a different ID.
|
|
309
|
-
|
|
310
|
-
Run `scripts/validate-plan-blueprint.cjs <plan-id> planDir` and treat the
|
|
311
|
-
printed path as `<plan-dir>`.
|
|
312
|
-
|
|
313
|
-
#### 2. Validate tasks and blueprint existence
|
|
314
|
-
|
|
315
|
-
Run `scripts/validate-plan-blueprint.cjs <plan-id> taskCount` and
|
|
316
|
-
`scripts/validate-plan-blueprint.cjs <plan-id> blueprintExists`.
|
|
317
|
-
|
|
318
|
-
#### 3. Auto-generate tasks and blueprint if missing
|
|
319
|
-
|
|
320
|
-
If `taskCount` is 0 or `blueprintExists` is `no`:
|
|
321
|
-
|
|
322
|
-
Notify the user: "Tasks or execution blueprint not found. Generating tasks automatically..."
|
|
323
|
-
|
|
324
|
-
- Execute the full task generation procedure from Step 2 for this plan ID.
|
|
325
|
-
- Re-run the `planFile`, `planDir`, `taskCount`, and `blueprintExists` queries to refresh the resolved paths and counts.
|
|
326
|
-
|
|
327
|
-
If the plan still has no tasks or no blueprint, stop and report failure.
|
|
328
|
-
|
|
329
|
-
#### 4. Optionally create a feature branch
|
|
330
|
-
|
|
331
|
-
Run `scripts/create-feature-branch.cjs <plan-id>` once before phase execution. A skip is not a failure. Continue on the current branch, and never create the branch by hand. Uncommitted or untracked changes are permitted only inside the repository-root `.ai/strikethroo` subtree. An error result halts execution; report it.
|
|
332
|
-
|
|
333
|
-
Then run `scripts/capture-base-commit.cjs <plan-id>` once to record the commit the review gate diffs against. A `skipped` result continues execution and means the review gate will skip. Only an `error` result halts.
|
|
334
|
-
|
|
335
|
-
#### 5. Load project context and execution blueprint
|
|
336
|
-
|
|
337
|
-
Read these files, in order:
|
|
338
|
-
|
|
339
|
-
- `<root>/config/STRIKETHROO.md`
|
|
340
|
-
- The plan document at the path from step 1, including its Execution Blueprint section, which defines the phase groupings and task dispatch order.
|
|
341
|
-
- `<root>/config/shared/verification-gate.md` and `<root>/config/shared/anti-rationalization.md`, both applied in the phase loop below.
|
|
342
|
-
|
|
343
|
-
#### 6. Execute phases in order
|
|
344
|
-
|
|
345
|
-
Use an internal task or todo tracker to monitor progress. For each phase defined in the Execution Blueprint:
|
|
346
|
-
|
|
347
|
-
##### 6a. Phase pre-execution
|
|
348
|
-
Run `scripts/check-phase-readiness.cjs <plan-id> <phase-number>`. If the script exits non-zero, halt the phase and report the blocking issues before continuing.
|
|
349
|
-
|
|
350
|
-
Read `<root>/config/hooks/PRE_PHASE.md` and execute its instructions before starting the phase.
|
|
351
|
-
|
|
352
|
-
##### 6b. Task dispatch
|
|
353
|
-
Identify all tasks scheduled for this phase whose dependencies are fully satisfied. Read `<root>/config/hooks/PRE_TASK_ASSIGNMENT.md` and follow its instructions for agent selection before dispatching tasks.
|
|
354
|
-
|
|
355
|
-
Resolve every selected task's execution route first. Invoke one resolver per selected
|
|
356
|
-
task simultaneously in a single parallel tool operation:
|
|
357
|
-
|
|
358
|
-
```text
|
|
359
|
-
scripts/dispatch-task-execution.cjs resolve <task-file> <current-harness> <workspace> <plan-id> <task-id>
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
Resolvers never launch external processes. After interpreting all route results, issue
|
|
363
|
-
every external execution and every sub-agent **together in one parallel
|
|
364
|
-
tool operation**. External execution uses:
|
|
365
|
-
|
|
366
|
-
```text
|
|
367
|
-
scripts/dispatch-task-execution.cjs execute <handoff> <task-file> <current-harness> <workspace> <plan-id> <task-id>
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
`<current-harness>` is the exact supported harness identifier running this
|
|
371
|
-
skill; `<workspace>` is the project working directory.
|
|
372
|
-
|
|
373
|
-
Interpret the one-line JSON result and act on its `kind` exactly once:
|
|
374
|
-
|
|
375
|
-
| `kind` | Required action |
|
|
376
|
-
| --- | --- |
|
|
377
|
-
| `native-default` | Dispatch natively with no execution-setting prose. |
|
|
378
|
-
| `native-override` | Dispatch natively, explicitly requiring the exact returned `model`. Require the returned `reasoningEffort` only when that property is present. |
|
|
379
|
-
| `external-override` | Run the `execute` command with the returned `handoff`, then read its result against this same table. |
|
|
380
|
-
| `fallback` | Nothing launched. Record the returned `reason` and `detail` visibly, then dispatch natively with no execution-setting prose. |
|
|
381
|
-
| `launched-success` | The external process exited zero. Do not dispatch natively; review status and evidence as you would for a native agent. |
|
|
382
|
-
| `launched-failure` | A failed task. Set its status to `failed` and run `<root>/config/hooks/POST_ERROR_DETECTION.md`. Never retry it natively. |
|
|
383
|
-
| `infrastructure-failure` | Handle exactly as the preceding row. |
|
|
384
|
-
|
|
385
|
-
Handoff rules:
|
|
386
|
-
|
|
387
|
-
- Pass the exact opaque `handoff` string the resolver returned for that task. Never reconstruct one.
|
|
388
|
-
- Never reuse a handoff for another task, and never rerun resolution after launches begin.
|
|
389
|
-
|
|
390
|
-
Deploy all remaining native sub-agents simultaneously. Each sub-agent must read and execute `<root>/config/hooks/PRE_TASK_EXECUTION.md` before any implementation work, then execute the task and update its status. Do not run `scripts/check-for-updates.cjs`; delegated workers do not consume update notices.
|
|
391
|
-
|
|
392
|
-
##### 6c. Phase completion verification
|
|
393
|
-
Ensure every task in the phase has status `completed` and collect its outputs. Do not accept a subagent's report of success as proof. Apply the evidence gate in `<root>/config/shared/verification-gate.md` before marking the phase complete.
|
|
394
|
-
|
|
395
|
-
##### 6d. Phase post-execution
|
|
396
|
-
Read `<root>/config/hooks/POST_PHASE.md` and execute its instructions. Do not proceed to the next phase until this hook succeeds.
|
|
397
|
-
|
|
398
|
-
Update the phase status to `completed` in the plan's Execution Blueprint section.
|
|
399
|
-
|
|
400
|
-
Repeat for the next phase until all phases are complete.
|
|
401
|
-
|
|
402
|
-
Apply `<root>/config/shared/anti-rationalization.md` to this rationalization table:
|
|
403
|
-
|
|
404
|
-
| You catch yourself thinking… | The binding rule |
|
|
405
|
-
| --- | --- |
|
|
406
|
-
| "The subagent reported success, so the task is done." | A report is a claim, not evidence. Apply the verification gate before marking the phase complete. |
|
|
407
|
-
| "The tests probably pass." | "Probably" is a red flag. Run the proving command, read its output and exit code, then state the result. |
|
|
408
|
-
| "I'll verify later, after the next phase." | A phase is not complete until `POST_PHASE.md` succeeds against verified evidence. Verify now; do not advance on an unverified phase. |
|
|
409
|
-
|
|
410
|
-
#### 7. Post-execution validation
|
|
411
|
-
|
|
412
|
-
Read `<root>/config/hooks/POST_EXECUTION.md` and execute its instructions. If validation fails, halt execution. The plan remains in `plans/` for debugging.
|
|
413
|
-
|
|
414
|
-
Before declaring execution complete, apply the evidence gate in `<root>/config/shared/verification-gate.md` to the plan's Success Criteria and Self Validation steps.
|
|
415
|
-
|
|
416
|
-
##### Run the code review gate
|
|
417
|
-
|
|
418
|
-
After `POST_EXECUTION.md` reports green, follow the `st-code-review` skill and run its bundled mechanism:
|
|
419
|
-
|
|
420
|
-
```text
|
|
421
|
-
code-review.cjs <plan-id> <current-harness>
|
|
422
|
-
```
|
|
423
|
-
|
|
424
|
-
Resolve `code-review.cjs` from the `st-code-review` skill's sibling `scripts` directory and pass the exact supported harness identifier running this skill. If the `st-code-review` skill is not installed, record that outcome in the execution summary and continue to summary and archival.
|
|
425
|
-
|
|
426
|
-
Handle the one JSON line it prints on stdout, in this order:
|
|
427
|
-
|
|
428
|
-
1. Copy it verbatim into the execution summary's review outcome. Do not reformat it or omit fields.
|
|
429
|
-
2. Follow its top-level `action`. If it is `halt`, stop and report the top-level `detail`. If it is `continue`, proceed to the execution summary and archival.
|
|
430
|
-
3. Only when `verdict.kind` is `review-recorded`, read `<plan-dir>/review/review.xml` and `<plan-dir>/review/findings.json`, then decide which findings to act on. `severity` and `confidence` are advisory labels, not instructions.
|
|
431
|
-
|
|
432
|
-
Never report an uncertified review as clean.
|
|
433
|
-
|
|
434
|
-
Hard rules:
|
|
435
|
-
|
|
436
|
-
- The review runs once. Do not re-run the gate to check a fix.
|
|
437
|
-
- Detection uses the reviewer route. Dispatch each fix on the implementer route; the reviewer does not fix its findings.
|
|
438
|
-
- After any fix, re-run `POST_EXECUTION.md` in full before declaring execution complete. The earlier green result no longer applies.
|
|
439
|
-
|
|
440
|
-
#### 8. Append execution summary
|
|
441
|
-
|
|
442
|
-
Append an execution summary section to the plan document, filling every field of `<root>/config/templates/EXECUTION_SUMMARY_TEMPLATE.md`. Under Noteworthy Events, always record the review gate's JSON line verbatim, then which findings you acted on versus ignored and why.
|
|
443
|
-
|
|
444
|
-
#### 9. Archive the plan
|
|
445
|
-
|
|
446
|
-
Move the completed plan directory from `<root>/plans/<plan-folder>` to `<root>/archive/<plan-folder>`, preserving the entire folder structure. If the move fails, log the error but do not fail the overall execution.
|
|
447
|
-
|
|
448
|
-
## Failure Modes
|
|
449
|
-
|
|
450
|
-
- **Plan directory already exists for the allocated ID in Step 1.** Re-run the next-plan-id script and retry once. If the conflict persists, stop and report.
|
|
451
|
-
- **Execution errors.** If a task fails, read `<root>/config/hooks/POST_ERROR_DETECTION.md`, document the error in Noteworthy Events, halt the phase, and request user direction before continuing.
|
|
452
|
-
|
|
453
|
-
## Execution Summary
|
|
454
|
-
|
|
455
|
-
Conclude with exactly this block (a retained update notice, when present, follows separately):
|
|
456
|
-
|
|
457
|
-
```
|
|
458
|
-
---
|
|
459
|
-
Execution Summary:
|
|
460
|
-
- Plan ID: [numeric-id]
|
|
461
|
-
- Status: Archived
|
|
462
|
-
- Location: [absolute path to archive directory]
|
|
463
|
-
---
|
|
464
|
-
```
|
|
465
|
-
|
|
466
|
-
The summary is consumed by downstream automation; keep the format exact.
|
|
467
|
-
|
|
468
|
-
When the retained update `notice` is present, append that exact sentence after
|
|
469
|
-
the structured summary block, or after your final response when this skill emits
|
|
470
|
-
no summary block. Nothing may follow the notice.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Complexity rubric
|
|
2
|
-
|
|
3
|
-
| Score | Skill breadth | Acceptance-criteria clarity | Integration surface | Decomposition depth |
|
|
4
|
-
| --- | --- | --- | --- | --- |
|
|
5
|
-
| 1–3 | One well-known skill | Criteria are concrete and observable | None or a single file/module | No further split possible |
|
|
6
|
-
| 4–5 | One primary skill plus a familiar adjacent skill | Criteria are clear with few edge cases | One component or API boundary | Already atomic |
|
|
7
|
-
| 6–7 | Two distinct skills, or one skill with ambiguous requirements | Criteria need clarification or have multiple edge cases | Multiple components or contracts | Could still be split |
|
|
8
|
-
| 8–10 | Three or more skills, or cross-cutting design decisions | Criteria are vague, unknown, or depend on unresolved choices | Wide integration surface or external systems | Must be decomposed further |
|