maestro-flow-one 0.2.10 → 0.2.12

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 (30) hide show
  1. package/maestro-flow/commands/lifecycle/analyze.md +1 -1
  2. package/maestro-flow/commands/lifecycle/brainstorm.md +1 -1
  3. package/maestro-flow/commands/lifecycle/collab.md +2 -2
  4. package/maestro-flow/commands/lifecycle/composer.md +1 -1
  5. package/maestro-flow/commands/lifecycle/execute.md +10 -1
  6. package/maestro-flow/commands/lifecycle/guard.md +101 -0
  7. package/maestro-flow/commands/lifecycle/impeccable.md +2 -2
  8. package/maestro-flow/commands/lifecycle/learn.md +1 -1
  9. package/maestro-flow/commands/lifecycle/overlay.md +1 -1
  10. package/maestro-flow/commands/lifecycle/plan.md +15 -2
  11. package/maestro-flow/commands/lifecycle/quick.md +1 -1
  12. package/maestro-flow/commands/lifecycle/tools-execute.md +1 -1
  13. package/maestro-flow/commands/lifecycle/tools-register.md +1 -1
  14. package/maestro-flow/commands/lifecycle/verify.md +15 -1
  15. package/maestro-flow/commands/manage/issue-discover.md +1 -1
  16. package/maestro-flow/commands/manage/issue.md +1 -1
  17. package/maestro-flow/commands/manage/knowhow-capture.md +3 -1
  18. package/maestro-flow/commands/manage/knowhow.md +1 -1
  19. package/maestro-flow/commands/manage/learn.md +1 -1
  20. package/maestro-flow/commands/manage/status.md +1 -0
  21. package/maestro-flow/commands/manage/wiki.md +1 -1
  22. package/maestro-flow/commands/quality/auto-test.md +2 -3
  23. package/maestro-flow/commands/quality/debug.md +1 -1
  24. package/maestro-flow/commands/quality/refactor.md +2 -2
  25. package/maestro-flow/commands/quality/retrospective.md +1 -1
  26. package/maestro-flow/commands/quality/review.md +15 -1
  27. package/maestro-flow/commands/quality/test.md +6 -1
  28. package/maestro-flow/commands/spec/add.md +6 -3
  29. package/maestro-flow/commands/spec/setup.md +0 -3
  30. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: maestro-analyze
3
- description: Multi-angle analysis with CLI-assisted exploration
3
+ description: Use when a topic needs structured multi-dimensional investigation before planning or decision-making
4
4
  argument-hint: "[phase|topic] [-y] [-c] [-q] [--gaps [ISS-ID]]"
5
5
  allowed-tools:
6
6
  - Read
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: maestro-brainstorm
3
- description: Brainstorm with auto pipeline or single-role analysis
3
+ description: Use when exploring ideas, evaluating approaches, or needing multi-perspective analysis before implementation
4
4
  argument-hint: "[topic|role-name] [--yes] [--count N] [--session ID] [--update] [--skip-questions] [--include-questions] [--style-skill PKG]"
5
5
  allowed-tools:
6
6
  - Read
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-collab
3
- description: Multi-CLI collaborative analysis -- fan-out to multiple CLI tools, cross-verify, synthesize
4
- argument-hint: "\"<requirement>\" [--tools gemini,qwen,claude] [--mode analysis|write] [--rule <template>] [-y]"
3
+ description: Use when a question needs cross-verification from multiple CLI tools or diverse analytical perspectives
4
+ argument-hint: "<requirement> [--tools gemini,qwen,claude] [--mode analysis|write] [--rule <template>] [-y]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-composer
3
3
  description: Compose reusable workflow templates from natural language
4
- argument-hint: "\"workflow description\" [--resume] [--edit <template-path>]"
4
+ argument-hint: "<workflow-description> [--resume] [--edit <template-path>]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: maestro-execute
3
- description: Execute plan with parallel waves and atomic commits
3
+ description: Use when a confirmed plan is ready for implementation
4
4
  argument-hint: "[phase] [--auto-commit] [--method agent|cli|auto] [--executor <tool>] [--dir <path>] [-y]"
5
5
  allowed-tools:
6
6
  - Read
@@ -98,6 +98,15 @@ Next steps:
98
98
  /manage-status -- View project dashboard
