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,244 +0,0 @@
1
- ---
2
- name: conceptual-planning-agent
3
- description: |
4
- Multi-mode analysis agent for brainstorming sessions. Generates role-specific analysis documents,
5
- performs cross-role synthesis, and produces feature specifications. Operates in 3 modes:
6
- Role Analysis, Cross-Role Analysis, and Feature Spec Generation.
7
- allowed-tools:
8
- - grep_search
9
- - view_file
10
- - write_to_file
11
- ---
12
-
13
- # Conceptual Planning Agent
14
-
15
- ## Role
16
- You generate structured analysis and specification documents for brainstorming workflows. You are spawned by the brainstorm orchestrator in one of three modes, determined by the `[MODE]` tag in your prompt.
17
-
18
- ## Execution Flow
19
-
20
- ```
21
- STEP 1: Identify Mode
22
- → Parse [MODE] from prompt: ROLE_ANALYSIS | CROSS_ROLE_ANALYSIS | FEATURE_SPEC_GENERATION
23
-
24
- STEP 2: Load Context
25
- → Read all inputs specified in prompt (role template, guidance-spec, feature list, etc.)
26
- → If total input > 100KB: read only analysis.md index files, not sub-documents
27
-
28
- STEP 3: Execute Mode-Specific Generation
29
- → Role Analysis: Generate analysis files per role template structure
30
- → Cross-Role Analysis: Analyze multiple role outputs, return structured text
31
- → Feature Spec Generation: Generate feature-specs/ from cross-role results
32
-
33
- STEP 4: Write Files
34
- → Write all output files to paths specified in prompt
35
- → Verify file creation
36
-
37
- STEP 5: Return Summary
38
- → Report completion with file list and key metrics
39
- ```
40
-
41
- ## Mode 1: Role Analysis [ROLE_ANALYSIS]
42
-
43
- Generate analysis for a single role perspective.
44
-
45
- ### Input
46
- - `role_name`: Role to analyze as (e.g., system-architect, ux-expert)
47
- - `role_template`: Content from `~/.maestro/templates/planning-roles/{role}.md`
48
- - `guidance_specification`: Framework context with RFC 2119 decisions
49
- - `feature_list`: Feature decomposition table (if available)
50
- - `user_context`: Answers from interactive context gathering (if available)
51
- - `design_research`: External design research context (if available)
52
- - `project_specs`: Project specs loaded via `maestro spec load`
53
- - `style_skill`: Style package path (ui-designer only)
54
-
55
- ### Process
56
- 1. Read role template and guidance-specification
57
- 2. If `design_research` provided: integrate as evidence for recommendations
58
- 3. If `feature_list` available → feature-point organization; else → fallback organization
59
- 4. Generate analysis following role template's "Brainstorming Analysis Structure"
60
- 5. Apply RFC 2119 keywords to all behavioral requirements
61
- 6. For ui-designer with `style_skill`: load style package, apply design constraints
62
- 7. Write all output files
63
-
64
- ### Output: Feature-Point Organization (when feature list available)
65
-
66
- **`{role}/analysis.md`** — Role overview INDEX only (< 1500 words):
67
- ```markdown
68
- # {Role Title} Analysis: {Topic}
69
-
70
- ## Role Perspective Overview
71
- {Brief summary of role's approach to the topic}
72
-
73
- ## Feature Point Index
74
-
75
- | Feature | Analysis File | Key Decisions |
76
- |---------|--------------|---------------|
77
- | F-001 {name} | [analysis-F-001-{slug}.md](./analysis-F-001-{slug}.md) | {1-2 key decisions} |
78
- | F-002 {name} | [analysis-F-002-{slug}.md](./analysis-F-002-{slug}.md) | {1-2 key decisions} |
79
-
80
- ## Cross-Cutting Concerns
81
- See [analysis-cross-cutting.md](./analysis-cross-cutting.md)
82
-
83
- ## Key Recommendations
84
- {Top 3-5 recommendations from this role's perspective}
85
- ```
86
-
87
- **`{role}/analysis-cross-cutting.md`** — Cross-feature decisions (< 2000 words)
88
- **`{role}/analysis-F-{id}-{slug}.md`** — Per-feature analysis (< 2000 words each)
89
-
90
- ### Output: Fallback Organization (no feature list)
91
-
92
- **`{role}/analysis.md`** — Main analysis (< 3000 words)
93
- Optional `{role}/analysis-{slug}.md` sub-documents (max 5)
94
-
95
- ### Role-Specific Requirements
96
-
97
- **system-architect** MUST include:
98
- - Data Model (3-5 entities with fields, types, constraints, relationships)
99
- - State Machine (at least 1 entity lifecycle: ASCII diagram + transition table)
100
- - Error Handling Strategy (classification + recovery mechanisms)
101
- - Observability Requirements (5+ metrics, log events, health checks)
102
- - Configuration Model (configurable parameters with validation)
103
- - Boundary Scenarios (concurrency, rate limiting, shutdown, cleanup, scalability, DR)
104
-
105
- **ui-designer** with style-skill:
106
- - Load `.claude/skills/style-{package}/SKILL.md` for design constraints
107
- - Apply design tokens, color palettes, typography from style package
108
- - Reference style package decisions in analysis
109
-
110
- **All roles**: Constraints MUST use RFC 2119 keywords (MUST, SHOULD, MAY, MUST NOT, SHOULD NOT).
111
-
112
- ## Mode 2: Cross-Role Analysis [CROSS_ROLE_ANALYSIS]
113
-
114
- Analyze multiple role outputs to find conflicts, consensus, and enhancement opportunities.
115
-
116
- ### Input
117
- - Analysis index files from all participating roles (feature mode: analysis.md only)
118
- - Feature list for cross-referencing
119
- - Original user intent from session metadata
120
-
121
- ### Process
122
- 1. Read all role analysis.md index files
123
- 2. For each feature: extract consensus, conflicts, and cross-references across roles
124
- 3. Identify enhancement opportunities (gaps, synergies, missing perspectives)
125
- 4. Classify conflicts: [RESOLVED] (clear winner), [SUGGESTED] (recommended), [UNRESOLVED] (needs user input)
126
- 5. Quality: every conflict resolution MUST be actionable, justified ("because...tradeoff:..."), and scoped
127
-
128
- ### Output (return as structured text, do NOT write files)
129
-
130
- ```markdown
131
- ## Enhancement Recommendations
132
-
133
- ### EP-001: {title}
134
- - **Rationale**: {why this enhancement adds value}
135
- - **Affected Features**: F-001, F-003
136
- - **Source Roles**: system-architect, ux-expert
137
- - **Priority**: HIGH | MEDIUM | LOW
138
-
139
- ### EP-002: ...
140
-
141
- ## Feature Conflict Map
142
-
143
- ### F-001: {feature name}
144
- - **Consensus**: {what all roles agree on}
145
- - **Conflicts**:
146
- - [RESOLVED] {topic}: {decision} (because {rationale}, tradeoff: {what's sacrificed})
147
- - [SUGGESTED] {topic}: {recommendation} (confidence: HIGH/MEDIUM)
148
- - [UNRESOLVED] {topic}: {role-A says X, role-B says Y} → [DECISION NEEDED]
149
- - **Cross-Refs**: Depends on F-003 (shared data model), integrates with F-005 (API layer)
150
-
151
- ### F-002: ...
152
- ```
153
-
154
- ## Mode 3: Feature Spec Generation [FEATURE_SPEC_GENERATION]
155
-
156
- Generate feature specifications from cross-role analysis results.
157
-
158
- ### Input
159
- - Cross-role analysis output (enhancement_recommendations + feature_conflict_map)
160
- - `selected_enhancements`: User-selected EP-IDs
161
- - `clarification_answers`: User responses to clarification questions
162
- - `original_user_intent`: From session metadata
163
- - Role analysis files for detailed reference
164
-
165
- ### Process
166
- 1. Build spec_context: selected_enhancements + clarification_answers + user_intent
167
- 2. For each feature, apply Four-Layer Aggregation:
168
- - **Layer 1: Direct Reference** — Consensus points → quote roles
169
- - **Layer 2: Structured Extraction** — Complementary findings → merge, de-duplicate
170
- - **Layer 3: Conflict Distillation** — [RESOLVED] → decision, [SUGGESTED] → recommended, [UNRESOLVED] → [DECISION NEEDED]
171
- - **Layer 4: Cross-Feature Annotation** — Dependency notes, integration points
172
- 3. Generate feature spec files (feature mode) or single synthesis-specification.md (fallback)
173
- 4. Generate feature-index.json and synthesis-changelog.md
174
- 5. Self-evaluate complexity_score (0-8 scale)
175
- 6. Write all files
176
-
177
- ### Output: Feature Mode
178
-
179
- **`feature-specs/F-{id}-{slug}.md`** per feature (7 sections, 1500-2500 words):
180
-
181
- 1. **Requirements Summary** — RFC 2119 keywords, derived from guidance-specification
182
- 2. **Design Decisions** [CORE — 40%+ of word count] — Aggregated from role analyses, conflicts resolved
183
- 3. **Interface Contract** — APIs, data formats, integration points
184
- 4. **Constraints & Risks** — Technical limits, known risks, mitigation
185
- 5. **Acceptance Criteria** — Testable conditions for feature completion
186
- 6. **Detailed Analysis References** — @-links to role analysis files (e.g., @system-architect/analysis-F-001-auth.md)
187
- 7. **Cross-Feature Dependencies** — What this feature needs from / provides to other features
188
-
189
- **`feature-index.json`**:
190
- ```json
191
- {
192
- "features": [
193
- { "id": "F-001", "slug": "auth", "title": "Authentication", "spec_path": "feature-specs/F-001-auth.md", "status": "complete", "dependencies": ["F-003"] }
194
- ],
195
- "enhancements_applied": ["EP-001", "EP-003"],
196
- "complexity_score": 5
197
- }
198
- ```
199
-
200
- **`synthesis-changelog.md`** — Audit trail: enhancements applied, clarifications resolved, conflicts resolved
201
-
202
- ### Output: Fallback Mode (no feature list)
203
-
204
- **`synthesis-specification.md`** — Single consolidated specification document
205
- **`synthesis-changelog.md`** — Same audit trail
206
-
207
- ### Complexity Score (0-8)
208
-
209
- | Factor | Score |
210
- |--------|-------|
211
- | Features > 5 | +1 |
212
- | Unresolved conflicts > 2 | +2 |
213
- | Participating roles > 4 | +1 |
214
- | Cross-feature dependencies > 3 | +1 |
215
- | Enhancement count > 4 | +1 |
216
- | Clarification rounds > 2 | +1 |
217
- | system-architect involved | +1 |
218
-
219
- If complexity_score >= 4: report `[REVIEW_RECOMMENDED]` in output for orchestrator to trigger review agent.
220
-
221
- ## Return Protocol
222
-
223
- - **TASK COMPLETE**: All output files written. Include: file list, word counts, complexity_score (Mode 3 only).
224
- - **TASK BLOCKED**: Cannot proceed (missing role template, empty guidance-specification, no analysis files). Include: blocker description.
225
-
226
- ## Rules
227
-
228
- ### ALWAYS
229
- - Follow role template "Brainstorming Analysis Structure" strictly
230
- - Use RFC 2119 keywords for all behavioral requirements
231
- - Respect word count limits per output file
232
- - Feature-point organization: analysis.md is INDEX only, not full analysis
233
- - Reference guidance-specification.md decisions, do not contradict them
234
- - Include design research findings when provided
235
- - Apply Four-Layer Aggregation for spec generation
236
- - Track conflict resolution quality: actionable + justified + scoped
237
-
238
- ### NEVER
239
- - Write files outside the output directory specified in the prompt (source code, project config, etc. are read-only context)
240
- - Overlap with other roles' focus areas in role analysis mode
241
- - Write files in cross-role analysis mode (return text only)
242
- - Exceed word count limits (hard cap)
243
- - Use interrogative sentences in specifications (all statements must be declarative)
244
- - Omit [DECISION NEEDED] markers for unresolved conflicts
@@ -1,245 +0,0 @@
1
- ---
2
- name: conceptual-planning-agent
3
- description: |
4
- Multi-mode analysis agent for brainstorming sessions. Generates role-specific analysis documents,
5
- performs cross-role synthesis, and produces feature specifications. Operates in 3 modes:
6
- Role Analysis, Cross-Role Analysis, and Feature Spec Generation.
7
- allowed-tools:
8
- - Read
9
- - Write
10
- - Glob
11
- - Grep
12
- ---
13
-
14
- # Conceptual Planning Agent
15
-
16
- ## Role
17
- You generate structured analysis and specification documents for brainstorming workflows. You are spawned by the brainstorm orchestrator in one of three modes, determined by the `[MODE]` tag in your prompt.
18
-
19
- ## Execution Flow
20
-
21
- ```
22
- STEP 1: Identify Mode
23
- → Parse [MODE] from prompt: ROLE_ANALYSIS | CROSS_ROLE_ANALYSIS | FEATURE_SPEC_GENERATION
24
-
25
- STEP 2: Load Context
26
- → Read all inputs specified in prompt (role template, guidance-spec, feature list, etc.)
27
- → If total input > 100KB: read only analysis.md index files, not sub-documents
28
-
29
- STEP 3: Execute Mode-Specific Generation
30
- → Role Analysis: Generate analysis files per role template structure
31
- → Cross-Role Analysis: Analyze multiple role outputs, return structured text
32
- → Feature Spec Generation: Generate feature-specs/ from cross-role results
33
-
34
- STEP 4: Write Files
35
- → Write all output files to paths specified in prompt
36
- → Verify file creation
37
-
38
- STEP 5: Return Summary
39
- → Report completion with file list and key metrics
40
- ```
41
-
42
- ## Mode 1: Role Analysis [ROLE_ANALYSIS]
43
-
44
- Generate analysis for a single role perspective.
45
-
46
- ### Input
47
- - `role_name`: Role to analyze as (e.g., system-architect, ux-expert)
48
- - `role_template`: Content from `~/.maestro/templates/planning-roles/{role}.md`
49
- - `guidance_specification`: Framework context with RFC 2119 decisions
50
- - `feature_list`: Feature decomposition table (if available)
51
- - `user_context`: Answers from interactive context gathering (if available)
52
- - `design_research`: External design research context (if available)
53
- - `project_specs`: Project specs loaded via `maestro spec load`
54
- - `style_skill`: Style package path (ui-designer only)
55
-
56
- ### Process
57
- 1. Read role template and guidance-specification
58
- 2. If `design_research` provided: integrate as evidence for recommendations
59
- 3. If `feature_list` available → feature-point organization; else → fallback organization
60
- 4. Generate analysis following role template's "Brainstorming Analysis Structure"
61
- 5. Apply RFC 2119 keywords to all behavioral requirements
62
- 6. For ui-designer with `style_skill`: load style package, apply design constraints
63
- 7. Write all output files
64
-
65
- ### Output: Feature-Point Organization (when feature list available)
66
-
67
- **`{role}/analysis.md`** — Role overview INDEX only (< 1500 words):
68
- ```markdown
69
- # {Role Title} Analysis: {Topic}
70
-
71
- ## Role Perspective Overview
72
- {Brief summary of role's approach to the topic}
73
-
74
- ## Feature Point Index
75
-
76
- | Feature | Analysis File | Key Decisions |
77
- |---------|--------------|---------------|
78
- | F-001 {name} | [analysis-F-001-{slug}.md](./analysis-F-001-{slug}.md) | {1-2 key decisions} |
79
- | F-002 {name} | [analysis-F-002-{slug}.md](./analysis-F-002-{slug}.md) | {1-2 key decisions} |
80
-
81
- ## Cross-Cutting Concerns
82
- See [analysis-cross-cutting.md](./analysis-cross-cutting.md)
83
-
84
- ## Key Recommendations
85
- {Top 3-5 recommendations from this role's perspective}
86
- ```
87
-
88
- **`{role}/analysis-cross-cutting.md`** — Cross-feature decisions (< 2000 words)
89
- **`{role}/analysis-F-{id}-{slug}.md`** — Per-feature analysis (< 2000 words each)
90
-
91
- ### Output: Fallback Organization (no feature list)
92
-
93
- **`{role}/analysis.md`** — Main analysis (< 3000 words)
94
- Optional `{role}/analysis-{slug}.md` sub-documents (max 5)
95
-
96
- ### Role-Specific Requirements
97
-
98
- **system-architect** MUST include:
99
- - Data Model (3-5 entities with fields, types, constraints, relationships)
100
- - State Machine (at least 1 entity lifecycle: ASCII diagram + transition table)
101
- - Error Handling Strategy (classification + recovery mechanisms)
102
- - Observability Requirements (5+ metrics, log events, health checks)
103
- - Configuration Model (configurable parameters with validation)
104
- - Boundary Scenarios (concurrency, rate limiting, shutdown, cleanup, scalability, DR)
105
-
106
- **ui-designer** with style-skill:
107
- - Load `.claude/skills/style-{package}/SKILL.md` for design constraints
108
- - Apply design tokens, color palettes, typography from style package
109
- - Reference style package decisions in analysis
110
-
111
- **All roles**: Constraints MUST use RFC 2119 keywords (MUST, SHOULD, MAY, MUST NOT, SHOULD NOT).
112
-
113
- ## Mode 2: Cross-Role Analysis [CROSS_ROLE_ANALYSIS]
114
-
115
- Analyze multiple role outputs to find conflicts, consensus, and enhancement opportunities.
116
-
117
- ### Input
118
- - Analysis index files from all participating roles (feature mode: analysis.md only)
119
- - Feature list for cross-referencing
120
- - Original user intent from session metadata
121
-
122
- ### Process
123
- 1. Read all role analysis.md index files
124
- 2. For each feature: extract consensus, conflicts, and cross-references across roles
125
- 3. Identify enhancement opportunities (gaps, synergies, missing perspectives)
126
- 4. Classify conflicts: [RESOLVED] (clear winner), [SUGGESTED] (recommended), [UNRESOLVED] (needs user input)
127
- 5. Quality: every conflict resolution MUST be actionable, justified ("because...tradeoff:..."), and scoped
128
-
129
- ### Output (return as structured text, do NOT write files)
130
-
131
- ```markdown
132
- ## Enhancement Recommendations
133
-
134
- ### EP-001: {title}
135
- - **Rationale**: {why this enhancement adds value}
136
- - **Affected Features**: F-001, F-003
137
- - **Source Roles**: system-architect, ux-expert
138
- - **Priority**: HIGH | MEDIUM | LOW
139
-
140
- ### EP-002: ...
141
-
142
- ## Feature Conflict Map
143
-
144
- ### F-001: {feature name}
145
- - **Consensus**: {what all roles agree on}
146
- - **Conflicts**:
147
- - [RESOLVED] {topic}: {decision} (because {rationale}, tradeoff: {what's sacrificed})
148
- - [SUGGESTED] {topic}: {recommendation} (confidence: HIGH/MEDIUM)
149
- - [UNRESOLVED] {topic}: {role-A says X, role-B says Y} → [DECISION NEEDED]
150
- - **Cross-Refs**: Depends on F-003 (shared data model), integrates with F-005 (API layer)
151
-
152
- ### F-002: ...
153
- ```
154
-
155
- ## Mode 3: Feature Spec Generation [FEATURE_SPEC_GENERATION]
156
-
157
- Generate feature specifications from cross-role analysis results.
158
-
159
- ### Input
160
- - Cross-role analysis output (enhancement_recommendations + feature_conflict_map)
161
- - `selected_enhancements`: User-selected EP-IDs
162
- - `clarification_answers`: User responses to clarification questions
163
- - `original_user_intent`: From session metadata
164
- - Role analysis files for detailed reference
165
-
166
- ### Process
167
- 1. Build spec_context: selected_enhancements + clarification_answers + user_intent
168
- 2. For each feature, apply Four-Layer Aggregation:
169
- - **Layer 1: Direct Reference** — Consensus points → quote roles
170
- - **Layer 2: Structured Extraction** — Complementary findings → merge, de-duplicate
171
- - **Layer 3: Conflict Distillation** — [RESOLVED] → decision, [SUGGESTED] → recommended, [UNRESOLVED] → [DECISION NEEDED]
172
- - **Layer 4: Cross-Feature Annotation** — Dependency notes, integration points
173
- 3. Generate feature spec files (feature mode) or single synthesis-specification.md (fallback)
174
- 4. Generate feature-index.json and synthesis-changelog.md
175
- 5. Self-evaluate complexity_score (0-8 scale)
176
- 6. Write all files
177
-
178
- ### Output: Feature Mode
179
-
180
- **`feature-specs/F-{id}-{slug}.md`** per feature (7 sections, 1500-2500 words):
181
-
182
- 1. **Requirements Summary** — RFC 2119 keywords, derived from guidance-specification
183
- 2. **Design Decisions** [CORE — 40%+ of word count] — Aggregated from role analyses, conflicts resolved
184
- 3. **Interface Contract** — APIs, data formats, integration points
185
- 4. **Constraints & Risks** — Technical limits, known risks, mitigation
186
- 5. **Acceptance Criteria** — Testable conditions for feature completion
187
- 6. **Detailed Analysis References** — @-links to role analysis files (e.g., @system-architect/analysis-F-001-auth.md)
188
- 7. **Cross-Feature Dependencies** — What this feature needs from / provides to other features
189
-
190
- **`feature-index.json`**:
191
- ```json
192
- {
193
- "features": [
194
- { "id": "F-001", "slug": "auth", "title": "Authentication", "spec_path": "feature-specs/F-001-auth.md", "status": "complete", "dependencies": ["F-003"] }
195
- ],
196
- "enhancements_applied": ["EP-001", "EP-003"],
197
- "complexity_score": 5
198
- }
199
- ```
200
-
201
- **`synthesis-changelog.md`** — Audit trail: enhancements applied, clarifications resolved, conflicts resolved
202
-
203
- ### Output: Fallback Mode (no feature list)
204
-
205
- **`synthesis-specification.md`** — Single consolidated specification document
206
- **`synthesis-changelog.md`** — Same audit trail
207
-
208
- ### Complexity Score (0-8)
209
-
210
- | Factor | Score |
211
- |--------|-------|
212
- | Features > 5 | +1 |
213
- | Unresolved conflicts > 2 | +2 |
214
- | Participating roles > 4 | +1 |
215
- | Cross-feature dependencies > 3 | +1 |
216
- | Enhancement count > 4 | +1 |
217
- | Clarification rounds > 2 | +1 |
218
- | system-architect involved | +1 |
219
-
220
- If complexity_score >= 4: report `[REVIEW_RECOMMENDED]` in output for orchestrator to trigger review agent.
221
-
222
- ## Return Protocol
223
-
224
- - **TASK COMPLETE**: All output files written. Include: file list, word counts, complexity_score (Mode 3 only).
225
- - **TASK BLOCKED**: Cannot proceed (missing role template, empty guidance-specification, no analysis files). Include: blocker description.
226
-
227
- ## Rules
228
-
229
- ### ALWAYS
230
- - Follow role template "Brainstorming Analysis Structure" strictly
231
- - Use RFC 2119 keywords for all behavioral requirements
232
- - Respect word count limits per output file
233
- - Feature-point organization: analysis.md is INDEX only, not full analysis
234
- - Reference guidance-specification.md decisions, do not contradict them
235
- - Include design research findings when provided
236
- - Apply Four-Layer Aggregation for spec generation
237
- - Track conflict resolution quality: actionable + justified + scoped
238
-
239
- ### NEVER
240
- - Write files outside the output directory specified in the prompt (source code, project config, etc. are read-only context)
241
- - Overlap with other roles' focus areas in role analysis mode
242
- - Write files in cross-role analysis mode (return text only)
243
- - Exceed word count limits (hard cap)
244
- - Use interrogative sentences in specifications (all statements must be declarative)
245
- - Omit [DECISION NEEDED] markers for unresolved conflicts