maestro-flow-one 0.2.33 → 0.2.35
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/maestro-flow/commands/learn/investigate.md +151 -152
- package/maestro-flow/commands/learn/second-opinion.md +118 -122
- package/maestro-flow/commands/lifecycle/analyze.md +215 -266
- package/maestro-flow/commands/lifecycle/blueprint.md +189 -204
- package/maestro-flow/commands/lifecycle/brainstorm.md +209 -213
- package/maestro-flow/commands/lifecycle/companion.md +531 -531
- package/maestro-flow/commands/lifecycle/composer.md +188 -179
- package/maestro-flow/commands/lifecycle/execute.md +183 -184
- package/maestro-flow/commands/lifecycle/fork.md +111 -110
- package/maestro-flow/commands/lifecycle/grill.md +175 -176
- package/maestro-flow/commands/lifecycle/guard.md +103 -102
- package/maestro-flow/commands/lifecycle/impeccable.md +311 -268
- package/maestro-flow/commands/lifecycle/init.md +130 -131
- package/maestro-flow/commands/lifecycle/merge.md +87 -80
- package/maestro-flow/commands/lifecycle/next.md +253 -257
- package/maestro-flow/commands/lifecycle/overlay.md +188 -178
- package/maestro-flow/commands/lifecycle/plan.md +225 -211
- package/maestro-flow/commands/lifecycle/quick.md +83 -77
- package/maestro-flow/commands/lifecycle/roadmap.md +173 -186
- package/maestro-flow/commands/lifecycle/swarm-workflow.md +243 -264
- package/maestro-flow/commands/lifecycle/tools-execute.md +122 -117
- package/maestro-flow/commands/lifecycle/tools-register.md +162 -157
- package/maestro-flow/commands/lifecycle/ui-codify.md +117 -100
- package/maestro-flow/commands/lifecycle/universal-workflow.md +548 -561
- package/maestro-flow/commands/lifecycle/update.md +122 -119
- package/maestro-flow/commands/manage/codebase-rebuild.md +87 -85
- package/maestro-flow/commands/manage/harvest.md +97 -95
- package/maestro-flow/commands/manage/issue-discover.md +83 -81
- package/maestro-flow/commands/manage/issue.md +72 -73
- package/maestro-flow/commands/manage/kg-extractors.md +128 -0
- package/maestro-flow/commands/manage/knowhow-capture.md +92 -82
- package/maestro-flow/commands/manage/knowhow.md +83 -79
- package/maestro-flow/commands/manage/knowledge-audit.md +105 -88
- package/maestro-flow/commands/manage/status.md +62 -52
- package/maestro-flow/commands/manage/wiki.md +82 -71
- package/maestro-flow/commands/milestone/audit.md +4 -10
- package/maestro-flow/commands/milestone/complete.md +6 -7
- package/maestro-flow/commands/milestone/release.md +136 -145
- package/maestro-flow/commands/quality/auto-test.md +153 -136
- package/maestro-flow/commands/quality/debug.md +159 -120
- package/maestro-flow/commands/quality/refactor.md +105 -67
- package/maestro-flow/commands/quality/retrospective.md +123 -77
- package/maestro-flow/commands/quality/review.md +155 -128
- package/maestro-flow/commands/quality/sync.md +88 -52
- package/maestro-flow/commands/quality/test.md +147 -117
- package/maestro-flow/commands/spec/add.md +77 -70
- package/maestro-flow/commands/spec/setup.md +49 -52
- package/package.json +1 -1
|
@@ -1,67 +1,105 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: quality-refactor
|
|
3
|
-
description: Use when accumulated tech debt needs systematic identification and safe reduction
|
|
4
|
-
argument-hint: "[<scope>]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<purpose>
|
|
16
|
-
|
|
17
|
-
</purpose>
|
|
18
|
-
|
|
19
|
-
<required_reading>
|
|
20
|
-
@~/.maestro/workflows/refactor.md
|
|
21
|
-
</required_reading>
|
|
22
|
-
|
|
23
|
-
<context>
|
|
24
|
-
Scope: $ARGUMENTS (required)
|
|
25
|
-
- Module path: "src/auth" - specific directory
|
|
26
|
-
- Feature area: "authentication" - conceptual scope
|
|
27
|
-
- "all" - full codebase scan
|
|
28
|
-
|
|
29
|
-
If not provided, prompt user for scope.
|
|
30
|
-
|
|
31
|
-
### Pre-load context (before refactoring)
|
|
32
|
-
|
|
33
|
-
1. **Coding specs**: Run `maestro spec load --category coding` to load coding conventions. Apply conventions to all refactored code.
|
|
34
|
-
2. **Review specs**: Run `maestro spec load --category review` to load review standards. Use as quality gate for refactored code.
|
|
35
|
-
3. **Role Knowledge**:
|
|
36
|
-
- Browse: `maestro search --category coding`
|
|
37
|
-
- Identify task-relevant entries, then load: `maestro wiki load <id1> [id2...]`
|
|
38
|
-
4. All are optional — proceed without if unavailable.
|
|
39
|
-
</context>
|
|
40
|
-
|
|
41
|
-
<execution>
|
|
42
|
-
Follow '~/.maestro/workflows/refactor.md' completely.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
---
|
|
2
|
+
name: quality-refactor
|
|
3
|
+
description: Use when accumulated tech debt needs systematic identification and safe reduction
|
|
4
|
+
argument-hint: "[<scope>]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Agent
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<purpose>
|
|
16
|
+
Targeted refactoring with safety guarantees: plan → confirm → execute with test verification per change → reflection-log.md.
|
|
17
|
+
</purpose>
|
|
18
|
+
|
|
19
|
+
<required_reading>
|
|
20
|
+
@~/.maestro/workflows/refactor.md
|
|
21
|
+
</required_reading>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
Scope: $ARGUMENTS (required)
|
|
25
|
+
- Module path: "src/auth" - specific directory
|
|
26
|
+
- Feature area: "authentication" - conceptual scope
|
|
27
|
+
- "all" - full codebase scan
|
|
28
|
+
|
|
29
|
+
If not provided, prompt user for scope.
|
|
30
|
+
|
|
31
|
+
### Pre-load context (before refactoring)
|
|
32
|
+
|
|
33
|
+
1. **Coding specs**: Run `maestro spec load --category coding` to load coding conventions. Apply conventions to all refactored code.
|
|
34
|
+
2. **Review specs**: Run `maestro spec load --category review` to load review standards. Use as quality gate for refactored code.
|
|
35
|
+
3. **Role Knowledge**:
|
|
36
|
+
- Browse: `maestro search --category coding`
|
|
37
|
+
- Identify task-relevant entries, then load: `maestro wiki load <id1> [id2...]`
|
|
38
|
+
4. All are optional — proceed without if unavailable.
|
|
39
|
+
</context>
|
|
40
|
+
|
|
41
|
+
<execution>
|
|
42
|
+
Follow '~/.maestro/workflows/refactor.md' completely.
|
|
43
|
+
|
|
44
|
+
### Phase Gates (MANDATORY, BLOCKING)
|
|
45
|
+
|
|
46
|
+
**GATE 1: Analysis → Plan**
|
|
47
|
+
- REQUIRED: Affected files and dependencies identified.
|
|
48
|
+
- REQUIRED: Refactoring plan created with specific changes.
|
|
49
|
+
- BLOCKED if missing: cannot refactor without identified targets.
|
|
50
|
+
|
|
51
|
+
**GATE 2: Plan → Execution**
|
|
52
|
+
- REQUIRED: User confirmed refactoring plan.
|
|
53
|
+
- BLOCKED if not confirmed: do not apply changes without approval.
|
|
54
|
+
|
|
55
|
+
**GATE 3: Execution → Completion**
|
|
56
|
+
- REQUIRED: All changes applied with test verification per modification.
|
|
57
|
+
- REQUIRED: Zero regressions (all tests pass).
|
|
58
|
+
- REQUIRED: reflection-log.md written with strategy and outcomes.
|
|
59
|
+
- BLOCKED if tests fail: fix regressions before completing.
|
|
60
|
+
|
|
61
|
+
**Knowledge inquiry on completion:**
|
|
62
|
+
After successful refactoring, ask user once: "Record refactoring pattern as coding convention?" If yes → `Skill("spec-add", "coding \"<title>\" \"<pattern>\" --keywords <kw1>,<kw2> --description \"<summary>\"")`.
|
|
63
|
+
</execution>
|
|
64
|
+
|
|
65
|
+
<completion>
|
|
66
|
+
### Standalone report
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
--- COMPLETION STATUS ---
|
|
70
|
+
STATUS: DONE|DONE_WITH_CONCERNS|NEEDS_RETRY
|
|
71
|
+
CONCERNS: {description if applicable}
|
|
72
|
+
--- END STATUS ---
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Ralph-invoked completion
|
|
76
|
+
|
|
77
|
+
End the step by calling the CLI (no text block output):
|
|
78
|
+
```
|
|
79
|
+
maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Next-step routing
|
|
83
|
+
|
|
84
|
+
| Condition | Suggestion |
|
|
85
|
+
|-----------|-----------|
|
|
86
|
+
| All tests pass | `/quality-sync` (update codebase docs) |
|
|
87
|
+
| Test failures after refactor | `/quality-debug "test failures after refactor in {scope}"` |
|
|
88
|
+
| No test suite available | `/quality-auto-test {phase}` |
|
|
89
|
+
</completion>
|
|
90
|
+
|
|
91
|
+
<error_codes>
|
|
92
|
+
| Code | Severity | Condition | Recovery |
|
|
93
|
+
|------|----------|-----------|----------|
|
|
94
|
+
| E001 | error | Refactoring scope/description required | Prompt user for module path, feature area, or "all" |
|
|
95
|
+
| E002 | error | Test suite not available for affected area | Suggest creating tests first, or proceed with manual verification |
|
|
96
|
+
| W001 | warning | Partial test coverage for affected area | Note uncovered areas, proceed with extra caution |
|
|
97
|
+
</error_codes>
|
|
98
|
+
|
|
99
|
+
<success_criteria>
|
|
100
|
+
- [ ] Refactoring plan created and confirmed by user
|
|
101
|
+
- [ ] Changes implemented according to plan
|
|
102
|
+
- [ ] All tests pass after refactoring
|
|
103
|
+
- [ ] No regressions introduced
|
|
104
|
+
- [ ] reflection-log.md written with strategy and outcomes
|
|
105
|
+
</success_criteria>
|
|
@@ -1,77 +1,123 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: quality-retrospective
|
|
3
|
-
description: Use after completing a phase to extract lessons, patterns, and improvement opportunities
|
|
4
|
-
argument-hint: "[phase|N..M] [--lens technical|process|quality|decision] [--all] [--no-route] [--compare N] [-y]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<purpose>
|
|
16
|
-
Post-execution
|
|
17
|
-
</purpose>
|
|
18
|
-
|
|
19
|
-
<required_reading>
|
|
20
|
-
@~/.maestro/workflows/retrospective.md
|
|
21
|
-
</required_reading>
|
|
22
|
-
|
|
23
|
-
<deferred_reading>
|
|
24
|
-
- @~/.maestro/workflows/issue.md (issues.jsonl schema for auto-creation)
|
|
25
|
-
- @~/.maestro/workflows/learn.md (tip routing via manage-knowhow-capture tip)
|
|
26
|
-
- @~/.maestro/workflows/verify.md (verification.json schema for quality lens parsing)
|
|
27
|
-
- @~/.maestro/workflows/review.md (review.json schema for quality lens parsing)
|
|
28
|
-
</deferred_reading>
|
|
29
|
-
|
|
30
|
-
<context>
|
|
31
|
-
Arguments: $ARGUMENTS
|
|
32
|
-
|
|
33
|
-
Modes (scan/single/range/all), flags (--lens, --no-route, --compare, -y), and storage paths defined in workflow retrospective.md Argument Shape and Stages 1-7.
|
|
34
|
-
</context>
|
|
35
|
-
|
|
36
|
-
<execution>
|
|
37
|
-
Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
---
|
|
2
|
+
name: quality-retrospective
|
|
3
|
+
description: Use after completing a phase to extract lessons, patterns, and improvement opportunities
|
|
4
|
+
argument-hint: "[phase|N..M] [--lens technical|process|quality|decision] [--all] [--no-route] [--compare N] [-y]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Agent
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<purpose>
|
|
16
|
+
Post-execution retrospective (复盘): four parallel lenses (technical/process/quality/decision) → distill insights → route to spec/knowhow/issue stores.
|
|
17
|
+
</purpose>
|
|
18
|
+
|
|
19
|
+
<required_reading>
|
|
20
|
+
@~/.maestro/workflows/retrospective.md
|
|
21
|
+
</required_reading>
|
|
22
|
+
|
|
23
|
+
<deferred_reading>
|
|
24
|
+
- @~/.maestro/workflows/issue.md (issues.jsonl schema for auto-creation)
|
|
25
|
+
- @~/.maestro/workflows/learn.md (tip routing via manage-knowhow-capture tip)
|
|
26
|
+
- @~/.maestro/workflows/verify.md (verification.json schema for quality lens parsing)
|
|
27
|
+
- @~/.maestro/workflows/review.md (review.json schema for quality lens parsing)
|
|
28
|
+
</deferred_reading>
|
|
29
|
+
|
|
30
|
+
<context>
|
|
31
|
+
Arguments: $ARGUMENTS
|
|
32
|
+
|
|
33
|
+
Modes (scan/single/range/all), flags (--lens, --no-route, --compare, -y), and storage paths defined in workflow retrospective.md Argument Shape and Stages 1-7.
|
|
34
|
+
</context>
|
|
35
|
+
|
|
36
|
+
<execution>
|
|
37
|
+
Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order.
|
|
38
|
+
|
|
39
|
+
### Phase Gates (MANDATORY, BLOCKING)
|
|
40
|
+
|
|
41
|
+
**GATE 1: Input → Lens Analysis** (Stages 1-3 → Stage 4)
|
|
42
|
+
- REQUIRED: Mode resolved (scan/single/range/all) and phases validated.
|
|
43
|
+
- REQUIRED: At least one phase selected with status=completed and existing artifacts.
|
|
44
|
+
- REQUIRED: Read-only — no file writes in Stages 1-3.
|
|
45
|
+
- BLOCKED if no valid phases: E004/E005.
|
|
46
|
+
|
|
47
|
+
**GATE 2: Lens Analysis → Routing** (Stages 4-5 → Stage 6)
|
|
48
|
+
- REQUIRED: All requested lens agents returned valid JSON (or W001 logged for partial).
|
|
49
|
+
- REQUIRED: Insights distilled with stable `INS-{8hex}` IDs.
|
|
50
|
+
- REQUIRED: Archive existing `retrospective.{md,json}` before overwrite.
|
|
51
|
+
- BLOCKED if all lens agents failed: cannot synthesize without results.
|
|
52
|
+
|
|
53
|
+
**GATE 3: Routing → Completion** (Stage 6 → Stages 7-8)
|
|
54
|
+
- REQUIRED: `retrospective.json` written with metrics, findings, insights, routing.
|
|
55
|
+
- REQUIRED: `retrospective.md` written (human-readable).
|
|
56
|
+
- REQUIRED: Issue rows match canonical `issues.jsonl` schema (status "open", full fields).
|
|
57
|
+
- REQUIRED: Note tips routed via `Skill({ skill: "manage-knowhow-capture", args: "tip ..." })`.
|
|
58
|
+
- BLOCKED if routing incomplete: finish all write operations before reporting.
|
|
59
|
+
|
|
60
|
+
### Execution Constraints
|
|
61
|
+
|
|
62
|
+
- **Parallel lens dispatch**: Stage 4 spawns one Agent per active lens in a single message.
|
|
63
|
+
- **Stable IDs**: `INS-{8 hex}` from `hash(phase_num + lens + title)` — re-runs do not duplicate.
|
|
64
|
+
- **No source modification**: Never modify verification.json, review.json, plan.json.
|
|
65
|
+
- **Backward-compat**: Append to `.workflow/specs/learnings.md` only if file already exists.
|
|
66
|
+
</execution>
|
|
67
|
+
|
|
68
|
+
<error_codes>
|
|
69
|
+
| Code | Severity | Description | Stage |
|
|
70
|
+
|------|----------|-------------|-------|
|
|
71
|
+
| E001 | error | `.workflow/` not initialized — run `/maestro-init` first | parse_input |
|
|
72
|
+
| E002 | error | Unknown `--lens` name (allowed: technical, process, quality, decision) | parse_input |
|
|
73
|
+
| E003 | error | `--compare` requires a single phase argument | parse_input |
|
|
74
|
+
| E004 | error | Phase has not executed yet — no `.task/` or `.summaries/` artifacts | load_artifacts |
|
|
75
|
+
| E005 | error | Phase argument out of range / phase directory not found | scan_unreviewed |
|
|
76
|
+
| W001 | warning | One or more lens agents failed — proceeding with partial coverage | multi_lens_analysis |
|
|
77
|
+
| W002 | warning | Existing retrospective.json found and not `--all` — prompted user to overwrite | scan_unreviewed |
|
|
78
|
+
| W003 | warning | `manage-knowhow-capture tip` did not return parseable INS id; fell back to direct write | route_outputs |
|
|
79
|
+
| W004 | warning | `--compare` target phase has no retrospective.json; delta omitted | load_artifacts |
|
|
80
|
+
</error_codes>
|
|
81
|
+
|
|
82
|
+
<success_criteria>
|
|
83
|
+
- [ ] Mode correctly resolved (scan / single / range / all)
|
|
84
|
+
- [ ] At least one phase selected and validated (status == "completed", artifacts exist)
|
|
85
|
+
- [ ] All requested lens agents returned valid JSON, or W001 logged for partial coverage
|
|
86
|
+
- [ ] `retrospective.json` written with metrics, findings_by_lens, distilled_insights, routing_recommendations
|
|
87
|
+
- [ ] `retrospective.md` written and human-readable (tweetable, metrics table, per-lens findings, insights, routing table)
|
|
88
|
+
- [ ] Each insight has a stable `INS-{8hex}` id
|
|
89
|
+
- [ ] If routing enabled (default): every recommendation either created an artifact or was explicitly skipped by user
|
|
90
|
+
- [ ] Spec entries (if any) appended as `<spec-entry>` to matching `.workflow/specs/{category-file}.md`
|
|
91
|
+
- [ ] Issue rows (if any) match canonical issues.jsonl schema (status "open", full issue_history, all required fields)
|
|
92
|
+
- [ ] Note tips (if any) created via `Skill({ skill: "manage-knowhow-capture", args: "tip ..." })`
|
|
93
|
+
- [ ] `.workflow/specs/learnings.md` appended with one `<spec-entry>` per insight regardless of routing target
|
|
94
|
+
- [ ] No existing phase artifacts modified (verification.json, review.json, plan.json untouched)
|
|
95
|
+
- [ ] Confirmation banner displays routing counts and next-step suggestions
|
|
96
|
+
</success_criteria>
|
|
97
|
+
|
|
98
|
+
<completion>
|
|
99
|
+
### Standalone report
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
--- COMPLETION STATUS ---
|
|
103
|
+
STATUS: DONE|DONE_WITH_CONCERNS
|
|
104
|
+
CONCERNS: {description if applicable}
|
|
105
|
+
--- END STATUS ---
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Ralph-invoked completion
|
|
109
|
+
|
|
110
|
+
End the step by calling the CLI (no text block output):
|
|
111
|
+
```
|
|
112
|
+
maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Next-step routing
|
|
116
|
+
|
|
117
|
+
| Condition | Suggestion |
|
|
118
|
+
|-----------|-----------|
|
|
119
|
+
| Insights routed | `/manage-status` |
|
|
120
|
+
| Issues created | `/manage-issue list --source retrospective` |
|
|
121
|
+
| Knowhow captured | `/manage-knowhow list` |
|
|
122
|
+
| More phases to review | `/quality-retrospective --all` |
|
|
123
|
+
</completion>
|