maestro-flow 0.3.37 → 0.3.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/workflow-analyzer.md +2 -0
- package/.claude/agents/workflow-debugger.md +2 -0
- package/.claude/agents/workflow-executor.md +2 -0
- package/.claude/agents/workflow-integration-checker.md +1 -0
- package/.claude/agents/workflow-nyquist-auditor.md +1 -0
- package/.claude/agents/workflow-planner.md +2 -0
- package/.claude/agents/workflow-reviewer.md +2 -0
- package/.claude/agents/workflow-verifier.md +2 -0
- package/.claude/commands/learn-decompose.md +176 -176
- package/.claude/commands/learn-follow.md +167 -167
- package/.claude/commands/learn-investigate.md +221 -221
- package/.claude/commands/learn-retro.md +303 -303
- package/.claude/commands/learn-second-opinion.md +167 -167
- package/.claude/commands/maestro-amend.md +300 -300
- package/.claude/commands/maestro-analyze.md +126 -126
- package/.claude/commands/maestro-brainstorm.md +100 -100
- package/.claude/commands/maestro-composer.md +354 -354
- package/.claude/commands/maestro-execute.md +120 -114
- package/.claude/commands/maestro-fork.md +86 -86
- package/.claude/commands/maestro-init.md +78 -78
- package/.claude/commands/maestro-learn.md +140 -140
- package/.claude/commands/maestro-link-coordinate.md +1 -1
- package/.claude/commands/maestro-merge.md +61 -61
- package/.claude/commands/maestro-milestone-release.md +96 -96
- package/.claude/commands/maestro-overlay.md +178 -178
- package/.claude/commands/maestro-plan.md +150 -138
- package/.claude/commands/maestro-player.md +404 -404
- package/.claude/commands/maestro-quick.md +56 -56
- package/.claude/commands/maestro-ralph-execute.md +7 -18
- package/.claude/commands/maestro-ralph.md +9 -3
- package/.claude/commands/maestro-roadmap.md +1 -1
- package/.claude/commands/maestro-ui-design.md +93 -93
- package/.claude/commands/maestro-update.md +176 -176
- package/.claude/commands/maestro-verify.md +96 -90
- package/.claude/commands/maestro.md +121 -121
- package/.claude/commands/manage-codebase-rebuild.md +75 -75
- package/.claude/commands/manage-codebase-refresh.md +57 -57
- package/.claude/commands/manage-harvest.md +94 -94
- package/.claude/commands/manage-issue-discover.md +77 -77
- package/.claude/commands/manage-issue.md +73 -73
- package/.claude/commands/manage-knowhow-capture.md +193 -193
- package/.claude/commands/manage-knowhow.md +77 -77
- package/.claude/commands/manage-learn.md +67 -67
- package/.claude/commands/manage-status.md +51 -51
- package/.claude/commands/manage-wiki.md +62 -62
- package/.claude/commands/quality-auto-test.md +1 -1
- package/.claude/commands/quality-debug.md +121 -115
- package/.claude/commands/quality-refactor.md +55 -55
- package/.claude/commands/quality-retrospective.md +78 -78
- package/.claude/commands/quality-review.md +114 -108
- package/.claude/commands/quality-sync.md +51 -51
- package/.claude/commands/quality-test.md +103 -103
- package/.claude/commands/spec-add.md +49 -49
- package/.claude/commands/spec-load.md +51 -51
- package/.claude/commands/spec-remove.md +51 -51
- package/.claude/commands/spec-setup.md +51 -51
- package/.claude/commands/wiki-connect.md +62 -62
- package/.claude/commands/wiki-digest.md +69 -69
- package/.codex/skills/learn-decompose/SKILL.md +113 -113
- package/.codex/skills/learn-follow/SKILL.md +1 -1
- package/.codex/skills/learn-investigate/SKILL.md +83 -83
- package/.codex/skills/learn-retro/SKILL.md +83 -83
- package/.codex/skills/learn-second-opinion/SKILL.md +86 -86
- package/.codex/skills/maestro/SKILL.md +304 -304
- package/.codex/skills/maestro-analyze/SKILL.md +9 -8
- package/.codex/skills/maestro-brainstorm/SKILL.md +442 -397
- package/.codex/skills/maestro-composer/SKILL.md +213 -213
- package/.codex/skills/maestro-execute/SKILL.md +346 -318
- package/.codex/skills/maestro-fork/SKILL.md +56 -2
- package/.codex/skills/maestro-init/SKILL.md +40 -16
- package/.codex/skills/maestro-learn/SKILL.md +80 -80
- package/.codex/skills/maestro-link-coordinate/SKILL.md +257 -257
- package/.codex/skills/maestro-merge/SKILL.md +1 -1
- package/.codex/skills/maestro-milestone-audit/SKILL.md +1 -1
- package/.codex/skills/maestro-milestone-complete/SKILL.md +40 -9
- package/.codex/skills/maestro-milestone-release/SKILL.md +70 -70
- package/.codex/skills/maestro-overlay/SKILL.md +1 -1
- package/.codex/skills/maestro-plan/SKILL.md +19 -4
- package/.codex/skills/maestro-player/SKILL.md +323 -323
- package/.codex/skills/maestro-quick/SKILL.md +1 -1
- package/.codex/skills/maestro-ralph/SKILL.md +681 -578
- package/.codex/skills/maestro-roadmap/SKILL.md +518 -468
- package/.codex/skills/maestro-ui-design/SKILL.md +109 -12
- package/.codex/skills/maestro-verify/SKILL.md +27 -9
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +3 -2
- package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
- package/.codex/skills/manage-harvest/SKILL.md +91 -91
- package/.codex/skills/manage-issue/SKILL.md +19 -6
- package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
- package/.codex/skills/manage-knowhow/SKILL.md +95 -95
- package/.codex/skills/manage-knowhow-capture/SKILL.md +110 -110
- package/.codex/skills/manage-learn/SKILL.md +1 -1
- package/.codex/skills/manage-status/SKILL.md +1 -1
- package/.codex/skills/manage-wiki/SKILL.md +55 -55
- package/.codex/skills/quality-auto-test/SKILL.md +547 -547
- package/.codex/skills/quality-debug/SKILL.md +339 -334
- package/.codex/skills/quality-refactor/SKILL.md +1 -1
- package/.codex/skills/quality-retrospective/SKILL.md +292 -292
- package/.codex/skills/quality-review/SKILL.md +365 -364
- package/.codex/skills/quality-sync/SKILL.md +1 -1
- package/.codex/skills/quality-test/SKILL.md +498 -498
- package/.codex/skills/spec-add/SKILL.md +101 -101
- package/.codex/skills/spec-load/SKILL.md +77 -77
- package/.codex/skills/spec-map/SKILL.md +1 -1
- package/.codex/skills/spec-remove/SKILL.md +69 -69
- package/.codex/skills/spec-setup/SKILL.md +1 -1
- package/.codex/skills/team-coordinate/SKILL.md +2 -1
- package/.codex/skills/team-executor/SKILL.md +116 -115
- package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -1
- package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +14 -6
- package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +16 -4
- package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +7 -1
- package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +16 -4
- package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +8 -2
- package/.codex/skills/team-quality-assurance/SKILL.md +2 -1
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +9 -2
- package/.codex/skills/team-review/SKILL.md +2 -1
- package/.codex/skills/team-review/roles/reviewer/role.md +10 -1
- package/.codex/skills/team-review/roles/scanner/role.md +10 -1
- package/.codex/skills/team-tech-debt/SKILL.md +144 -143
- package/.codex/skills/team-tech-debt/roles/executor/role.md +9 -5
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +10 -0
- package/.codex/skills/team-tech-debt/roles/validator/role.md +8 -2
- package/.codex/skills/team-testing/SKILL.md +2 -1
- package/.codex/skills/team-testing/roles/executor/role.md +8 -2
- package/.codex/skills/team-testing/roles/generator/role.md +8 -2
- package/.codex/skills/wiki-connect/SKILL.md +73 -73
- package/.codex/skills/wiki-digest/SKILL.md +87 -87
- package/README.md +6 -0
- package/README.zh-CN.md +6 -0
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +4 -0
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +118 -7
- package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
- package/dashboard/dist-server/shared/agent-types.d.ts +2 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.d.ts +2 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.js +4 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
- package/dashboard/dist-server/src/commands/delegate.d.ts +2 -0
- package/dashboard/dist-server/src/commands/delegate.js +18 -0
- package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
- package/dashboard/dist-server/src/config/cli-tools-config.d.ts +6 -0
- package/dashboard/dist-server/src/config/cli-tools-config.js +2 -0
- package/dashboard/dist-server/src/config/cli-tools-config.js.map +1 -1
- package/dist/shared/agent-types.d.ts +2 -0
- package/dist/shared/agent-types.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.d.ts +2 -0
- package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.js +4 -0
- package/dist/src/agents/cli-agent-runner.js.map +1 -1
- package/dist/src/commands/config.d.ts.map +1 -1
- package/dist/src/commands/config.js +29 -1
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/delegate.d.ts +2 -0
- package/dist/src/commands/delegate.d.ts.map +1 -1
- package/dist/src/commands/delegate.js +18 -0
- package/dist/src/commands/delegate.js.map +1 -1
- package/dist/src/commands/launcher.d.ts.map +1 -1
- package/dist/src/commands/launcher.js +27 -4
- package/dist/src/commands/launcher.js.map +1 -1
- package/dist/src/config/cli-tools-config.d.ts +6 -0
- package/dist/src/config/cli-tools-config.d.ts.map +1 -1
- package/dist/src/config/cli-tools-config.js +2 -0
- package/dist/src/config/cli-tools-config.js.map +1 -1
- package/dist/src/core/overlay/applier.d.ts.map +1 -1
- package/dist/src/core/overlay/applier.js +65 -5
- package/dist/src/core/overlay/applier.js.map +1 -1
- package/dist/src/core/overlay/loader.d.ts.map +1 -1
- package/dist/src/core/overlay/loader.js +9 -4
- package/dist/src/core/overlay/loader.js.map +1 -1
- package/dist/src/core/overlay/types.d.ts +2 -0
- package/dist/src/core/overlay/types.d.ts.map +1 -1
- package/dist/src/core/overlay/types.js +2 -0
- package/dist/src/core/overlay/types.js.map +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.d.ts.map +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.js +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.js.map +1 -1
- package/dist/src/tui/tools-ui/ToolsOverview.d.ts.map +1 -1
- package/dist/src/tui/tools-ui/ToolsOverview.js +51 -4
- package/dist/src/tui/tools-ui/ToolsOverview.js.map +1 -1
- package/package.json +1 -1
- package/shared/agent-types.ts +2 -0
- package/workflows/delegate-protocol.codex.md +65 -0
- package/workflows/issue-analyze.md +2 -3
- package/workflows/issue-gaps-analyze.codex.md +260 -0
- package/workflows/issue-gaps-analyze.md +214 -0
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: manage-harvest
|
|
3
|
-
description: Extract knowledge from
|
|
4
|
-
argument-hint: "[<session-id|path>] [--to wiki|spec|issue|auto] [--source <type>] [--recent N] [--dry-run] [-y]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<purpose>
|
|
16
|
-
Extract knowledge fragments from workflow artifacts (analysis results, brainstorm outputs, debug sessions, lite-plan/fix results, scratchpad notes, completed sessions) and route them into the project's three knowledge stores: wiki entries, spec conventions, and trackable issues.
|
|
17
|
-
|
|
18
|
-
Complements `quality-retrospective` (which is phase-scoped) by harvesting from **any** workflow artifact. Prevents knowledge loss from completed analysis and planning sessions that would otherwise only exist as stale files.
|
|
19
|
-
|
|
20
|
-
**Closed-loop**: harvest extracts → wiki/spec/issue stores → downstream commands consume (wiki-digest, spec-load, maestro-plan --gaps).
|
|
21
|
-
</purpose>
|
|
22
|
-
|
|
23
|
-
<required_reading>
|
|
24
|
-
@~/.maestro/workflows/harvest.md
|
|
25
|
-
</required_reading>
|
|
26
|
-
|
|
27
|
-
<deferred_reading>
|
|
28
|
-
- @~/.maestro/workflows/issue.md (issues.jsonl schema for issue routing — read when creating issues in Stage 6c)
|
|
29
|
-
- @~/.maestro/workflows/specs-add.md (spec entry format — read when routing to spec in Stage 6b)
|
|
30
|
-
</deferred_reading>
|
|
31
|
-
|
|
32
|
-
<context>
|
|
33
|
-
Arguments: $ARGUMENTS
|
|
34
|
-
|
|
35
|
-
**Modes (auto-detected):**
|
|
36
|
-
- No arguments → `scan` mode: discover all harvestable artifacts, interactive selection
|
|
37
|
-
- `<session-id>` (e.g., `ANL-auth-20260410`, `WFS-xxx`) → `session` mode: harvest specific session
|
|
38
|
-
- `<path>` (e.g., `.workflow/.analysis/ANL-auth-20260410/`) → `path` mode: harvest from explicit directory
|
|
39
|
-
|
|
40
|
-
Flags, source registry (scan paths), and storage locations defined in workflow harvest.md.
|
|
41
|
-
</context>
|
|
42
|
-
|
|
43
|
-
<execution>
|
|
44
|
-
Follow '~/.maestro/workflows/harvest.md' Stages 1-8 in order.
|
|
45
|
-
|
|
46
|
-
**Key invariants:**
|
|
47
|
-
1. **Read-only until Stage 6** — extraction and classification happen in-memory.
|
|
48
|
-
2. **Dedup before write** — check harvest-log.jsonl and existing stores before each write.
|
|
49
|
-
3. **Never modify source artifacts** — harvest is purely extractive.
|
|
50
|
-
|
|
51
|
-
Extraction patterns, classification rules, routing infrastructure, and fragment ID scheme defined in workflow harvest.md.
|
|
52
|
-
|
|
53
|
-
**Next-step routing on completion:**
|
|
54
|
-
- Review wiki entries → `maestro wiki list --type note`
|
|
55
|
-
- Connect wiki graph → `/wiki-connect --fix`
|
|
56
|
-
- Triage issues → `/manage-issue list --source harvest`
|
|
57
|
-
- View specs → `/spec-load --category learning`
|
|
58
|
-
- Full retrospective → `/quality-retrospective`
|
|
59
|
-
</execution>
|
|
60
|
-
|
|
61
|
-
<error_codes>
|
|
62
|
-
| Code | Severity | Condition | Recovery |
|
|
63
|
-
|------|----------|-----------|----------|
|
|
64
|
-
| E001 | error | `.workflow/` not initialized | Run `/maestro-init` first |
|
|
65
|
-
| E002 | error | Invalid `--to` target (must be: wiki, spec, issue, auto) | Display valid options |
|
|
66
|
-
| E003 | error | Invalid `--source` type | Display valid source types from registry |
|
|
67
|
-
| E004 | error | Session ID not found in any source path | Show available sessions with `--source all` |
|
|
68
|
-
| E005 | error | Path does not exist or contains no parseable artifacts | Verify path and file structure |
|
|
69
|
-
| W001 | warning | No harvestable artifacts found within `--recent` window | Widen time window or check `.workflow/` contents |
|
|
70
|
-
| W002 | warning | `maestro wiki create` failed — wiki entries saved to `.workflow/harvest/wiki-pending-*.md` | Apply pending entries manually or retry |
|
|
71
|
-
| W003 | warning | Some fragments below confidence threshold — logged but not routed | Lower `--min-confidence` to include |
|
|
72
|
-
| W004 | warning | Duplicate fragments skipped | Review harvest-log.jsonl for prior routing |
|
|
73
|
-
| W005 | warning | `.workflow/issues/` directory missing | Auto-create directory and empty issues.jsonl |
|
|
74
|
-
</error_codes>
|
|
75
|
-
|
|
76
|
-
<success_criteria>
|
|
77
|
-
- [ ] Mode correctly resolved (scan / session / path)
|
|
78
|
-
- [ ] Source artifacts discovered and listed with metadata
|
|
79
|
-
- [ ] User selected artifact(s) to harvest (or auto-selected via session/path mode)
|
|
80
|
-
- [ ] All files in selected artifacts loaded and parsed
|
|
81
|
-
- [ ] Knowledge fragments extracted with category, confidence, tags
|
|
82
|
-
- [ ] Fragments filtered by `--min-confidence`
|
|
83
|
-
- [ ] Routing classification applied (auto or forced by `--to`)
|
|
84
|
-
- [ ] Dedup check passed against harvest-log.jsonl and existing stores
|
|
85
|
-
- [ ] If `--dry-run`: preview displayed, no files written
|
|
86
|
-
- [ ] If not dry-run: all routed items written to target stores
|
|
87
|
-
- [ ] Wiki entries created via `maestro wiki create` (or fallback to pending files)
|
|
88
|
-
- [ ] Spec entries added via `spec-add` mechanism
|
|
89
|
-
- [ ] Issue entries appended to `issues.jsonl` with canonical schema
|
|
90
|
-
- [ ] `harvest-log.jsonl` updated with provenance for each routed item
|
|
91
|
-
- [ ] `harvest-report-{date}.md` written with full summary
|
|
92
|
-
- [ ] No source artifacts modified
|
|
93
|
-
- [ ] Summary displayed with counts and next-step routing
|
|
94
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: manage-harvest
|
|
3
|
+
description: Extract knowledge from artifacts into wiki/spec/issues
|
|
4
|
+
argument-hint: "[<session-id|path>] [--to wiki|spec|issue|auto] [--source <type>] [--recent N] [--dry-run] [-y]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Agent
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<purpose>
|
|
16
|
+
Extract knowledge fragments from workflow artifacts (analysis results, brainstorm outputs, debug sessions, lite-plan/fix results, scratchpad notes, completed sessions) and route them into the project's three knowledge stores: wiki entries, spec conventions, and trackable issues.
|
|
17
|
+
|
|
18
|
+
Complements `quality-retrospective` (which is phase-scoped) by harvesting from **any** workflow artifact. Prevents knowledge loss from completed analysis and planning sessions that would otherwise only exist as stale files.
|
|
19
|
+
|
|
20
|
+
**Closed-loop**: harvest extracts → wiki/spec/issue stores → downstream commands consume (wiki-digest, spec-load, maestro-plan --gaps).
|
|
21
|
+
</purpose>
|
|
22
|
+
|
|
23
|
+
<required_reading>
|
|
24
|
+
@~/.maestro/workflows/harvest.md
|
|
25
|
+
</required_reading>
|
|
26
|
+
|
|
27
|
+
<deferred_reading>
|
|
28
|
+
- @~/.maestro/workflows/issue.md (issues.jsonl schema for issue routing — read when creating issues in Stage 6c)
|
|
29
|
+
- @~/.maestro/workflows/specs-add.md (spec entry format — read when routing to spec in Stage 6b)
|
|
30
|
+
</deferred_reading>
|
|
31
|
+
|
|
32
|
+
<context>
|
|
33
|
+
Arguments: $ARGUMENTS
|
|
34
|
+
|
|
35
|
+
**Modes (auto-detected):**
|
|
36
|
+
- No arguments → `scan` mode: discover all harvestable artifacts, interactive selection
|
|
37
|
+
- `<session-id>` (e.g., `ANL-auth-20260410`, `WFS-xxx`) → `session` mode: harvest specific session
|
|
38
|
+
- `<path>` (e.g., `.workflow/.analysis/ANL-auth-20260410/`) → `path` mode: harvest from explicit directory
|
|
39
|
+
|
|
40
|
+
Flags, source registry (scan paths), and storage locations defined in workflow harvest.md.
|
|
41
|
+
</context>
|
|
42
|
+
|
|
43
|
+
<execution>
|
|
44
|
+
Follow '~/.maestro/workflows/harvest.md' Stages 1-8 in order.
|
|
45
|
+
|
|
46
|
+
**Key invariants:**
|
|
47
|
+
1. **Read-only until Stage 6** — extraction and classification happen in-memory.
|
|
48
|
+
2. **Dedup before write** — check harvest-log.jsonl and existing stores before each write.
|
|
49
|
+
3. **Never modify source artifacts** — harvest is purely extractive.
|
|
50
|
+
|
|
51
|
+
Extraction patterns, classification rules, routing infrastructure, and fragment ID scheme defined in workflow harvest.md.
|
|
52
|
+
|
|
53
|
+
**Next-step routing on completion:**
|
|
54
|
+
- Review wiki entries → `maestro wiki list --type note`
|
|
55
|
+
- Connect wiki graph → `/wiki-connect --fix`
|
|
56
|
+
- Triage issues → `/manage-issue list --source harvest`
|
|
57
|
+
- View specs → `/spec-load --category learning`
|
|
58
|
+
- Full retrospective → `/quality-retrospective`
|
|
59
|
+
</execution>
|
|
60
|
+
|
|
61
|
+
<error_codes>
|
|
62
|
+
| Code | Severity | Condition | Recovery |
|
|
63
|
+
|------|----------|-----------|----------|
|
|
64
|
+
| E001 | error | `.workflow/` not initialized | Run `/maestro-init` first |
|
|
65
|
+
| E002 | error | Invalid `--to` target (must be: wiki, spec, issue, auto) | Display valid options |
|
|
66
|
+
| E003 | error | Invalid `--source` type | Display valid source types from registry |
|
|
67
|
+
| E004 | error | Session ID not found in any source path | Show available sessions with `--source all` |
|
|
68
|
+
| E005 | error | Path does not exist or contains no parseable artifacts | Verify path and file structure |
|
|
69
|
+
| W001 | warning | No harvestable artifacts found within `--recent` window | Widen time window or check `.workflow/` contents |
|
|
70
|
+
| W002 | warning | `maestro wiki create` failed — wiki entries saved to `.workflow/harvest/wiki-pending-*.md` | Apply pending entries manually or retry |
|
|
71
|
+
| W003 | warning | Some fragments below confidence threshold — logged but not routed | Lower `--min-confidence` to include |
|
|
72
|
+
| W004 | warning | Duplicate fragments skipped | Review harvest-log.jsonl for prior routing |
|
|
73
|
+
| W005 | warning | `.workflow/issues/` directory missing | Auto-create directory and empty issues.jsonl |
|
|
74
|
+
</error_codes>
|
|
75
|
+
|
|
76
|
+
<success_criteria>
|
|
77
|
+
- [ ] Mode correctly resolved (scan / session / path)
|
|
78
|
+
- [ ] Source artifacts discovered and listed with metadata
|
|
79
|
+
- [ ] User selected artifact(s) to harvest (or auto-selected via session/path mode)
|
|
80
|
+
- [ ] All files in selected artifacts loaded and parsed
|
|
81
|
+
- [ ] Knowledge fragments extracted with category, confidence, tags
|
|
82
|
+
- [ ] Fragments filtered by `--min-confidence`
|
|
83
|
+
- [ ] Routing classification applied (auto or forced by `--to`)
|
|
84
|
+
- [ ] Dedup check passed against harvest-log.jsonl and existing stores
|
|
85
|
+
- [ ] If `--dry-run`: preview displayed, no files written
|
|
86
|
+
- [ ] If not dry-run: all routed items written to target stores
|
|
87
|
+
- [ ] Wiki entries created via `maestro wiki create` (or fallback to pending files)
|
|
88
|
+
- [ ] Spec entries added via `spec-add` mechanism
|
|
89
|
+
- [ ] Issue entries appended to `issues.jsonl` with canonical schema
|
|
90
|
+
- [ ] `harvest-log.jsonl` updated with provenance for each routed item
|
|
91
|
+
- [ ] `harvest-report-{date}.md` written with full summary
|
|
92
|
+
- [ ] No source artifacts modified
|
|
93
|
+
- [ ] Summary displayed with counts and next-step routing
|
|
94
|
+
</success_criteria>
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: manage-issue-discover
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: "[multi-perspective | by-prompt \"what to look for\"] [-y|--yes] [--scope=src/**] [--depth=standard|deep]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
- Agent
|
|
12
|
-
- AskUserQuestion
|
|
13
|
-
---
|
|
14
|
-
<purpose>
|
|
15
|
-
Automated issue discovery via multi-perspective codebase analysis (8 perspectives) or prompt-driven exploration. Discovers issues, deduplicates findings, and records them in `.workflow/issues/issues.jsonl`.
|
|
16
|
-
|
|
17
|
-
- **Default (no args)**: Interactive mode selection — choose multi-perspective or prompt-driven.
|
|
18
|
-
- **`multi-perspective`**: 8-perspective parallel agent scan — security, performance, reliability, maintainability, scalability, UX, accessibility, compliance.
|
|
19
|
-
- **`by-prompt "..."`**: Prompt-driven — CLI delegate plans exploration strategy, agents explore iteratively with cross-dimension analysis.
|
|
20
|
-
|
|
21
|
-
For CRUD operations (create, list, update, close, link), use `/manage-issue`.
|
|
22
|
-
|
|
23
|
-
After discovery, use `/maestro-analyze --gaps <ISS-ID>` to perform root cause analysis on individual findings.
|
|
24
|
-
</purpose>
|
|
25
|
-
|
|
26
|
-
<required_reading>
|
|
27
|
-
@~/.maestro/workflows/issue-discover.md
|
|
28
|
-
</required_reading>
|
|
29
|
-
|
|
30
|
-
<deferred_reading>
|
|
31
|
-
- [issue.json template](~/.maestro/templates/issue.json) — read when creating issue records from findings (Step 6/11)
|
|
32
|
-
- [search-tools](~/.maestro/templates/search-tools.md) — search tool priority, passed to agents via workflow
|
|
33
|
-
</deferred_reading>
|
|
34
|
-
|
|
35
|
-
<context>
|
|
36
|
-
$ARGUMENTS -- optional. Parse first token to determine mode.
|
|
37
|
-
|
|
38
|
-
**Modes:**
|
|
39
|
-
- _(empty)_ -- interactive mode selection (AskUserQuestion)
|
|
40
|
-
- `multi-perspective` -- 8-perspective parallel agent scan
|
|
41
|
-
- `by-prompt "..."` -- prompt-driven iterative agent exploration (CLI-planned)
|
|
42
|
-
|
|
43
|
-
**Flags:**
|
|
44
|
-
- `-y` / `--yes` -- auto mode, skip confirmations
|
|
45
|
-
- `--scope=<pattern>` -- file scope (default: `**/*`)
|
|
46
|
-
- `--depth=standard|deep` -- exploration depth (by-prompt only, default: `standard`)
|
|
47
|
-
|
|
48
|
-
**State files:**
|
|
49
|
-
- `.workflow/issues/issues.jsonl` -- issues appended here
|
|
50
|
-
- `.workflow/issues/discoveries/{SESSION_ID}/` -- session artifacts
|
|
51
|
-
</context>
|
|
52
|
-
|
|
53
|
-
<execution>
|
|
54
|
-
Determine mode from $ARGUMENTS:
|
|
55
|
-
- No arguments or empty → interactive selection via AskUserQuestion
|
|
56
|
-
- First token is `multi-perspective` → multi-perspective mode
|
|
57
|
-
- First token is `by-prompt` → prompt-driven mode, remaining tokens are the user prompt
|
|
58
|
-
|
|
59
|
-
Follow '~/.maestro/workflows/issue-discover.md' completely.
|
|
60
|
-
</execution>
|
|
61
|
-
|
|
62
|
-
<error_codes>
|
|
63
|
-
| Code | Severity | Condition | Recovery |
|
|
64
|
-
|------|----------|-----------|----------|
|
|
65
|
-
| E_NO_PROJECT | error | `.workflow/` does not exist | Prompt user to run `/maestro-init` first |
|
|
66
|
-
| E_DISCOVERY_FAILED | error | CLI analysis returned no results | Retry with different tool or report partial findings |
|
|
67
|
-
| E_EMPTY_PROMPT | warning | `by-prompt` used without prompt text | Interactive prompt with suggested options |
|
|
68
|
-
</error_codes>
|
|
69
|
-
|
|
70
|
-
<success_criteria>
|
|
71
|
-
- [ ] Discovery mode correctly determined from arguments
|
|
72
|
-
- [ ] All perspectives analyzed (multi-perspective) or dimensions explored (by-prompt)
|
|
73
|
-
- [ ] Findings deduplicated before issue creation
|
|
74
|
-
- [ ] Issues appended to issues.jsonl with correct schema
|
|
75
|
-
- [ ] Discovery session fully traceable via session directory
|
|
76
|
-
- [ ] Next step routing: `/maestro-analyze --gaps <ISS-ID>` for root cause analysis, or `/manage-issue list` to review all issues
|
|
77
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: manage-issue-discover
|
|
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]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Agent
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
---
|
|
14
|
+
<purpose>
|
|
15
|
+
Automated issue discovery via multi-perspective codebase analysis (8 perspectives) or prompt-driven exploration. Discovers issues, deduplicates findings, and records them in `.workflow/issues/issues.jsonl`.
|
|
16
|
+
|
|
17
|
+
- **Default (no args)**: Interactive mode selection — choose multi-perspective or prompt-driven.
|
|
18
|
+
- **`multi-perspective`**: 8-perspective parallel agent scan — security, performance, reliability, maintainability, scalability, UX, accessibility, compliance.
|
|
19
|
+
- **`by-prompt "..."`**: Prompt-driven — CLI delegate plans exploration strategy, agents explore iteratively with cross-dimension analysis.
|
|
20
|
+
|
|
21
|
+
For CRUD operations (create, list, update, close, link), use `/manage-issue`.
|
|
22
|
+
|
|
23
|
+
After discovery, use `/maestro-analyze --gaps <ISS-ID>` to perform root cause analysis on individual findings.
|
|
24
|
+
</purpose>
|
|
25
|
+
|
|
26
|
+
<required_reading>
|
|
27
|
+
@~/.maestro/workflows/issue-discover.md
|
|
28
|
+
</required_reading>
|
|
29
|
+
|
|
30
|
+
<deferred_reading>
|
|
31
|
+
- [issue.json template](~/.maestro/templates/issue.json) — read when creating issue records from findings (Step 6/11)
|
|
32
|
+
- [search-tools](~/.maestro/templates/search-tools.md) — search tool priority, passed to agents via workflow
|
|
33
|
+
</deferred_reading>
|
|
34
|
+
|
|
35
|
+
<context>
|
|
36
|
+
$ARGUMENTS -- optional. Parse first token to determine mode.
|
|
37
|
+
|
|
38
|
+
**Modes:**
|
|
39
|
+
- _(empty)_ -- interactive mode selection (AskUserQuestion)
|
|
40
|
+
- `multi-perspective` -- 8-perspective parallel agent scan
|
|
41
|
+
- `by-prompt "..."` -- prompt-driven iterative agent exploration (CLI-planned)
|
|
42
|
+
|
|
43
|
+
**Flags:**
|
|
44
|
+
- `-y` / `--yes` -- auto mode, skip confirmations
|
|
45
|
+
- `--scope=<pattern>` -- file scope (default: `**/*`)
|
|
46
|
+
- `--depth=standard|deep` -- exploration depth (by-prompt only, default: `standard`)
|
|
47
|
+
|
|
48
|
+
**State files:**
|
|
49
|
+
- `.workflow/issues/issues.jsonl` -- issues appended here
|
|
50
|
+
- `.workflow/issues/discoveries/{SESSION_ID}/` -- session artifacts
|
|
51
|
+
</context>
|
|
52
|
+
|
|
53
|
+
<execution>
|
|
54
|
+
Determine mode from $ARGUMENTS:
|
|
55
|
+
- No arguments or empty → interactive selection via AskUserQuestion
|
|
56
|
+
- First token is `multi-perspective` → multi-perspective mode
|
|
57
|
+
- First token is `by-prompt` → prompt-driven mode, remaining tokens are the user prompt
|
|
58
|
+
|
|
59
|
+
Follow '~/.maestro/workflows/issue-discover.md' completely.
|
|
60
|
+
</execution>
|
|
61
|
+
|
|
62
|
+
<error_codes>
|
|
63
|
+
| Code | Severity | Condition | Recovery |
|
|
64
|
+
|------|----------|-----------|----------|
|
|
65
|
+
| E_NO_PROJECT | error | `.workflow/` does not exist | Prompt user to run `/maestro-init` first |
|
|
66
|
+
| E_DISCOVERY_FAILED | error | CLI analysis returned no results | Retry with different tool or report partial findings |
|
|
67
|
+
| E_EMPTY_PROMPT | warning | `by-prompt` used without prompt text | Interactive prompt with suggested options |
|
|
68
|
+
</error_codes>
|
|
69
|
+
|
|
70
|
+
<success_criteria>
|
|
71
|
+
- [ ] Discovery mode correctly determined from arguments
|
|
72
|
+
- [ ] All perspectives analyzed (multi-perspective) or dimensions explored (by-prompt)
|
|
73
|
+
- [ ] Findings deduplicated before issue creation
|
|
74
|
+
- [ ] Issues appended to issues.jsonl with correct schema
|
|
75
|
+
- [ ] Discovery session fully traceable via session directory
|
|
76
|
+
- [ ] Next step routing: `/maestro-analyze --gaps <ISS-ID>` for root cause analysis, or `/manage-issue list` to review all issues
|
|
77
|
+
</success_criteria>
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: manage-issue
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: "<create|list|status|update|close|link> [options]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- AskUserQuestion
|
|
13
|
-
---
|
|
14
|
-
<purpose>
|
|
15
|
-
Issue lifecycle management for the project issue tracker. Supports create, list, status, update, close, and link (bidirectional issue-task cross-reference). All issues stored in `.workflow/issues/issues.jsonl` using the issue.json schema.
|
|
16
|
-
|
|
17
|
-
For automated issue discovery, use `/manage-issue-discover`.
|
|
18
|
-
|
|
19
|
-
**Closed-loop workflow**: After creating an issue, use `/maestro-analyze --gaps <ISS-ID>` for root cause analysis, `/maestro-plan --gaps` for solution planning, and `/maestro-execute` for execution.
|
|
20
|
-
</purpose>
|
|
21
|
-
|
|
22
|
-
<required_reading>
|
|
23
|
-
@~/.maestro/workflows/issue.md
|
|
24
|
-
</required_reading>
|
|
25
|
-
|
|
26
|
-
<deferred_reading>
|
|
27
|
-
- [issue.json template](~/.maestro/templates/issue.json) — read when creating or updating issue records (create, update, close)
|
|
28
|
-
</deferred_reading>
|
|
29
|
-
|
|
30
|
-
<context>
|
|
31
|
-
$ARGUMENTS -- subcommand + options. Parse first token as subcommand.
|
|
32
|
-
|
|
33
|
-
**Valid subcommands:**
|
|
34
|
-
- `create` -- create a new issue (--title, --severity, --source, --phase, --description)
|
|
35
|
-
- `list` -- list issues with optional filters (--status, --phase, --severity, --source)
|
|
36
|
-
- `status` -- show full detail for a specific issue (ISS-XXXXXXXX-NNN)
|
|
37
|
-
- `update` -- update issue fields (ISS-XXXXXXXX-NNN --status, --priority, --severity, --tags, ...)
|
|
38
|
-
- `close` -- close an issue with resolution (ISS-XXXXXXXX-NNN --resolution)
|
|
39
|
-
- `link` -- link issue to a task (ISS-XXXXXXXX-NNN --task TASK-NNN)
|
|
40
|
-
|
|
41
|
-
**State files:**
|
|
42
|
-
- `.workflow/issues/issues.jsonl` -- active issues (one JSON per line)
|
|
43
|
-
- `.workflow/issues/issue-history.jsonl` -- archived/closed issues
|
|
44
|
-
</context>
|
|
45
|
-
|
|
46
|
-
<execution>
|
|
47
|
-
Parse subcommand from first token of $ARGUMENTS.
|
|
48
|
-
Follow '~/.maestro/workflows/issue.md' completely.
|
|
49
|
-
|
|
50
|
-
**Next-step routing on completion:**
|
|
51
|
-
- create → `/maestro-analyze --gaps <ISS-ID>` or `/maestro-plan --gaps`
|
|
52
|
-
- list → `/maestro-analyze --gaps <ISS-ID>` for any open issue
|
|
53
|
-
- close → `/manage-status`
|
|
54
|
-
</execution>
|
|
55
|
-
|
|
56
|
-
<error_codes>
|
|
57
|
-
| Code | Severity | Condition | Recovery |
|
|
58
|
-
|------|----------|-----------|----------|
|
|
59
|
-
| E_NO_SUBCOMMAND | error | No subcommand provided in $ARGUMENTS | Display valid subcommands, prompt user to select |
|
|
60
|
-
| E_INVALID_SUBCOMMAND | error | Unrecognized subcommand | Display valid subcommands with usage hints |
|
|
61
|
-
| E_ISSUES_DIR_MISSING | warning | `.workflow/issues/` directory does not exist | Auto-create directory and empty issues.jsonl |
|
|
62
|
-
</error_codes>
|
|
63
|
-
|
|
64
|
-
<success_criteria>
|
|
65
|
-
- [ ] Subcommand parsed and routed to correct handler
|
|
66
|
-
- [ ] Issue data read/written to correct JSONL file
|
|
67
|
-
- [ ] Output displayed in appropriate format (table for list, detail for status)
|
|
68
|
-
- [ ] Cross-references maintained (link creates bidirectional references)
|
|
69
|
-
- [ ] Next step routing by subcommand:
|
|
70
|
-
- create → `/maestro-analyze --gaps <ISS-ID>` or `/maestro-plan --gaps`
|
|
71
|
-
- list → `/maestro-analyze --gaps <ISS-ID>` for any open issue
|
|
72
|
-
- close → `/manage-status`
|
|
73
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: manage-issue
|
|
3
|
+
description: Create, query, update, close, and link issues
|
|
4
|
+
argument-hint: "<create|list|status|update|close|link> [options]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
---
|
|
14
|
+
<purpose>
|
|
15
|
+
Issue lifecycle management for the project issue tracker. Supports create, list, status, update, close, and link (bidirectional issue-task cross-reference). All issues stored in `.workflow/issues/issues.jsonl` using the issue.json schema.
|
|
16
|
+
|
|
17
|
+
For automated issue discovery, use `/manage-issue-discover`.
|
|
18
|
+
|
|
19
|
+
**Closed-loop workflow**: After creating an issue, use `/maestro-analyze --gaps <ISS-ID>` for root cause analysis, `/maestro-plan --gaps` for solution planning, and `/maestro-execute` for execution.
|
|
20
|
+
</purpose>
|
|
21
|
+
|
|
22
|
+
<required_reading>
|
|
23
|
+
@~/.maestro/workflows/issue.md
|
|
24
|
+
</required_reading>
|
|
25
|
+
|
|
26
|
+
<deferred_reading>
|
|
27
|
+
- [issue.json template](~/.maestro/templates/issue.json) — read when creating or updating issue records (create, update, close)
|
|
28
|
+
</deferred_reading>
|
|
29
|
+
|
|
30
|
+
<context>
|
|
31
|
+
$ARGUMENTS -- subcommand + options. Parse first token as subcommand.
|
|
32
|
+
|
|
33
|
+
**Valid subcommands:**
|
|
34
|
+
- `create` -- create a new issue (--title, --severity, --source, --phase, --description)
|
|
35
|
+
- `list` -- list issues with optional filters (--status, --phase, --severity, --source)
|
|
36
|
+
- `status` -- show full detail for a specific issue (ISS-XXXXXXXX-NNN)
|
|
37
|
+
- `update` -- update issue fields (ISS-XXXXXXXX-NNN --status, --priority, --severity, --tags, ...)
|
|
38
|
+
- `close` -- close an issue with resolution (ISS-XXXXXXXX-NNN --resolution)
|
|
39
|
+
- `link` -- link issue to a task (ISS-XXXXXXXX-NNN --task TASK-NNN)
|
|
40
|
+
|
|
41
|
+
**State files:**
|
|
42
|
+
- `.workflow/issues/issues.jsonl` -- active issues (one JSON per line)
|
|
43
|
+
- `.workflow/issues/issue-history.jsonl` -- archived/closed issues
|
|
44
|
+
</context>
|
|
45
|
+
|
|
46
|
+
<execution>
|
|
47
|
+
Parse subcommand from first token of $ARGUMENTS.
|
|
48
|
+
Follow '~/.maestro/workflows/issue.md' completely.
|
|
49
|
+
|
|
50
|
+
**Next-step routing on completion:**
|
|
51
|
+
- create → `/maestro-analyze --gaps <ISS-ID>` or `/maestro-plan --gaps`
|
|
52
|
+
- list → `/maestro-analyze --gaps <ISS-ID>` for any open issue
|
|
53
|
+
- close → `/manage-status`
|
|
54
|
+
</execution>
|
|
55
|
+
|
|
56
|
+
<error_codes>
|
|
57
|
+
| Code | Severity | Condition | Recovery |
|
|
58
|
+
|------|----------|-----------|----------|
|
|
59
|
+
| E_NO_SUBCOMMAND | error | No subcommand provided in $ARGUMENTS | Display valid subcommands, prompt user to select |
|
|
60
|
+
| E_INVALID_SUBCOMMAND | error | Unrecognized subcommand | Display valid subcommands with usage hints |
|
|
61
|
+
| E_ISSUES_DIR_MISSING | warning | `.workflow/issues/` directory does not exist | Auto-create directory and empty issues.jsonl |
|
|
62
|
+
</error_codes>
|
|
63
|
+
|
|
64
|
+
<success_criteria>
|
|
65
|
+
- [ ] Subcommand parsed and routed to correct handler
|
|
66
|
+
- [ ] Issue data read/written to correct JSONL file
|
|
67
|
+
- [ ] Output displayed in appropriate format (table for list, detail for status)
|
|
68
|
+
- [ ] Cross-references maintained (link creates bidirectional references)
|
|
69
|
+
- [ ] Next step routing by subcommand:
|
|
70
|
+
- create → `/maestro-analyze --gaps <ISS-ID>` or `/maestro-plan --gaps`
|
|
71
|
+
- list → `/maestro-analyze --gaps <ISS-ID>` for any open issue
|
|
72
|
+
- close → `/manage-status`
|
|
73
|
+
</success_criteria>
|