maestro-flow 0.3.2 → 0.3.3
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/CLAUDE.md +2 -2
- package/.claude/agents/cli-explore-agent.md +1 -1
- package/.claude/agents/team-worker.md +237 -237
- package/.claude/commands/maestro-coordinate.md +65 -65
- package/.claude/commands/maestro-link-coordinate.md +71 -71
- package/.claude/commands/manage-issue-execute.md +73 -73
- package/.claude/skills/team-coordinate/SKILL.md +266 -266
- package/.claude/skills/team-lifecycle-v4/SKILL.md +209 -209
- package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +94 -94
- package/.claude/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -62
- package/.claude/skills/team-lifecycle-v4/roles/planner/role.md +85 -85
- package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +95 -95
- package/.claude/skills/team-quality-assurance/SKILL.md +147 -147
- package/.claude/skills/team-quality-assurance/roles/scout/role.md +75 -75
- package/.claude/skills/team-review/SKILL.md +147 -147
- package/.claude/skills/team-review/roles/reviewer/role.md +68 -68
- package/.claude/skills/team-review/roles/scanner/role.md +79 -79
- package/.claude/skills/team-tech-debt/SKILL.md +128 -128
- package/.claude/skills/team-tech-debt/roles/executor/role.md +76 -76
- package/.claude/skills/team-tech-debt/roles/scanner/role.md +90 -90
- package/.claude/skills/team-tech-debt/roles/validator/role.md +78 -78
- package/.claude/skills/team-testing/SKILL.md +143 -143
- package/.claude/skills/team-testing/roles/executor/role.md +99 -99
- package/.claude/skills/team-testing/roles/generator/role.md +98 -98
- package/.codex/skills/maestro-coordinate/SKILL.md +1 -1
- package/.codex/skills/manage-issue-analyze/SKILL.md +3 -3
- package/.codex/skills/manage-issue-execute/SKILL.md +4 -4
- package/.codex/skills/manage-issue-plan/SKILL.md +2 -2
- package/.codex/skills/team-coordinate/SKILL.md +7 -7
- package/.codex/skills/team-coordinate/roles/coordinator/role.md +1 -1
- package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -2
- package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +1 -1
- package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
- package/.codex/skills/team-quality-assurance/SKILL.md +2 -2
- package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +2 -2
- package/.codex/skills/team-review/SKILL.md +2 -2
- package/.codex/skills/team-review/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-review/roles/reviewer/role.md +1 -1
- package/.codex/skills/team-review/roles/scanner/role.md +1 -1
- package/.codex/skills/team-tech-debt/SKILL.md +2 -2
- package/.codex/skills/team-tech-debt/roles/coordinator/role.md +1 -1
- package/.codex/skills/team-tech-debt/roles/executor/role.md +1 -1
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +1 -1
- package/.codex/skills/team-tech-debt/roles/validator/role.md +1 -1
- package/.codex/skills/team-testing/SKILL.md +2 -2
- package/.codex/skills/team-testing/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-testing/roles/executor/role.md +1 -1
- package/.codex/skills/team-testing/roles/generator/role.md +1 -1
- package/README.md +31 -2
- package/README.zh-CN.md +23 -1
- package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.js +6 -15
- package/dist/src/agents/cli-agent-runner.js.map +1 -1
- package/dist/src/commands/delegate.d.ts.map +1 -1
- package/dist/src/commands/delegate.js +77 -1
- package/dist/src/commands/delegate.js.map +1 -1
- package/dist/src/commands/hooks.d.ts +15 -0
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +29 -2
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/install-backend.d.ts +15 -0
- package/dist/src/commands/install-backend.d.ts.map +1 -1
- package/dist/src/commands/install-backend.js +67 -0
- package/dist/src/commands/install-backend.js.map +1 -1
- package/dist/src/commands/install-ui/BackupConfig.d.ts +6 -4
- package/dist/src/commands/install-ui/BackupConfig.d.ts.map +1 -1
- package/dist/src/commands/install-ui/BackupConfig.js +39 -12
- package/dist/src/commands/install-ui/BackupConfig.js.map +1 -1
- package/dist/src/commands/install-ui/ConfigPanel.d.ts.map +1 -1
- package/dist/src/commands/install-ui/ConfigPanel.js +1 -1
- package/dist/src/commands/install-ui/ConfigPanel.js.map +1 -1
- package/dist/src/commands/install-ui/InstallConfirm.d.ts +3 -0
- package/dist/src/commands/install-ui/InstallConfirm.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallConfirm.js +5 -1
- package/dist/src/commands/install-ui/InstallConfirm.js.map +1 -1
- package/dist/src/commands/install-ui/InstallExecution.d.ts +2 -0
- package/dist/src/commands/install-ui/InstallExecution.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallExecution.js +30 -5
- package/dist/src/commands/install-ui/InstallExecution.js.map +1 -1
- package/dist/src/commands/install-ui/InstallFlow.d.ts +1 -1
- package/dist/src/commands/install-ui/InstallFlow.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallFlow.js +31 -6
- package/dist/src/commands/install-ui/InstallFlow.js.map +1 -1
- package/dist/src/commands/install-ui/InstallHub.d.ts +5 -0
- package/dist/src/commands/install-ui/InstallHub.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallHub.js +24 -0
- package/dist/src/commands/install-ui/InstallHub.js.map +1 -1
- package/dist/src/commands/install-ui/InstallResult.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallResult.js +1 -1
- package/dist/src/commands/install-ui/InstallResult.js.map +1 -1
- package/dist/src/commands/install-ui/StatuslineConfig.d.ts +9 -0
- package/dist/src/commands/install-ui/StatuslineConfig.d.ts.map +1 -0
- package/dist/src/commands/install-ui/StatuslineConfig.js +13 -0
- package/dist/src/commands/install-ui/StatuslineConfig.js.map +1 -0
- package/dist/src/commands/install-ui/index.d.ts +1 -1
- package/dist/src/commands/install-ui/index.d.ts.map +1 -1
- package/dist/src/commands/install-ui/types.d.ts +6 -0
- package/dist/src/commands/install-ui/types.d.ts.map +1 -1
- package/dist/src/commands/install-ui/types.js +3 -0
- package/dist/src/commands/install-ui/types.js.map +1 -1
- package/dist/src/commands/install.d.ts.map +1 -1
- package/dist/src/commands/install.js +6 -1
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/overlay.d.ts.map +1 -1
- package/dist/src/commands/overlay.js +45 -1
- package/dist/src/commands/overlay.js.map +1 -1
- package/dist/src/commands/team.d.ts +10 -0
- package/dist/src/commands/team.d.ts.map +1 -1
- package/dist/src/commands/team.js +436 -42
- package/dist/src/commands/team.js.map +1 -1
- package/dist/src/core/manifest.d.ts.map +1 -1
- package/dist/src/core/manifest.js +58 -0
- package/dist/src/core/manifest.js.map +1 -1
- package/dist/src/core/overlay/applier.d.ts +4 -0
- package/dist/src/core/overlay/applier.d.ts.map +1 -1
- package/dist/src/core/overlay/applier.js.map +1 -1
- package/dist/src/hooks/delegate-monitor.js +1 -1
- package/dist/src/hooks/delegate-monitor.js.map +1 -1
- package/dist/src/hooks/plugins/spec-injection-plugin.d.ts.map +1 -1
- package/dist/src/hooks/plugins/spec-injection-plugin.js +17 -1
- package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
- package/dist/src/hooks/spec-injector.d.ts +2 -1
- package/dist/src/hooks/spec-injector.d.ts.map +1 -1
- package/dist/src/hooks/spec-injector.js +19 -2
- package/dist/src/hooks/spec-injector.js.map +1 -1
- package/dist/src/hooks/team-monitor.d.ts.map +1 -1
- package/dist/src/hooks/team-monitor.js +17 -0
- package/dist/src/hooks/team-monitor.js.map +1 -1
- package/dist/src/i18n/locales/en.d.ts.map +1 -1
- package/dist/src/i18n/locales/en.js +25 -1
- package/dist/src/i18n/locales/en.js.map +1 -1
- package/dist/src/i18n/locales/zh.d.ts.map +1 -1
- package/dist/src/i18n/locales/zh.js +25 -1
- package/dist/src/i18n/locales/zh.js.map +1 -1
- package/dist/src/i18n/types.d.ts +22 -0
- package/dist/src/i18n/types.d.ts.map +1 -1
- package/dist/src/mcp/delegate-channel-relay.d.ts.map +1 -1
- package/dist/src/mcp/delegate-channel-relay.js +2 -7
- package/dist/src/mcp/delegate-channel-relay.js.map +1 -1
- package/dist/src/tools/namespace-guard.d.ts +37 -0
- package/dist/src/tools/namespace-guard.d.ts.map +1 -0
- package/dist/src/tools/namespace-guard.js +126 -0
- package/dist/src/tools/namespace-guard.js.map +1 -0
- package/dist/src/tools/spec-loader.d.ts +17 -1
- package/dist/src/tools/spec-loader.d.ts.map +1 -1
- package/dist/src/tools/spec-loader.js +71 -13
- package/dist/src/tools/spec-loader.js.map +1 -1
- package/dist/src/tools/team-members.d.ts +16 -0
- package/dist/src/tools/team-members.d.ts.map +1 -1
- package/dist/src/tools/team-members.js +31 -0
- package/dist/src/tools/team-members.js.map +1 -1
- package/package.json +1 -1
- package/workflows/delegate-usage.md +330 -0
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maestro-link-coordinate
|
|
3
|
-
description: Step-mode graph coordinator via maestro coordinate endpoint — executes chain nodes one by one with session tracking
|
|
4
|
-
argument-hint: "\"intent text\" [--list] [-c [sessionId]] [--chain <name>] [--tool <tool>] [-y]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
---
|
|
14
|
-
<purpose>
|
|
15
|
-
Step-mode workflow coordinator using `maestro coordinate` CLI subcommands (start/next/status).
|
|
16
|
-
Walks chain graphs node by node — each command node executed via `maestro
|
|
17
|
-
Decision/gate/eval nodes auto-resolve between steps. Session persisted for resume.
|
|
18
|
-
</purpose>
|
|
19
|
-
|
|
20
|
-
<required_reading>
|
|
21
|
-
@~/.maestro/workflows/maestro-link-coordinate.md
|
|
22
|
-
</required_reading>
|
|
23
|
-
|
|
24
|
-
<context>
|
|
25
|
-
$ARGUMENTS — user intent text, or flags.
|
|
26
|
-
|
|
27
|
-
**Flags:**
|
|
28
|
-
- `--list` — List all available chain graphs
|
|
29
|
-
- `-c` / `--continue [sessionId]` — Resume step_paused session via `coordinate next`
|
|
30
|
-
- `--chain <name>` — Force a specific chain graph
|
|
31
|
-
- `--tool <tool>` — CLI tool override (default: claude)
|
|
32
|
-
- `-y` / `--yes` — Auto mode
|
|
33
|
-
|
|
34
|
-
**CLI endpoints used:**
|
|
35
|
-
- `maestro coordinate list` — enumerate chains
|
|
36
|
-
- `maestro coordinate start "intent" --chain X` — begin step-mode session
|
|
37
|
-
- `maestro coordinate next [sessionId]` — advance one step
|
|
38
|
-
- `maestro coordinate status [sessionId]` — query state
|
|
39
|
-
- `maestro coordinate run "intent"` — autonomous full run
|
|
40
|
-
- `maestro coordinate watch <sessionId> [--follow]` — read-only event tail (separate from driver loop)
|
|
41
|
-
- `maestro coordinate report` — agent-invoked command-node result writer (authoritative result channel)
|
|
42
|
-
|
|
43
|
-
**Internal walker capabilities (invisible to driver loop):**
|
|
44
|
-
- Prompt assembly owned by the walker (main flow) for both command and decision nodes
|
|
45
|
-
- Decision nodes auto-resolve via `strategy: 'expr'` (fast path) with LLM decider fallback when expr has no match and no default edge, or explicit `strategy: 'llm'`
|
|
46
|
-
- Walker events published to a file/SQLite broker for `watch` observers
|
|
47
|
-
- LLM decision in step mode is synchronous — avoid tight per-step deadlines
|
|
48
|
-
</context>
|
|
49
|
-
|
|
50
|
-
<execution>
|
|
51
|
-
Follow '~/.maestro/workflows/maestro-link-coordinate.md' completely.
|
|
52
|
-
</execution>
|
|
53
|
-
|
|
54
|
-
<error_codes>
|
|
55
|
-
| Code | Severity | Description | Recovery |
|
|
56
|
-
|------|----------|-------------|----------|
|
|
57
|
-
| E001 | error | No intent and no --list/--chain | Suggest --list |
|
|
58
|
-
| E002 | error | Chain graph not found | Show list output |
|
|
59
|
-
| E003 | error | Step execution failed | Check status, retry next |
|
|
60
|
-
| E004 | error | Resume session not found | List sessions |
|
|
61
|
-
| E005 | error | CLI endpoint unavailable | Check maestro installation |
|
|
62
|
-
</error_codes>
|
|
63
|
-
|
|
64
|
-
<success_criteria>
|
|
65
|
-
- [ ] Chain graph loaded via `maestro coordinate start`
|
|
66
|
-
- [ ] Each step executed via `maestro coordinate next` loop
|
|
67
|
-
- [ ] JSON output parsed for session tracking
|
|
68
|
-
- [ ] Decision nodes auto-resolved between steps
|
|
69
|
-
- [ ] Session persisted and resumable via `-c`
|
|
70
|
-
- [ ] Completion summary displayed
|
|
71
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: maestro-link-coordinate
|
|
3
|
+
description: Step-mode graph coordinator via maestro coordinate endpoint — executes chain nodes one by one with session tracking
|
|
4
|
+
argument-hint: "\"intent text\" [--list] [-c [sessionId]] [--chain <name>] [--tool <tool>] [-y]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Agent
|
|
13
|
+
---
|
|
14
|
+
<purpose>
|
|
15
|
+
Step-mode workflow coordinator using `maestro coordinate` CLI subcommands (start/next/status).
|
|
16
|
+
Walks chain graphs node by node — each command node executed via `maestro delegate` internally.
|
|
17
|
+
Decision/gate/eval nodes auto-resolve between steps. Session persisted for resume.
|
|
18
|
+
</purpose>
|
|
19
|
+
|
|
20
|
+
<required_reading>
|
|
21
|
+
@~/.maestro/workflows/maestro-link-coordinate.md
|
|
22
|
+
</required_reading>
|
|
23
|
+
|
|
24
|
+
<context>
|
|
25
|
+
$ARGUMENTS — user intent text, or flags.
|
|
26
|
+
|
|
27
|
+
**Flags:**
|
|
28
|
+
- `--list` — List all available chain graphs
|
|
29
|
+
- `-c` / `--continue [sessionId]` — Resume step_paused session via `coordinate next`
|
|
30
|
+
- `--chain <name>` — Force a specific chain graph
|
|
31
|
+
- `--tool <tool>` — CLI tool override (default: claude)
|
|
32
|
+
- `-y` / `--yes` — Auto mode
|
|
33
|
+
|
|
34
|
+
**CLI endpoints used:**
|
|
35
|
+
- `maestro coordinate list` — enumerate chains
|
|
36
|
+
- `maestro coordinate start "intent" --chain X` — begin step-mode session
|
|
37
|
+
- `maestro coordinate next [sessionId]` — advance one step
|
|
38
|
+
- `maestro coordinate status [sessionId]` — query state
|
|
39
|
+
- `maestro coordinate run "intent"` — autonomous full run
|
|
40
|
+
- `maestro coordinate watch <sessionId> [--follow]` — read-only event tail (separate from driver loop)
|
|
41
|
+
- `maestro coordinate report` — agent-invoked command-node result writer (authoritative result channel)
|
|
42
|
+
|
|
43
|
+
**Internal walker capabilities (invisible to driver loop):**
|
|
44
|
+
- Prompt assembly owned by the walker (main flow) for both command and decision nodes
|
|
45
|
+
- Decision nodes auto-resolve via `strategy: 'expr'` (fast path) with LLM decider fallback when expr has no match and no default edge, or explicit `strategy: 'llm'`
|
|
46
|
+
- Walker events published to a file/SQLite broker for `watch` observers
|
|
47
|
+
- LLM decision in step mode is synchronous — avoid tight per-step deadlines
|
|
48
|
+
</context>
|
|
49
|
+
|
|
50
|
+
<execution>
|
|
51
|
+
Follow '~/.maestro/workflows/maestro-link-coordinate.md' completely.
|
|
52
|
+
</execution>
|
|
53
|
+
|
|
54
|
+
<error_codes>
|
|
55
|
+
| Code | Severity | Description | Recovery |
|
|
56
|
+
|------|----------|-------------|----------|
|
|
57
|
+
| E001 | error | No intent and no --list/--chain | Suggest --list |
|
|
58
|
+
| E002 | error | Chain graph not found | Show list output |
|
|
59
|
+
| E003 | error | Step execution failed | Check status, retry next |
|
|
60
|
+
| E004 | error | Resume session not found | List sessions |
|
|
61
|
+
| E005 | error | CLI endpoint unavailable | Check maestro installation |
|
|
62
|
+
</error_codes>
|
|
63
|
+
|
|
64
|
+
<success_criteria>
|
|
65
|
+
- [ ] Chain graph loaded via `maestro coordinate start`
|
|
66
|
+
- [ ] Each step executed via `maestro coordinate next` loop
|
|
67
|
+
- [ ] JSON output parsed for session tracking
|
|
68
|
+
- [ ] Decision nodes auto-resolved between steps
|
|
69
|
+
- [ ] Session persisted and resumable via `-c`
|
|
70
|
+
- [ ] Completion summary displayed
|
|
71
|
+
</success_criteria>
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: manage-issue-execute
|
|
3
|
-
description: Execute planned solution for an issue via dual-mode agent dispatch
|
|
4
|
-
argument-hint: "<ISS-ID> [--executor claude-code|codex|gemini] [--dry-run]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
- Agent
|
|
12
|
-
- AskUserQuestion
|
|
13
|
-
---
|
|
14
|
-
<purpose>
|
|
15
|
-
Execute a planned solution for a specific issue. Supports dual-mode dispatch:
|
|
16
|
-
|
|
17
|
-
- **Server UP**: POST to `/api/execution/dispatch` for orchestrated execution
|
|
18
|
-
- **Server DOWN**: Direct execution via `maestro
|
|
19
|
-
|
|
20
|
-
Options:
|
|
21
|
-
- **--executor**: Agent to execute the solution (default: claude-code)
|
|
22
|
-
- **--dry-run**: Display the constructed prompt and steps without executing
|
|
23
|
-
|
|
24
|
-
For issue CRUD, use `/manage-issue`. For analysis, use `/manage-issue-analyze`. For planning, use `/manage-issue-plan`.
|
|
25
|
-
</purpose>
|
|
26
|
-
|
|
27
|
-
<required_reading>
|
|
28
|
-
@~/.maestro/workflows/issue-execute.md
|
|
29
|
-
</required_reading>
|
|
30
|
-
|
|
31
|
-
<deferred_reading>
|
|
32
|
-
- [issue.json template](~/.maestro/templates/issue.json) -- read when updating issue status after execution
|
|
33
|
-
</deferred_reading>
|
|
34
|
-
|
|
35
|
-
<context>
|
|
36
|
-
$ARGUMENTS -- ISS-ID (required) + optional flags.
|
|
37
|
-
|
|
38
|
-
**Options:**
|
|
39
|
-
- `<ISS-ID>` -- issue ID in ISS-XXXXXXXX-NNN format (required)
|
|
40
|
-
- `--executor claude-code|codex|gemini` -- execution agent (default: claude-code)
|
|
41
|
-
- `--dry-run` -- preview prompt and steps without executing
|
|
42
|
-
|
|
43
|
-
**State files:**
|
|
44
|
-
- `.workflow/issues/issues.jsonl` -- issue records (read + write)
|
|
45
|
-
</context>
|
|
46
|
-
|
|
47
|
-
<execution>
|
|
48
|
-
Follow '~/.maestro/workflows/issue-execute.md' completely.
|
|
49
|
-
|
|
50
|
-
**Next-step routing on completion:**
|
|
51
|
-
- Execution succeeded → Skill({ skill: "manage-issue", args: "close <ISS-ID> --resolution fixed" })
|
|
52
|
-
- Execution failed → Skill({ skill: "quality-debug", args: "<failure description>" }) then retry
|
|
53
|
-
- Want verification → Skill({ skill: "maestro-verify", args: "{phase}" })
|
|
54
|
-
</execution>
|
|
55
|
-
|
|
56
|
-
<error_codes>
|
|
57
|
-
| Code | Severity | Condition | Recovery |
|
|
58
|
-
|------|----------|-----------|----------|
|
|
59
|
-
| E_NO_ISSUE_ID | error | No ISS-ID provided in $ARGUMENTS | Display usage hint with example |
|
|
60
|
-
| E_NO_SOLUTION | error | Issue has no solution record (issue.solution is null) | Suggest `/manage-issue-plan` first |
|
|
61
|
-
| E_DISPATCH_FAILED | error | Server dispatch or CLI execution failed | Log error, revert status to open, display failure details |
|
|
62
|
-
</error_codes>
|
|
63
|
-
|
|
64
|
-
<success_criteria>
|
|
65
|
-
- [ ] Issue loaded with valid solution record
|
|
66
|
-
- [ ] Execution mode detected (server UP or DOWN)
|
|
67
|
-
- [ ] Solution executed (or dry-run displayed)
|
|
68
|
-
- [ ] Issue status updated in issues.jsonl (in_progress -> resolved or open on failure)
|
|
69
|
-
- [ ] Result summary displayed with next-step routing:
|
|
70
|
-
- Execution succeeded → Skill({ skill: "manage-issue", args: "close <ISS-ID> --resolution fixed" })
|
|
71
|
-
- Execution failed → Skill({ skill: "quality-debug", args: "<failure description>" }) then retry
|
|
72
|
-
- Want verification → Skill({ skill: "maestro-verify", args: "{phase}" })
|
|
73
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: manage-issue-execute
|
|
3
|
+
description: Execute planned solution for an issue via dual-mode agent dispatch
|
|
4
|
+
argument-hint: "<ISS-ID> [--executor claude-code|codex|gemini] [--dry-run]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Agent
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
---
|
|
14
|
+
<purpose>
|
|
15
|
+
Execute a planned solution for a specific issue. Supports dual-mode dispatch:
|
|
16
|
+
|
|
17
|
+
- **Server UP**: POST to `/api/execution/dispatch` for orchestrated execution
|
|
18
|
+
- **Server DOWN**: Direct execution via `maestro delegate` with the solution prompt
|
|
19
|
+
|
|
20
|
+
Options:
|
|
21
|
+
- **--executor**: Agent to execute the solution (default: claude-code)
|
|
22
|
+
- **--dry-run**: Display the constructed prompt and steps without executing
|
|
23
|
+
|
|
24
|
+
For issue CRUD, use `/manage-issue`. For analysis, use `/manage-issue-analyze`. For planning, use `/manage-issue-plan`.
|
|
25
|
+
</purpose>
|
|
26
|
+
|
|
27
|
+
<required_reading>
|
|
28
|
+
@~/.maestro/workflows/issue-execute.md
|
|
29
|
+
</required_reading>
|
|
30
|
+
|
|
31
|
+
<deferred_reading>
|
|
32
|
+
- [issue.json template](~/.maestro/templates/issue.json) -- read when updating issue status after execution
|
|
33
|
+
</deferred_reading>
|
|
34
|
+
|
|
35
|
+
<context>
|
|
36
|
+
$ARGUMENTS -- ISS-ID (required) + optional flags.
|
|
37
|
+
|
|
38
|
+
**Options:**
|
|
39
|
+
- `<ISS-ID>` -- issue ID in ISS-XXXXXXXX-NNN format (required)
|
|
40
|
+
- `--executor claude-code|codex|gemini` -- execution agent (default: claude-code)
|
|
41
|
+
- `--dry-run` -- preview prompt and steps without executing
|
|
42
|
+
|
|
43
|
+
**State files:**
|
|
44
|
+
- `.workflow/issues/issues.jsonl` -- issue records (read + write)
|
|
45
|
+
</context>
|
|
46
|
+
|
|
47
|
+
<execution>
|
|
48
|
+
Follow '~/.maestro/workflows/issue-execute.md' completely.
|
|
49
|
+
|
|
50
|
+
**Next-step routing on completion:**
|
|
51
|
+
- Execution succeeded → Skill({ skill: "manage-issue", args: "close <ISS-ID> --resolution fixed" })
|
|
52
|
+
- Execution failed → Skill({ skill: "quality-debug", args: "<failure description>" }) then retry
|
|
53
|
+
- Want verification → Skill({ skill: "maestro-verify", args: "{phase}" })
|
|
54
|
+
</execution>
|
|
55
|
+
|
|
56
|
+
<error_codes>
|
|
57
|
+
| Code | Severity | Condition | Recovery |
|
|
58
|
+
|------|----------|-----------|----------|
|
|
59
|
+
| E_NO_ISSUE_ID | error | No ISS-ID provided in $ARGUMENTS | Display usage hint with example |
|
|
60
|
+
| E_NO_SOLUTION | error | Issue has no solution record (issue.solution is null) | Suggest `/manage-issue-plan` first |
|
|
61
|
+
| E_DISPATCH_FAILED | error | Server dispatch or CLI execution failed | Log error, revert status to open, display failure details |
|
|
62
|
+
</error_codes>
|
|
63
|
+
|
|
64
|
+
<success_criteria>
|
|
65
|
+
- [ ] Issue loaded with valid solution record
|
|
66
|
+
- [ ] Execution mode detected (server UP or DOWN)
|
|
67
|
+
- [ ] Solution executed (or dry-run displayed)
|
|
68
|
+
- [ ] Issue status updated in issues.jsonl (in_progress -> resolved or open on failure)
|
|
69
|
+
- [ ] Result summary displayed with next-step routing:
|
|
70
|
+
- Execution succeeded → Skill({ skill: "manage-issue", args: "close <ISS-ID> --resolution fixed" })
|
|
71
|
+
- Execution failed → Skill({ skill: "quality-debug", args: "<failure description>" }) then retry
|
|
72
|
+
- Want verification → Skill({ skill: "maestro-verify", args: "{phase}" })
|
|
73
|
+
</success_criteria>
|