maestro-flow-one 0.1.3 → 0.2.1

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 (100) hide show
  1. package/.ace-tool/index.json +108 -0
  2. package/README.md +10 -10
  3. package/bin/maestro-flow.js +30 -0
  4. package/claude/maestro-flow/SKILL.md +28 -94
  5. package/claude/maestro-flow/agents/cli-explore-agent.md +187 -0
  6. package/claude/maestro-flow/agents/conceptual-planning-agent.md +245 -0
  7. package/claude/maestro-flow/agents/team-supervisor.md +143 -0
  8. package/claude/maestro-flow/agents/team-worker.md +237 -0
  9. package/claude/maestro-flow/agents/ui-design-agent.md +286 -0
  10. package/claude/maestro-flow/agents/workflow-analyzer.md +115 -0
  11. package/claude/maestro-flow/agents/workflow-codebase-mapper.md +77 -0
  12. package/claude/maestro-flow/agents/workflow-collab-planner.md +143 -0
  13. package/claude/maestro-flow/agents/workflow-debugger.md +103 -0
  14. package/claude/maestro-flow/agents/workflow-executor.md +129 -0
  15. package/claude/maestro-flow/agents/workflow-external-researcher.md +86 -0
  16. package/claude/maestro-flow/agents/workflow-integration-checker.md +83 -0
  17. package/claude/maestro-flow/agents/workflow-nyquist-auditor.md +85 -0
  18. package/claude/maestro-flow/agents/workflow-phase-researcher.md +85 -0
  19. package/claude/maestro-flow/agents/workflow-plan-checker.md +90 -0
  20. package/claude/maestro-flow/agents/workflow-planner.md +195 -0
  21. package/claude/maestro-flow/agents/workflow-project-researcher.md +74 -0
  22. package/claude/maestro-flow/agents/workflow-research-synthesizer.md +70 -0
  23. package/claude/maestro-flow/agents/workflow-reviewer.md +82 -0
  24. package/claude/maestro-flow/agents/workflow-roadmapper.md +81 -0
  25. package/claude/maestro-flow/agents/workflow-verifier.md +120 -0
  26. package/claude/maestro-flow/executor.md +328 -0
  27. package/codex/maestro-flow/SKILL.md +18 -0
  28. package/codex/maestro-flow/agents/team-supervisor.toml +40 -0
  29. package/codex/maestro-flow/agents/team-worker.toml +63 -0
  30. package/maestro-flow/agents/cli-explore-agent.md +187 -0
  31. package/maestro-flow/agents/conceptual-planning-agent.md +245 -0
  32. package/maestro-flow/agents/team-supervisor.md +143 -0
  33. package/maestro-flow/agents/team-worker.md +237 -0
  34. package/maestro-flow/agents/ui-design-agent.md +286 -0
  35. package/maestro-flow/agents/workflow-analyzer.md +115 -0
  36. package/maestro-flow/agents/workflow-codebase-mapper.md +77 -0
  37. package/maestro-flow/agents/workflow-collab-planner.md +143 -0
  38. package/maestro-flow/agents/workflow-debugger.md +103 -0
  39. package/maestro-flow/agents/workflow-executor.md +129 -0
  40. package/maestro-flow/agents/workflow-external-researcher.md +86 -0
  41. package/maestro-flow/agents/workflow-integration-checker.md +83 -0
  42. package/maestro-flow/agents/workflow-nyquist-auditor.md +85 -0
  43. package/maestro-flow/agents/workflow-phase-researcher.md +85 -0
  44. package/maestro-flow/agents/workflow-plan-checker.md +90 -0
  45. package/maestro-flow/agents/workflow-planner.md +195 -0
  46. package/maestro-flow/agents/workflow-project-researcher.md +74 -0
  47. package/maestro-flow/agents/workflow-research-synthesizer.md +70 -0
  48. package/maestro-flow/agents/workflow-reviewer.md +82 -0
  49. package/maestro-flow/agents/workflow-roadmapper.md +81 -0
  50. package/maestro-flow/agents/workflow-verifier.md +120 -0
  51. package/maestro-flow/commands/learn/decompose.md +176 -0
  52. package/maestro-flow/commands/learn/follow.md +167 -0
  53. package/maestro-flow/commands/learn/investigate.md +221 -0
  54. package/maestro-flow/commands/learn/retro.md +303 -0
  55. package/maestro-flow/commands/learn/second-opinion.md +167 -0
  56. package/maestro-flow/commands/lifecycle/amend.md +300 -0
  57. package/maestro-flow/commands/lifecycle/analyze.md +130 -0
  58. package/maestro-flow/commands/lifecycle/brainstorm.md +104 -0
  59. package/maestro-flow/commands/lifecycle/composer.md +354 -0
  60. package/maestro-flow/commands/lifecycle/execute.md +120 -0
  61. package/maestro-flow/commands/lifecycle/fork.md +86 -0
  62. package/maestro-flow/commands/lifecycle/init.md +78 -0
  63. package/maestro-flow/commands/lifecycle/learn.md +140 -0
  64. package/maestro-flow/commands/lifecycle/link-coordinate.md +71 -0
  65. package/maestro-flow/commands/lifecycle/merge.md +61 -0
  66. package/maestro-flow/commands/lifecycle/overlay.md +178 -0
  67. package/maestro-flow/commands/lifecycle/plan.md +154 -0
  68. package/maestro-flow/commands/lifecycle/player.md +404 -0
  69. package/maestro-flow/commands/lifecycle/quick.md +56 -0
  70. package/maestro-flow/commands/lifecycle/roadmap.md +164 -0
  71. package/maestro-flow/commands/lifecycle/ui-design.md +93 -0
  72. package/maestro-flow/commands/lifecycle/update.md +176 -0
  73. package/maestro-flow/commands/lifecycle/verify.md +96 -0
  74. package/maestro-flow/commands/manage/codebase-rebuild.md +75 -0
  75. package/maestro-flow/commands/manage/codebase-refresh.md +57 -0
  76. package/maestro-flow/commands/manage/harvest.md +94 -0
  77. package/maestro-flow/commands/manage/issue-discover.md +77 -0
  78. package/maestro-flow/commands/manage/issue.md +73 -0
  79. package/maestro-flow/commands/manage/knowhow-capture.md +193 -0
  80. package/maestro-flow/commands/manage/knowhow.md +77 -0
  81. package/maestro-flow/commands/manage/learn.md +67 -0
  82. package/maestro-flow/commands/manage/status.md +51 -0
  83. package/maestro-flow/commands/manage/wiki.md +62 -0
  84. package/maestro-flow/commands/milestone/audit.md +68 -0
  85. package/maestro-flow/commands/milestone/complete.md +75 -0
  86. package/maestro-flow/commands/milestone/release.md +96 -0
  87. package/maestro-flow/commands/quality/auto-test.md +128 -0
  88. package/maestro-flow/commands/quality/debug.md +125 -0
  89. package/maestro-flow/commands/quality/refactor.md +55 -0
  90. package/maestro-flow/commands/quality/retrospective.md +78 -0
  91. package/maestro-flow/commands/quality/review.md +114 -0
  92. package/maestro-flow/commands/quality/sync.md +51 -0
  93. package/maestro-flow/commands/quality/test.md +107 -0
  94. package/maestro-flow/commands/spec/add.md +49 -0
  95. package/maestro-flow/commands/spec/load.md +51 -0
  96. package/maestro-flow/commands/spec/remove.md +51 -0
  97. package/maestro-flow/commands/spec/setup.md +51 -0
  98. package/maestro-flow/commands/wiki/connect.md +62 -0
  99. package/maestro-flow/commands/wiki/digest.md +69 -0
  100. package/package.json +1 -1
