maestro-flow 0.4.9 → 0.4.10
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/.agy/agents/cli-explore-agent.md +186 -0
- package/.agy/agents/conceptual-planning-agent.md +244 -0
- package/.agy/agents/impeccable-agent.md +97 -0
- package/.agy/agents/team-supervisor.md +142 -0
- package/.agy/agents/team-worker.md +236 -0
- package/.agy/agents/ui-design-agent.md +286 -0
- package/.agy/agents/workflow-analyzer.md +114 -0
- package/.agy/agents/workflow-codebase-mapper.md +76 -0
- package/.agy/agents/workflow-collab-planner.md +142 -0
- package/.agy/agents/workflow-debugger.md +102 -0
- package/.agy/agents/workflow-executor.md +131 -0
- package/.agy/agents/workflow-external-researcher.md +86 -0
- package/.agy/agents/workflow-integration-checker.md +82 -0
- package/.agy/agents/workflow-nyquist-auditor.md +84 -0
- package/.agy/agents/workflow-phase-researcher.md +84 -0
- package/.agy/agents/workflow-plan-checker.md +89 -0
- package/.agy/agents/workflow-planner.md +194 -0
- package/.agy/agents/workflow-project-researcher.md +73 -0
- package/.agy/agents/workflow-research-synthesizer.md +70 -0
- package/.agy/agents/workflow-reviewer.md +81 -0
- package/.agy/agents/workflow-roadmapper.md +81 -0
- package/.agy/agents/workflow-verifier.md +119 -0
- package/.agy/skills/codify-to-knowhow/SKILL.md +172 -0
- package/.agy/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
- package/.agy/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
- package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
- package/.agy/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
- package/.agy/skills/learn-decompose/SKILL.md +118 -0
- package/.agy/skills/learn-follow/SKILL.md +129 -0
- package/.agy/skills/learn-investigate/SKILL.md +154 -0
- package/.agy/skills/learn-retro/SKILL.md +159 -0
- package/.agy/skills/learn-second-opinion/SKILL.md +124 -0
- package/.agy/skills/maestro/SKILL.md +221 -0
- package/.agy/skills/maestro-amend/SKILL.md +162 -0
- package/.agy/skills/maestro-analyze/SKILL.md +135 -0
- package/.agy/skills/maestro-brainstorm/SKILL.md +118 -0
- package/.agy/skills/maestro-collab/SKILL.md +174 -0
- package/.agy/skills/maestro-composer/SKILL.md +180 -0
- package/.agy/skills/maestro-execute/SKILL.md +133 -0
- package/.agy/skills/maestro-fork/SKILL.md +88 -0
- package/.agy/skills/maestro-guard/SKILL.md +101 -0
- package/.agy/skills/maestro-help/SKILL.md +267 -0
- package/.agy/skills/maestro-help/index/catalog.json +184 -0
- package/.agy/skills/maestro-help/phases/01-parse-intent.md +122 -0
- package/.agy/skills/maestro-help/phases/02-search-present.md +181 -0
- package/.agy/skills/maestro-help/phases/03-workflow-guide.md +186 -0
- package/.agy/skills/maestro-impeccable/SKILL.md +250 -0
- package/.agy/skills/maestro-init/SKILL.md +80 -0
- package/.agy/skills/maestro-learn/SKILL.md +142 -0
- package/.agy/skills/maestro-merge/SKILL.md +66 -0
- package/.agy/skills/maestro-milestone-audit/SKILL.md +70 -0
- package/.agy/skills/maestro-milestone-complete/SKILL.md +77 -0
- package/.agy/skills/maestro-milestone-release/SKILL.md +98 -0
- package/.agy/skills/maestro-overlay/SKILL.md +177 -0
- package/.agy/skills/maestro-plan/SKILL.md +172 -0
- package/.agy/skills/maestro-player/SKILL.md +176 -0
- package/.agy/skills/maestro-quick/SKILL.md +67 -0
- package/.agy/skills/maestro-ralph/SKILL.md +546 -0
- package/.agy/skills/maestro-ralph-execute/SKILL.md +255 -0
- package/.agy/skills/maestro-roadmap/SKILL.md +170 -0
- package/.agy/skills/maestro-tools-execute/SKILL.md +119 -0
- package/.agy/skills/maestro-tools-register/SKILL.md +159 -0
- package/.agy/skills/maestro-ui-codify/SKILL.md +81 -0
- package/.agy/skills/maestro-update/SKILL.md +175 -0
- package/.agy/skills/maestro-verify/SKILL.md +111 -0
- package/.agy/skills/manage-codebase-rebuild/SKILL.md +77 -0
- package/.agy/skills/manage-codebase-refresh/SKILL.md +59 -0
- package/.agy/skills/manage-harvest/SKILL.md +96 -0
- package/.agy/skills/manage-issue/SKILL.md +72 -0
- package/.agy/skills/manage-issue-discover/SKILL.md +83 -0
- package/.agy/skills/manage-knowhow/SKILL.md +76 -0
- package/.agy/skills/manage-knowhow-capture/SKILL.md +78 -0
- package/.agy/skills/manage-learn/SKILL.md +64 -0
- package/.agy/skills/manage-status/SKILL.md +51 -0
- package/.agy/skills/manage-wiki/SKILL.md +61 -0
- package/.agy/skills/quality-auto-test/SKILL.md +135 -0
- package/.agy/skills/quality-debug/SKILL.md +122 -0
- package/.agy/skills/quality-refactor/SKILL.md +69 -0
- package/.agy/skills/quality-retrospective/SKILL.md +79 -0
- package/.agy/skills/quality-review/SKILL.md +130 -0
- package/.agy/skills/quality-sync/SKILL.md +53 -0
- package/.agy/skills/quality-test/SKILL.md +119 -0
- package/.agy/skills/security-audit/SKILL.md +157 -0
- package/.agy/skills/skill-iter-tune/SKILL.md +381 -0
- package/.agy/skills/skill-iter-tune/phases/01-setup.md +144 -0
- package/.agy/skills/skill-iter-tune/phases/02-execute.md +292 -0
- package/.agy/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
- package/.agy/skills/skill-iter-tune/phases/04-improve.md +198 -0
- package/.agy/skills/skill-iter-tune/phases/05-report.md +166 -0
- package/.agy/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
- package/.agy/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
- package/.agy/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
- package/.agy/skills/spec-add/SKILL.md +67 -0
- package/.agy/skills/spec-load/SKILL.md +70 -0
- package/.agy/skills/spec-remove/SKILL.md +50 -0
- package/.agy/skills/spec-setup/SKILL.md +47 -0
- package/.agy/skills/team-coordinate/SKILL.md +267 -0
- package/.agy/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
- package/.agy/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
- package/.agy/skills/team-coordinate/roles/coordinator/commands/monitor.md +348 -0
- package/.agy/skills/team-coordinate/roles/coordinator/role.md +362 -0
- package/.agy/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
- package/.agy/skills/team-coordinate/specs/pipelines.md +97 -0
- package/.agy/skills/team-coordinate/specs/quality-gates.md +112 -0
- package/.agy/skills/team-coordinate/specs/role-spec-template.md +198 -0
- package/.agy/skills/team-executor/SKILL.md +180 -0
- package/.agy/skills/team-executor/roles/executor/commands/monitor.md +235 -0
- package/.agy/skills/team-executor/roles/executor/role.md +171 -0
- package/.agy/skills/team-executor/specs/session-schema.md +264 -0
- package/.agy/skills/team-lifecycle-v4/SKILL.md +189 -0
- package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +92 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
- package/.agy/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
- package/.agy/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
- package/.agy/skills/team-lifecycle-v4/roles/executor/role.md +64 -0
- package/.agy/skills/team-lifecycle-v4/roles/planner/role.md +82 -0
- package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
- package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
- package/.agy/skills/team-lifecycle-v4/roles/reviewer/role.md +65 -0
- package/.agy/skills/team-lifecycle-v4/roles/supervisor/role.md +188 -0
- package/.agy/skills/team-lifecycle-v4/roles/tester/role.md +84 -0
- package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +92 -0
- package/.agy/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
- package/.agy/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
- package/.agy/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
- package/.agy/skills/team-lifecycle-v4/templates/architecture.md +254 -0
- package/.agy/skills/team-lifecycle-v4/templates/epics.md +196 -0
- package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
- package/.agy/skills/team-lifecycle-v4/templates/requirements.md +224 -0
- package/.agy/skills/team-quality-assurance/SKILL.md +148 -0
- package/.agy/skills/team-quality-assurance/roles/analyst/role.md +85 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +235 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
- package/.agy/skills/team-quality-assurance/roles/executor/role.md +62 -0
- package/.agy/skills/team-quality-assurance/roles/generator/role.md +65 -0
- package/.agy/skills/team-quality-assurance/roles/scout/role.md +72 -0
- package/.agy/skills/team-quality-assurance/roles/strategist/role.md +69 -0
- package/.agy/skills/team-quality-assurance/specs/pipelines.md +115 -0
- package/.agy/skills/team-quality-assurance/specs/team-config.json +131 -0
- package/.agy/skills/team-review/SKILL.md +149 -0
- package/.agy/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
- package/.agy/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
- package/.agy/skills/team-review/roles/coordinator/commands/monitor.md +209 -0
- package/.agy/skills/team-review/roles/coordinator/role.md +132 -0
- package/.agy/skills/team-review/roles/fixer/role.md +74 -0
- package/.agy/skills/team-review/roles/reviewer/role.md +66 -0
- package/.agy/skills/team-review/roles/scanner/role.md +77 -0
- package/.agy/skills/team-review/specs/dimensions.md +82 -0
- package/.agy/skills/team-review/specs/finding-schema.json +82 -0
- package/.agy/skills/team-review/specs/pipelines.md +102 -0
- package/.agy/skills/team-review/specs/team-config.json +27 -0
- package/.agy/skills/team-tech-debt/SKILL.md +133 -0
- package/.agy/skills/team-tech-debt/roles/assessor/role.md +76 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/commands/monitor.md +198 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/role.md +123 -0
- package/.agy/skills/team-tech-debt/roles/executor/role.md +76 -0
- package/.agy/skills/team-tech-debt/roles/planner/role.md +68 -0
- package/.agy/skills/team-tech-debt/roles/scanner/role.md +90 -0
- package/.agy/skills/team-tech-debt/roles/validator/role.md +78 -0
- package/.agy/skills/team-tech-debt/specs/pipelines.md +47 -0
- package/.agy/skills/team-tech-debt/specs/team-config.json +129 -0
- package/.agy/skills/team-testing/SKILL.md +144 -0
- package/.agy/skills/team-testing/roles/analyst/role.md +101 -0
- package/.agy/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
- package/.agy/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
- package/.agy/skills/team-testing/roles/coordinator/commands/monitor.md +242 -0
- package/.agy/skills/team-testing/roles/coordinator/role.md +134 -0
- package/.agy/skills/team-testing/roles/executor/role.md +95 -0
- package/.agy/skills/team-testing/roles/generator/role.md +95 -0
- package/.agy/skills/team-testing/roles/strategist/role.md +81 -0
- package/.agy/skills/team-testing/specs/pipelines.md +101 -0
- package/.agy/skills/team-testing/specs/team-config.json +93 -0
- package/.agy/skills/wiki-connect/SKILL.md +64 -0
- package/.agy/skills/wiki-digest/SKILL.md +70 -0
- package/.agy/skills/workflow-skill-designer/SKILL.md +506 -0
- package/.agy/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
- package/.agy/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
- package/.agy/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
- package/.agy/skills/workflow-skill-designer/phases/04-validation.md +471 -0
- package/package.json +3 -1
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: maestro-player
|
|
3
|
+
description: Play workflow templates with checkpoint resume
|
|
4
|
+
argument-hint: <template-slug|path> [--context key=value...] [-c [session-id]] [--list] [--dry-run]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- ask_question
|
|
7
|
+
- define_subagent
|
|
8
|
+
- grep_search
|
|
9
|
+
- invoke_subagent
|
|
10
|
+
- manage_subagents
|
|
11
|
+
- replace_file_content
|
|
12
|
+
- run_command
|
|
13
|
+
- send_message
|
|
14
|
+
- view_file
|
|
15
|
+
- write_to_file
|
|
16
|
+
---
|
|
17
|
+
<purpose>
|
|
18
|
+
Load workflow template (from maestro-composer) → bind context variables → execute DAG nodes in topological order → persist state at checkpoints → support resume.
|
|
19
|
+
|
|
20
|
+
Session: `.workflow/.maestro/player-{YYYYMMDD-HHmmss}/status.json`
|
|
21
|
+
</purpose>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
$ARGUMENTS — template slug/path, or flags.
|
|
25
|
+
|
|
26
|
+
**Flags**:
|
|
27
|
+
- `--context key=value`: Bind context variables (repeatable)
|
|
28
|
+
- `-c [session-id]`: Resume paused/interrupted session
|
|
29
|
+
- `--list`: List available templates from index.json
|
|
30
|
+
- `--dry-run`: Show execution plan without executing
|
|
31
|
+
|
|
32
|
+
**Node execution mechanisms**:
|
|
33
|
+
|
|
34
|
+
| Node type | Mechanism | Blocking |
|
|
35
|
+
|-----------|-----------|----------|
|
|
36
|
+
| skill | `Skill(skill, args)` | sync |
|
|
37
|
+
| command | `Skill(skill, args)` | sync |
|
|
38
|
+
| cli | `maestro delegate --to tool --mode mode` via `run_command(run_in_background: true)` | async, STOP + wait |
|
|
39
|
+
| agent | `invoke_subagent([{ TypeName: "<TypeName>", Role: "<Role>", Prompt: "<Prompt>", Workspace: "inherit" }])` | configurable |
|
|
40
|
+
| checkpoint | State save + optional user pause | — |
|
|
41
|
+
|
|
42
|
+
**Runtime reference resolution** in args_template:
|
|
43
|
+
|
|
44
|
+
| Reference | Resolves to |
|
|
45
|
+
|-----------|-------------|
|
|
46
|
+
| `{variable}` | session context[variable] |
|
|
47
|
+
| `{N-001.session_id}` | node's session_id |
|
|
48
|
+
| `{N-001.output_path}` | node's output_path |
|
|
49
|
+
| `{prev_session_id}` | previous non-checkpoint node's session_id |
|
|
50
|
+
| `{prev_output_path}` | previous non-checkpoint node's output_path |
|
|
51
|
+
|
|
52
|
+
**Session schema** (status.json — must align with maestro.md tracking):
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"session_id": "player-<YYYYMMDD>-<HHmmss>",
|
|
56
|
+
"status": "running|paused|completed|failed|aborted",
|
|
57
|
+
"template_id": "wft-<slug>-<date>",
|
|
58
|
+
"template_path": "<path>",
|
|
59
|
+
"auto_mode": false,
|
|
60
|
+
"context": { "goal": "..." },
|
|
61
|
+
"steps": [{
|
|
62
|
+
"index": 0, "node_id": "N-001", "skill": "<executor>",
|
|
63
|
+
"args": "<resolved>", "type": "skill|cli|agent|checkpoint",
|
|
64
|
+
"status": "pending|running|completed|skipped|failed",
|
|
65
|
+
"session_id": null, "output_path": null, "artifacts": []
|
|
66
|
+
}],
|
|
67
|
+
"current_step": 0,
|
|
68
|
+
"last_checkpoint": null
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
</context>
|
|
72
|
+
|
|
73
|
+
<state_machine>
|
|
74
|
+
|
|
75
|
+
<states>
|
|
76
|
+
S_ROUTE — 入口路由(list/resume/dry-run/normal) PERSIST: —
|
|
77
|
+
S_RESUME — 恢复已暂停 session PERSIST: —
|
|
78
|
+
S_LOAD — 加载模板、收集变量、绑定引用 PERSIST: —
|
|
79
|
+
S_INIT — 创建 session、拓扑排序、初始化 steps PERSIST: status.json
|
|
80
|
+
S_EXEC_LOOP — 逐步执行(核心循环) PERSIST: status.json (每步更新)
|
|
81
|
+
S_COMPLETE — 标记完成、输出摘要 PERSIST: status.json (final)
|
|
82
|
+
</states>
|
|
83
|
+
|
|
84
|
+
<transitions>
|
|
85
|
+
|
|
86
|
+
S_ROUTE:
|
|
87
|
+
→ handleList WHEN: --list DO: scan index.json, display templates
|
|
88
|
+
→ S_RESUME WHEN: -c flag
|
|
89
|
+
→ S_LOAD WHEN: template slug/path provided
|
|
90
|
+
→ handleList WHEN: no args DO: display templates + ask_question
|
|
91
|
+
|
|
92
|
+
S_RESUME:
|
|
93
|
+
→ S_EXEC_LOOP WHEN: session found DO: A_RESUME_SESSION
|
|
94
|
+
→ ERROR(E004) WHEN: no session found
|
|
95
|
+
|
|
96
|
+
S_LOAD:
|
|
97
|
+
→ S_INIT DO: A_LOAD_AND_BIND
|
|
98
|
+
|
|
99
|
+
S_INIT:
|
|
100
|
+
→ END WHEN: --dry-run DO: display execution plan
|
|
101
|
+
→ S_EXEC_LOOP DO: A_INIT_SESSION (topological sort → steps[], write status.json, display banner)
|
|
102
|
+
|
|
103
|
+
S_EXEC_LOOP:
|
|
104
|
+
→ S_EXEC_LOOP WHEN: step completed, more steps DO: A_EXECUTE_STEP → advance current_step
|
|
105
|
+
→ S_COMPLETE WHEN: all steps completed
|
|
106
|
+
→ END WHEN: checkpoint pause DO: set status=paused, display resume command
|
|
107
|
+
→ END WHEN: abort chosen DO: set status=aborted, save progress
|
|
108
|
+
GUARD: cli nodes → run_command(run_in_background: true) + STOP, wait for callback
|
|
109
|
+
GUARD: on failure → on_fail: skip (log, advance) | retry (once) | abort (ask_question: Retry/Skip/Abort)
|
|
110
|
+
GUARD: after step 3+ → display context hint "可随时 /maestro-player -c 恢复"
|
|
111
|
+
|
|
112
|
+
S_COMPLETE:
|
|
113
|
+
→ END DO: A_COMPLETE_SESSION
|
|
114
|
+
|
|
115
|
+
</transitions>
|
|
116
|
+
|
|
117
|
+
<actions>
|
|
118
|
+
|
|
119
|
+
### A_RESUME_SESSION
|
|
120
|
+
|
|
121
|
+
1. If session-id: load status.json. If none: scan player-*/status.json for running|paused.
|
|
122
|
+
2. Reset any "running" steps to "pending" (interrupted mid-execution)
|
|
123
|
+
3. Set current_step to resume point after last_checkpoint
|
|
124
|
+
4. Enter S_EXEC_LOOP
|
|
125
|
+
|
|
126
|
+
### A_LOAD_AND_BIND
|
|
127
|
+
|
|
128
|
+
1. Resolve template: absolute path → as-is; relative → from cwd; slug → index.json lookup
|
|
129
|
+
2. Parse `--context key=value` pairs
|
|
130
|
+
3. Validate template (template_id, nodes, edges, context_schema required)
|
|
131
|
+
4. Collect missing required variables via ask_question
|
|
132
|
+
5. Bind {variable} placeholders (leave {N-xxx.field} and {prev_*} for runtime)
|
|
133
|
+
|
|
134
|
+
### A_INIT_SESSION
|
|
135
|
+
|
|
136
|
+
1. Generate session_id: player-{YYYYMMDD-HHmmss}
|
|
137
|
+
2. Topological sort (Kahn's algorithm) → flatten to steps[] (parallel nodes share batch index)
|
|
138
|
+
3. All steps status: "pending"
|
|
139
|
+
4. Write status.json
|
|
140
|
+
|
|
141
|
+
### A_EXECUTE_STEP
|
|
142
|
+
|
|
143
|
+
1. Resolve runtime references ({N-xxx.field}, {prev_*}) in args
|
|
144
|
+
2. Set step status="running", write status.json
|
|
145
|
+
3. Execute by type:
|
|
146
|
+
- **skill/command**: `Skill(skill, resolved_args)` → extract session_id, output_path, artifacts
|
|
147
|
+
- **cli**: `run_command(run_in_background: true)` → STOP, wait for callback → `maestro delegate output <id>`
|
|
148
|
+
- **agent**: `invoke_subagent([{ TypeName: "<TypeName>", Role: "<Role>", Prompt: "<Prompt>", Workspace: "inherit" }])`
|
|
149
|
+
- **checkpoint**: write checkpoint snapshot. If auto_continue==false: ask_question (Continue/Pause/Abort)
|
|
150
|
+
4. Set step status="completed" (or "skipped"/"failed"), write status.json
|
|
151
|
+
|
|
152
|
+
### A_COMPLETE_SESSION
|
|
153
|
+
|
|
154
|
+
Set status="completed", completed_at. Display summary: session, template, steps completed, context, per-step results, artifacts, session dir.
|
|
155
|
+
ask_question: Keep session / Run again / Done.
|
|
156
|
+
|
|
157
|
+
</actions>
|
|
158
|
+
|
|
159
|
+
</state_machine>
|
|
160
|
+
|
|
161
|
+
<error_codes>
|
|
162
|
+
| Code | Condition | Recovery |
|
|
163
|
+
|------|-----------|----------|
|
|
164
|
+
| E001 | Template not found | Show --list, suggest closest match |
|
|
165
|
+
| E002 | Template JSON invalid (missing template_id/nodes/edges) | Point to template file for fix |
|
|
166
|
+
| E004 | Resume session not found | List available player-*/ sessions |
|
|
167
|
+
| E005 | DAG cycle in template | Point to template, suggest --edit |
|
|
168
|
+
| E006 | Node execution failed + abort chosen | Save state, suggest `-c` resume |
|
|
169
|
+
</error_codes>
|
|
170
|
+
|
|
171
|
+
<success_criteria>
|
|
172
|
+
- [ ] Template loaded, variables bound, session created with topological steps
|
|
173
|
+
- [ ] status.json written after every step change (resume-safe)
|
|
174
|
+
- [ ] CLI nodes use run_command(run_in_background) + STOP pattern
|
|
175
|
+
- [ ] Checkpoints saved, resume via -c works
|
|
176
|
+
</success_criteria>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: maestro-quick
|
|
3
|
+
description: Quick task execution, skip optional agents
|
|
4
|
+
argument-hint: [description] [--full] [--discuss]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- ask_question
|
|
7
|
+
- define_subagent
|
|
8
|
+
- grep_search
|
|
9
|
+
- invoke_subagent
|
|
10
|
+
- manage_subagents
|
|
11
|
+
- replace_file_content
|
|
12
|
+
- run_command
|
|
13
|
+
- send_message
|
|
14
|
+
- view_file
|
|
15
|
+
- write_to_file
|
|
16
|
+
---
|
|
17
|
+
<purpose>
|
|
18
|
+
Execute small, ad-hoc tasks with workflow guarantees (atomic commits, state tracking) using a shortened pipeline. Invoked for tasks that are well-understood and do not require full phase-level planning. Produces scratch task directory with plan, execution results, and optional verification. Flags --discuss and --full enable additional pipeline stages.
|
|
19
|
+
</purpose>
|
|
20
|
+
|
|
21
|
+
<required_reading>
|
|
22
|
+
@~/.maestro/workflows/quick.md
|
|
23
|
+
</required_reading>
|
|
24
|
+
|
|
25
|
+
<context>
|
|
26
|
+
$ARGUMENTS
|
|
27
|
+
|
|
28
|
+
Parse for:
|
|
29
|
+
- `--full` flag -- Enables plan-checking (max 2 iterations) and post-execution verification
|
|
30
|
+
- `--discuss` flag -- Decision extraction before planning (gray areas, Locked/Free/Deferred classification)
|
|
31
|
+
- Remaining text as task description
|
|
32
|
+
|
|
33
|
+
### Pre-load context
|
|
34
|
+
|
|
35
|
+
1. **Coding specs + tools**: Run `maestro spec load --category coding` to load coding conventions and discoverable tools. Apply to implementation.
|
|
36
|
+
2. **UI specs (conditional)**: If the task involves frontend/UI work (description contains component, page, style, layout, CSS, HTML, frontend), also run `maestro spec load --category ui`.
|
|
37
|
+
3. **Role Knowledge**:
|
|
38
|
+
- Browse: `maestro wiki list --category coding`
|
|
39
|
+
- Load task-relevant entries: `maestro wiki load <id1> [id2...]`
|
|
40
|
+
3. All are optional — proceed without if unavailable.
|
|
41
|
+
</context>
|
|
42
|
+
|
|
43
|
+
<execution>
|
|
44
|
+
Follow '~/.maestro/workflows/quick.md' completely.
|
|
45
|
+
|
|
46
|
+
**Next-step routing on completion:**
|
|
47
|
+
- Task done, --full verification passed → /manage-status
|
|
48
|
+
- Task done, verification found gaps → /quality-debug {issue}
|
|
49
|
+
- Task done, want to sync docs → /quality-sync
|
|
50
|
+
- Need a full phase workflow instead → /maestro-plan {phase}
|
|
51
|
+
</execution>
|
|
52
|
+
|
|
53
|
+
<error_codes>
|
|
54
|
+
| Code | Severity | Condition | Recovery |
|
|
55
|
+
|------|----------|-----------|----------|
|
|
56
|
+
| E001 | error | Task description required (no text provided) | Check arguments format, re-run with correct input |
|
|
57
|
+
| E002 | error | Scratch directory creation failed | Check disk space and .workflow/ permissions |
|
|
58
|
+
| W001 | warning | Verification found minor gaps | Review gaps and determine if they need fixing |
|
|
59
|
+
</error_codes>
|
|
60
|
+
|
|
61
|
+
<success_criteria>
|
|
62
|
+
- [ ] Scratch task directory created under .workflow/scratch/
|
|
63
|
+
- [ ] plan.json written with task definitions
|
|
64
|
+
- [ ] All tasks executed with summaries written
|
|
65
|
+
- [ ] state.json updated with scratch task entry
|
|
66
|
+
- [ ] Commit created with task changes
|
|
67
|
+
</success_criteria>
|