maestro-flow-one 0.2.34 → 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.
Files changed (54) hide show
  1. package/maestro-flow/commands/learn/investigate.md +151 -152
  2. package/maestro-flow/commands/learn/second-opinion.md +118 -122
  3. package/maestro-flow/commands/lifecycle/analyze.md +215 -266
  4. package/maestro-flow/commands/lifecycle/blueprint.md +189 -204
  5. package/maestro-flow/commands/lifecycle/brainstorm.md +209 -213
  6. package/maestro-flow/commands/lifecycle/companion.md +531 -531
  7. package/maestro-flow/commands/lifecycle/composer.md +188 -179
  8. package/maestro-flow/commands/lifecycle/execute.md +183 -184
  9. package/maestro-flow/commands/lifecycle/fork.md +111 -110
  10. package/maestro-flow/commands/lifecycle/grill.md +175 -176
  11. package/maestro-flow/commands/lifecycle/guard.md +103 -102
  12. package/maestro-flow/commands/lifecycle/impeccable.md +311 -268
  13. package/maestro-flow/commands/lifecycle/init.md +130 -131
  14. package/maestro-flow/commands/lifecycle/merge.md +87 -80
  15. package/maestro-flow/commands/lifecycle/next.md +253 -257
  16. package/maestro-flow/commands/lifecycle/overlay.md +188 -178
  17. package/maestro-flow/commands/lifecycle/plan.md +225 -211
  18. package/maestro-flow/commands/lifecycle/quick.md +83 -77
  19. package/maestro-flow/commands/lifecycle/roadmap.md +173 -186
  20. package/maestro-flow/commands/lifecycle/swarm-workflow.md +243 -264
  21. package/maestro-flow/commands/lifecycle/tools-execute.md +122 -117
  22. package/maestro-flow/commands/lifecycle/tools-register.md +162 -157
  23. package/maestro-flow/commands/lifecycle/ui-codify.md +117 -100
  24. package/maestro-flow/commands/lifecycle/universal-workflow.md +548 -561
  25. package/maestro-flow/commands/lifecycle/update.md +122 -119
  26. package/maestro-flow/commands/manage/codebase-rebuild.md +87 -85
  27. package/maestro-flow/commands/manage/harvest.md +97 -95
  28. package/maestro-flow/commands/manage/issue-discover.md +83 -81
  29. package/maestro-flow/commands/manage/issue.md +72 -73
  30. package/maestro-flow/commands/manage/kg-extractors.md +128 -0
  31. package/maestro-flow/commands/manage/knowhow-capture.md +92 -82
  32. package/maestro-flow/commands/manage/knowhow.md +83 -79
  33. package/maestro-flow/commands/manage/knowledge-audit.md +105 -88
  34. package/maestro-flow/commands/manage/status.md +62 -52
  35. package/maestro-flow/commands/manage/wiki.md +82 -71
  36. package/maestro-flow/commands/milestone/audit.md +4 -10
  37. package/maestro-flow/commands/milestone/complete.md +6 -7
  38. package/maestro-flow/commands/milestone/release.md +136 -145
  39. package/maestro-flow/commands/quality/auto-test.md +153 -136
  40. package/maestro-flow/commands/quality/debug.md +159 -120
  41. package/maestro-flow/commands/quality/refactor.md +105 -67
  42. package/maestro-flow/commands/quality/retrospective.md +123 -77
  43. package/maestro-flow/commands/quality/review.md +155 -128
  44. package/maestro-flow/commands/quality/sync.md +88 -52
  45. package/maestro-flow/commands/quality/test.md +147 -117
  46. package/maestro-flow/commands/spec/add.md +77 -70
  47. package/maestro-flow/commands/spec/setup.md +49 -52
  48. package/package.json +1 -1
  49. package/maestro-flow/commands/lifecycle/odyssey-debug.md +0 -473
  50. package/maestro-flow/commands/lifecycle/odyssey-improve.md +0 -505
  51. package/maestro-flow/commands/lifecycle/odyssey-planex.md +0 -601
  52. package/maestro-flow/commands/lifecycle/odyssey-review-test-fix.md +0 -427
  53. package/maestro-flow/commands/lifecycle/odyssey-ui.md +0 -462
  54. package/maestro-flow/commands/lifecycle/security-audit.md +0 -179