99
99
  ```
100
100
 
101
+ **Completion status:**
102
+ ```
103
+ --- COMPLETION STATUS ---
104
+ STATUS: DONE|DONE_WITH_CONCERNS|NEEDS_RETRY
105
+ CONCERNS: {failed_count} tasks failed (if any)
106
+ NEXT: /maestro-verify
107
+ --- END STATUS ---
108
+ ```
109
+
101
110
  If failed tasks exist, suggest /quality-debug for investigation.
102
111
  </execution>
103
112
 
@@ -0,0 +1,101 @@
1
+ ---
2
+ name: maestro-guard
3
+ description: Manage editing boundary restrictions
4
+ argument-hint: "<on|off|status|allow <path>|deny <path>>"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ ---
11
+ <purpose>
12
+ Configure directory-level write boundaries enforced by the workflow-guard PreToolUse hook.
13
+ When enabled, Write and Edit tool calls targeting files outside allowed paths are blocked.
14
+
15
+ Subcommands:
16
+ - **on** — Enable path guard (defaults to `src/` if no paths configured)
17
+ - **off** — Disable path guard (preserves path list)
18
+ - **status** — Show current guard configuration
19
+ - **allow `<path>`** — Add a directory to the allowed paths list
20
+ - **deny `<path>`** — Switch to deny mode and add path to deny list
21
+ </purpose>
22
+
23
+ <context>
24
+ $ARGUMENTS — Parse subcommand and optional path argument.
25
+
26
+ **Config location:** `.workflow/config.json` → `guard` section
27
+
28
+ ```json
29
+ {
30
+ "guard": {
31
+ "enabled": false,
32
+ "mode": "allow",
33
+ "paths": []
34
+ }
35
+ }
36
+ ```
37
+
38
+ **Enforcement:** The `workflow-guard` hook (PreToolUse on Write/Edit) reads this config
39
+ and blocks operations targeting files outside boundaries. Requires hooks level >= `full`.
40
+ </context>
41
+
42
+ <execution>
43
+
44
+ **Step 1: Parse subcommand**
45
+
46
+ Extract from $ARGUMENTS:
47
+ - `on` / `off` / `status` / `allow <path>` / `deny <path>`
48
+ - If no subcommand, default to `status`
49
+
50
+ **Step 2: Read config**
51
+
52
+ Read `.workflow/config.json`. If file missing, initialize with empty guard section.
53
+
54
+ **Step 3: Execute subcommand**
55
+
56
+ **`status`:**
57
+ - Display: enabled/disabled, mode (allow/deny), paths list
58
+ - Check if workflow-guard hook is active (read `.claude/settings.json` for hook presence)
59
+ - If guard enabled but hook not active, warn: "⚠ PathGuard enabled but workflow-guard hook not installed. Run `maestro hooks level full` to activate."
60
+
61
+ **`on`:**
62
+ - Set `guard.enabled = true`
63
+ - If `guard.paths` is empty, set default: `["src/", "tests/", ".workflow/"]`
64
+ - Check hook level, warn if < full
65
+ - Write config
66
+
67
+ **`off`:**
68
+ - Set `guard.enabled = false`
69
+ - Preserve existing paths and mode
70
+ - Write config
71
+
72
+ **`allow <path>`:**
73
+ - Normalize path to forward slashes, ensure trailing slash for directories
74
+ - If `guard.mode` is `deny`, switch to `allow` and clear paths with warning
75
+ - Add path to `guard.paths` (deduplicate)
76
+ - Set `guard.enabled = true` if not already
77
+ - Write config
78
+
79
+ **`deny <path>`:**
80
+ - Normalize path to forward slashes
81
+ - Set `guard.mode = "deny"`
82
+ - Add path to `guard.paths` (deduplicate)
83
+ - Set `guard.enabled = true` if not already
84
+ - Write config
85
+
86
+ **Step 4: Confirm**
87
+
88
+ Display updated guard configuration.
89
+
90
+ </execution>
91
+
92
+ <error_codes>
93
+ - E001: `.workflow/config.json` not found and cannot be created (not a maestro project)
94
+ - W001: PathGuard enabled but workflow-guard hook not installed
95
+ </error_codes>
96
+
97
+ <success_criteria>
98
+ - [ ] Config read/written correctly
99
+ - [ ] Hook level warning displayed when applicable
100
+ - [ ] Updated configuration shown after changes
101
+ </success_criteria>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-impeccable
3
- description: Production-grade UI design 24 commands + chain orchestration with quality gates + design search
4
- argument-hint: "<command|chain|intent> [target] [flags]"
3
+ description: Use when designing, auditing, polishing, or improving frontend UI websites, dashboards, landing pages, components
4
+ argument-hint: "<command|intent> [target] [flags] — 可选 chain: build|redesign|improve|enhance|launch|harden|foundation|live"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-learn
3
3
  description: Route learning intent to learn-* commands
4
- argument-hint: "\"intent text\" [-y] [--dry-run] [--chain <name>]"
4
+ argument-hint: "<intent> [-y] [--dry-run] [--chain <name>]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-overlay
3
3
  description: Create or edit command overlays from natural language
4
- argument-hint: "<intent>"
4
+ argument-hint: "<intent> — 描述要添加的规则或步骤,如 'always verify after execute'"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-plan
3
- description: Plan phase execution with exploration and verification
4
- argument-hint: "[phase] [--collab] [--spec SPEC-xxx] [-y] [--gaps] [--dir <path>] [--revise [instructions]] [--check <plan-dir>]"
3
+ description: Use when creating, revising, or verifying an execution plan for a phase or task
4
+ argument-hint: "[phase] [--collab] [--spec SPEC-xxx] [-y] [--gaps] [--tdd] [--dir <path>] [--revise [instructions]] [--check <plan-dir>]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -122,6 +122,19 @@ Next steps:
122
122
  /maestro-plan {phase} -- Re-plan with modifications
123
123
  ```
