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,79 +1,83 @@
1
- ---
2
- name: manage-knowhow
3
- description: Manage knowhow entries (workflow and system)
4
- argument-hint: "<subcommand: list|search|view|edit|delete|prune> [query|id] [--store workflow|system|all] [--tag <tag>] [--type compact|tip]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - AskUserQuestion
13
- ---
14
- <purpose>
15
- Unified memory management across two stores:
16
- 1. **Workflow knowhow** (`.workflow/knowhow/`) — Session compacts, tips, insights, and all reusable knowledge, created by `manage-knowhow-capture`
17
- 2. **System memory** (`~/.claude/projects/{project}/memory/`) — Claude Code auto-memory (MEMORY.md + topic files), persists across conversations
18
-
19
- Also scans `.workflow/specs/learnings.md` for legacy insight entries (backward compat with former `manage-learn`).
20
-
21
- Provides list/search/view/edit/delete/prune operations. Default store is `all` (show both).
22
- </purpose>
23
-
24
- <required_reading>
25
- @~/.maestro/workflows/knowhow.md
26
- </required_reading>
27
-
28
- <context>
29
- Arguments: $ARGUMENTS
30
-
31
- Dual store architecture (paths, formats, index) defined in workflow knowhow.md.
32
-
33
- **Subcommands:**
34
- - `list` — List entries from both stores (default if no arguments)
35
- - `search <query>` — Full-text search across both stores
36
- - `view <id|file>` — Display a workflow entry by ID or system file by name
37
- - `edit <file>` — Edit a system memory file (MEMORY.md or topic file)
38
- - `delete <id|file>` — Remove an entry/file (with confirmation)
39
- - `prune`Bulk cleanup by criteria
40
-
41
- **Flags:**
42
- - `--store <workflow|system|all>` Target store (default: `all` for list/search, inferred for other ops)
43
- - `--tag <tag>` — Filter by tag (workflow store)
44
- - `--type <compact|tip>` — Filter by entry type (workflow store)
45
- - `--before <YYYY-MM-DD>` — Entries before date
46
- - `--after <YYYY-MM-DD>` Entries after date
47
- - `--dry-run` — Preview destructive ops without executing
48
- - `--confirm` — Skip confirmation prompt
49
- </context>
50
-
51
- <execution>
52
- Follow '~/.maestro/workflows/knowhow.md' Part A (KnowHow Management) completely.
53
- </execution>
54
-
55
- <error_codes>
56
- | Code | Severity | Description | Stage |
57
- |------|----------|-------------|-------|
58
- | E001 | error | No memory stores foundfor workflow store run `/manage-knowhow-capture`; for system store create `~/.claude/projects/{project}/memory/MEMORY.md` manually | resolve_paths |
59
- | E002 | error | Entry ID or filename not found | execute_view, execute_delete |
60
- | E003 | error | Prune requires at least one filter (--tag, --type, --before, --after) | execute_prune |
61
- | E004 | error | Cannot delete MEMORY.md — use `edit` subcommand instead | execute_delete |
62
- | W001 | warning | Workflow index has orphaned files or dangling references | integrity_check |
63
- | W002 | warning | MEMORY.md references non-existent topic file | integrity_check |
64
- | W003 | warning | MEMORY.md exceeds 200 lines content will be truncated at load | execute_edit |
65
- </error_codes>
66
-
67
- <success_criteria>
68
- - [ ] Both store paths correctly resolved
69
- - [ ] Subcommand correctly detected from arguments
70
- - [ ] Store auto-detected from argument format (KNW-*/TIP-* vs filename)
71
- - [ ] List: both stores displayed with appropriate formatting
72
- - [ ] Search: results from both stores, ranked by relevance
73
- - [ ] View: correct store selected, full content displayed
74
- - [ ] Edit: system memory files editable, MEMORY.md kept under 200 lines
75
- - [ ] Delete: MEMORY.md protected, confirmation required, references checked
76
- - [ ] Prune: workflow-only, filters validated, index updated
77
- - [ ] Integrity check catches orphans and broken links
78
- - [ ] Next step: `/manage-knowhow-capture compact` to save new knowhow, or `/manage-status` to continue workflow
79
- </success_criteria>
1
+ ---
2
+ name: manage-knowhow
3
+ description: Manage knowhow entries (workflow and system)
4
+ argument-hint: "<subcommand: list|search|view|edit|delete|prune> [query|id] [--store workflow|system|all] [--tag <tag>] [--type compact|tip]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - AskUserQuestion
13
+ ---
14
+ <purpose>
15
+ Manage knowhow across two stores: workflow (`.workflow/knowhow/`) and system memory (`~/.claude/projects/*/memory/`). Operations: list, search, view, edit, delete, prune.
16
+ </purpose>
17
+
18
+ <required_reading>
19
+ @~/.maestro/workflows/knowhow.md
20
+ </required_reading>
21
+
22
+ <context>
23
+ Arguments: $ARGUMENTS
24
+
25
+ Dual store architecture (paths, formats, index) defined in workflow knowhow.md.
26
+
27
+ **Subcommands:**
28
+ - `list` — List entries from both stores (default if no arguments)
29
+ - `search <query>` — Full-text search across both stores
30
+ - `view <id|file>` — Display a workflow entry by ID or system file by name
31
+ - `edit <file>` Edit a system memory file (MEMORY.md or topic file)
32
+ - `delete <id|file>` — Remove an entry/file (with confirmation)
33
+ - `prune` — Bulk cleanup by criteria
34
+
35
+ **Flags:**
36
+ - `--store <workflow|system|all>` — Target store (default: `all` for list/search, inferred for other ops)
37
+ - `--tag <tag>` — Filter by tag (workflow store)
38
+ - `--type <compact|tip>` — Filter by entry type (workflow store)
39
+ - `--before <YYYY-MM-DD>` Entries before date
40
+ - `--after <YYYY-MM-DD>` — Entries after date
41
+ - `--dry-run` — Preview destructive ops without executing
42
+ - `--confirm`Skip confirmation prompt
43
+ </context>
44
+
45
+ <execution>
46
+ Follow '~/.maestro/workflows/knowhow.md' Part A (KnowHow Management) completely.
47
+ </execution>
48
+
49
+ <error_codes>
50
+ | Code | Severity | Description | Stage |
51
+ |------|----------|-------------|-------|
52
+ | E001 | error | No memory stores found — for workflow store run `/manage-knowhow-capture`; for system store create `~/.claude/projects/{project}/memory/MEMORY.md` manually | resolve_paths |
53
+ | E002 | error | Entry ID or filename not found | execute_view, execute_delete |
54
+ | E003 | error | Prune requires at least one filter (--tag, --type, --before, --after) | execute_prune |
55
+ | E004 | error | Cannot delete MEMORY.md — use `edit` subcommand instead | execute_delete |
56
+ | W001 | warning | Workflow index has orphaned files or dangling references | integrity_check |
57
+ | W002 | warning | MEMORY.md references non-existent topic file | integrity_check |
58
+ | W003 | warning | MEMORY.md exceeds 200 linescontent will be truncated at load | execute_edit |
59
+ </error_codes>
60
+
61
+ <success_criteria>
62
+ - [ ] Both store paths correctly resolved
63
+ - [ ] Subcommand correctly detected from arguments
64
+ - [ ] Store auto-detected from argument format (KNW-*/TIP-* vs filename)
65
+ - [ ] List: both stores displayed with appropriate formatting
66
+ - [ ] Search: results from both stores, ranked by relevance
67
+ - [ ] View: correct store selected, full content displayed
68
+ - [ ] Edit: system memory files editable, MEMORY.md kept under 200 lines
69
+ - [ ] Delete: MEMORY.md protected, confirmation required, references checked
70
+ - [ ] Prune: workflow-only, filters validated, index updated
71
+ - [ ] Integrity check catches orphans and broken links
72
+ - [ ] Next step routed
73
+ </success_criteria>
74
+
75
+ <completion>
76
+ ### Next-step routing
77
+
78
+ | Condition | Suggestion |
79
+ |-----------|-----------|
80
+ | Want to capture new knowhow | `/manage-knowhow-capture` |
81
+ | View project state | `/manage-status` |
82
+ | Prune stale entries | `/manage-knowledge-audit --scope knowhow` |
83
+ </completion>
@@ -1,88 +1,105 @@
1
- ---
2
- name: manage-knowledge-audit
3
- description: Audit and prune knowledge across spec / knowhow / artifact stores
4
- argument-hint: "--scope <spec|knowhow|artifact|all> [--level P0|P1|P2] [--timeline T1..T6] [--since YYYY-MM-DD] [--milestone <name>] [--include-archive] [--interactive] [--mark|--delete|--purge] [--dry-run] [--report]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
- <purpose>
16
- 对称于 `manage-harvest`(写入入口)的知识淘汰入口。harvest 负责把 artifact 抽取为 spec/wiki/issue;audit 负责审查这三大存储中已积累的条目,识别矛盾、失效、老化、孤儿,并通过 keep/deprecate/delete 三态决策清理。
17
-
18
- 覆盖 8 大场景类、28 子场景(显性/隐性矛盾、失效老化、元数据质量、Maestro 特化、时间线产物 T1-T6、knowhow 漂移、artifact 残留),定义见 workflow knowledge-audit.md。
19
-
20
- **闭环**:harvest 写入 → audit 审查 → 三态淘汰;与 `harvest --prune`(物理 GC)互补:audit 做语义层判定,且删除未抽取的 artifact 前反向触发 harvest 抢救。
21
- </purpose>
22
-
23
- <required_reading>
24
- @~/.maestro/workflows/knowledge-audit.md
25
- </required_reading>
26
-
27
- <deferred_reading>
28
- - @~/.maestro/workflows/harvest.md (audit 检测的 artifact 是 harvest 的产物源)
29
- - @~/.maestro/workflows/specs-add.md (deprecate 操作所需的 `<spec-entry>` 变形)
30
- </deferred_reading>
31
-
32
- <context>
33
- Arguments: $ARGUMENTS
34
-
35
- **Scope(必选):** `spec` | `knowhow` | `artifact` | `all`
36
-
37
- **删除策略**默认 `--interactive`(三态面板逐项决策);非交互模式 `--mark`(仅打标)/ `--delete`(软删到 `.trash/`)/ `--purge`(物理擦除,仅 artifact 且需双重确认)。
38
-
39
- Flag 全集、scope 对应的扫描路径、Stage 步骤、检测算法定义在 workflow knowledge-audit.md。
40
- </context>
41
-
42
- <execution>
43
- Follow `~/.maestro/workflows/knowledge-audit.md` Stages 1-8 in order.
44
-
45
- **Key invariants:**
46
- 1. **Backup before mutate** Stage 6 必须把待变更文件打包到 `.workflow/.trash/knowledge-audit-{timestamp}/`,备份失败禁止 Stage 7
47
- 2. **Deprecate over delete** — 文本存储(spec/knowhow)首选注入 `status="deprecated"` 保留历史;只有 artifact 物理残留才走 delete/purge。
48
- 3. **Purge requires double confirmation** `--purge` 仅作用于 artifact scope,且 Stage 5 必须显式 `[y/N]` 二次确认 + 输入 artifact id。
49
- 4. **Rescue before delete** 删除未抽取的 artifact 前(`harvest-log.jsonl` 无记录),强制提示 "是否先 `/manage-harvest`?"。
50
-
51
- Scope 路径、8 类检测算法、三态决策面板、报告 schema 定义在 workflow knowledge-audit.md。
52
-
53
- **Next-step routing on completion:**
54
- - 复审淘汰记录 `.workflow/.knowledge-audit/audit-report-{date}.md`
55
- - 抢救未抽取 artifact → `/manage-harvest <artifact-id>`
56
- - 验证 spec 现状 `/spec-load --role implement`
57
- - 周期巡检 milestone 结束跑 `--scope all --report`
58
- </execution>
59
-
60
- <error_codes>
61
- | Code | Severity | Condition | Recovery |
62
- |------|----------|-----------|----------|
63
- | E001 | error | `.workflow/` 未初始化 | 先跑 `/maestro-init` |
64
- | E002 | error | `--scope` 缺失或非法 | 提供 spec/knowhow/artifact/all |
65
- | E003 | error | `--purge` 与 `--dry-run` 同用 | 二选一 |
66
- | E004 | error | `--purge` 作用于非 artifact 范围 | purge 仅支持 artifact scope |
67
- | E005 | error | 备份失败(`.trash/` 写入异常) | 检查磁盘空间与权限,重试 |
68
- | W001 | warning | 检出冲突但用户选择 keep | 记入 report,不阻断 |
69
- | W002 | warning | 待删 artifact 无 harvest-log 记录 | 提示先跑 manage-harvest |
70
- | W003 | warning | 循环 supersedes 链 | 自动断环或交互选保留节点 |
71
- | W004 | warning | 检测耗时 >120s(大规模 spec 库) | 建议加 `--scope` 收敛或 `--since` 增量 |
72
- | W005 | warning | LLM detector 不可用 | 降级到正则+图算法子集,跳过 B/G 类语义场景 |
73
- </error_codes>
74
-
75
- <success_criteria>
76
- - [ ] Scope 正确解析,互斥标志校验通过
77
- - [ ] 三存储按 scope 加载完成,构建出统一 finding 池
78
- - [ ] Stage 3 时间线索引建立(mtime session/milestone 状态)
79
- - [ ] Stage 4 按 P0/P1/P2 输出 finding 列表
80
- - [ ] 如非 `--report`:用户对每项做出三态决策
81
- - [ ] harvest artifact 删除前触发抢救确认
82
- - [ ] Stage 6 backup tarball 生成于 `.workflow/.trash/`
83
- - [ ] `deprecate` 通过元数据注入完成(spec/knowhow 文件未被物理删除)
84
- - [ ] `delete` 移动至 `.trash/`,索引同步更新
85
- - [ ] `purge` 仅在双重确认通过后执行
86
- - [ ] `audit-report-{date}.md` + `audit-log.jsonl` 写入完成
87
- - [ ] 摘要展示三存储变更计数与下一步路由
88
- </success_criteria>
1
+ ---
2
+ name: manage-knowledge-audit
3
+ description: Audit and prune knowledge across spec / knowhow / artifact stores
4
+ argument-hint: "--scope <spec|knowhow|artifact|all> [--level P0|P1|P2] [--timeline T1..T6] [--since YYYY-MM-DD] [--milestone <name>] [--include-archive] [--interactive] [--mark|--delete|--purge] [--dry-run] [--report]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Agent
13
+ - AskUserQuestion
14
+ ---
15
+ <purpose>
16
+ 审查 spec/knowhow/artifact 存储,识别矛盾/失效/孤儿,通过 keep/deprecate/delete 三态清理。对称于 `manage-harvest`(写入入口)。
17
+ </purpose>
18
+
19
+ <required_reading>
20
+ @~/.maestro/workflows/knowledge-audit.md
21
+ </required_reading>
22
+
23
+ <deferred_reading>
24
+ - @~/.maestro/workflows/harvest.md (audit 检测的 artifact 是 harvest 的产物源)
25
+ - @~/.maestro/workflows/specs-add.md (deprecate 操作所需的 `<spec-entry>` 变形)
26
+ </deferred_reading>
27
+
28
+ <context>
29
+ Arguments: $ARGUMENTS
30
+
31
+ **Scope(必选):** `spec` | `knowhow` | `artifact` | `all`
32
+
33
+ **删除策略**默认 `--interactive`(三态面板逐项决策);非交互模式 `--mark`(仅打标)/ `--delete`(软删到 `.trash/`)/ `--purge`(物理擦除,仅 artifact 且需双重确认)。
34
+
35
+ Flag 全集、scope 对应的扫描路径、Stage 步骤、检测算法定义在 workflow knowledge-audit.md。
36
+ </context>
37
+
38
+ <execution>
39
+ Follow `~/.maestro/workflows/knowledge-audit.md` Stages 1-8 in order.
40
+
41
+ ### Phase Gates (MANDATORY, BLOCKING)
42
+
43
+ **GATE 1: Load → Detect** (Stages 1-2 Stage 4)
44
+ - REQUIRED: Scope 解析通过,互斥标志校验完成。
45
+ - REQUIRED: 三存储按 scope 加载完成。
46
+ - BLOCKED if scope 非法或存储不可读: E001/E002
47
+
48
+ **GATE 2: Detect → Decision** (Stage 4 Stage 5)
49
+ - REQUIRED: Finding 池按 P0/P1/P2 分级输出。
50
+ - REQUIRED: 未 harvest 的 artifact 删除前触发抢救确认(W002)。
51
+ - BLOCKED if finding 为空: 无需淘汰,直接输出报告。
52
+
53
+ **GATE 3: Decision → Mutate** (Stage 5 → Stage 6-7)
54
+ - REQUIRED: Backup tarball 生成于 `.workflow/.trash/knowledge-audit-{timestamp}/`。
55
+ - REQUIRED: 备份成功后方可执行变更。
56
+ - REQUIRED: `--purge` 需双重确认(仅 artifact scope)。
57
+ - BLOCKED if 备份失败: E005,禁止执行变更。
58
+
59
+ ### Execution Constraints
60
+
61
+ - **Deprecate over delete**: 文本存储首选 `status="deprecated"`,保留历史。
62
+ - **Purge 仅 artifact**: `--purge` 不作用于 spec/knowhow。
63
+ - **Rescue before delete**: 未抽取 artifact 删除前强制提示先 `/manage-harvest`。
64
+ </execution>
65
+
66
+ <completion>
67
+ ### Next-step routing
68
+
69
+ | Condition | Suggestion |
70
+ |-----------|-----------|
71
+ | 复审淘汰记录 | 查看 `audit-report-{date}.md` |
72
+ | 抢救未抽取 artifact | `/manage-harvest <artifact-id>` |
73
+ | 验证 spec 现状 | `/spec-load --role implement` |
74
+ | 周期巡检 | `--scope all --report` |
75
+ </completion>
76
+
77
+ <error_codes>
78
+ | Code | Severity | Condition | Recovery |
79
+ |------|----------|-----------|----------|
80
+ | E001 | error | `.workflow/` 未初始化 | 先跑 `/maestro-init` |
81
+ | E002 | error | `--scope` 缺失或非法 | 提供 spec/knowhow/artifact/all |
82
+ | E003 | error | `--purge` `--dry-run` 同用 | 二选一 |
83
+ | E004 | error | `--purge` 作用于非 artifact 范围 | purge 仅支持 artifact scope |
84
+ | E005 | error | 备份失败(`.trash/` 写入异常) | 检查磁盘空间与权限,重试 |
85
+ | W001 | warning | 检出冲突但用户选择 keep | 记入 report,不阻断 |
86
+ | W002 | warning | 待删 artifact 无 harvest-log 记录 | 提示先跑 manage-harvest |
87
+ | W003 | warning | 循环 supersedes 链 | 自动断环或交互选保留节点 |
88
+ | W004 | warning | 检测耗时 >120s(大规模 spec 库) | 建议加 `--scope` 收敛或 `--since` 增量 |
89
+ | W005 | warning | LLM detector 不可用 | 降级到正则+图算法子集,跳过 B/G 类语义场景 |
90
+ </error_codes>
91
+
92
+ <success_criteria>
93
+ - [ ] Scope 正确解析,互斥标志校验通过
94
+ - [ ] 三存储按 scope 加载完成,构建出统一 finding 池
95
+ - [ ] Stage 3 时间线索引建立(mtime ↔ session/milestone 状态)
96
+ - [ ] Stage 4 按 P0/P1/P2 输出 finding 列表
97
+ - [ ] 如非 `--report`:用户对每项做出三态决策
98
+ - [ ] 未 harvest 的 artifact 删除前触发抢救确认
99
+ - [ ] Stage 6 backup tarball 生成于 `.workflow/.trash/`
100
+ - [ ] `deprecate` 通过元数据注入完成(spec/knowhow 文件未被物理删除)
101
+ - [ ] `delete` 移动至 `.trash/`,索引同步更新
102
+ - [ ] `purge` 仅在双重确认通过后执行
103
+ - [ ] `audit-report-{date}.md` + `audit-log.jsonl` 写入完成
104
+ - [ ] 摘要展示三存储变更计数与下一步路由
105
+ </success_criteria>
@@ -1,52 +1,62 @@
1
- ---
2
- name: manage-status
3
- description: Show project dashboard with progress and next steps
4
- argument-hint: ""
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Glob
9
- - Grep
10
- ---
11
- <purpose>
12
- Display a unified project dashboard showing artifact progress, task counts, active work, and intelligent next-step suggestions.
13
- Reads state.json artifact registry and roadmap to render a formatted overview with progress and status tables.
14
- Provides situational awareness before continuing work. Uses virtual phase view derived from artifact registry.
15
- </purpose>
16
-
17
- <required_reading>
18
- @~/.maestro/workflows/status.md
19
- </required_reading>
20
-
21
- <context>
22
- $ARGUMENTS (no arguments required)
23
-
24
- **State files read:**
25
- - `.workflow/state.json` -- project-level state machine + artifact registry
26
- - `.workflow/roadmap.md` -- milestone and phase structure
27
- - `.workflow/scratch/*/plan.json` -- plan metadata (via artifact registry paths)
28
- - `.workflow/scratch/*/.task/TASK-*.json` -- individual task statuses
29
- </context>
30
-
31
- <execution>
32
- Follow '~/.maestro/workflows/status.md' completely.
33
-
34
- Next-step decision table defined in workflow status.md Step 5.
35
- </execution>
36
-
37
- <error_codes>
38
- | Code | Severity | Description | Stage |
39
- |------|----------|-------------|-------|
40
- | E001 | fatal | `.workflow/` not initialized -- run `/maestro-init` first | parse_input |
41
- | E002 | fatal | `state.json` missing or corrupt -- project state unrecoverable | parse_input |
42
- </error_codes>
43
-
44
- <success_criteria>
45
- - [ ] Project state loaded from `state.json`
46
- - [ ] Roadmap parsed with milestone/phase structure
47
- - [ ] Per-phase progress calculated (task counts, completion %)
48
- - [ ] Dashboard rendered with progress bars and status table
49
- - [ ] Active work section shows current phase details
50
- - [ ] Next steps suggested based on current state analysis
51
- - [ ] Wiki health score displayed (or graceful unavailable message)
52
- </success_criteria>
1
+ ---
2
+ name: manage-status
3
+ description: Show project dashboard with progress and next steps
4
+ argument-hint: ""
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Glob
9
+ - Grep
10
+ ---
11
+ <purpose>
12
+ Project dashboard: artifact progress, task counts, active work, next-step suggestions.
13
+ </purpose>
14
+
15
+ <required_reading>
16
+ @~/.maestro/workflows/status.md
17
+ </required_reading>
18
+
19
+ <context>
20
+ $ARGUMENTS (no arguments required)
21
+
22
+ **State files read:**
23
+ - `.workflow/state.json` -- project-level state machine + artifact registry
24
+ - `.workflow/roadmap.md` -- milestone and phase structure
25
+ - `.workflow/scratch/*/plan.json` -- plan metadata (via artifact registry paths)
26
+ - `.workflow/scratch/*/.task/TASK-*.json` -- individual task statuses
27
+ </context>
28
+
29
+ <execution>
30
+ Follow '~/.maestro/workflows/status.md' completely.
31
+
32
+ Next-step decision table defined in workflow status.md Step 5.
33
+ </execution>
34
+
35
+ <error_codes>
36
+ | Code | Severity | Description | Stage |
37
+ |------|----------|-------------|-------|
38
+ | E001 | fatal | `.workflow/` not initialized -- run `/maestro-init` first | parse_input |
39
+ | E002 | fatal | `state.json` missing or corrupt -- project state unrecoverable | parse_input |
40
+ </error_codes>
41
+
42
+ <success_criteria>
43
+ - [ ] Project state loaded from `state.json`
44
+ - [ ] Roadmap parsed with milestone/phase structure
45
+ - [ ] Per-phase progress calculated (task counts, completion %)
46
+ - [ ] Dashboard rendered with progress bars and status table
47
+ - [ ] Active work section shows current phase details
48
+ - [ ] Next steps suggested based on current state analysis
49
+ - [ ] Wiki health score displayed (or graceful unavailable message)
50
+ </success_criteria>
51
+
52
+ <completion>
53
+ ### Next-step routing
54
+
55
+ | Condition | Suggestion |
56
+ |-----------|-----------|
57
+ | Phase needs analysis | `/maestro-analyze {phase}` |
58
+ | Phase needs planning | `/maestro-plan {phase}` |
59
+ | Phase needs execution | `/maestro-execute {phase}` |
60
+ | Milestone ready for audit | `/maestro-milestone-audit` |
61
+ | Issues need triage | `/manage-issue list` |
62
+ </completion>
@@ -1,71 +1,82 @@
1
- ---
2
- name: manage-wiki
3
- description: Manage wiki graph — health, cleanup, search, stats
4
- argument-hint: "<subcommand: health|search|cleanup|stats|connect|digest> [query] [--fix] [--dry-run]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - AskUserQuestion
13
- ---
14
- <purpose>
15
- Unified wiki graph management command. Provides interactive access to wiki health monitoring, entry search, orphan cleanup, graph statistics, link discovery, and knowledge synthesis — the single entry point for all wiki graph operations.
16
- </purpose>
17
-
18
- <required_reading>
19
- @~/.maestro/workflows/wiki-manage.md
20
- </required_reading>
21
-
22
- <context>
23
- $ARGUMENTS — subcommand and optional flags.
24
-
25
- **Subcommands:**
26
- | Subcommand | Description |
27
- |-----------|-------------|
28
- | `health` | Health dashboard — score, broken links, orphans, hubs (default) |
29
- | `search <query>` | Interactive BM25 search with follow-up actions |
30
- | `cleanup` | Find and resolve orphans, broken links, stale entries |
31
- | `stats` | Graph statistics — type distribution, tag frequency, growth trends |
32
- | `connect` | Find and link hidden connections — orphan rescue, missing links, transitive gaps |
33
- | `digest [topic]` | Generate knowledge digest with theme clustering and gap analysis |
34
- | No args | Same as `health` |
35
-
36
- **Flags:**
37
- - `--type <type>` — Filter by wiki type: spec, knowhow, note, issue
38
- - `--fix` — Auto-fix issues found during cleanup/connect (remove broken links, apply connections)
39
- - `--json` — Output in JSON format
40
- - `--min-similarity N` — (connect) Minimum similarity threshold for link candidates
41
- - `--max N` — (connect) Maximum number of suggestions
42
- - `--format brief|full` — (digest) Output format
43
- - `--recent N` — (digest) Scope to N most recent entries
44
- - `--create-issues` — (digest) Create issues for identified knowledge gaps
45
- </context>
46
-
47
- <execution>
48
- **Subcommand routing:**
49
- - `health|search|cleanup|stats` → Follow `~/.maestro/workflows/wiki-manage.md` completely.
50
- - `connect` → Follow `~/.maestro/workflows/wiki-connect.md` completely (Stages 1-6).
51
- - `digest` → Follow `~/.maestro/workflows/wiki-digest.md` completely (Stages 1-8).
52
- </execution>
53
-
54
- <error_codes>
55
- | Code | Severity | Description | Stage |
56
- |------|----------|-------------|-------|
57
- | E001 | fatal | `.workflow/` not initialized — run `/maestro-init` first | validate |
58
- | E002 | fatal | No wiki entries found — create content first | load |
59
- | E003 | error | Invalid subcommand | parse_input |
60
- | W001 | warning | Health score below 50 — graph needs attention | health |
61
- | W002 | warning | Orphan cleanup had partial failures | cleanup |
62
- </error_codes>
63
-
64
- <success_criteria>
65
- - [ ] Subcommand parsed (health/search/cleanup/stats/connect/digest)
66
- - [ ] Wiki data loaded via `maestro wiki` CLI
67
- - [ ] Results displayed in formatted output
68
- - [ ] If cleanup/connect --fix: issues resolved and delta reported
69
- - [ ] If digest: themes clustered, gaps identified, coverage heatmap generated
70
- - [ ] Next-step suggestions provided
71
- </success_criteria>
1
+ ---
2
+ name: manage-wiki
3
+ description: Manage wiki graph — health, cleanup, search, stats
4
+ argument-hint: "<subcommand: health|search|cleanup|stats|connect|digest> [query] [--fix] [--dry-run]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - AskUserQuestion
13
+ ---
14
+ <purpose>
15
+ Wiki graph management: health, search, cleanup, stats, connect, digest.
16
+ </purpose>
17
+
18
+ <required_reading>
19
+ @~/.maestro/workflows/wiki-manage.md
20
+ </required_reading>
21
+
22
+ <context>
23
+ $ARGUMENTS — subcommand and optional flags.
24
+
25
+ **Subcommands:**
26
+ | Subcommand | Description |
27
+ |-----------|-------------|
28
+ | `health` | Health dashboard — score, broken links, orphans, hubs (default) |
29
+ | `search <query>` | Interactive BM25 search with follow-up actions |
30
+ | `cleanup` | Find and resolve orphans, broken links, stale entries |
31
+ | `stats` | Graph statistics — type distribution, tag frequency, growth trends |
32
+ | `connect` | Find and link hidden connections — orphan rescue, missing links, transitive gaps |
33
+ | `digest [topic]` | Generate knowledge digest with theme clustering and gap analysis |
34
+ | No args | Same as `health` |
35
+
36
+ **Flags:**
37
+ - `--type <type>` — Filter by wiki type: spec, knowhow, note, issue
38
+ - `--fix` — Auto-fix issues found during cleanup/connect (remove broken links, apply connections)
39
+ - `--json` — Output in JSON format
40
+ - `--min-similarity N` — (connect) Minimum similarity threshold for link candidates
41
+ - `--max N` — (connect) Maximum number of suggestions
42
+ - `--format brief|full` — (digest) Output format
43
+ - `--recent N` — (digest) Scope to N most recent entries
44
+ - `--create-issues` — (digest) Create issues for identified knowledge gaps
45
+ </context>
46
+
47
+ <execution>
48
+ **Subcommand routing:**
49
+ - `health|search|cleanup|stats` → Follow `~/.maestro/workflows/wiki-manage.md` completely.
50
+ - `connect` → Follow `~/.maestro/workflows/wiki-connect.md` completely (Stages 1-6).
51
+ - `digest` → Follow `~/.maestro/workflows/wiki-digest.md` completely (Stages 1-8).
52
+ </execution>
53
+
54
+ <error_codes>
55
+ | Code | Severity | Description | Stage |
56
+ |------|----------|-------------|-------|
57
+ | E001 | fatal | `.workflow/` not initialized — run `/maestro-init` first | validate |
58
+ | E002 | fatal | No wiki entries found — create content first | load |
59
+ | E003 | error | Invalid subcommand | parse_input |
60
+ | W001 | warning | Health score below 50 — graph needs attention | health |
61
+ | W002 | warning | Orphan cleanup had partial failures | cleanup |
62
+ </error_codes>
63
+
64
+ <success_criteria>
65
+ - [ ] Subcommand parsed (health/search/cleanup/stats/connect/digest)
66
+ - [ ] Wiki data loaded via `maestro wiki` CLI
67
+ - [ ] Results displayed in formatted output
68
+ - [ ] If cleanup/connect --fix: issues resolved and delta reported
69
+ - [ ] If digest: themes clustered, gaps identified, coverage heatmap generated
70
+ - [ ] Next-step suggestions provided
71
+ </success_criteria>
72
+
73
+ <completion>
74
+ ### Next-step routing
75
+
76
+ | Condition | Suggestion |
77
+ |-----------|-----------|
78
+ | Health score < 50 | `/manage-wiki cleanup --fix` |
79
+ | Orphan entries found | `/manage-wiki connect --fix` |
80
+ | Knowledge gaps identified | `/manage-knowhow-capture` |
81
+ | Want knowledge synthesis | `/manage-wiki digest` |
82
+ </completion>