@@ -0,0 +1,107 @@
1
+ ---
2
+ name: quality-test
3
+ description: Conversational UAT with auto-diagnosis 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
+ **Review findings integration** (from related review artifacts):
44
+ - Extract critical/high findings as additional test scenarios, marked `source: "review_finding"`
45
+ - When review verdict is "BLOCK" and review-finding tests fail, auto-enter gap-fix loop
46
+
47
+ **Debug root cause integration** (from related debug artifacts):
48
+ - Generate regression test scenarios from confirmed root causes, marked `source: "debug_root_cause"`
49
+
50
+ **Register artifact on completion:**
51
+ ```
52
+ Append to state.json.artifacts[]:
53
+ {
54
+ id: nextArtifactId(artifacts, "test"), // TST-001
55
+ type: "test",
56
+ milestone: current_milestone,
57
+ phase: target_phase,
58
+ scope: "phase",
59
+ path: "scratch/{YYYYMMDD}-test-P{N}-{slug}",
60
+ status: issues == 0 ? "completed" : "failed",
61
+ depends_on: exec_art.id,
62
+ harvested: false,
63
+ created_at: start_time,
64
+ completed_at: now()
65
+ }
66
+ ```
67
+
68
+ **Next-step routing on completion:**
69
+ - All tests pass → `/maestro-milestone-audit`
70
+ - Issues found, --auto-fix ran and succeeded → `/maestro-verify {phase}`
71
+ - Issues found, --auto-fix ran but gaps remain → `/quality-debug --from-uat {phase}`
72
+ - Issues found, manual fix needed → `/quality-debug --from-uat {phase}`
73
+ - Coverage below threshold → `/quality-auto-test {phase}`
74
+ - Need integration tests → `/quality-auto-test {phase}`
75
+ </execution>
76
+
77
+ <error_codes>
78
+ | Code | Severity | Condition | Recovery |
79
+ |------|----------|-----------|----------|
80
+ | E001 | error | Phase or task target required (no active sessions) | Prompt user for phase number |
81
+ | E002 | error | Phase not verified yet (no verification.json) | Suggest `/maestro-verify` first |
82
+ | E003 | error | Smoke test failed (app won't start) | Suggest `/quality-debug` |
83
+ | W001 | warning | One or more test scenarios failed | Auto-diagnose, suggest fix options |
84
+ | W002 | warning | Coverage below threshold | Suggest `/quality-auto-test` |
85
+ </error_codes>
86
+
87
+ <success_criteria>
88
+ - [ ] Target resolved (phase or scratch task)
89
+ - [ ] Active sessions checked, resume offered if applicable
90
+ - [ ] Smoke tests run if --smoke flag set
91
+ - [ ] test-plan.json generated with categorized tests mapped to requirements
92
+ - [ ] uat.md created/resumed with all tests
93
+ - [ ] Tests presented one at a time with expected behavior
94
+ - [ ] User responses processed as pass/issue/skip
95
+ - [ ] Severity inferred from natural language (never asked)
96
+ - [ ] Batched writes: on issue, every 5 passes, or completion
97
+ - [ ] test-results.json and coverage-report.json written
98
+ - [ ] UAT confidence scored with 4-dimension factor model
99
+ - [ ] Readiness gate checked before final report
100
+ - [ ] Pressure pass completed if > 80% pass rate
101
+ - [ ] Confidence summary appended to uat.md
102
+ - [ ] index.json uat fields updated
103
+ - [ ] If issues: parallel debug agents spawned per gap cluster
104
+ - [ ] Gaps updated with root_cause, fix_direction, affected_files
105
+ - [ ] Gap-fix loop triggered if --auto-fix (max 2 iterations)
106
+ - [ ] Next step routed (phase-transition if pass, verify if auto-fix success, debug --from-uat if issues, test-gen if low coverage)
107
+ </success_criteria>
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: spec-add
3
+ description: Add spec entry by category
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
+ </purpose>
17
+
18
+ <required_reading>
19
+ @~/.maestro/workflows/specs-add.md
20
+ </required_reading>
21
+
22
+ <context>
23
+ $ARGUMENTS -- expects `[--scope <scope>] [--uid <uid>] <category> <content>`
24
+
25
+ Scope-to-directory mapping, category-to-file mapping, and entry format defined in workflow specs-add.md.
26
+ </context>
27
+
28
+ <execution>
29
+ Follow '~/.maestro/workflows/specs-add.md' completely.
30
+ </execution>
31
+
32
+ <error_codes>
33
+ | Code | Severity | Description | Stage |
34
+ |------|----------|-------------|-------|
35
+ | E001 | fatal | Category and content are both required | parse_input |
36
+ | E002 | fatal | Specs directory not initialized -- run `maestro spec init --scope <scope>` | validate_entry |
37
+ | E003 | fatal | Invalid category -- must be one of: coding, arch, quality, debug, test, review, learning | parse_input |
38
+ | E004 | fatal | Invalid scope -- must be one of: project, global, team, personal | parse_input |
39
+ | E005 | fatal | Personal scope requires uid -- use `--uid` or run `maestro collab join` first | parse_input |
40
+ </error_codes>
41
+
42
+ <success_criteria>
43
+ - [ ] Scope and category parsed and validated
44
+ - [ ] Keywords auto-extracted from content (3-5 relevant terms)
45
+ - [ ] Entry written in `<spec-entry>` closed-tag format
46
+ - [ ] Entry appended to correct target file for scope
47
+ - [ ] Confirmation report displayed with scope, path, keywords
48
+ - [ ] Next step: `maestro spec load --scope <scope> --keyword {keyword}` to verify
49
+ </success_criteria>
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: spec-load
3
+ description: Load specs and lessons for current context
4
+ argument-hint: "[--category <type>] [--keyword <word>] [--with-lessons]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Glob
9
+ - Grep
10
+ ---
11
+ <purpose>
12
+ Load and display relevant spec files for the current working context.
13
+ Supports filtering by category (file-level) and keyword (entry-level via `<spec-entry>` tags).
14
+ </purpose>
15
+
16
+ <required_reading>
17
+ @~/.maestro/workflows/specs-load.md
18
+ </required_reading>
19
+
20
+ <context>
21
+ $ARGUMENTS -- optional flags and keyword
22
+
23
+ Category-to-file mapping (1:1) and flag details defined in workflow specs-load.md.
24
+
25
+ **Examples:**
26
+ ```
27
+ /spec-load --keyword auth
28
+ /spec-load --category coding --keyword naming
29
+ /spec-load --category arch
30
+ ```
31
+ </context>
32
+
33
+ <execution>
34
+ Follow '~/.maestro/workflows/specs-load.md' completely.
35
+ </execution>
36
+
37
+ <error_codes>
38
+ | Code | Severity | Description | Stage |
39
+ |------|----------|-------------|-------|
40
+ | E001 | fatal | `.workflow/specs/` not initialized -- run `/spec-setup` first | detect_context |
41
+ | W001 | warning | No matching specs found for keyword -- showing all specs in category instead | load_specs |
42
+ </error_codes>
43
+
44
+ <success_criteria>
45
+ - [ ] Category and/or keyword parsed from arguments
46
+ - [ ] Spec files loaded per category mapping
47
+ - [ ] Keyword filtering applied at entry level (via `<spec-entry>` keywords attribute)
48
+ - [ ] Legacy entries filtered by text grep fallback
49
+ - [ ] Results displayed with file:category references
50
+ </success_criteria>
51
+ </output>
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: spec-remove
3
+ description: Remove spec entry by ID
4
+ argument-hint: "<entry-id>"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - AskUserQuestion
13
+ ---
14
+ <purpose>
15
+ Remove a `<spec-entry>` from a specs file. Symmetric with `/spec-add`.
16
+ Uses `maestro wiki remove-entry` for atomic removal with index auto-update.
17
+ </purpose>
18
+
19
+ <required_reading>
20
+ @~/.maestro/workflows/specs-remove.md
21
+ </required_reading>
22
+
23
+ <context>
24
+ $ARGUMENTS -- expects `<entry-id>` (e.g., `spec-learnings-003`, `spec-coding-conventions-001`)
25
+
26
+ **Entry ID format**: `spec-{file-stem}-{NNN}` — the sub-node ID assigned by WikiIndexer when indexing `<spec-entry>` blocks.
27
+
28
+ **Discovery**: Use `maestro wiki list --type spec --json` or `/spec-load --keyword <term>` to find entry IDs.
29
+ </context>
30
+
31
+ <execution>
32
+ Follow '~/.maestro/workflows/specs-remove.md' completely.
33
+ </execution>
34
+
35
+ <error_codes>
36
+ | Code | Severity | Description | Stage |
37
+ |------|----------|-------------|-------|
38
+ | E001 | fatal | Entry ID is required -- usage: `/spec-remove <entry-id>` | parse_input |
39
+ | E002 | fatal | `.workflow/specs/` not initialized -- run `/spec-setup` first | validate |
40
+ | E003 | fatal | Entry ID not found in wiki index | lookup |
41
+ | E004 | fatal | Entry is not a spec sub-node (wrong type) | validate |
42
+ </error_codes>
43
+
44
+ <success_criteria>
45
+ - [ ] Entry ID parsed and validated
46
+ - [ ] Entry found in wiki index (type=spec, is sub-node)
47
+ - [ ] User confirmed removal (unless -y flag)
48
+ - [ ] Entry removed from container file via `maestro wiki remove-entry`
49
+ - [ ] Wiki index auto-updated
50
+ - [ ] Confirmation displayed with removed entry details
51
+ </success_criteria>
@@ -0,0 +1,51 @@
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, learning) are always created. Optional files (quality, debug, test, review) are created only when relevant signals are detected.
15
+ All output lands in `.workflow/specs/`.
16
+ </purpose>
17
+
18
+ <required_reading>
19
+ @~/.maestro/workflows/specs-setup.md
20
+ </required_reading>
21
+
22
+ <deferred_reading>
23
+ </deferred_reading>
24
+
25
+ <context>
26
+ $ARGUMENTS (no arguments expected)
27
+
28
+ **Preconditions:**
29
+ - `.workflow/` directory must exist (created by `/maestro-init`) # (see code: E001)
30
+ - Project must contain source files to scan # (see code: E002)
31
+ </context>
32
+
33
+ <execution>
34
+ Follow '~/.maestro/workflows/specs-setup.md' completely.
35
+ </execution>
36
+
37
+ <error_codes>
38
+ | Code | Severity | Description | Stage |
39
+ |------|----------|-------------|-------|
40
+ | E001 | fatal | `.workflow/` directory not initialized -- run `/maestro-init` first | parse_input |
41
+ | E002 | fatal | No source files found in project -- nothing to scan | scan_codebase |
42
+ | W001 | warning | Convention detection uncertain for one or more categories -- marked `[UNCERTAIN]` | generate_specs |
43
+ </error_codes>
44
+
45
+ <success_criteria>
46
+ - [ ] `.workflow/specs/` directory created
47
+ - [ ] Core files always created: `coding-conventions.md`, `architecture-constraints.md`, `learnings.md`
48
+ - [ ] Optional files created when detected: `quality-rules.md` (linter/CI), `test-conventions.md` (test framework), `debug-notes.md` (on demand), `review-standards.md` (on demand)
49
+ - [ ] Report displayed with summary and next steps
50
+ </success_criteria>
51
+ </output>
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: wiki-connect
3
+ description: Find and link hidden connections in wiki graph
4
+ argument-hint: "[--scope <type>] [--min-similarity N] [--fix] [--max N]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - Agent
12
+ - AskUserQuestion
13
+ ---
14
+ <required_reading>
15
+ @~/.maestro/workflows/wiki-connect.md
16
+ </required_reading>
17
+
18
+ <purpose>
19
+ Knowledge graph link discovery and health improvement. Analyzes the wiki index to find orphaned entries, missing connections, and transitive link gaps, then suggests or auto-applies new `related` links to improve graph connectivity.
20
+
21
+ Leverages maestro's unique wiki graph infrastructure (BM25 search, backlinks, health scoring) — no equivalent in gstack. Directly improves the quality of all downstream wiki consumers (search, digest, follow-along).
22
+ </purpose>
23
+
24
+ <context>
25
+ Arguments: $ARGUMENTS
26
+
27
+ Flags, storage paths, and CLI commands defined in workflow wiki-connect.md.
28
+ </context>
29
+
30
+ <execution>
31
+ Follow '~/.maestro/workflows/wiki-connect.md' completely (Stages 1-6).
32
+
33
+ **Next-step routing:**
34
+ - Generate knowledge digest → `/wiki-digest <topic>`
35
+ - Follow-along on orphan → `/learn-follow <wiki-id>`
36
+ - View full graph → `maestro wiki graph`
37
+ </execution>
38
+
39
+ <error_codes>
40
+ | Code | Severity | Condition | Recovery |
41
+ |------|----------|-----------|----------|
42
+ | E001 | error | No wiki entries found (empty index) | Initialize wiki content first, or run `/maestro-init` |
43
+ | E002 | error | `maestro wiki` CLI not available | Check maestro installation |
44
+ | W001 | warning | No connection candidates found above threshold | Lower --min-similarity or check if graph is already well-connected |
45
+ | W002 | warning | Some wiki update calls failed during --fix | Partial application; retry failed entries manually |
46
+ | W003 | warning | Health score unchanged after fix | Connections may not have improved the specific health metrics |
47
+ </error_codes>
48
+
49
+ <success_criteria>
50
+ - [ ] Wiki index loaded with entry count and type distribution
51
+ - [ ] Baseline health score recorded
52
+ - [ ] Orphans identified and rescue candidates generated
53
+ - [ ] Connection candidates scored and ranked
54
+ - [ ] Results filtered by --min-similarity and limited by --max
55
+ - [ ] Suggestions displayed with scores and reasons
56
+ - [ ] If --fix: entries updated with new `related` links
57
+ - [ ] If --fix: new health score computed and delta reported
58
+ - [ ] Report written to `wiki-connections-{date}.md`
59
+ - [ ] Graph insights appended to `lessons.jsonl`
60
+ - [ ] No unintended entry modifications (only `related` field changed)
61
+ - [ ] Summary displayed with next-step routing
62
+ </success_criteria>
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: wiki-digest
3
+ description: Generate wiki digest with theme clustering and gap analysis
4
+ argument-hint: "[<topic>|--recent N] [--type <type>] [--format brief|full]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - Agent
12
+ - AskUserQuestion
13
+ ---
14
+ <purpose>
15
+ Knowledge synthesis command that generates actionable digests from the wiki knowledge graph. Clusters entries by semantic theme, identifies knowledge gaps, and produces a coverage heatmap. Unique to maestro — leverages the wiki graph (BM25 search, backlinks, health) to surface trends and missing knowledge.
16
+
17
+ Unlike `maestro wiki list` which shows raw entries, this command synthesizes and interprets the knowledge base, producing a curated summary with gap analysis and recommended next actions.
18
+ </purpose>
19
+
20
+ <required_reading>
21
+ @~/.maestro/workflows/wiki-digest.md
22
+ </required_reading>
23
+
24
+ <deferred_reading>
25
+ - @~/.maestro/workflows/issue.md (issues.jsonl canonical schema for `--create-issues` routing)
26
+ </deferred_reading>
27
+
28
+ <context>
29
+ Arguments: $ARGUMENTS
30
+
31
+ Flags, scope resolution, storage paths, and CLI commands defined in workflow wiki-digest.md.
32
+ </context>
33
+
34
+ <execution>
35
+ Follow '~/.maestro/workflows/wiki-digest.md' completely (Stages 1-8).
36
+
37
+ **Next-step routing:**
38
+ - Deep dive on a theme → `/learn-follow <wiki-id>`
39
+ - Fix graph gaps → `/wiki-connect --fix`
40
+ - Decompose code for missing patterns → `/learn-decompose <path>`
41
+ - Create missing entries → `maestro wiki create --type <type> --slug <slug>`
42
+ - Triage gap issues → `/manage-issue list --source wiki-digest`
43
+ </execution>
44
+
45
+ <error_codes>
46
+ | Code | Severity | Condition | Recovery |
47
+ |------|----------|-----------|----------|
48
+ | E001 | error | No wiki entries found (empty index) | Initialize wiki content first |
49
+ | E002 | error | Topic search returned 0 results | Broaden topic or check wiki content |
50
+ | W001 | warning | Too few entries (<5) for meaningful theme clustering | Digest produced but themes may be trivial |
51
+ | W002 | warning | lessons.jsonl not found — skipping cross-reference | Proceed without lesson context |
52
+ | W003 | warning | Some entry bodies failed to load — partial summaries | Note incomplete entries in digest |
53
+ </error_codes>
54
+
55
+ <success_criteria>
56
+ - [ ] Scope parsed and entries loaded
57
+ - [ ] Baseline health score recorded
58
+ - [ ] Entries clustered into 3-5 semantic themes
59
+ - [ ] Per-theme analysis: summary, key entries, gaps, health
60
+ - [ ] Cross-reference with lessons.jsonl completed
61
+ - [ ] Coverage heatmap generated (type × theme matrix)
62
+ - [ ] Knowledge gaps identified with suggested actions
63
+ - [ ] If `--create-issues`: gap issues created in `issues.jsonl` (deduped)
64
+ - [ ] Digest written to `digest-{slug}-{date}.md`
65
+ - [ ] Meta-insights appended to `lessons.jsonl`
66
+ - [ ] `learning-index.json` updated
67
+ - [ ] No files modified outside `.workflow/learning/` and `.workflow/issues/` (issues only when `--create-issues`)
68
+ - [ ] Summary displayed with key findings and next-step routing
69
+ </success_criteria>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maestro-flow-one",
3
- "version": "0.1.3",
3
+ "version": "0.2.1",
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"