124
124
 
125
+ **Completion status:**
126
+ ```
127
+ --- COMPLETION STATUS ---
128
+ STATUS: DONE|NEEDS_CONTEXT
129
+ CONCERNS: {description if applicable}
130
+ NEXT: /maestro-execute
131
+ --- END STATUS ---
132
+ ```
133
+
134
+ Status mapping:
135
+ - **DONE** — Plan created/revised and confirmed → NEXT: /maestro-execute
136
+ - **NEEDS_CONTEXT** — Ambiguous requirements, insufficient context to produce plan
137
+
125
138
  ### Mode: Revise / Check
126
139
 
127
140
  Follow workflow plan.md § "Revise Mode" and § "Check Mode" respectively. These modes bypass the standard P1-P5 create pipeline.
@@ -9,7 +9,7 @@ allowed-tools:
9
9
  - Bash
10
10
  - Glob
11
11
  - Grep
12
- - Task
12
+ - Agent
13
13
  - AskUserQuestion
14
14
  ---
15
15
  <purpose>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-tools-execute
3
3
  description: Load and execute tool specs by category or name
4
- argument-hint: "[tool-name | --category <category>]"
4
+ argument-hint: "[<tool-name> | --category <category>] [--list]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-tools-register
3
3
  description: Register tool specs - extract, generate, or optimize
4
- argument-hint: "[description]"
4
+ argument-hint: "[<description>] [--extract <path>] [--optimize <name>]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: maestro-verify
3
- description: Verify goals with must-have checks and test coverage validation
3
+ description: Use after execution to verify goals are actually achieved with evidence-based structural checks
4
4
  argument-hint: "[phase] [--skip-tests] [--skip-antipattern] [--dir <path>]"
5
5
  allowed-tools:
6
6
  - Read
@@ -70,6 +70,20 @@ On confirm → `Skill("spec-add", "<category> <content>")`.
70
70
 
71
71
  **Gap-fix closure loop:**
72
72
  Gaps found → maestro-plan --gaps → maestro-execute → maestro-verify (re-run)
73
+
74
+ **Completion status:**
75
+ ```
76
+ --- COMPLETION STATUS ---
77
+ STATUS: DONE|DONE_WITH_CONCERNS|NEEDS_RETRY
78
+ CONCERNS: {description if applicable}
79
+ NEXT: /quality-review
80
+ --- END STATUS ---
81
+ ```
82
+
83
+ Status mapping:
84
+ - **DONE** — All checks pass, no gaps → NEXT: /quality-review
85
+ - **DONE_WITH_CONCERNS** — Gaps found (must-have failures or anti-pattern blockers) → NEXT: /maestro-execute (after /maestro-plan --gaps)
86
+ - **NEEDS_RETRY** — Verification could not complete (missing artifacts, corrupt data)
73
87
  </execution>
74
88
 
75
89
  <error_codes>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: manage-issue-discover
