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