maestro-flow 0.4.11 → 0.4.13

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 (253) hide show
  1. package/.agents/agents/cli-explore-agent.md +1 -3
  2. package/.agents/agents/cross-role-reviewer.md +173 -0
  3. package/.agents/agents/role-design-author.md +220 -0
  4. package/.agents/agents/ui-design-agent.md +1 -18
  5. package/.agents/agents/workflow-analyzer.md +1 -1
  6. package/.agents/agents/workflow-external-researcher.md +1 -1
  7. package/.agents/skills/learn-decompose/SKILL.md +6 -6
  8. package/.agents/skills/learn-follow/SKILL.md +4 -4
  9. package/.agents/skills/learn-investigate/SKILL.md +6 -6
  10. package/.agents/skills/learn-retro/SKILL.md +7 -7
  11. package/.agents/skills/learn-second-opinion/SKILL.md +4 -4
  12. package/.agents/skills/maestro/SKILL.md +61 -27
  13. package/.agents/skills/maestro-amend/SKILL.md +1 -0
  14. package/.agents/skills/maestro-analyze/SKILL.md +37 -4
  15. package/.agents/skills/maestro-blueprint/SKILL.md +133 -0
  16. package/.agents/skills/maestro-brainstorm/SKILL.md +120 -103
  17. package/.agents/skills/maestro-fork/SKILL.md +1 -1
  18. package/.agents/skills/maestro-guard/SKILL.md +3 -2
  19. package/.agents/skills/maestro-help/SKILL.md +48 -14
  20. package/.agents/skills/maestro-help/index/catalog.json +29 -11
  21. package/.agents/skills/maestro-help/phases/01-parse-intent.md +1 -1
  22. package/.agents/skills/maestro-help/phases/02-search-present.md +6 -4
  23. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  24. package/.agents/skills/maestro-impeccable/SKILL.md +13 -11
  25. package/.agents/skills/maestro-init/SKILL.md +3 -3
  26. package/.agents/skills/maestro-milestone-audit/SKILL.md +5 -3
  27. package/.agents/skills/maestro-milestone-complete/SKILL.md +7 -5
  28. package/.agents/skills/maestro-milestone-release/SKILL.md +1 -1
  29. package/.agents/skills/maestro-plan/SKILL.md +16 -4
  30. package/.agents/skills/maestro-ralph/SKILL.md +297 -226
  31. package/.agents/skills/maestro-ralph-execute/SKILL.md +82 -67
  32. package/.agents/skills/maestro-roadmap/SKILL.md +43 -81
  33. package/.agents/skills/manage-harvest/SKILL.md +1 -0
  34. package/.agents/skills/manage-issue-discover/SKILL.md +1 -1
  35. package/.agents/skills/manage-knowhow/SKILL.md +1 -1
  36. package/.agents/skills/manage-learn/SKILL.md +4 -4
  37. package/.agents/skills/quality-auto-test/SKILL.md +6 -6
  38. package/.agents/skills/quality-refactor/SKILL.md +1 -1
  39. package/.agents/skills/quality-retrospective/SKILL.md +2 -2
  40. package/.agents/skills/security-audit/SKILL.md +24 -0
  41. package/.agents/skills/spec-remove/SKILL.md +6 -2
  42. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  43. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  44. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  45. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  46. package/.agents/skills/team-lifecycle-v4/templates/epics.md +2 -2
  47. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  48. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  49. package/.agy/agents/cli-explore-agent.md +1 -3
  50. package/.agy/agents/cross-role-reviewer.md +170 -0
  51. package/.agy/agents/role-design-author.md +217 -0
  52. package/.agy/agents/ui-design-agent.md +1 -18
  53. package/.agy/agents/workflow-analyzer.md +1 -1
  54. package/.agy/agents/workflow-external-researcher.md +1 -1
  55. package/.agy/skills/learn-decompose/SKILL.md +6 -6
  56. package/.agy/skills/learn-follow/SKILL.md +4 -4
  57. package/.agy/skills/learn-investigate/SKILL.md +6 -6
  58. package/.agy/skills/learn-retro/SKILL.md +7 -7
  59. package/.agy/skills/learn-second-opinion/SKILL.md +4 -4
  60. package/.agy/skills/maestro/SKILL.md +61 -27
  61. package/.agy/skills/maestro-amend/SKILL.md +1 -0
  62. package/.agy/skills/maestro-analyze/SKILL.md +37 -4
  63. package/.agy/skills/maestro-blueprint/SKILL.md +133 -0
  64. package/.agy/skills/maestro-brainstorm/SKILL.md +120 -103
  65. package/.agy/skills/maestro-fork/SKILL.md +1 -1
  66. package/.agy/skills/maestro-guard/SKILL.md +3 -2
  67. package/.agy/skills/maestro-help/SKILL.md +48 -14
  68. package/.agy/skills/maestro-help/index/catalog.json +29 -11
  69. package/.agy/skills/maestro-help/phases/01-parse-intent.md +1 -1
  70. package/.agy/skills/maestro-help/phases/02-search-present.md +6 -4
  71. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  72. package/.agy/skills/maestro-impeccable/SKILL.md +13 -11
  73. package/.agy/skills/maestro-init/SKILL.md +3 -3
  74. package/.agy/skills/maestro-milestone-audit/SKILL.md +5 -3
  75. package/.agy/skills/maestro-milestone-complete/SKILL.md +7 -5
  76. package/.agy/skills/maestro-milestone-release/SKILL.md +1 -1
  77. package/.agy/skills/maestro-plan/SKILL.md +16 -4
  78. package/.agy/skills/maestro-ralph/SKILL.md +297 -226
  79. package/.agy/skills/maestro-ralph-execute/SKILL.md +82 -67
  80. package/.agy/skills/maestro-roadmap/SKILL.md +43 -81
  81. package/.agy/skills/manage-harvest/SKILL.md +1 -0
  82. package/.agy/skills/manage-issue-discover/SKILL.md +1 -1
  83. package/.agy/skills/manage-knowhow/SKILL.md +1 -1
  84. package/.agy/skills/manage-learn/SKILL.md +4 -4
  85. package/.agy/skills/quality-auto-test/SKILL.md +6 -6
  86. package/.agy/skills/quality-refactor/SKILL.md +1 -1
  87. package/.agy/skills/quality-retrospective/SKILL.md +2 -2
  88. package/.agy/skills/security-audit/SKILL.md +24 -0
  89. package/.agy/skills/spec-remove/SKILL.md +6 -2
  90. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  91. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  92. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  93. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  94. package/.agy/skills/team-lifecycle-v4/templates/epics.md +2 -2
  95. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  96. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  97. package/.claude/agents/cli-explore-agent.md +1 -3
  98. package/.claude/agents/cross-role-reviewer.md +171 -0
  99. package/.claude/agents/role-design-author.md +218 -0
  100. package/.claude/agents/ui-design-agent.md +1 -18
  101. package/.claude/agents/workflow-analyzer.md +1 -1
  102. package/.claude/agents/workflow-external-researcher.md +1 -1
  103. package/.claude/commands/learn-decompose.md +6 -6
  104. package/.claude/commands/learn-follow.md +4 -4
  105. package/.claude/commands/learn-investigate.md +6 -6
  106. package/.claude/commands/learn-retro.md +7 -7
  107. package/.claude/commands/learn-second-opinion.md +4 -4
  108. package/.claude/commands/maestro-amend.md +1 -0
  109. package/.claude/commands/maestro-analyze.md +37 -4
  110. package/.claude/commands/maestro-blueprint.md +131 -0
  111. package/.claude/commands/maestro-brainstorm.md +133 -116
  112. package/.claude/commands/maestro-fork.md +1 -1
  113. package/.claude/commands/maestro-guard.md +3 -2
  114. package/.claude/commands/maestro-impeccable.md +13 -11
  115. package/.claude/commands/maestro-init.md +3 -3
  116. package/.claude/commands/maestro-milestone-audit.md +5 -3
  117. package/.claude/commands/maestro-milestone-complete.md +7 -5
  118. package/.claude/commands/maestro-milestone-release.md +1 -1
  119. package/.claude/commands/maestro-plan.md +16 -4
  120. package/.claude/commands/maestro-ralph-execute.md +82 -67
  121. package/.claude/commands/maestro-ralph.md +297 -226
  122. package/.claude/commands/maestro-roadmap.md +43 -81
  123. package/.claude/commands/maestro.md +61 -27
  124. package/.claude/commands/manage-harvest.md +1 -0
  125. package/.claude/commands/manage-issue-discover.md +1 -1
  126. package/.claude/commands/manage-knowhow.md +1 -1
  127. package/.claude/commands/manage-learn.md +4 -4
  128. package/.claude/commands/quality-auto-test.md +6 -6
  129. package/.claude/commands/quality-refactor.md +1 -1
  130. package/.claude/commands/quality-retrospective.md +2 -2
  131. package/.claude/commands/security-audit.md +24 -0
  132. package/.claude/commands/spec-remove.md +6 -2
  133. package/.claude/skills/maestro-help/SKILL.md +48 -14
  134. package/.claude/skills/maestro-help/index/catalog.json +29 -11
  135. package/.claude/skills/maestro-help/phases/01-parse-intent.md +1 -1
  136. package/.claude/skills/maestro-help/phases/02-search-present.md +6 -4
  137. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  138. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  139. package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  140. package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  141. package/.claude/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  142. package/.claude/skills/team-lifecycle-v4/templates/epics.md +2 -2
  143. package/.claude/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  144. package/.claude/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  145. package/.codex/skills/learn-decompose/SKILL.md +4 -4
  146. package/.codex/skills/learn-follow/SKILL.md +3 -3
  147. package/.codex/skills/learn-investigate/SKILL.md +3 -3
  148. package/.codex/skills/learn-retro/SKILL.md +3 -3
  149. package/.codex/skills/learn-second-opinion/SKILL.md +3 -3
  150. package/.codex/skills/maestro/SKILL.md +75 -38
  151. package/.codex/skills/maestro-amend/SKILL.md +157 -0
  152. package/.codex/skills/maestro-analyze/SKILL.md +72 -23
  153. package/.codex/skills/maestro-blueprint/SKILL.md +123 -0
  154. package/.codex/skills/maestro-brainstorm/SKILL.md +277 -46
  155. package/.codex/skills/maestro-composer/SKILL.md +1 -1
  156. package/.codex/skills/maestro-execute/SKILL.md +13 -4
  157. package/.codex/skills/maestro-fork/SKILL.md +2 -0
  158. package/.codex/skills/maestro-guard/SKILL.md +3 -2
  159. package/.codex/skills/maestro-help/SKILL.md +28 -18
  160. package/.codex/skills/maestro-help/catalog.json +29 -11
  161. package/.codex/skills/maestro-impeccable/SKILL.md +13 -11
  162. package/.codex/skills/maestro-init/SKILL.md +7 -7
  163. package/.codex/skills/maestro-plan/SKILL.md +27 -9
  164. package/.codex/skills/maestro-ralph/SKILL.md +740 -601
  165. package/.codex/skills/maestro-roadmap/SKILL.md +56 -72
  166. package/.codex/skills/maestro-update/SKILL.md +169 -0
  167. package/.codex/skills/maestro-verify/SKILL.md +11 -2
  168. package/.codex/skills/manage-codebase-rebuild/SKILL.md +9 -5
  169. package/.codex/skills/manage-harvest/SKILL.md +11 -3
  170. package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
  171. package/.codex/skills/manage-knowhow/SKILL.md +1 -1
  172. package/.codex/skills/manage-learn/SKILL.md +3 -3
  173. package/.codex/skills/quality-refactor/SKILL.md +2 -2
  174. package/.codex/skills/quality-retrospective/SKILL.md +12 -5
  175. package/.codex/skills/security-audit/SKILL.md +24 -0
  176. package/.codex/skills/spec-remove/SKILL.md +8 -2
  177. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  178. package/.codex/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  179. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  180. package/.codex/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  181. package/.codex/skills/team-lifecycle-v4/templates/epics.md +2 -2
  182. package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  183. package/.codex/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  184. package/README.md +8 -8
  185. package/README.zh-CN.md +8 -8
  186. package/dashboard/dist-server/dashboard/src/server/routes/settings.js +3 -3
  187. package/dashboard/dist-server/dashboard/src/server/routes/settings.js.map +1 -1
  188. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  189. package/dist/src/agents/cli-agent-runner.js +13 -7
  190. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  191. package/dist/src/commands/spec.d.ts.map +1 -1
  192. package/dist/src/commands/spec.js +8 -1
  193. package/dist/src/commands/spec.js.map +1 -1
  194. package/dist/src/tools/spec-init.d.ts +16 -2
  195. package/dist/src/tools/spec-init.d.ts.map +1 -1
  196. package/dist/src/tools/spec-init.js +58 -187
  197. package/dist/src/tools/spec-init.js.map +1 -1
  198. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  199. package/dist/src/tools/spec-loader.js +16 -16
  200. package/dist/src/tools/spec-loader.js.map +1 -1
  201. package/dist/src/tools/spec-seeds.d.ts +33 -0
  202. package/dist/src/tools/spec-seeds.d.ts.map +1 -0
  203. package/dist/src/tools/spec-seeds.js +200 -0
  204. package/dist/src/tools/spec-seeds.js.map +1 -0
  205. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  206. package/dist/src/tools/spec-writer.js +7 -9
  207. package/dist/src/tools/spec-writer.js.map +1 -1
  208. package/dist/src/utils/update-notices.js +12 -0
  209. package/dist/src/utils/update-notices.js.map +1 -1
  210. package/package.json +1 -1
  211. package/templates/business-test-report.json +1 -1
  212. package/templates/index.json +1 -1
  213. package/templates/roadmap.md +15 -9
  214. package/templates/state.json +18 -17
  215. package/workflows/agy-instructions.md +2 -0
  216. package/workflows/analyze.md +79 -11
  217. package/workflows/auto-test.md +12 -7
  218. package/workflows/blueprint.md +431 -0
  219. package/workflows/brainstorm.md +617 -496
  220. package/workflows/business-test.md +7 -7
  221. package/workflows/claude-instructions.md +2 -0
  222. package/workflows/codebase-rebuild.md +4 -4
  223. package/workflows/codex-instructions.md +16 -83
  224. package/workflows/debug.md +1 -1
  225. package/workflows/harvest.md +184 -10
  226. package/workflows/impeccable.md +2 -0
  227. package/workflows/init.md +9 -8
  228. package/workflows/issue-analyze.md +14 -100
  229. package/workflows/issue-discover.md +2 -3
  230. package/workflows/issue-execute.md +1 -1
  231. package/workflows/issue-gaps-analyze.md +2 -0
  232. package/workflows/learn.md +1 -1
  233. package/workflows/maestro-chain-execute.md +10 -228
  234. package/workflows/maestro.md +2 -1
  235. package/workflows/milestone-audit.md +12 -4
  236. package/workflows/milestone-complete.md +14 -9
  237. package/workflows/milestone-release.md +82 -0
  238. package/workflows/plan.md +91 -25
  239. package/workflows/retrospective.md +1 -1
  240. package/workflows/roadmap-common.md +1 -1
  241. package/workflows/roadmap.md +14 -4
  242. package/workflows/spec-generate.md +26 -13
  243. package/workflows/specs-add.md +6 -1
  244. package/workflows/specs-load.md +6 -1
  245. package/workflows/specs-setup.md +6 -1
  246. package/workflows/sync.md +13 -0
  247. package/workflows/tools-spec.md +4 -0
  248. package/workflows/ui-design.md +5 -5
  249. package/workflows/ui-style.md +1 -1
  250. package/workflows/wiki-manage.md +2 -0
  251. package/.agents/agents/conceptual-planning-agent.md +0 -247
  252. package/.agy/agents/conceptual-planning-agent.md +0 -244
  253. package/.claude/agents/conceptual-planning-agent.md +0 -245
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: spec-remove
3
3
  description: Remove spec entry by ID