3
3
  description: Discover issues via multi-perspective analysis
4
- argument-hint: "[multi-perspective | by-prompt \"what to look for\"] [-y|--yes] [--scope=src/**] [--depth=standard|deep]"
4
+ argument-hint: "[multi-perspective | by-prompt <prompt>] [-y] [--scope <glob>] [--depth standard|deep]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: manage-issue
3
3
  description: Create, query, update, close, and link issues
4
- argument-hint: "<create|list|status|update|close|link> [options]"
4
+ argument-hint: "<subcommand: create|list|status|update|close|link> [--title text] [--severity S] [--status S] [--resolution text]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: manage-knowhow-capture
3
3
  description: Capture reusable knowledge as templates, recipes, or tips
4
- argument-hint: "[type] [description] [--lang <lang>] [--source <url>] [--tag tag1,tag2]"
4
+ argument-hint: "[<type>] [<description>] [--lang <lang>] [--source <url>] [--tag t1,t2]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -47,6 +47,8 @@ $ARGUMENTS — type token + description + optional flags.
47
47
  <execution>
48
48
  Follow '~/.maestro/workflows/knowhow.md' completely.
49
49
 
50
+ **Tags language rule**: Tags must match content language. Chinese content → Chinese tags (如 `认证,令牌,刷新`). English content → English tags. Mixed → bilingual.
51
+
50
52
  **Type-specific content rules**:
51
53
 
52
54
  | Type | Content extraction |
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: manage-knowhow
3
3
  description: Manage knowhow entries (workflow and system)
4
- argument-hint: "[list|search|view|edit|delete|prune] [query|id|file] [--store workflow|system|all] [--tag tag] [--type compact|tip]"
4
+ argument-hint: "<subcommand: list|search|view|edit|delete|prune> [query|id] [--store workflow|system|all] [--tag <tag>] [--type compact|tip]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: manage-learn
3
3
  description: Capture and search learning insights and tips
4
- argument-hint: "[<text>|tip <text>|list|search|show <id>] [--category ...] [--tag t1,t2] [--phase N] [--confidence ...]"
4
+ argument-hint: "[<text> | tip <text> | list | search | show <id>] [--category <cat>] [--tag t1,t2] [--phase N]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: manage-status
3
3
  description: Show project dashboard with progress and next steps
4
+ argument-hint: ""
4
5
  allowed-tools:
5
6
  - Read
6
7
  - Bash
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: manage-wiki
3
3
  description: Manage wiki graph — health, cleanup, search, stats
4
- argument-hint: "[health|search|cleanup|stats] [options]"
4
+ argument-hint: "<subcommand: health|search|cleanup|stats> [query] [--fix] [--dry-run]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -1,9 +1,8 @@
1
1
  ---
2
2
  name: quality-auto-test
3
- description: Auto-generate and run tests from specs or coverage gaps
4
- argument-hint: "<phase> [-y] [-c N] [--max-iter <N>] [--layer <L0-L3>] [--strategy <name>] [--dry-run] [--re-run]"
3
+ description: Use when test coverage needs automated expansion or existing tests need iterative convergence
4
+ argument-hint: "<phase> [-y] [-c N] [--max-iter N] [--layer L0|L1|L2|L3] [--dry-run] [--re-run]"
5
5
  allowed-tools:
6
- - spawn_agents_on_csv
7
6
  - Read
8
7
  - Write
9
8
  - Edit
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: quality-debug
3
- description: Debug with parallel hypotheses and root cause analysis
3
+ description: Use when bugs, test failures, or unexpected behavior need systematic root cause investigation
4
4
  argument-hint: "[issue description] [--from-uat <phase>] [--parallel]"
5
5
  allowed-tools:
6
6
  - Read
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: quality-refactor
3
- description: Reduce tech debt with reflection-driven iteration
3
+ description: Use when accumulated tech debt needs systematic identification and safe reduction
4
4
  argument-hint: "[<scope>]"
5
5
  allowed-tools:
6
6
  - Read
@@ -9,7 +9,7 @@ allowed-tools:
9
9
  - Bash
10
10
  - Glob
11
11
  - Grep
12
- - Task
12
+ - Agent
13
13
  - AskUserQuestion
14
14
  ---
15
15
  <purpose>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: quality-retrospective
