maestro-flow 0.3.22 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/maestro-analyze.md +1 -1
- package/.claude/commands/maestro-brainstorm.md +1 -1
- package/.claude/commands/maestro-composer.md +3 -3
- package/.claude/commands/maestro-init.md +4 -4
- package/.claude/commands/maestro-roadmap.md +164 -108
- package/.claude/commands/maestro.md +19 -10
- package/.claude/commands/quality-business-test.md +2 -2
- package/.claude/skills/team-quality-assurance/roles/scout/role.md +1 -1
- package/.claude/skills/team-review/roles/reviewer/role.md +1 -1
- package/.claude/skills/team-review/roles/scanner/role.md +1 -1
- package/.claude/skills/team-tech-debt/roles/scanner/role.md +3 -3
- package/.codex/skills/maestro/SKILL.md +12 -9
- package/.codex/skills/maestro-brainstorm/SKILL.md +1 -1
- package/.codex/skills/maestro-composer/SKILL.md +3 -3
- package/.codex/skills/maestro-init/SKILL.md +1 -1
- package/.codex/skills/maestro-link-coordinate/SKILL.md +1 -1
- package/.codex/skills/maestro-player/SKILL.md +2 -2
- package/.codex/skills/maestro-roadmap/SKILL.md +443 -332
- package/.codex/skills/quality-business-test/SKILL.md +2 -2
- package/.codex/skills/team-coordinate/roles/coordinator/role.md +1 -1
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +1 -1
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +1 -1
- package/.codex/skills/team-review/roles/reviewer/role.md +1 -1
- package/.codex/skills/team-review/roles/scanner/role.md +1 -1
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +3 -3
- package/chains/singles/spec-generate.json +3 -3
- package/chains/spec-driven.json +2 -2
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +4 -0
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +2 -2
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/install-utils.d.ts +5 -12
- package/dashboard/dist-server/dashboard/src/server/routes/install-utils.js +10 -65
- package/dashboard/dist-server/dashboard/src/server/routes/install-utils.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/install.js +17 -11
- package/dashboard/dist-server/dashboard/src/server/routes/install.js.map +1 -1
- package/dashboard/dist-server/src/agents/cli-agent-runner.d.ts +4 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.js +4 -2
- package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
- package/dashboard/dist-server/src/commands/delegate.d.ts +2 -0
- package/dashboard/dist-server/src/commands/delegate.js +20 -4
- package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
- package/dashboard/dist-server/src/config/cli-tools-config.d.ts +64 -3
- package/dashboard/dist-server/src/config/cli-tools-config.js +226 -9
- package/dashboard/dist-server/src/config/cli-tools-config.js.map +1 -1
- package/dist/src/agents/cli-agent-runner.d.ts +4 -0
- package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.js +4 -2
- package/dist/src/agents/cli-agent-runner.js.map +1 -1
- package/dist/src/cli.js +2 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/cli.d.ts.map +1 -1
- package/dist/src/commands/cli.js +21 -4
- package/dist/src/commands/cli.js.map +1 -1
- package/dist/src/commands/delegate.d.ts +2 -0
- package/dist/src/commands/delegate.d.ts.map +1 -1
- package/dist/src/commands/delegate.js +20 -4
- package/dist/src/commands/delegate.js.map +1 -1
- package/dist/src/commands/install-backend.d.ts +5 -16
- package/dist/src/commands/install-backend.d.ts.map +1 -1
- package/dist/src/commands/install-backend.js +8 -104
- package/dist/src/commands/install-backend.js.map +1 -1
- package/dist/src/commands/install-ui/ExecutionView.js +1 -1
- package/dist/src/commands/install-ui/ExecutionView.js.map +1 -1
- package/dist/src/commands/install-ui/InstallExecution.d.ts +1 -0
- package/dist/src/commands/install-ui/InstallExecution.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallExecution.js +19 -4
- package/dist/src/commands/install-ui/InstallExecution.js.map +1 -1
- package/dist/src/commands/install-ui/InstallResult.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallResult.js +1 -1
- package/dist/src/commands/install-ui/InstallResult.js.map +1 -1
- package/dist/src/commands/install.d.ts.map +1 -1
- package/dist/src/commands/install.js +23 -3
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/tools-ui/CommandReference.d.ts +7 -0
- package/dist/src/commands/tools-ui/CommandReference.d.ts.map +1 -0
- package/dist/src/commands/tools-ui/CommandReference.js +33 -0
- package/dist/src/commands/tools-ui/CommandReference.js.map +1 -0
- package/dist/src/commands/tools-ui/ConfigSources.d.ts +6 -0
- package/dist/src/commands/tools-ui/ConfigSources.d.ts.map +1 -0
- package/dist/src/commands/tools-ui/ConfigSources.js +27 -0
- package/dist/src/commands/tools-ui/ConfigSources.js.map +1 -0
- package/dist/src/commands/tools-ui/RegisterSettings.d.ts +8 -0
- package/dist/src/commands/tools-ui/RegisterSettings.d.ts.map +1 -0
- package/dist/src/commands/tools-ui/RegisterSettings.js +125 -0
- package/dist/src/commands/tools-ui/RegisterSettings.js.map +1 -0
- package/dist/src/commands/tools-ui/RoleMappings.d.ts +9 -0
- package/dist/src/commands/tools-ui/RoleMappings.d.ts.map +1 -0
- package/dist/src/commands/tools-ui/RoleMappings.js +104 -0
- package/dist/src/commands/tools-ui/RoleMappings.js.map +1 -0
- package/dist/src/commands/tools-ui/ToolsDashboard.d.ts +8 -0
- package/dist/src/commands/tools-ui/ToolsDashboard.d.ts.map +1 -0
- package/dist/src/commands/tools-ui/ToolsDashboard.js +60 -0
- package/dist/src/commands/tools-ui/ToolsDashboard.js.map +1 -0
- package/dist/src/commands/tools-ui/ToolsOverview.d.ts +9 -0
- package/dist/src/commands/tools-ui/ToolsOverview.d.ts.map +1 -0
- package/dist/src/commands/tools-ui/ToolsOverview.js +84 -0
- package/dist/src/commands/tools-ui/ToolsOverview.js.map +1 -0
- package/dist/src/commands/tools.d.ts +3 -0
- package/dist/src/commands/tools.d.ts.map +1 -0
- package/dist/src/commands/tools.js +78 -0
- package/dist/src/commands/tools.js.map +1 -0
- package/dist/src/config/cli-tools-config.d.ts +64 -3
- package/dist/src/config/cli-tools-config.d.ts.map +1 -1
- package/dist/src/config/cli-tools-config.js +226 -9
- package/dist/src/config/cli-tools-config.js.map +1 -1
- package/dist/src/core/component-defs.d.ts +16 -0
- package/dist/src/core/component-defs.d.ts.map +1 -0
- package/dist/src/core/component-defs.js +142 -0
- package/dist/src/core/component-defs.js.map +1 -0
- package/dist/src/core/manifest.d.ts +8 -1
- package/dist/src/core/manifest.d.ts.map +1 -1
- package/dist/src/core/manifest.js +29 -40
- package/dist/src/core/manifest.js.map +1 -1
- package/dist/src/core/tag-injector.d.ts +72 -0
- package/dist/src/core/tag-injector.d.ts.map +1 -0
- package/dist/src/core/tag-injector.js +228 -0
- package/dist/src/core/tag-injector.js.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
- package/templates/cli/prompts/workflow-skill-conflict-patterns.txt +1 -1
- package/templates/cli/prompts/workflow-skill-lessons-learned.txt +1 -1
- package/templates/search-tools.md +1 -1
- package/templates/workflows/specs/node-catalog.md +1 -1
- package/workflows/brainstorm.md +1 -1
- package/{.claude/CLAUDE.md → workflows/claude-instructions.md} +25 -26
- package/workflows/cli-tools-usage.md +16 -2
- package/workflows/codex-instructions.md +150 -0
- package/workflows/delegate-usage.md +16 -2
- package/workflows/execute.md +28 -14
- package/workflows/init.md +2 -2
- package/workflows/issue-discover.md +2 -2
- package/workflows/maestro-super.md +120 -0
- package/workflows/maestro.codex.md +4 -4
- package/workflows/maestro.md +5 -5
- package/workflows/roadmap-common.md +197 -0
- package/workflows/roadmap.md +190 -355
- package/workflows/spec-generate.md +457 -544
- package/.claude/commands/maestro-spec-generate.md +0 -78
- package/.codex/skills/maestro-spec-generate/SKILL.md +0 -355
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# Workflow: Roadmap Common
|
|
2
|
+
|
|
3
|
+
Shared logic for roadmap generation — used by both light mode (roadmap.md) and full mode (spec-generate.md).
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Worktree Guard
|
|
8
|
+
|
|
9
|
+
Block if `.workflow/worktree-scope.json` exists — must run from main worktree.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Load Project Context
|
|
14
|
+
|
|
15
|
+
### Load Specs
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
specs_content = maestro spec load --category arch
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Ensure phases respect architectural constraints.
|
|
22
|
+
|
|
23
|
+
### Load Project History (if `.workflow/` exists)
|
|
24
|
+
|
|
25
|
+
Read project artifacts to understand what has already been built:
|
|
26
|
+
|
|
27
|
+
- `project.md` → already_shipped (Validated), current_scope (Active), project_history (Context), locked_decisions (Key Decisions)
|
|
28
|
+
- `state.json.accumulated_context` → deferred[] (candidate reqs), key_decisions[] (constraints), blockers[] (risks)
|
|
29
|
+
- `.workflow/codebase/` → feature inventory from codebase docs
|
|
30
|
+
|
|
31
|
+
**Context assembly** — pass downstream as `project_context`:
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"already_shipped": ["REQ-001: User auth", "REQ-002: API layer"],
|
|
35
|
+
"current_scope": ["REQ-003: Payments", "REQ-004: i18n"],
|
|
36
|
+
"deferred_from_previous": ["Internationalization deferred from v1.0"],
|
|
37
|
+
"locked_decisions": ["JWT stateless auth", "PostgreSQL"],
|
|
38
|
+
"learnings": ["JWT has perf issues at scale — consider caching"],
|
|
39
|
+
"project_history": "Milestone v1.0 completed 2026-03-15: auth + API layer shipped"
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Rules**:
|
|
44
|
+
- NEVER re-plan features listed in `already_shipped` — they are done
|
|
45
|
+
- `deferred_from_previous` items are HIGH PRIORITY candidates for new phases
|
|
46
|
+
- `locked_decisions` constrain technology choices in decomposition
|
|
47
|
+
- `learnings` inform risk assessment and phase sizing
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Codebase Exploration (conditional)
|
|
52
|
+
|
|
53
|
+
- Detect if project has source files
|
|
54
|
+
- If yes: spawn `cli-explore-agent` for context discovery
|
|
55
|
+
- If `project_context.already_shipped` exists: include as "feature audit" directive — agent should verify which shipped features are present in code and identify integration points for new work
|
|
56
|
+
- Output: relevant files, patterns, tech stack, feature_audit
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## External Research — API & Technology Details (Optional)
|
|
61
|
+
|
|
62
|
+
Spawn `workflow-external-researcher` agent when requirement mentions specific technologies, APIs, or external services.
|
|
63
|
+
|
|
64
|
+
**Trigger**: Technology keywords detected in requirement or codebase exploration found external dependencies. Auto-trigger in auto mode (`-y`). Skip if requirement is purely organizational/conceptual.
|
|
65
|
+
|
|
66
|
+
Extract named technologies/APIs/frameworks/protocols from requirement + codebase exploration.
|
|
67
|
+
|
|
68
|
+
If topics found → spawn `workflow-external-researcher` agent for API research:
|
|
69
|
+
- Per technology: stable version, core API surface, auth model, integration patterns, limitations, effort signals
|
|
70
|
+
- Focus on details affecting phase decomposition and dependency ordering
|
|
71
|
+
- Output → `apiResearchContext` (in-memory)
|
|
72
|
+
|
|
73
|
+
If no topics or research fails → `apiResearchContext = null`, continue.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Minimum-Phase Principle (MANDATORY)
|
|
78
|
+
|
|
79
|
+
**Core rule: Phase = synchronization barrier.** Each Phase triggers a full plan→execute→verify→transition serial cycle. More phases = slower delivery. The wave DAG inside each Phase already handles task ordering and parallelism, so only create a new Phase when tasks **cannot** start until a previous Phase's entire output exists.
|
|
80
|
+
|
|
81
|
+
**Default: 1 Phase.** Put everything into a single Phase unless a hard dependency forces a split.
|
|
82
|
+
|
|
83
|
+
| Rule | Constraint |
|
|
84
|
+
|------|-----------|
|
|
85
|
+
| **Default** | **1 Phase**. All work in one plan→execute cycle; wave DAG handles internal ordering. |
|
|
86
|
+
| **Maximum** | **2 Phases**. Only when a hard dependency boundary exists that cannot be resolved. |
|
|
87
|
+
| **Exceptional** | **3 Phases**. Must explicitly justify why 2 is insufficient. |
|
|
88
|
+
| **Minimum tasks per phase** | 5 tasks/stories. If a phase would have fewer, merge it into an adjacent phase. |
|
|
89
|
+
| **Merge principle** | Same-module, same-concern, or tightly-coupled work belongs in ONE phase. Infra + core logic + API in one phase is fine. Multiple Epics → one phase is normal. |
|
|
90
|
+
| **Split principle** | Only split when ALL three hard-dependency conditions are met (see below). |
|
|
91
|
+
|
|
92
|
+
**Hard dependency — all three conditions required to justify a Phase split:**
|
|
93
|
+
1. **Runtime dependency**: Phase B code at runtime MUST call Phase A's real output (cannot mock/stub).
|
|
94
|
+
2. **Not parallelizable**: A and B cannot develop concurrently via contract/interface/type agreement.
|
|
95
|
+
3. **Full barrier**: ALL of Phase A's tasks must complete before ANY of Phase B's tasks can start.
|
|
96
|
+
|
|
97
|
+
If only 1-2 conditions are met → keep in the same Phase, use wave dependencies instead.
|
|
98
|
+
|
|
99
|
+
**Phase sizing checklist (applied after decomposition, before presenting to user):**
|
|
100
|
+
1. Count total phases. If > 2 → justify each split against the 3 hard-dependency conditions, merge if unjustified.
|
|
101
|
+
2. Count estimated tasks per phase. Any phase < 5 tasks → merge into neighbor.
|
|
102
|
+
3. Verify each phase has a meaningful deliverable boundary (not just "setup" or "cleanup").
|
|
103
|
+
|
|
104
|
+
**Scope escalation:**
|
|
105
|
+
- **Single project** (any size): 1-2 Phases. Use wave DAG for internal parallelism.
|
|
106
|
+
- **Large scope** (monorepo with 2+ independently deployable services): Use **Milestones** to divide scope. Each Milestone follows the 1-2 Phase limit independently.
|
|
107
|
+
|
|
108
|
+
**Progressive mode**:
|
|
109
|
+
- Progressive layers (MVP → Usable → Refined) map to **Milestones**, not Phases.
|
|
110
|
+
- Each Milestone contains 1-2 Phases following the minimum-phase principle.
|
|
111
|
+
- MVP must be self-contained (no external dependencies)
|
|
112
|
+
- Each feature in exactly ONE milestone (no overlap)
|
|
113
|
+
|
|
114
|
+
**Direct mode**:
|
|
115
|
+
- Topologically-sorted task sequence
|
|
116
|
+
- Each task: title, type, scope, inputs, outputs, convergence, depends_on
|
|
117
|
+
- parallel_group for truly independent tasks
|
|
118
|
+
|
|
119
|
+
**Phase format** (both modes):
|
|
120
|
+
```markdown
|
|
121
|
+
### Phase {N}: {Title}
|
|
122
|
+
- **Goal**: <what this phase achieves>
|
|
123
|
+
- **Depends on**: <prerequisite phases or "Nothing">
|
|
124
|
+
- **Requirements**: <REQ-IDs mapped from project.md Active requirements>
|
|
125
|
+
- **Success Criteria** (what must be TRUE):
|
|
126
|
+
1. <observable behavior from user perspective>
|
|
127
|
+
2. <observable behavior from user perspective>
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Phase numbering: integers (1, 2, 3) for planned work, decimals (2.1, 2.2) for inserted phases.
|
|
131
|
+
Decimal phases count toward the total phase limit.
|
|
132
|
+
Phase directories use `{NN}-{slug}` format (e.g., `01-auth`, `02-api`).
|
|
133
|
+
|
|
134
|
+
**Requirements traceability**: Every Active requirement from project.md MUST appear in exactly one phase's Requirements field. If a requirement maps to no phase, surface it as a gap.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Roadmap Write Logic
|
|
139
|
+
|
|
140
|
+
### Roadmap Template
|
|
141
|
+
|
|
142
|
+
Write `roadmap.md` to `.workflow/roadmap.md` using `@templates/roadmap.md`:
|
|
143
|
+
|
|
144
|
+
```markdown
|
|
145
|
+
# Roadmap: {project_name}
|
|
146
|
+
|
|
147
|
+
## Overview
|
|
148
|
+
<one paragraph describing the journey>
|
|
149
|
+
|
|
150
|
+
## Phases
|
|
151
|
+
- [ ] **Phase 1: {Title}** - {one-line description}
|
|
152
|
+
|
|
153
|
+
## Phase Details
|
|
154
|
+
|
|
155
|
+
### Phase 1: {Title}
|
|
156
|
+
**Goal**: {what this phase delivers}
|
|
157
|
+
**Depends on**: Nothing (first phase)
|
|
158
|
+
**Requirements**: {REQ-IDs}
|
|
159
|
+
**Success Criteria** (what must be TRUE):
|
|
160
|
+
1. {observable behavior from user perspective}
|
|
161
|
+
2. {observable behavior from user perspective}
|
|
162
|
+
|
|
163
|
+
## Scope Decisions
|
|
164
|
+
- **In scope**: <included>
|
|
165
|
+
- **Deferred**: <later milestones>
|
|
166
|
+
- **Out of scope**: <excluded>
|
|
167
|
+
|
|
168
|
+
## Progress
|
|
169
|
+
| Phase | Status | Completed |
|
|
170
|
+
|-------|--------|-----------|
|
|
171
|
+
| 1. {Title} | Not started | - |
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**Requirements traceability**: Cross-check that every Active requirement from project.md maps to exactly one phase. Surface unmapped requirements as gaps.
|
|
175
|
+
|
|
176
|
+
### Overwrite vs Edit Rules (MANDATORY)
|
|
177
|
+
|
|
178
|
+
Before writing `.workflow/roadmap.md`, check existing state:
|
|
179
|
+
|
|
180
|
+
| Scenario | Action |
|
|
181
|
+
|----------|--------|
|
|
182
|
+
| `roadmap.md` does not exist | Create (write) |
|
|
183
|
+
| `roadmap.md` exists, no completed phases in Progress table | Overwrite (with `-y` auto-confirm, otherwise ask user) |
|
|
184
|
+
| `roadmap.md` exists, has completed phases | **Refuse overwrite** → instruct user to use `--revise` mode |
|
|
185
|
+
|
|
186
|
+
### state.json Update Rules
|
|
187
|
+
|
|
188
|
+
After writing roadmap.md, update state.json consistently regardless of mode:
|
|
189
|
+
|
|
190
|
+
| Scenario | Action |
|
|
191
|
+
|----------|--------|
|
|
192
|
+
| `state.json` exists | Update `milestones` array and `current_milestone` field from roadmap phases (partial update, not overwrite) |
|
|
193
|
+
| `state.json` does not exist | Do not create (leave to maestro-init) |
|
|
194
|
+
|
|
195
|
+
### Scratch Directory
|
|
196
|
+
|
|
197
|
+
Ensure scratch directory exists: `mkdir -p .workflow/scratch/`
|