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,117 +1,147 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: quality-test
|
|
3
|
-
description: Use when implementation needs user acceptance testing with interactive verification and gap closure
|
|
4
|
-
argument-hint: "[phase] [--smoke] [--auto-fix]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<purpose>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
1
|
+
---
|
|
2
|
+
name: quality-test
|
|
3
|
+
description: Use when implementation needs user acceptance testing with interactive verification and gap closure
|
|
4
|
+
argument-hint: "[phase] [--smoke] [--auto-fix]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Agent
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<purpose>
|
|
16
|
+
UAT-style conversational testing for a completed phase. Interactive scenario walk-through with severity inference. Issues trigger parallel debug agents and optional gap-fix loop (--auto-fix).
|
|
17
|
+
</purpose>
|
|
18
|
+
|
|
19
|
+
<required_reading>
|
|
20
|
+
@~/.maestro/workflows/test.md
|
|
21
|
+
</required_reading>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
Phase or task: $ARGUMENTS (optional)
|
|
25
|
+
|
|
26
|
+
Flags, artifact context resolution, and output directory format defined in workflow test.md.
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<execution>
|
|
30
|
+
Follow '~/.maestro/workflows/test.md' completely.
|
|
31
|
+
|
|
32
|
+
### Phase Gates (MANDATORY, BLOCKING)
|
|
33
|
+
|
|
34
|
+
**GATE 1: Setup → Test Design**
|
|
35
|
+
- REQUIRED: Target resolved (phase or scratch task). E001 if missing.
|
|
36
|
+
- REQUIRED: Smoke tests pass (if --smoke). E003 if fail.
|
|
37
|
+
- BLOCKED if missing: cannot design tests without resolved target.
|
|
38
|
+
|
|
39
|
+
**GATE 2: Test Design → Execution**
|
|
40
|
+
- REQUIRED: test-plan.json generated with categorized tests mapped to requirements.
|
|
41
|
+
- REQUIRED: uat.md created or resumed.
|
|
42
|
+
- BLOCKED if plan missing: do not start interactive testing without plan.
|
|
43
|
+
|
|
44
|
+
**GATE 3: Execution → Completion**
|
|
45
|
+
- REQUIRED: All tests presented and responses processed.
|
|
46
|
+
- REQUIRED: UAT confidence scored with 4-dimension factor model.
|
|
47
|
+
- REQUIRED: Pressure pass completed if > 80% pass rate.
|
|
48
|
+
- BLOCKED if incomplete: finish all scenarios before reporting.
|
|
49
|
+
|
|
50
|
+
**Command-specific extensions (not in workflow):**
|
|
51
|
+
|
|
52
|
+
**Knowledge context loading** (before test design):
|
|
53
|
+
- Wiki search: `maestro search "<phase/feature keywords>" --json` → prior test strategies, recipes, decisions
|
|
54
|
+
- Role knowledge: `maestro search --category test` → select relevant → `maestro wiki load <id>`
|
|
55
|
+
- Specs + tools: `maestro spec load --category test` → test conventions + discoverable knowhow tools
|
|
56
|
+
|
|
57
|
+
**Test tool discovery** (knowhow tools as scenario source):
|
|
58
|
+
- Load registered test tools: `maestro spec load --category test --keyword <feature>`
|
|
59
|
+
- If tools found, extract their steps as additional test scenarios marked `source: "tool"`
|
|
60
|
+
- Each numbered step in a tool becomes a UAT test with its assertion as `expected` behavior
|
|
61
|
+
|
|
62
|
+
**Review findings integration** (from related review artifacts):
|
|
63
|
+
- Extract critical/high findings as additional test scenarios, marked `source: "review_finding"`
|
|
64
|
+
- When review verdict is "BLOCK" and review-finding tests fail, auto-enter gap-fix loop
|
|
65
|
+
|
|
66
|
+
**Debug root cause integration** (from related debug artifacts):
|
|
67
|
+
- Generate regression test scenarios from confirmed root causes, marked `source: "debug_root_cause"`
|
|
68
|
+
|
|
69
|
+
**Register artifact on completion:**
|
|
70
|
+
```
|
|
71
|
+
Append to state.json.artifacts[]:
|
|
72
|
+
{
|
|
73
|
+
id: nextArtifactId(artifacts, "test"), // TST-001
|
|
74
|
+
type: "test",
|
|
75
|
+
milestone: current_milestone,
|
|
76
|
+
phase: target_phase,
|
|
77
|
+
scope: "phase",
|
|
78
|
+
path: "scratch/{YYYYMMDD}-test-P{N}-{slug}",
|
|
79
|
+
status: issues == 0 ? "completed" : "failed",
|
|
80
|
+
depends_on: exec_art.id,
|
|
81
|
+
harvested: false,
|
|
82
|
+
created_at: start_time,
|
|
83
|
+
completed_at: now()
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
</execution>
|
|
88
|
+
|
|
89
|
+
<completion>
|
|
90
|
+
### Standalone report
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
--- COMPLETION STATUS ---
|
|
94
|
+
STATUS: DONE|DONE_WITH_CONCERNS|NEEDS_RETRY
|
|
95
|
+
CONCERNS: {description if applicable}
|
|
96
|
+
--- END STATUS ---
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Ralph-invoked completion
|
|
100
|
+
|
|
101
|
+
End the step by calling the CLI (no text block output):
|
|
102
|
+
```
|
|
103
|
+
maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Next-step routing
|
|
107
|
+
|
|
108
|
+
| Condition | Suggestion |
|
|
109
|
+
|-----------|-----------|
|
|
110
|
+
| All tests pass | `/maestro-milestone-audit` |
|
|
111
|
+
| --auto-fix succeeded | `/maestro-execute {phase}` |
|
|
112
|
+
| --auto-fix gaps remain | `/quality-debug --from-uat {phase}` |
|
|
113
|
+
| Manual fix needed | `/quality-debug --from-uat {phase}` |
|
|
114
|
+
| Coverage below threshold | `/quality-auto-test {phase}` |
|
|
115
|
+
</completion>
|
|
116
|
+
|
|
117
|
+
<error_codes>
|
|
118
|
+
| Code | Severity | Condition | Recovery |
|
|
119
|
+
|------|----------|-----------|----------|
|
|
120
|
+
| E001 | error | Phase or task target required (no active sessions) | Prompt user for phase number |
|
|
121
|
+
| E002 | error | Phase not verified yet (no verification.json) | Suggest `/maestro-execute` first (verification is built-in) |
|
|
122
|
+
| E003 | error | Smoke test failed (app won't start) | Suggest `/quality-debug` |
|
|
123
|
+
| W001 | warning | One or more test scenarios failed | Auto-diagnose, suggest fix options |
|
|
124
|
+
| W002 | warning | Coverage below threshold | Suggest `/quality-auto-test` |
|
|
125
|
+
</error_codes>
|
|
126
|
+
|
|
127
|
+
<success_criteria>
|
|
128
|
+
- [ ] Target resolved (phase or scratch task)
|
|
129
|
+
- [ ] Active sessions checked, resume offered if applicable
|
|
130
|
+
- [ ] Smoke tests run if --smoke flag set
|
|
131
|
+
- [ ] test-plan.json generated with categorized tests mapped to requirements
|
|
132
|
+
- [ ] uat.md created/resumed with all tests
|
|
133
|
+
- [ ] Tests presented one at a time with expected behavior
|
|
134
|
+
- [ ] User responses processed as pass/issue/skip
|
|
135
|
+
- [ ] Severity inferred from natural language (never asked)
|
|
136
|
+
- [ ] Batched writes: on issue, every 5 passes, or completion
|
|
137
|
+
- [ ] test-results.json and coverage-report.json written
|
|
138
|
+
- [ ] UAT confidence scored with 4-dimension factor model
|
|
139
|
+
- [ ] Readiness gate checked before final report
|
|
140
|
+
- [ ] Pressure pass completed if > 80% pass rate
|
|
141
|
+
- [ ] Confidence summary appended to uat.md
|
|
142
|
+
- [ ] index.json uat fields updated
|
|
143
|
+
- [ ] If issues: parallel debug agents spawned per gap cluster
|
|
144
|
+
- [ ] Gaps updated with root_cause, fix_direction, affected_files
|
|
145
|
+
- [ ] Gap-fix loop triggered if --auto-fix (max 2 iterations)
|
|
146
|
+
- [ ] Next step routed (phase-transition if pass, verify if auto-fix success, debug --from-uat if issues, test-gen if low coverage)
|
|
147
|
+
</success_criteria>
|
|
@@ -1,70 +1,77 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: spec-add
|
|
3
|
-
description: Add spec entry by category with role tagging
|
|
4
|
-
argument-hint: "[--scope project|global|team|personal] <category> <content>"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
---
|
|
12
|
-
<purpose>
|
|
13
|
-
Add
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
#
|
|
36
|
-
/spec-add coding "
|
|
37
|
-
|
|
38
|
-
#
|
|
39
|
-
/spec-add coding "
|
|
40
|
-
|
|
41
|
-
#
|
|
42
|
-
/spec-add
|
|
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
|
-
|
|
1
|
+
---
|
|
2
|
+
name: spec-add
|
|
3
|
+
description: Add spec entry by category with role tagging
|
|
4
|
+
argument-hint: "[--scope project|global|team|personal] <category> <content>"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
---
|
|
12
|
+
<purpose>
|
|
13
|
+
Add `<spec-entry>` to specs by category. 4 scopes: project (default), global, team, personal.
|
|
14
|
+
</purpose>
|
|
15
|
+
|
|
16
|
+
<required_reading>
|
|
17
|
+
@~/.maestro/workflows/specs-add.md
|
|
18
|
+
</required_reading>
|
|
19
|
+
|
|
20
|
+
<context>
|
|
21
|
+
$ARGUMENTS -- expects `[--scope <scope>] [--uid <uid>] <category> <content>`
|
|
22
|
+
|
|
23
|
+
**Options:**
|
|
24
|
+
- `--description <desc>` — One-line description for search results (falls back to content[:240])
|
|
25
|
+
- `--ref <path>` — Create as index entry referencing a knowhow document. If the path exists, only creates the spec index entry. If path doesn't exist, also creates the knowhow file.
|
|
26
|
+
- `--knowhow-type <type>` — Knowhow document type when creating with --ref (asset, blueprint, document, template, recipe, reference, decision)
|
|
27
|
+
|
|
28
|
+
Scope-to-directory mapping, category-to-file mapping, and entry format defined in workflow specs-add.md.
|
|
29
|
+
|
|
30
|
+
**Examples:**
|
|
31
|
+
```bash
|
|
32
|
+
# English content → English keywords
|
|
33
|
+
/spec-add coding "Named exports" "Always use named exports" --keywords "exports,naming"
|
|
34
|
+
|
|
35
|
+
# With description for search results
|
|
36
|
+
/spec-add coding "OAuth PKCE Flow" "完整 PKCE 集成流程" --keywords "oauth,pkce" --description "OAuth 2.0 PKCE 认证流程规范"
|
|
37
|
+
|
|
38
|
+
# Chinese content → Chinese keywords
|
|
39
|
+
/spec-add coding "命名导出规范" "始终使用命名导出" --keywords "导出,命名,模块"
|
|
40
|
+
|
|
41
|
+
# Ref mode
|
|
42
|
+
/spec-add arch "OAuth PKCE 集成" "完整流程设计" --ref knowhow/AST-oauth-flow.md
|
|
43
|
+
```
|
|
44
|
+
</context>
|
|
45
|
+
|
|
46
|
+
<execution>
|
|
47
|
+
Follow '~/.maestro/workflows/specs-add.md' completely.
|
|
48
|
+
</execution>
|
|
49
|
+
|
|
50
|
+
<error_codes>
|
|
51
|
+
| Code | Severity | Description | Stage |
|
|
52
|
+
|------|----------|-------------|-------|
|
|
53
|
+
| E001 | fatal | Category and content are both required | parse_input |
|
|
54
|
+
| E002 | fatal | Specs directory not initialized -- run `maestro spec init --scope <scope>` | validate_entry |
|
|
55
|
+
| E003 | fatal | Invalid category -- must be one of: coding, arch, quality, debug, test, review, learning, tools, ui | parse_input |
|
|
56
|
+
| E004 | fatal | Invalid scope -- must be one of: project, global, team, personal | parse_input |
|
|
57
|
+
| E005 | fatal | Personal scope requires uid -- use `--uid` or run `maestro collab join` first | parse_input |
|
|
58
|
+
</error_codes>
|
|
59
|
+
|
|
60
|
+
<success_criteria>
|
|
61
|
+
- [ ] Scope and category parsed and validated
|
|
62
|
+
- [ ] Keywords auto-extracted from content (3-5 relevant terms)
|
|
63
|
+
- [ ] Entry written in `<spec-entry>` closed-tag format
|
|
64
|
+
- [ ] Entry appended to correct target file for scope
|
|
65
|
+
- [ ] Confirmation report displayed with scope, path, keywords
|
|
66
|
+
- [ ] Next step routed
|
|
67
|
+
</success_criteria>
|
|
68
|
+
|
|
69
|
+
<completion>
|
|
70
|
+
### Next-step routing
|
|
71
|
+
|
|
72
|
+
| Condition | Suggestion |
|
|
73
|
+
|-----------|-----------|
|
|
74
|
+
| Verify entry added | `maestro spec load --scope <scope> --keyword {keyword}` |
|
|
75
|
+
| Add more entries | `/spec-add <category>` |
|
|
76
|
+
| View all specs | `/spec-load --category <category>` |
|
|
77
|
+
</completion>
|
|
@@ -1,52 +1,49 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: spec-setup
|
|
3
|
-
description: Initialize specs from project structure
|
|
4
|
-
argument-hint: ""
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
---
|
|
12
|
-
<purpose>
|
|
13
|
-
Initialize
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
|
37
|
-
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- [ ] `.workflow/
|
|
47
|
-
- [ ]
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
- [ ] Report displayed grouped by destination (specs / recipes / skipped / deferred), with `.proposed.md` files surfaced when an existing recipe slug was preserved.
|
|
51
|
-
</success_criteria>
|
|
52
|
-
</output>
|
|
1
|
+
---
|
|
2
|
+
name: spec-setup
|
|
3
|
+
description: Initialize specs from project structure
|
|
4
|
+
argument-hint: ""
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
---
|
|
12
|
+
<purpose>
|
|
13
|
+
Initialize `.workflow/specs/` by scanning codebase for conventions. Core files always created; optional files created when signals detected. Also generates recipe knowhow for detected workflows.
|
|
14
|
+
</purpose>
|
|
15
|
+
|
|
16
|
+
<required_reading>
|
|
17
|
+
@~/.maestro/workflows/specs-setup.md
|
|
18
|
+
</required_reading>
|
|
19
|
+
|
|
20
|
+
<context>
|
|
21
|
+
$ARGUMENTS (no arguments expected)
|
|
22
|
+
|
|
23
|
+
**Preconditions:**
|
|
24
|
+
- `.workflow/` directory must exist (created by `/maestro-init`) # (see code: E001)
|
|
25
|
+
- Project must contain source files to scan # (see code: E002)
|
|
26
|
+
</context>
|
|
27
|
+
|
|
28
|
+
<execution>
|
|
29
|
+
Follow '~/.maestro/workflows/specs-setup.md' completely.
|
|
30
|
+
</execution>
|
|
31
|
+
|
|
32
|
+
<error_codes>
|
|
33
|
+
| Code | Severity | Description | Stage |
|
|
34
|
+
|------|----------|-------------|-------|
|
|
35
|
+
| E001 | fatal | `.workflow/` directory not initialized -- run `/maestro-init` first | parse_input |
|
|
36
|
+
| E002 | fatal | No source files found in project -- nothing to scan | scan_codebase |
|
|
37
|
+
| W001 | warning | Convention detection uncertain for one or more categories -- marked `[UNCERTAIN]` | generate_specs |
|
|
38
|
+
| W002 | warning | Workflow recipe signals detected but commands ambiguous -- recipe skipped | generate_recipes |
|
|
39
|
+
| W003 | warning | Existing recipe slug found -- new content written as `.proposed.md` for manual diff | generate_recipes |
|
|
40
|
+
</error_codes>
|
|
41
|
+
|
|
42
|
+
<success_criteria>
|
|
43
|
+
- [ ] `.workflow/specs/` directory created
|
|
44
|
+
- [ ] Core spec files always created: `coding-conventions.md`, `architecture-constraints.md`, `learnings.md`
|
|
45
|
+
- [ ] Optional spec files created when detected: `quality-rules.md` (linter/CI), `test-conventions.md` (test framework), `ui-conventions.md` (frontend framework). `debug-notes.md` / `review-standards.md` deferred (on demand via `/spec-add`).
|
|
46
|
+
- [ ] Workflow recipe knowhow created in `.workflow/knowhow/` for each detected operational workflow (test / debug / build / dev / lint). Each recipe matches the `recipe` schema in `~/.maestro/workflows/knowhow.md` Part B and contains at least one runnable command.
|
|
47
|
+
- [ ] Report displayed grouped by destination (specs / recipes / skipped / deferred), with `.proposed.md` files surfaced when an existing recipe slug was preserved.
|
|
48
|
+
</success_criteria>
|
|
49
|
+
</output>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maestro-flow-one",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.35",
|
|
4
4
|
"description": "All Maestro workflow commands as a single Claude Code skill — intent routing, decision gates, minimal closed-loop chains",
|
|
5
5
|
"bin": {
|
|
6
6
|
"maestro-flow": "bin/maestro-flow.js"
|