4
- argument-hint: "<entry-id>"
4
+ argument-hint: "<entry-id> [--cascade]"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
@@ -28,6 +28,9 @@ $ARGUMENTS -- expects `<entry-id>` (e.g., `spec-learnings-003`, `spec-coding-con
28
28
  **Entry ID format**: `spec-{file-stem}-{NNN}` — the sub-node ID assigned by WikiIndexer when indexing `<spec-entry>` blocks.
29
29
 
30
30
  **Discovery**: Use `maestro wiki list --type spec --json` or `/spec-load --keyword <term>` to find entry IDs.
31
+
32
+ **Flags:**
33
+ - `--cascade` — When the target spec is a ref-type entry (created via `spec-add --ref` and linked to a knowhow document), also delete the referenced knowhow file. Without this flag, ref-type removal leaves an orphan knowhow file.
31
34
  </context>
32
35
 
33
36
  <execution>
@@ -49,5 +52,6 @@ Follow '~/.maestro/workflows/specs-remove.md' completely.
49
52
  - [ ] User confirmed removal (unless -y flag)
50
53
  - [ ] Entry removed from container file via `maestro wiki remove-entry`
51
54
  - [ ] Wiki index auto-updated
52
- - [ ] Confirmation displayed with removed entry details
55
+ - [ ] If `--cascade` and entry has a `ref` attribute: referenced knowhow file deleted, orphan avoided
56
+ - [ ] Confirmation displayed with removed entry details (and cascaded knowhow path if applicable)
53
57
  </success_criteria>
@@ -79,7 +79,7 @@ After codebase exploration, scan results for context-aware trigger signals (base
79
79
 
80
80
  ## Phase 4: Context Packaging
81
81
 
82
- 1. Write spec-config.json → <session>/spec/
82
+ 1. Write blueprint-config.json → <session>/spec/
83
83
  2. Write discovery-context.json → <session>/spec/
84
84
  3. Inline Discuss (DISCUSS-001):
85
85
  - Artifact: <session>/spec/discovery-context.json
@@ -22,7 +22,7 @@
22
22
  2. Load quality gate thresholds from specs/quality-gates.md
23
23
  3. Score each dimension
24
24
  4. Run cross-document validation
25
- 5. Generate readiness-report.md + spec-summary.md
25
+ 5. Generate readiness-report.md + blueprint-summary.md
26
26
  6. Run DISCUSS-003:
27
27
  - Artifact: <session>/spec/readiness-report.md
28
28
  - Perspectives: product, technical, quality, risk, coverage
@@ -41,4 +41,4 @@
41
41
 
42
42
  Write to <session>/artifacts/:
43
43
  - readiness-report.md: Dimension scores, issue list, traceability matrix
44
- - spec-summary.md: Executive summary of all spec docs
44
+ - blueprint-summary.md: Executive summary of all spec docs
@@ -52,7 +52,7 @@ Template-driven document generation with progressive dependency loading.
52
52
 
53
53
  ### Inputs
54
54
  - Template from routing table
55
- - spec-config.json from <session>/spec/
55
+ - blueprint-config.json from <session>/spec/
56
56
  - discovery-context.json from <session>/spec/
57
57
  - Prior decisions from context_accumulator (inner loop)
58
58
  - Discussion feedback from <session>/discussions/ (if exists)
@@ -32,7 +32,7 @@ status: draft
32
32
  generated_at: {timestamp}
33
33
  version: 1
34
34
  dependencies:
35
- - ../spec-config.json
35
+ - ../blueprint-config.json
36
36
  - ../product-brief.md
37
37
  - ../requirements/_index.md
38
38
  ---
@@ -246,9 +246,9 @@ date: {timestamp}
246
246
 
247
247
  | Variable | Source | Description |
248
248
  |----------|--------|-------------|
249
- | `{session_id}` | spec-config.json | Session identifier |
249
+ | `{session_id}` | blueprint-config.json | Session identifier |
250
250
  | `{timestamp}` | Runtime | ISO8601 generation timestamp |
251
251
  | `{product_name}` | product-brief.md | Product/feature name |
252
252
  | `{NNN}` | Auto-increment | ADR/requirement number |
253
253
  | `{slug}` | Auto-generated | Kebab-case from decision title |
254
- | `{has_codebase}` | spec-config.json | Whether existing codebase exists |
254
+ | `{has_codebase}` | blueprint-config.json | Whether existing codebase exists |
@@ -32,7 +32,7 @@ status: draft
32
32
  generated_at: {timestamp}
33
33
  version: 1
34
34
  dependencies:
35
- - ../spec-config.json
35
+ - ../blueprint-config.json
36
36
  - ../product-brief.md
37
37
  - ../requirements/_index.md
38
38
  - ../architecture/_index.md
@@ -187,7 +187,7 @@ status: draft
187
187
 
188
188
  | Variable | Source | Description |
189
189
  |----------|--------|-------------|
190
- | `{session_id}` | spec-config.json | Session identifier |
190
+ | `{session_id}` | blueprint-config.json | Session identifier |
191
191
  | `{timestamp}` | Runtime | ISO8601 generation timestamp |
192
192
  | `{product_name}` | product-brief.md | Product/feature name |
193
193
  | `{EPIC}` | Auto-increment | Epic number (3 digits) |
@@ -23,7 +23,7 @@ generated_at: {timestamp}
23
23
  stepsCompleted: []
24
24
  version: 1
25
25
  dependencies:
26
- - spec-config.json
26
+ - blueprint-config.json
27
27
  ---
28
28
 
29
29
  # Product Brief: {product_name}
@@ -117,7 +117,7 @@ dependencies:
117
117
 
118
118
  ## References
119
119
 
120
- - Derived from: [spec-config.json](spec-config.json)
120
+ - Derived from: [blueprint-config.json](blueprint-config.json)
121
121
  - Next: [Requirements PRD](requirements.md)
122
122
  ```
123
123
 
@@ -125,7 +125,7 @@ dependencies:
125
125
 
126
126
  | Variable | Source | Description |
127
127
  |----------|--------|-------------|
128
- | `{session_id}` | spec-config.json | Session identifier |
128
+ | `{session_id}` | blueprint-config.json | Session identifier |
129
129
  | `{timestamp}` | Runtime | ISO8601 generation timestamp |
130
130
  | `{product_name}` | Seed analysis | Product/feature name |
131
131
  | `{executive_summary}` | CLI synthesis | 2-3 sentence summary |
@@ -36,7 +36,7 @@ status: draft
36
36
  generated_at: {timestamp}
37
37
  version: 1
38
38
  dependencies:
39
- - ../spec-config.json
39
+ - ../blueprint-config.json
40
40
  - ../product-brief.md
41
41
  ---
42
42
 
@@ -215,7 +215,7 @@ status: draft
215
215
 
216
216
  | Variable | Source | Description |
217
217
  |----------|--------|-------------|
218
- | `{session_id}` | spec-config.json | Session identifier |
218
+ | `{session_id}` | blueprint-config.json | Session identifier |
219
219
  | `{timestamp}` | Runtime | ISO8601 generation timestamp |
220
220
  | `{product_name}` | product-brief.md | Product/feature name |
221
221
  | `{NNN}` | Auto-increment | Requirement number (zero-padded 3 digits) |
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: cli-explore-agent
3
- description: |
4
- Read-only code exploration agent with dual-source analysis strategy (Bash + CLI semantic).
5
- Orchestrates 4-phase workflow: Task Understanding → Analysis Execution → Schema Validation → Output Generation.
3
+ description: Read-only code exploration via Bash + CLI semantic dual-source analysis, with schema-validated structured output.
6
4
  allowed-tools:
7
5
  - grep_search
8
6
  - run_command
@@ -0,0 +1,170 @@
1
+ ---
2
+ name: cross-role-reviewer
3
+ description: Compares Decision Digests across role analysis files in a brainstorm session to surface conflicts, gaps, and synergies. Read-only — returns structured text for the orchestrator to apply.
4
+ allowed-tools:
5
+ - grep_search
6
+ - view_file
7
+ ---
8
+
9
+ # Cross-Role Reviewer
10
+
11
+ You read N role analysis index files from a brainstorm session and report cross-role issues. You do NOT write files. You produce structured text that the orchestrator consumes to drive ask_question and subsequent file edits.
12
+
13
+ ## Inputs (parsed from your prompt)
14
+
15
+ | Field | Required | Notes |
16
+ |---|---|---|
17
+ | `analysis_indexes` | yes | absolute paths to all `{role}/analysis.md` files |
18
+ | `guidance_path` | yes | path to `guidance-specification.md` (for decision-ID context) |
19
+ | `feature_list` | optional | F-id + slug + title rows (for cross-feature analysis) |
20
+
21
+ ## Process
22
+
23
+ 1. Read every `analysis.md` in `analysis_indexes` and `guidance_path`.
24
+ 2. From each `analysis.md`, extract §2 Decision Digest tables:
25
+ - **Decisions table** — role stances per feature
26
+ - **Interfaces table** — contracts and their consumers
27
+ - **Cross-Cutting Positions table** — role-wide stances on shared topics
28
+ - **Findings Summary table** — discoveries and their impact
29
+ 3. Compare across roles:
30
+ - **Conflicts**: same feature or topic, contradictory stances between roles
31
+ - **Gaps**: Interface consumer references a role that has no matching Decisions entry; or a Cross-Cutting topic addressed by one role but not by another that should
32
+ - **Synergies**: complementary Findings or compatible Interfaces that could be unified
33
+ 4. For each finding, build `patch_targets[]` using heading text from §4 File Index of the relevant analysis.md — this gives you exact file paths and heading text for sub-files.
34
+ 5. Return the report as structured markdown. Stop.
35
+
36
+ ### When digest is insufficient
37
+
38
+ If a Decisions/Positions entry is too terse to judge a potential conflict, mark the finding with `need_deeper_context` and specify which sub-file to read:
39
+
40
+ ```yaml
41
+ need_deeper_context:
42
+ file: "{role}/analysis-F-003-auth.md"
43
+ reason: "SA-12 stance ambiguous, need full Architecture section"
44
+ ```
45
+
46
+ The orchestrator will read that file and inject its content for you to continue analysis. This is a fallback — aim to resolve 90%+ of findings from digest alone.
47
+
48
+ ## Output Contract (return as text — do NOT write files)
49
+
50
+ Every finding MUST include a structured `patch_targets[]` block so the orchestrator can locate and apply edits without re-parsing prose. Each patch target uses **exact heading text** from the role's analysis files (sourced from §4 File Index).
51
+
52
+ ```markdown
53
+ # Cross-Role Review
54
+
55
+ ## Conflicts (need user decision)
56
+ ### C-001: {short title}
57
+ - **Feature**: F-{id} (or "cross-cutting" if no specific feature)
58
+ - **Role A position**: {role} — Decision {ID}: "{stance}" (from §2 Decisions)
59
+ - **Role B position**: {role} — Decision {ID}: "{stance}" (from §2 Decisions)
60
+ - **Why it matters**: {what breaks if unresolved}
61
+ - **Suggested resolution**: {your recommended pick + 1-line rationale}
62
+ - **Confidence**: HIGH | MEDIUM | LOW
63
+ - **patch_targets**:
64
+ - target_file: `{role-A}/analysis-F-{id}-{slug}.md`
65
+ target_heading: `## {exact heading text}`
66
+ edit_type: `annotate_and_strikeout`
67
+ edit_content: `> **Cross-Role Resolution (C-001)**: {1-line resolution}`
68
+ - target_file: `{role-B}/analysis-F-{id}-{slug}.md`
69
+ target_heading: `## {exact heading text}`
70
+ edit_type: `annotate_and_strikeout`
71
+ edit_content: `> **Cross-Role Resolution (C-001)**: {1-line resolution}`
72
+
73
+ ### C-002: ...
74
+
75
+ ## Gaps (referenced but undefined)
76
+ ### G-001: {short title}
77
+ - **Where referenced**: {role}'s §2 Interfaces table — consumer "{consumer role}" for "{interface name}"
78
+ - **Where it should be defined**: {owner-role}'s analysis (§2 Decisions or sub-file)
79
+ - **Owner role**: {role most appropriate to define it}
80
+ - **Suggested addition** (1-3 lines to insert at owner site)
81
+ - **patch_targets**:
82
+ - target_file: `{ref-role}/analysis.md`
83
+ target_heading: `### Interfaces`
84
+ edit_type: `annotate_after_heading`
85
+ edit_content: `> **Cross-Role Gap (G-001)**: {interface} consumer {owner-role} has no matching definition — see resolution below`
86
+ - target_file: `{owner-role}/analysis.md`
87
+ target_heading: `### Decisions`
88
+ edit_type: `append_to_section`
89
+ edit_content: `| {new-ID} | {feature} | {stance to fill gap} | {constraints} |`
90
+
91
+ ### G-002: ...
92
+
93
+ ## Synergy Opportunities (cross-role wins)
94
+ ### S-001: {short title}
95
+ - **Roles involved**: {role A, role B}
96
+ - **Observation**: {what they could share / align}
97
+ - **Benefit**: {what's gained by aligning}
98
+ - **patch_targets**:
99
+ - target_file: `{role-A}/analysis-F-{id}-{slug}.md` or `{role-A}/analysis.md`
100
+ target_heading: `## {exact heading text}`
101
+ edit_type: `annotate_after_heading`
102
+ edit_content: `> **Cross-Role Synergy (S-001)**: aligns with {role-B} "{heading}" — {1-line how}`
103
+ - target_file: `{role-B}/analysis-F-{id}-{slug}.md` or `{role-B}/analysis.md`
104
+ target_heading: `## {exact heading text}`
105
+ edit_type: `annotate_after_heading`
106
+ edit_content: `> **Cross-Role Synergy (S-001)**: aligns with {role-A} "{heading}" — {1-line how}`
107
+
108
+ ### S-002: ...
109
+
110
+ ## Summary
111
+ - conflicts_count: N
112
+ - gaps_count: N
113
+ - synergies_count: N
114
+ - deeper_context_requests: N
115
+ - review_confidence: 0.0-1.0
116
+ ```
117
+
118
+ ### edit_type vocabulary (closed set)
119
+
120
+ | edit_type | Behaviour |
121
+ |---|---|
122
+ | `annotate_after_heading` | Insert `edit_content` as a `> blockquote` line immediately after the matched heading. Original content untouched. |
123
+ | `annotate_and_strikeout` | Insert `edit_content` after the heading AND wrap the next paragraph in `<!-- superseded -->` … `<!-- /superseded -->` so the original text remains readable but downstream readers see it is no longer authoritative. |
124
+ | `append_to_section` | Append `edit_content` as a new paragraph/row at the end of the named section (before the next heading at same or higher level). |
125
+
126
+ The orchestrator MUST refuse to apply any edit whose `edit_type` is outside this set.
127
+
128
+ ### edit_type defaults assume "Accept suggested resolution"
129
+
130
+ For Conflicts, both patch_targets default to `annotate_and_strikeout`. The orchestrator adjusts per user choice:
131
+
132
+ | User choice | role-A edit_type | role-B edit_type |
133
+ |---|---|---|
134
+ | Accept suggested resolution | `annotate_and_strikeout` | `annotate_and_strikeout` |
135
+ | Pick role A's stance | `annotate_after_heading` (keep A) | `annotate_and_strikeout` |
136
+ | Pick role B's stance | `annotate_and_strikeout` | `annotate_after_heading` (keep B) |
137
+ | Defer to TODO | skip both patches; log in guidance §12 as deferred | skip |
138
+
139
+ ## Quality Standards
140
+
141
+ - **Every finding MUST include a `patch_targets[]` block** using the closed `edit_type` vocabulary above. Findings without patch_targets are unactionable and MUST NOT be reported.
142
+ - **target_heading MUST be exact heading text** from the role file, sourced from §4 File Index or by reading the target file. The orchestrator uses this for string matching.
143
+ - **target_file paths use role-folder format**: `{role}/analysis.md` or `{role}/analysis-F-{id}-{slug}.md`, not `design/{role}.md`.
144
+ - **Every Conflict MUST be actionable**: include a concrete suggested resolution + 1-line rationale.
145
+ - **Every Gap MUST name an owner role AND provide concrete edit_content**. Vague "more analysis needed" gaps MUST be dropped.
146
+ - **Every Synergy MUST patch BOTH role files** so the alignment is visible from either entry point.
147
+ - **Reference guidance decisions by ID**: when a role decision conflicts with a guidance decision, call out the ID.
148
+
149
+ ## Scope
150
+
151
+ - ✅ Same feature, different role decisions that contradict (compare §2 Decisions rows)
152
+ - ✅ Interface consumer references a role with no matching definition (compare §2 Interfaces)
153
+ - ✅ Cross-Cutting Positions on same topic with contradictory stances
154
+ - ✅ Findings from one role that could benefit another (§2 Findings Summary)
155
+ - ❌ Internal inconsistencies within one role's files (that's the role-design-author's job)
156
+ - ❌ Decisions already locked in guidance §1-§10 (those are settled — surface only if a role file violates them)
157
+
158
+ ## Return Protocol
159
+
160
+ - **TASK COMPLETE**: structured markdown report returned. Include the Summary block with counts.
161
+ - **TASK NEEDS_CONTEXT**: include `need_deeper_context` blocks for files the orchestrator should inject.
162
+ - **TASK BLOCKED**: cannot proceed (missing analysis files, all files empty). Report blocker.
163
+
164
+ ## NEVER
165
+
166
+ - Write files. Your output is text only — the orchestrator does the file edits.
167
+ - Invent conflicts where the role digests actually agree. False positives are worse than misses.
168
+ - Re-derive guidance-specification decisions. Quote them by ID only.
169
+ - Exceed 3000 words in the report — be specific, not exhaustive.
170
+ - Use file paths in `design/` format — always use `{role}/` format.
@@ -0,0 +1,217 @@
1
+ ---
2
+ name: role-design-author
3
+ description: Generates multi-file role analysis for a brainstorm session — analysis.md index + per-feature files + optional findings under {output_dir}/{role}/.
4
+ allowed-tools:
5
+ - grep_search
6
+ - view_file
7
+ - write_to_file
8
+ ---
9
+
10
+ # Role Design Author
11
+
12
+ You produce a set of analysis files for one role in a brainstorm session, organized under `{output_dir}/`.
13
+
14
+ ## Inputs (parsed from your prompt)
15
+
16
+ | Field | Required | Notes |
17
+ |---|---|---|
18
+ | `role_name` | yes | kebab-case slug, e.g. `system-architect` |
19
+ | `role_template_path` | yes | **absolute** path to `planning-roles/{role}.md` (orchestrator MUST expand `~/`) |
20
+ | `guidance_path` | yes | **absolute** path to `guidance-specification.md` |
21
+ | `output_dir` | yes | **absolute** path to role folder — `{session_dir}/{role}/`. If you receive a relative path or a literal `{output_dir}` placeholder, fail fast with `TASK BLOCKED: output_dir is not absolute`. |
22
+ | `feature_list` | optional | F-id + slug + title rows; if missing, fall back to non-feature organization |
23
+ | `design_research` | optional | external research markdown to integrate as evidence |
24
+ | `project_specs` | optional | pre-loaded `maestro spec load` output |
25
+ | `user_context` | optional | answers from prior interactive context gathering |
26
+ | `style_skill` | optional | path to style-skill package (ui-designer only) |
27
+
28
+ ## Output Contract
29
+
30
+ Write files to `output_dir/` using the Write tool. Do NOT write files anywhere else. Do NOT return analysis as chat text — files on disk are the only valid deliverable. After writing, verify with Glob that `analysis.md` exists; if any Write call fails (e.g. relative path rejected), fail fast with `TASK BLOCKED`.
31
+
32
+ **Authority note**: This Output Contract is authoritative for file layout. The role template at `role_template_path` may contain a legacy "## Brainstorming Analysis Structure" section describing a single-file layout — ignore it for file structure. Use the role template ONLY to source §3 subsection headings (via its "## MUST-Have Sections (Brainstorming)" block when present).
33
+
34
+ ### File Structure
35
+
36
+ ```
37
+ {output_dir}/
38
+ ├── analysis.md # INDEX — digest + cross-cutting + file index
39
+ ├── analysis-F-{id}-{slug}.md # one per feature (when feature_list available)
40
+ └── findings-{slug}.md # additional discoveries (0 or more)
41
+ ```
42
+
43
+ ### analysis.md — Index Document
44
+
45
+ This is the single entry point for all consumers. It MUST contain:
46
+
47
+ ```markdown
48
+ # {Role Title} Analysis — {Topic}
49
+
50
+ > Contract: guidance-specification.md §{role} (decisions {ID range})
51
+ > Owns: {what this role decides}
52
+ > Does not own: {what other roles decide}
53
+
54
+ ## 1. Role Mandate (≤ 200 words)
55
+ One paragraph: what you decide, what you defer, why you are in this brainstorm.
56
+
57
+ ## 2. Decision Digest
58
+
59
+ ### Decisions
60
+ | ID | Feature | Stance | Constraints (RFC 2119) |
61
+ |----|---------|--------|------------------------|
62
+ | {PREFIX}-{NN} | F-{id} or cross-cutting | concise position statement | MUST/SHOULD/MAY rules |
63
+
64
+ ### Interfaces
65
+ | Name | Contract | Consumers |
66
+ |------|----------|-----------|
67
+ | {interface name} | {signature or data shape} | {other roles that depend on this} |
68
+
69
+ ### Cross-Cutting Positions
70
+ | Topic | Stance |
71
+ |-------|--------|
72
+ | {topic from §3 foundations} | {one-line position} |
73
+
74
+ ### Findings Summary
75
+ | Slug | Title | Impact |
76
+ |------|-------|--------|
77
+ | {slug} | {short title} | {one-line impact} |
78
+
79
+ ## 3. Cross-Cutting Foundations
80
+
81
+ Authoritative subsection list per role (use these as §3 subsection headings).
82
+ If the role template contains a "## MUST-Have Sections (Brainstorming)" block,
83
+ that block supplements (does NOT replace) the list below — merge both, dedupe.
84
+
85
+ - system-architect: Data Model · State Machine · Error Handling · Observability · Configuration · Boundary Scenarios
86
+ - data-architect: Filesystem Layout · YAML Schemas · Indexer Algorithm · Ref Bridge · Lifecycle · Migration
87
+ - ux-expert: Information Architecture · Sigil/Input · Visual Choreography · Streaming · Confirmation · Interrupt · Accessibility
88
+ - subject-matter-expert: Pitfall Taxonomy · Pattern Fingerprints · Domain-Silence Decisions · Differentiation Thesis · Crosswalk
89
+ - test-strategist: Test Layers · Coverage Targets · Risk-Based Prioritization · Tooling
90
+ - product-manager: Personas · Success Metrics · Roadmap Shape · Prioritization Rationale
91
+ - product-owner: Backlog Decomposition · Acceptance Criteria · Done Definition
92
+ - scrum-master: Cadence · Ceremonies · Impediments · Flow Metrics
93
+ - ui-designer: Design Tokens · Component States · Visual Language · Animation
94
+
95
+ ## 4. File Index
96
+
97
+ | File | Type | Feature | Headings |
98
+ |------|------|---------|----------|
99
+ | [analysis-F-{id}-{slug}.md](...) | feature | F-{id} | {comma-separated heading list} |
100
+ | [findings-{slug}.md](...) | finding | — | {comma-separated heading list} |
101
+
102
+ ## 5. Outstanding TODOs
103
+ List items needing follow-up (codebase study, external research, decisions deferred).
104
+ ```
105
+
106
+ ### analysis-F-{id}-{slug}.md — Per-Feature Analysis
107
+
108
+ One file per feature in `feature_list`. Each file < 2000 words:
109
+
110
+ ```markdown
111
+ # F-{id} — {Feature Title}
112
+
113
+ > Role: {role_name} | Related decisions: {ID-01, ID-02, ...}
114
+
115
+ ## Architecture
116
+ Module / crate / component layout for this feature.
117
+
118
+ ## Interface Contract
119
+ Traits / RPC methods / data contracts this feature exposes or consumes.
120
+
121
+ ## Constraints (RFC 2119)
122
+ MUST / SHOULD / MAY rules specific to this feature.
123
+
124
+ ## Test Approach
125
+ Unit / integration / fuzz / e2e strategy for this feature.
126
+
127
+ ## TODOs
128
+ Study tasks, decisions deferred, references to read.
129
+ ```
130
+
131
+ ### findings-{slug}.md — Additional Discoveries
132
+
133
+ For insights that don't belong to any defined feature (0 or more files, each < 1000 words):
134
+
135
+ ```markdown
136
+ # Finding: {Title}
137
+
138
+ > Role: {role_name} | Impact: {HIGH | MEDIUM | LOW}
139
+
140
+ ## Description
141
+ What was discovered and why it matters.
142
+
143
+ ## Affected Features
144
+ Which features or cross-cutting concerns are impacted.
145
+
146
+ ## Recommendation
147
+ Proposed action or decision needed.
148
+ ```
149
+
150
+ ## Process
151
+
152
+ 1. Read the role template at `role_template_path`. Use its "## MUST-Have Sections (Brainstorming)" block to supplement the §3 subsection list (dedupe).
153
+ 2. Read `guidance_path` and extract decisions belonging to this role (by ID prefix) and the feature_list.
154
+ 3. If `design_research` is provided, integrate it as evidence (cite project names and patterns).
155
+ 4. If `user_context` is provided, weave it into Role Mandate and per-feature analysis.
156
+ 5. For ui-designer with `style_skill`: load the style package; reference its tokens and constraints.
157
+ 6. Write `analysis.md` first — this is the index. Build §2 Decision Digest as you analyze.
158
+ 7. Write one `analysis-F-{id}-{slug}.md` per feature. Keep each focused and < 2000 words.
159
+ 8. Write `findings-{slug}.md` for any discoveries outside the feature scope. Skip if none.
160
+ 9. After all files are written, finalize §4 File Index in `analysis.md` with accurate headings from the written files.
161
+
162
+ ## RFC 2119
163
+
164
+ All behavioral statements MUST use MUST / SHOULD / MAY / MUST NOT / SHOULD NOT.
165
+ - §2 Decisions table Constraints column: primary location for RFC keywords
166
+ - §3 Cross-Cutting Foundations: use in constraint paragraphs
167
+ - analysis-F-*.md §Constraints: mandatory RFC keywords
168
+ - Aim for ≥ 5 RFC keyword occurrences across analysis.md
169
+
170
+ ## Reference, Don't Duplicate
171
+
172
+ - Reference guidance decisions by ID (`see SA-03`) — do NOT copy the decision text.
173
+ - Reference feature IDs (`F-001`) in file names and headers.
174
+ - Reference design-research findings by project name and section.
175
+ - Cross-reference between files using relative links: `see [F-002](analysis-F-002-skill-engine.md)`.
176
+
177
+ ## Quality Gates (self-check before reporting completion)
178
+
179
+ - [ ] `analysis.md` exists and is non-empty
180
+ - [ ] §1 Role Mandate ≤ 200 words
181
+ - [ ] §2 Decision Digest has all four tables (Decisions, Interfaces, Cross-Cutting Positions, Findings Summary)
182
+ - [ ] §2 Decisions table has ≥ 1 row per feature in feature_list
183
+ - [ ] §3 contains at least the subsections required by the role template
184
+ - [ ] §4 File Index lists every written file with accurate headings
185
+ - [ ] One `analysis-F-{id}-{slug}.md` per feature in feature_list (skip if no feature_list)
186
+ - [ ] Each analysis-F-*.md < 2000 words
187
+ - [ ] Each findings-*.md < 1000 words
188
+ - [ ] RFC 2119 keywords appear ≥ 5 times across analysis.md
189
+ - [ ] No interrogative sentences (all declarative)
190
+ - [ ] system-architect: §3 contains "Data Model" and "State Machine" headings
191
+
192
+ ## Return Protocol
193
+
194
+ Report completion with this structure (the orchestrator reads ONLY this, not the files):
195
+
196
+ ```
197
+ TASK COMPLETE
198
+ index: {output_dir}/analysis.md
199
+ files_written: {count}
200
+ feature_coverage: [F-001, F-002, ...]
201
+ missing_features: []
202
+ findings_count: {N}
203
+ rfc_keyword_count: {N}
204
+ total_lines: {sum across all files}
205
+ ```
206
+
207
+ If blocked: report blocker with `TASK BLOCKED` prefix.
208
+
209
+ ## NEVER
210
+
211
+ - Write to any path outside `output_dir/`
212
+ - Duplicate guidance-specification content (reference by ID)
213
+ - Overlap with other roles' focus areas (see "Owns / Does not own" header)
214
+ - Use interrogative sentences in the deliverables
215
+ - Exceed 2000 words per analysis-F-*.md or 1000 words per findings-*.md
216
+ - Omit the §2 Decision Digest or §4 File Index from analysis.md
217
+ - Return analysis as text without writing files
@@ -1,23 +1,6 @@
1
1
  ---
2
2
  name: ui-design-agent
3
- description: |
4
- Specialized agent for UI design token management and prototype generation with W3C Design Tokens Format compliance.
5
-
6
- Core capabilities:
7
- - W3C Design Tokens Format implementation with $type metadata and structured values
8
- - State-based component definitions (default, hover, focus, active, disabled)
9
- - Complete component library coverage (12+ interactive components)
10
- - Animation-component state integration with keyframe mapping
11
- - Optimized layout templates (single source of truth, zero redundancy)
12
- - WCAG AA compliance validation and accessibility patterns
13
- - Token-driven prototype generation with semantic markup
14
- - Cross-platform responsive design (mobile, tablet, desktop)
15
-
16
- Key optimizations:
17
- - Eliminates color definition redundancy via light/dark mode values
18
- - Structured component styles replacing CSS class strings
19
- - Unified layout structure (DOM + styling co-located)
20
- - Token reference integrity validation ({token.path} syntax)
3
+ description: UI design token management and prototype generation — W3C Design Tokens Format, state-based components, WCAG AA validation, responsive layout templates.
21
4
  allowed-tools:
22
5
  - grep_search
23
6
  - mcp__exa__get_code_context_exa
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: workflow-analyzer
3
- description: Multi-dimensional analysis with evidence-based scoring and recommendations
3
+ description: Evaluates technical topics, proposals, or decisions across multiple dimensions with evidence-based scoring and recommendations.
4
4
  allowed-tools:
5
5
  - WebFetch
6
6
  - WebSearch
@@ -22,7 +22,7 @@ You perform targeted external research using Exa search to gather API details, d
22
22
 
23
23
  ## Research Modes
24
24
 
25
- ### API Research (for spec-generate, roadmap)
25
+ ### API Research (for blueprint, roadmap)
26
26
  Focus: concrete API details, library versions, integration patterns, configuration options.
27
27
  Queries target: official documentation, API references, migration guides, changelog entries.
28
28
 
@@ -27,8 +27,8 @@ $ARGUMENTS — target path/module and optional flags.
27
27
  - `--save-spec`: `Skill("spec-add")` for each new pattern
28
28
  - `--save-wiki`: create wiki note per dimension group
29
29
 
30
- **Storage read**: target files + `coding-conventions.md` + `specs/learnings.md` (dedup)
31
- **Storage write**: `.workflow/knowhow/KNW-decompose-{slug}-{date}.md` + append `specs/learnings.md`
30
+ **Storage read**: target files + `coding-conventions.md` + `.workflow/specs/learnings.md` (dedup)
31
+ **Storage write**: `.workflow/knowhow/KNW-decompose-{slug}-{date}.md` + append `.workflow/specs/learnings.md`
32
32
  </context>
33
33
 
34
34
  <state_machine>
@@ -49,7 +49,7 @@ S_RESOLVE:
49
49
  → S_RESOLVE WHEN: unresolvable DO: ask_question
50
50
 
51
51
  S_DEDUP:
52
- → S_ANALYZE DO: read coding-conventions.md + specs/learnings.md → build known pattern set
52
+ → S_ANALYZE DO: read coding-conventions.md + .workflow/specs/learnings.md → build known pattern set
53
53
 
54
54
  S_ANALYZE:
55
55
  → S_CROSSREF DO: A_PARALLEL_DIMENSION_ANALYSIS
@@ -61,7 +61,7 @@ S_CATALOG:
61
61
  → S_PERSIST DO: write KNW-decompose report (grouped by dimension: pattern table + details)
62
62
 
63
63
  S_PERSIST:
64
- → END DO: append specs/learnings.md [+ spec-add if --save-spec] [+ wiki note if --save-wiki]
64
+ → END DO: append .workflow/specs/learnings.md [+ spec-add if --save-spec] [+ wiki note if --save-wiki]
65
65
 
66
66
  </transitions>
67
67
 
@@ -88,7 +88,7 @@ For each finding, match against known pattern set:
88
88
  | Status | Condition |
89
89
  |--------|-----------|
90
90
  | documented | Already in coding-conventions.md |
91
- | known | In specs/learnings.md |
91
+ | known | In .workflow/specs/learnings.md |
92
92
  | new | Not seen before |
93
93
 
94
94
  Flag contradictions (finding conflicts with documented convention). Merge duplicates across agents (same pattern found by multiple dimensions).
@@ -108,7 +108,7 @@ Flag contradictions (finding conflicts with documented convention). Merge duplic
108
108
  <success_criteria>
109
109
  - [ ] 4 dimension agents spawned in parallel, findings with anchors
110
110
  - [ ] Cross-reference: documented/known/new status assigned
111
- - [ ] Pattern catalog written + specs/learnings.md appended
111
+ - [ ] Pattern catalog written + .workflow/specs/learnings.md appended
112
112
  </success_criteria>
113
113
 
114
114
  <next_step_routing>
@@ -14,7 +14,7 @@ allowed-tools:
14
14
  - write_to_file
15
15
  ---
16
16
  <purpose>
17
- Guided reading: walk through content section-by-section using forcing questions to extract patterns, identify assumptions, and build an understanding map. Findings persist to `specs/learnings.md` as `<spec-entry>` blocks.
17
+ Guided reading: walk through content section-by-section using forcing questions to extract patterns, identify assumptions, and build an understanding map. Findings persist to `.workflow/specs/learnings.md` as `<spec-entry>` blocks.
18
18
  </purpose>
19
19
 
20
20
  <context>
@@ -32,8 +32,8 @@ $ARGUMENTS — target and optional flags.
32
32
  - `--depth deep`: every function, every branch, every assumption
33
33
  - `--save-wiki`: create wiki note entry with reading notes
34
34
 
35
- **Storage read**: target file + wiki forward/backlinks + `coding-conventions.md` + `specs/learnings.md` (dedup)
36
- **Storage write**: `.workflow/knowhow/KNW-follow-{slug}-{date}.md` + append `specs/learnings.md`
35
+ **Storage read**: target file + wiki forward/backlinks + `coding-conventions.md` + `.workflow/specs/learnings.md` (dedup)
36
+ **Storage write**: `.workflow/knowhow/KNW-follow-{slug}-{date}.md` + append `.workflow/specs/learnings.md`
37
37
  </context>
38
38
 
39
39
  <state_machine>
@@ -66,7 +66,7 @@ S_EXTRACT:
66
66
  → S_PERSIST DO: A_EXTRACT_PATTERNS
67
67
 
68
68
  S_PERSIST:
69
- → END DO: write KNW-follow + append specs/learnings.md [+ wiki note if --save-wiki]
69
+ → END DO: write KNW-follow + append .workflow/specs/learnings.md [+ wiki note if --save-wiki]
70
70
 
71
71
  </transitions>
72
72