@@ -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
- Run UAT-style conversational testing for a completed phase. Designs test scenarios from verification criteria, walks through each scenario interactively one at a time with plain text responses, and records pass/fail results with severity inference.
17
-
18
- When issues are found, spawns parallel debug agents (one per gap cluster) to diagnose root causes, then optionally triggers the gap-fix loop (plan --gaps -> execute -> re-verify) to auto-close gaps.
19
-
20
- Key mechanisms from GSD verify-work:
21
- - **Session persistence**: uat.md survives context resets, resume from any point
22
- - **Severity inference**: Natural language -> blocker/major/minor/cosmetic (never ask)
23
- - **Cold-start smoke tests**: --smoke flag injects basic sanity tests before UAT
24
- - **Parallel auto-diagnosis**: Spawn debug agents per gap cluster with pre-filled symptoms
25
- - **Gap-plan closure loop**: --auto-fix triggers verify -> plan --gaps -> execute -> re-verify
26
- </purpose>
27
-
28
- <required_reading>
29
- @~/.maestro/workflows/test.md
30
- </required_reading>
31
-
32
- <context>
33
- Phase or task: $ARGUMENTS (optional)
34
-
35
- Flags, artifact context resolution, and output directory format defined in workflow test.md.
36
- </context>
37
-
38
- <execution>
39
- Follow '~/.maestro/workflows/test.md' completely.
40
-
41
- **Command-specific extensions (not in workflow):**
42
-
43
- **Knowledge context loading** (before test design):
44
- - Wiki search: `maestro search "<phase/feature keywords>" --json` prior test strategies, recipes, decisions
45
- - Role knowledge: `maestro search --category test` select relevant → `maestro wiki load <id>`
46
- - Specs + tools: `maestro spec load --category test` test conventions + discoverable knowhow tools
47
-
48
- **Test tool discovery** (knowhow tools as scenario source):
49
- - Load registered test tools: `maestro spec load --category test --keyword <feature>`
50
- - If tools found, extract their steps as additional test scenarios marked `source: "tool"`
51
- - Each numbered step in a tool becomes a UAT test with its assertion as `expected` behavior
52
-
53
- **Review findings integration** (from related review artifacts):
54
- - Extract critical/high findings as additional test scenarios, marked `source: "review_finding"`
55
- - When review verdict is "BLOCK" and review-finding tests fail, auto-enter gap-fix loop
56
-
57
- **Debug root cause integration** (from related debug artifacts):
58
- - Generate regression test scenarios from confirmed root causes, marked `source: "debug_root_cause"`
59
-
60
- **Register artifact on completion:**
61
- ```
62
- Append to state.json.artifacts[]:
63
- {
64
- id: nextArtifactId(artifacts, "test"), // TST-001
65
- type: "test",
66
- milestone: current_milestone,
67
- phase: target_phase,
68
- scope: "phase",
69
- path: "scratch/{YYYYMMDD}-test-P{N}-{slug}",
70
- status: issues == 0 ? "completed" : "failed",
71
- depends_on: exec_art.id,
72
- harvested: false,
73
- created_at: start_time,
74
- completed_at: now()
75
- }
76
- ```
77
-
78
- **Next-step routing on completion:**
79
- - All tests pass `/maestro-milestone-audit`
80
- - Issues found, --auto-fix ran and succeeded → `/maestro-execute {phase}`
81
- - Issues found, --auto-fix ran but gaps remain → `/quality-debug --from-uat {phase}`
82
- - Issues found, manual fix needed → `/quality-debug --from-uat {phase}`
83
- - Coverage below threshold → `/quality-auto-test {phase}`
84
- - Need integration tests → `/quality-auto-test {phase}`
85
- </execution>
86
-
87
- <error_codes>
88
- | Code | Severity | Condition | Recovery |
89
- |------|----------|-----------|----------|
90
- | E001 | error | Phase or task target required (no active sessions) | Prompt user for phase number |
91
- | E002 | error | Phase not verified yet (no verification.json) | Suggest `/maestro-execute` first (verification is built-in) |
92
- | E003 | error | Smoke test failed (app won't start) | Suggest `/quality-debug` |
93
- | W001 | warning | One or more test scenarios failed | Auto-diagnose, suggest fix options |
94
- | W002 | warning | Coverage below threshold | Suggest `/quality-auto-test` |
95
- </error_codes>
96
-
97
- <success_criteria>
98
- - [ ] Target resolved (phase or scratch task)
99
- - [ ] Active sessions checked, resume offered if applicable
100
- - [ ] Smoke tests run if --smoke flag set
101
- - [ ] test-plan.json generated with categorized tests mapped to requirements
102
- - [ ] uat.md created/resumed with all tests
103
- - [ ] Tests presented one at a time with expected behavior
104
- - [ ] User responses processed as pass/issue/skip
105
- - [ ] Severity inferred from natural language (never asked)
106
- - [ ] Batched writes: on issue, every 5 passes, or completion
107
- - [ ] test-results.json and coverage-report.json written
108
- - [ ] UAT confidence scored with 4-dimension factor model
109
- - [ ] Readiness gate checked before final report
110
- - [ ] Pressure pass completed if > 80% pass rate
111
- - [ ] Confidence summary appended to uat.md
112
- - [ ] index.json uat fields updated
113
- - [ ] If issues: parallel debug agents spawned per gap cluster
114
- - [ ] Gaps updated with root_cause, fix_direction, affected_files
115
- - [ ] Gap-fix loop triggered if --auto-fix (max 2 iterations)
116
- - [ ] Next step routed (phase-transition if pass, verify if auto-fix success, debug --from-uat if issues, test-gen if low coverage)
117
- </success_criteria>
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: ExecutionCompletion**
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 a knowledge entry to the specs system using `<spec-entry>` closed-tag format.
14
- Each category maps 1:1 to a single target file — no dual-write.
15
- Supports 4 scopes: project (default), global, team, personal.
16
- Entries use `category` attribute to declare which category they belong to.
17
- </purpose>
18
-
19
- <required_reading>
20
- @~/.maestro/workflows/specs-add.md
21
- </required_reading>
22
-
23
- <context>
24
- $ARGUMENTS -- expects `[--scope <scope>] [--uid <uid>] <category> <content>`
25
-
26
- **Options:**
27
- - `--description <desc>` — One-line description for search results (falls back to content[:240])
28
- - `--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.
29
- - `--knowhow-type <type>` — Knowhow document type when creating with --ref (asset, blueprint, document, template, recipe, reference, decision)
30
-
31
- Scope-to-directory mapping, category-to-file mapping, and entry format defined in workflow specs-add.md.
32
-
33
- **Examples:**
34
- ```bash
35
- # English content English keywords
36
- /spec-add coding "Named exports" "Always use named exports" --keywords "exports,naming"
37
-
38
- # With description for search results
39
- /spec-add coding "OAuth PKCE Flow" "完整 PKCE 集成流程" --keywords "oauth,pkce" --description "OAuth 2.0 PKCE 认证流程规范"
40
-
41
- # Chinese content → Chinese keywords
42
- /spec-add coding "命名导出规范" "始终使用命名导出" --keywords "导出,命名,模块"
43
-
44
- # Ref mode
45
- /spec-add arch "OAuth PKCE 集成" "完整流程设计" --ref knowhow/AST-oauth-flow.md
46
- ```
47
- </context>
48
-
49
- <execution>
50
- Follow '~/.maestro/workflows/specs-add.md' completely.
51
- </execution>
52
-
53
- <error_codes>
54
- | Code | Severity | Description | Stage |
55
- |------|----------|-------------|-------|
56
- | E001 | fatal | Category and content are both required | parse_input |
57
- | E002 | fatal | Specs directory not initialized -- run `maestro spec init --scope <scope>` | validate_entry |
58
- | E003 | fatal | Invalid category -- must be one of: coding, arch, quality, debug, test, review, learning, tools, ui | parse_input |
59
- | E004 | fatal | Invalid scope -- must be one of: project, global, team, personal | parse_input |
60
- | E005 | fatal | Personal scope requires uid -- use `--uid` or run `maestro collab join` first | parse_input |
61
- </error_codes>
62
-
63
- <success_criteria>
64
- - [ ] Scope and category parsed and validated
65
- - [ ] Keywords auto-extracted from content (3-5 relevant terms)
66
- - [ ] Entry written in `<spec-entry>` closed-tag format
67
- - [ ] Entry appended to correct target file for scope
68
- - [ ] Confirmation report displayed with scope, path, keywords
69
- - [ ] Next step: `maestro spec load --scope <scope> --keyword {keyword}` to verify
70
- </success_criteria>
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 the project-level specs directory by scanning the codebase for conventions, patterns, and tech stack.
14
- Core files (coding, arch, learnings) are always created. Optional spec files (quality, test, ui) are created only when relevant signals are detected.
15
- Additionally, generates recipe-type knowhow docs in `.workflow/knowhow/` for detected operational workflows (test / debug / build / dev / lint) — capturing "how to do X in this project" so future agents can find them via `maestro search`.
16
- Spec output lands in `.workflow/specs/`; recipe output lands in `.workflow/knowhow/`.
17
- </purpose>
18
-
19
- <required_reading>
20
- @~/.maestro/workflows/specs-setup.md
21
- </required_reading>
22
-
23
- <context>
24
- $ARGUMENTS (no arguments expected)
25
-
26
- **Preconditions:**
27
- - `.workflow/` directory must exist (created by `/maestro-init`) # (see code: E001)
28
- - Project must contain source files to scan # (see code: E002)
29
- </context>
30
-
31
- <execution>
32
- Follow '~/.maestro/workflows/specs-setup.md' completely.
33
- </execution>
34
-
35
- <error_codes>
36
- | Code | Severity | Description | Stage |
37
- |------|----------|-------------|-------|
38
- | E001 | fatal | `.workflow/` directory not initialized -- run `/maestro-init` first | parse_input |
39
- | E002 | fatal | No source files found in project -- nothing to scan | scan_codebase |
40
- | W001 | warning | Convention detection uncertain for one or more categories -- marked `[UNCERTAIN]` | generate_specs |
41
- | W002 | warning | Workflow recipe signals detected but commands ambiguous -- recipe skipped | generate_recipes |
42
- | W003 | warning | Existing recipe slug found -- new content written as `.proposed.md` for manual diff | generate_recipes |
43
- </error_codes>
44
-
45
- <success_criteria>
46
- - [ ] `.workflow/specs/` directory created
47
- - [ ] Core spec files always created: `coding-conventions.md`, `architecture-constraints.md`, `learnings.md`
48
- - [ ] 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`).
49
- - [ ] 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.
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.34",
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"