3
- description: Phase retrospective with insight routing to specs and knowhow
3
+ description: Use after completing a phase to extract lessons, patterns, and improvement opportunities
4
4
  argument-hint: "[phase|N..M] [--lens technical|process|quality|decision] [--all] [--no-route] [--compare N] [-y]"
5
5
  allowed-tools:
6
6
  - Read
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: quality-review
3
- description: Tiered code review with severity classification
3
+ description: Use after execution to evaluate code quality across correctness, security, performance, and architecture
4
4
  argument-hint: "<phase> [--level quick|standard|deep] [--dimensions security,architecture,...] [--skip-specs]"
5
5
  allowed-tools:
6
6
  - Read
@@ -87,6 +87,20 @@ Report format and next-step routing by verdict defined in workflow review.md Rep
87
87
  - PASS → `/quality-test {phase}`
88
88
  - WARN → `/quality-test {phase}` (proceed with caveats)
89
89
  - BLOCK → `/maestro-plan {phase} --gaps` (fix critical findings first)
90
+
91
+ **Completion status:**
92
+ ```
93
+ --- COMPLETION STATUS ---
94
+ STATUS: DONE|DONE_WITH_CONCERNS|NEEDS_RETRY
95
+ CONCERNS: {description if applicable}
96
+ NEXT: /quality-refactor
97
+ --- END STATUS ---
98
+ ```
99
+
100
+ Status mapping:
101
+ - **DONE** — PASS verdict, no critical findings → NEXT: /quality-refactor
102
+ - **DONE_WITH_CONCERNS** — WARN verdict, issues found but non-blocking → NEXT: /maestro-verify
103
+ - **NEEDS_RETRY** — BLOCK verdict, critical findings require fix first
90
104
  </execution>
91
105
 
92
106
  <error_codes>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: quality-test
3
- description: Conversational UAT with auto-diagnosis and gap closure
3
+ description: Use when implementation needs user acceptance testing with interactive verification and gap closure
4
4
  argument-hint: "[phase] [--smoke] [--auto-fix]"
5
5
  allowed-tools:
6
6
  - Read
@@ -40,6 +40,11 @@ Follow '~/.maestro/workflows/test.md' completely.
40
40
 
41
41
  **Command-specific extensions (not in workflow):**
42
42
 
43
+ **Knowledge context loading** (before test design):
44
+ - Wiki search: `maestro wiki search "<phase/feature keywords>" --json` → prior test strategies, recipes, decisions
45
+ - Role knowledge: `maestro wiki list --category test` → select relevant → `maestro wiki load <id>`
46
+ - Specs + tools: `maestro spec load --category test` → test conventions + discoverable knowhow tools
47
+
43
48
  **Test tool discovery** (knowhow tools as scenario source):
44
49
  - Load registered test tools: `maestro spec load --category test --keyword <feature>`
45
50
  - If tools found, extract their steps as additional test scenarios marked `source: "tool"`
@@ -31,11 +31,14 @@ Scope-to-directory mapping, category-to-file mapping, and entry format defined i
31
31
 
32
32
  **Examples:**
33
33
  ```bash
34
- # Standard spec entry
34
+ # English content → English keywords
35
35
  /spec-add coding "Named exports" "Always use named exports" --keywords "exports,naming"
36
36
 
37
- # Spec with ref to detailed knowhow
38
- /spec-add coding "OAuth PKCE Flow" "完整 PKCE 集成流程" --ref knowhow/RCP-oauth-pkce.md --keywords "oauth,pkce"
37
+ # Chinese content Chinese keywords (匹配中文 prompt)
38
+ /spec-add coding "命名导出规范" "始终使用命名导出" --keywords "导出,命名,模块"
39
+
40
+ # Mixed → bilingual keywords
41
+ /spec-add coding "OAuth PKCE Flow" "完整 PKCE 集成流程" --ref knowhow/RCP-oauth-pkce.md --keywords "oauth,pkce,认证,授权"
39
42
 
40
43
  /spec-add arch "OAuth PKCE 集成" "完整流程设计" --ref knowhow/AST-oauth-flow.md
41
44
  ```
@@ -19,9 +19,6 @@ All output lands in `.workflow/specs/`.
19
19
  @~/.maestro/workflows/specs-setup.md
20
20
  </required_reading>
21
21
 
22
- <deferred_reading>
23
- </deferred_reading>
24
-
25
22
  <context>
26
23
  $ARGUMENTS (no arguments expected)
27
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maestro-flow-one",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
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"