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,55 +1,55 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: quality-refactor
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: "[<scope>]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Task
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<purpose>
|
|
16
|
-
Plan and execute targeted refactoring with safety guarantees through analysis, planning, and reflection-driven iteration. Identifies affected files and dependencies, creates a refactoring plan, confirms with the user before execution, then applies changes with test verification after every modification to ensure zero regressions. Each refactoring round records strategy, outcome, and adjustments in reflection-log.md.
|
|
17
|
-
</purpose>
|
|
18
|
-
|
|
19
|
-
<required_reading>
|
|
20
|
-
@~/.maestro/workflows/refactor.md
|
|
21
|
-
</required_reading>
|
|
22
|
-
|
|
23
|
-
<context>
|
|
24
|
-
Scope: $ARGUMENTS (required)
|
|
25
|
-
- Module path: "src/auth" - specific directory
|
|
26
|
-
- Feature area: "authentication" - conceptual scope
|
|
27
|
-
- "all" - full codebase scan
|
|
28
|
-
|
|
29
|
-
If not provided, prompt user for scope.
|
|
30
|
-
</context>
|
|
31
|
-
|
|
32
|
-
<execution>
|
|
33
|
-
Follow '~/.maestro/workflows/refactor.md' completely.
|
|
34
|
-
|
|
35
|
-
**Next-step routing on completion:**
|
|
36
|
-
- All tests pass → `/quality-sync` (update codebase docs)
|
|
37
|
-
- Test failures after refactor → `/quality-debug {scope}`
|
|
38
|
-
- No test suite available → `/quality-auto-test {phase}`
|
|
39
|
-
</execution>
|
|
40
|
-
|
|
41
|
-
<error_codes>
|
|
42
|
-
| Code | Severity | Condition | Recovery |
|
|
43
|
-
|------|----------|-----------|----------|
|
|
44
|
-
| E001 | error | Refactoring scope/description required | Prompt user for module path, feature area, or "all" |
|
|
45
|
-
| E002 | error | Test suite not available for affected area | Suggest creating tests first, or proceed with manual verification |
|
|
46
|
-
| W001 | warning | Partial test coverage for affected area | Note uncovered areas, proceed with extra caution |
|
|
47
|
-
</error_codes>
|
|
48
|
-
|
|
49
|
-
<success_criteria>
|
|
50
|
-
- [ ] Refactoring plan created and confirmed by user
|
|
51
|
-
- [ ] Changes implemented according to plan
|
|
52
|
-
- [ ] All tests pass after refactoring
|
|
53
|
-
- [ ] No regressions introduced
|
|
54
|
-
- [ ] reflection-log.md written with strategy and outcomes
|
|
55
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: quality-refactor
|
|
3
|
+
description: Reduce tech debt with reflection-driven iteration
|
|
4
|
+
argument-hint: "[<scope>]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Task
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<purpose>
|
|
16
|
+
Plan and execute targeted refactoring with safety guarantees through analysis, planning, and reflection-driven iteration. Identifies affected files and dependencies, creates a refactoring plan, confirms with the user before execution, then applies changes with test verification after every modification to ensure zero regressions. Each refactoring round records strategy, outcome, and adjustments in reflection-log.md.
|
|
17
|
+
</purpose>
|
|
18
|
+
|
|
19
|
+
<required_reading>
|
|
20
|
+
@~/.maestro/workflows/refactor.md
|
|
21
|
+
</required_reading>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
Scope: $ARGUMENTS (required)
|
|
25
|
+
- Module path: "src/auth" - specific directory
|
|
26
|
+
- Feature area: "authentication" - conceptual scope
|
|
27
|
+
- "all" - full codebase scan
|
|
28
|
+
|
|
29
|
+
If not provided, prompt user for scope.
|
|
30
|
+
</context>
|
|
31
|
+
|
|
32
|
+
<execution>
|
|
33
|
+
Follow '~/.maestro/workflows/refactor.md' completely.
|
|
34
|
+
|
|
35
|
+
**Next-step routing on completion:**
|
|
36
|
+
- All tests pass → `/quality-sync` (update codebase docs)
|
|
37
|
+
- Test failures after refactor → `/quality-debug {scope}`
|
|
38
|
+
- No test suite available → `/quality-auto-test {phase}`
|
|
39
|
+
</execution>
|
|
40
|
+
|
|
41
|
+
<error_codes>
|
|
42
|
+
| Code | Severity | Condition | Recovery |
|
|
43
|
+
|------|----------|-----------|----------|
|
|
44
|
+
| E001 | error | Refactoring scope/description required | Prompt user for module path, feature area, or "all" |
|
|
45
|
+
| E002 | error | Test suite not available for affected area | Suggest creating tests first, or proceed with manual verification |
|
|
46
|
+
| W001 | warning | Partial test coverage for affected area | Note uncovered areas, proceed with extra caution |
|
|
47
|
+
</error_codes>
|
|
48
|
+
|
|
49
|
+
<success_criteria>
|
|
50
|
+
- [ ] Refactoring plan created and confirmed by user
|
|
51
|
+
- [ ] Changes implemented according to plan
|
|
52
|
+
- [ ] All tests pass after refactoring
|
|
53
|
+
- [ ] No regressions introduced
|
|
54
|
+
- [ ] reflection-log.md written with strategy and outcomes
|
|
55
|
+
</success_criteria>
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: quality-retrospective
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: "[phase|N..M] [--lens technical|process|quality|decision] [--all] [--no-route] [--compare N] [-y]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<purpose>
|
|
16
|
-
Post-execution multi-perspective retrospective (复盘) for completed phases. Consumes existing execution artifacts (verification.json, review.json, issues.jsonl, plan.json, .summaries/, uat.md, state.json) and runs four parallel lenses — technical, process, quality, decision — to distill reusable insights. Routes each insight into the appropriate store: spec stub for reusable patterns, memory tip for process notes, issue for recurring gaps. Auto-scans for unreviewed completed phases and reports the backlog. Every insight is also persisted to `.workflow/learning/lessons.jsonl` for cross-phase queryability.
|
|
17
|
-
</purpose>
|
|
18
|
-
|
|
19
|
-
<required_reading>
|
|
20
|
-
@~/.maestro/workflows/retrospective.md
|
|
21
|
-
</required_reading>
|
|
22
|
-
|
|
23
|
-
<deferred_reading>
|
|
24
|
-
- @~/.maestro/workflows/issue.md (issues.jsonl schema for auto-creation)
|
|
25
|
-
- @~/.maestro/workflows/learn.md (tip routing via manage-learn tip)
|
|
26
|
-
- @~/.maestro/workflows/verify.md (verification.json schema for quality lens parsing)
|
|
27
|
-
- @~/.maestro/workflows/review.md (review.json schema for quality lens parsing)
|
|
28
|
-
</deferred_reading>
|
|
29
|
-
|
|
30
|
-
<context>
|
|
31
|
-
Arguments: $ARGUMENTS
|
|
32
|
-
|
|
33
|
-
Modes (scan/single/range/all), flags (--lens, --no-route, --compare, -y), and storage paths defined in workflow retrospective.md Argument Shape and Stages 1-7.
|
|
34
|
-
</context>
|
|
35
|
-
|
|
36
|
-
<execution>
|
|
37
|
-
Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order. Key invariants:
|
|
38
|
-
|
|
39
|
-
1. **Read-only until Stage 6** — Stages 1–5 must not write anything except the in-memory retrospective record.
|
|
40
|
-
2. **Parallel lens dispatch** — Stage 4 spawns one Agent per active lens in a single message (multiple Agent tool calls). All agents use `subagent_type: "general-purpose"` and `run_in_background: false`.
|
|
41
|
-
3. **Match canonical issues schema** — Stage 6 issue routing must produce rows that pass `jq` parsing and match the schema in `workflows/issue.md` Step 4 exactly (status `"open"`, full `issue_history` entry, all required fields).
|
|
42
|
-
4. **Reuse `manage-learn tip` for note routing** — do not duplicate the learning pipeline; invoke via `Skill({ skill: "manage-learn", args: "tip ..." })`.
|
|
43
|
-
5. **Backward-compat with phase-transition** — append a one-line summary per insight to `.workflow/specs/learnings.md` if and only if that file already exists. Never create it.
|
|
44
|
-
6. **Stable insight IDs** — `INS-{8 hex}` from `hash(phase_num + lens + title)` so re-runs do not duplicate.
|
|
45
|
-
7. **Archive before overwrite** — if existing `retrospective.{md,json}` are being replaced, move them to `{artifact_dir}/.history/` with a timestamp suffix first.
|
|
46
|
-
</execution>
|
|
47
|
-
|
|
48
|
-
<error_codes>
|
|
49
|
-
| Code | Severity | Description | Stage |
|
|
50
|
-
|------|----------|-------------|-------|
|
|
51
|
-
| E001 | error | `.workflow/` not initialized — run `/maestro-init` first | parse_input |
|
|
52
|
-
| E002 | error | Unknown `--lens` name (allowed: technical, process, quality, decision) | parse_input |
|
|
53
|
-
| E003 | error | `--compare` requires a single phase argument | parse_input |
|
|
54
|
-
| E004 | error | Phase has not executed yet — no `.task/` or `.summaries/` artifacts | load_artifacts |
|
|
55
|
-
| E005 | error | Phase argument out of range / phase directory not found | scan_unreviewed |
|
|
56
|
-
| W001 | warning | One or more lens agents failed — proceeding with partial coverage | multi_lens_analysis |
|
|
57
|
-
| W002 | warning | Existing retrospective.json found and not `--all` — prompted user to overwrite | scan_unreviewed |
|
|
58
|
-
| W003 | warning | `manage-learn tip` did not return parseable INS id; fell back to direct write | route_outputs |
|
|
59
|
-
| W004 | warning | `--compare` target phase has no retrospective.json; delta omitted | load_artifacts |
|
|
60
|
-
</error_codes>
|
|
61
|
-
|
|
62
|
-
<success_criteria>
|
|
63
|
-
- [ ] Mode correctly resolved (scan / single / range / all)
|
|
64
|
-
- [ ] At least one phase selected and validated (status == "completed", artifacts exist)
|
|
65
|
-
- [ ] All requested lens agents returned valid JSON, or W001 logged for partial coverage
|
|
66
|
-
- [ ] `retrospective.json` written with metrics, findings_by_lens, distilled_insights, routing_recommendations
|
|
67
|
-
- [ ] `retrospective.md` written and human-readable (tweetable, metrics table, per-lens findings, insights, routing table)
|
|
68
|
-
- [ ] Each insight has a stable `INS-{8hex}` id
|
|
69
|
-
- [ ] If routing enabled (default): every recommendation either created an artifact or was explicitly skipped by user
|
|
70
|
-
- [ ] Spec entries (if any) appended as `<spec-entry>` to matching `.workflow/specs/{category-file}.md`
|
|
71
|
-
- [ ] Issue rows (if any) match canonical issues.jsonl schema (status "open", full issue_history, all required fields)
|
|
72
|
-
- [ ] Note tips (if any) created via `Skill({ skill: "manage-learn", args: "tip ..." })`
|
|
73
|
-
- [ ] `lessons.jsonl` appended with one row per insight regardless of routing target
|
|
74
|
-
- [ ] `learning-index.json` updated and parseable
|
|
75
|
-
- [ ] No existing phase artifacts modified (verification.json, review.json, plan.json untouched)
|
|
76
|
-
- [ ] Confirmation banner displays routing counts and next-step suggestions
|
|
77
|
-
- [ ] Next step: `/manage-status` to review state, or `/manage-issue list --source retrospective` to triage created issues, or `/manage-learn list` to browse the lessons library
|
|
78
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: quality-retrospective
|
|
3
|
+
description: Phase retrospective with insight routing to specs and lessons
|
|
4
|
+
argument-hint: "[phase|N..M] [--lens technical|process|quality|decision] [--all] [--no-route] [--compare N] [-y]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Agent
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<purpose>
|
|
16
|
+
Post-execution multi-perspective retrospective (复盘) for completed phases. Consumes existing execution artifacts (verification.json, review.json, issues.jsonl, plan.json, .summaries/, uat.md, state.json) and runs four parallel lenses — technical, process, quality, decision — to distill reusable insights. Routes each insight into the appropriate store: spec stub for reusable patterns, memory tip for process notes, issue for recurring gaps. Auto-scans for unreviewed completed phases and reports the backlog. Every insight is also persisted to `.workflow/learning/lessons.jsonl` for cross-phase queryability.
|
|
17
|
+
</purpose>
|
|
18
|
+
|
|
19
|
+
<required_reading>
|
|
20
|
+
@~/.maestro/workflows/retrospective.md
|
|
21
|
+
</required_reading>
|
|
22
|
+
|
|
23
|
+
<deferred_reading>
|
|
24
|
+
- @~/.maestro/workflows/issue.md (issues.jsonl schema for auto-creation)
|
|
25
|
+
- @~/.maestro/workflows/learn.md (tip routing via manage-learn tip)
|
|
26
|
+
- @~/.maestro/workflows/verify.md (verification.json schema for quality lens parsing)
|
|
27
|
+
- @~/.maestro/workflows/review.md (review.json schema for quality lens parsing)
|
|
28
|
+
</deferred_reading>
|
|
29
|
+
|
|
30
|
+
<context>
|
|
31
|
+
Arguments: $ARGUMENTS
|
|
32
|
+
|
|
33
|
+
Modes (scan/single/range/all), flags (--lens, --no-route, --compare, -y), and storage paths defined in workflow retrospective.md Argument Shape and Stages 1-7.
|
|
34
|
+
</context>
|
|
35
|
+
|
|
36
|
+
<execution>
|
|
37
|
+
Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order. Key invariants:
|
|
38
|
+
|
|
39
|
+
1. **Read-only until Stage 6** — Stages 1–5 must not write anything except the in-memory retrospective record.
|
|
40
|
+
2. **Parallel lens dispatch** — Stage 4 spawns one Agent per active lens in a single message (multiple Agent tool calls). All agents use `subagent_type: "general-purpose"` and `run_in_background: false`.
|
|
41
|
+
3. **Match canonical issues schema** — Stage 6 issue routing must produce rows that pass `jq` parsing and match the schema in `workflows/issue.md` Step 4 exactly (status `"open"`, full `issue_history` entry, all required fields).
|
|
42
|
+
4. **Reuse `manage-learn tip` for note routing** — do not duplicate the learning pipeline; invoke via `Skill({ skill: "manage-learn", args: "tip ..." })`.
|
|
43
|
+
5. **Backward-compat with phase-transition** — append a one-line summary per insight to `.workflow/specs/learnings.md` if and only if that file already exists. Never create it.
|
|
44
|
+
6. **Stable insight IDs** — `INS-{8 hex}` from `hash(phase_num + lens + title)` so re-runs do not duplicate.
|
|
45
|
+
7. **Archive before overwrite** — if existing `retrospective.{md,json}` are being replaced, move them to `{artifact_dir}/.history/` with a timestamp suffix first.
|
|
46
|
+
</execution>
|
|
47
|
+
|
|
48
|
+
<error_codes>
|
|
49
|
+
| Code | Severity | Description | Stage |
|
|
50
|
+
|------|----------|-------------|-------|
|
|
51
|
+
| E001 | error | `.workflow/` not initialized — run `/maestro-init` first | parse_input |
|
|
52
|
+
| E002 | error | Unknown `--lens` name (allowed: technical, process, quality, decision) | parse_input |
|
|
53
|
+
| E003 | error | `--compare` requires a single phase argument | parse_input |
|
|
54
|
+
| E004 | error | Phase has not executed yet — no `.task/` or `.summaries/` artifacts | load_artifacts |
|
|
55
|
+
| E005 | error | Phase argument out of range / phase directory not found | scan_unreviewed |
|
|
56
|
+
| W001 | warning | One or more lens agents failed — proceeding with partial coverage | multi_lens_analysis |
|
|
57
|
+
| W002 | warning | Existing retrospective.json found and not `--all` — prompted user to overwrite | scan_unreviewed |
|
|
58
|
+
| W003 | warning | `manage-learn tip` did not return parseable INS id; fell back to direct write | route_outputs |
|
|
59
|
+
| W004 | warning | `--compare` target phase has no retrospective.json; delta omitted | load_artifacts |
|
|
60
|
+
</error_codes>
|
|
61
|
+
|
|
62
|
+
<success_criteria>
|
|
63
|
+
- [ ] Mode correctly resolved (scan / single / range / all)
|
|
64
|
+
- [ ] At least one phase selected and validated (status == "completed", artifacts exist)
|
|
65
|
+
- [ ] All requested lens agents returned valid JSON, or W001 logged for partial coverage
|
|
66
|
+
- [ ] `retrospective.json` written with metrics, findings_by_lens, distilled_insights, routing_recommendations
|
|
67
|
+
- [ ] `retrospective.md` written and human-readable (tweetable, metrics table, per-lens findings, insights, routing table)
|
|
68
|
+
- [ ] Each insight has a stable `INS-{8hex}` id
|
|
69
|
+
- [ ] If routing enabled (default): every recommendation either created an artifact or was explicitly skipped by user
|
|
70
|
+
- [ ] Spec entries (if any) appended as `<spec-entry>` to matching `.workflow/specs/{category-file}.md`
|
|
71
|
+
- [ ] Issue rows (if any) match canonical issues.jsonl schema (status "open", full issue_history, all required fields)
|
|
72
|
+
- [ ] Note tips (if any) created via `Skill({ skill: "manage-learn", args: "tip ..." })`
|
|
73
|
+
- [ ] `lessons.jsonl` appended with one row per insight regardless of routing target
|
|
74
|
+
- [ ] `learning-index.json` updated and parseable
|
|
75
|
+
- [ ] No existing phase artifacts modified (verification.json, review.json, plan.json untouched)
|
|
76
|
+
- [ ] Confirmation banner displays routing counts and next-step suggestions
|
|
77
|
+
- [ ] Next step: `/manage-status` to review state, or `/manage-issue list --source retrospective` to triage created issues, or `/manage-learn list` to browse the lessons library
|
|
78
|
+
</success_criteria>
|
|
@@ -1,108 +1,114 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: quality-review
|
|
3
|
-
description: Tiered code review
|
|
4
|
-
argument-hint: "<phase> [--level quick|standard|deep] [--dimensions security,architecture,...] [--skip-specs]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<purpose>
|
|
16
|
-
Run multi-dimensional code review on a completed phase's changed files. Answers the question "is this code good?" -- complementing maestro-verify ("is the goal met?") and quality-test ("does it work for users?"). Three review levels (quick/standard/deep) scale with task depth, auto-detected from file count. Level definitions, dimension lists, deep-dive rules, and issue creation thresholds defined in workflow review.md.
|
|
17
|
-
</purpose>
|
|
18
|
-
|
|
19
|
-
<required_reading>
|
|
20
|
-
@~/.maestro/workflows/review.md
|
|
21
|
-
</required_reading>
|
|
22
|
-
|
|
23
|
-
<deferred_reading>
|
|
24
|
-
- [index.json](~/.maestro/templates/index.json) — read when updating phase index after review
|
|
25
|
-
</deferred_reading>
|
|
26
|
-
|
|
27
|
-
<context>
|
|
28
|
-
Phase: $ARGUMENTS (required — phase number or slug)
|
|
29
|
-
|
|
30
|
-
**Flags:**
|
|
31
|
-
- `--level quick|standard|deep` — Explicit review level (default: auto-detect from file count)
|
|
32
|
-
- `--dimensions <list>` — Comma-separated subset of dimensions to review (overrides level defaults)
|
|
33
|
-
- `--skip-specs` — Skip loading project specs as review context
|
|
34
|
-
|
|
35
|
-
**All context via state.json.artifacts[]:**
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
related = artifacts.filter(a =>
|
|
39
|
-
a.phase === target_phase && a.milestone === current_milestone
|
|
40
|
-
).sort_by(completed_at asc)
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Each artifact's type determines its outputs at `.workflow/{a.path}/`:
|
|
44
|
-
- **execute** → .summaries/, .task/, verification.json, plan.json (source of files to review)
|
|
45
|
-
- **review** → review.json (prior verdict, findings — for delta comparison)
|
|
46
|
-
- **debug** → understanding.md, evidence.ndjson (confirmed root causes)
|
|
47
|
-
- **test** → uat.md, .tests/ (user-observable gaps)
|
|
48
|
-
|
|
49
|
-
Extract conclusions from related artifacts that may affect this review. Pass as prior quality context to reviewer agents — avoid redundant work, focus on gaps and regressions.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
**Output
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
- [ ]
|
|
105
|
-
- [ ]
|
|
106
|
-
- [ ]
|
|
107
|
-
- [ ]
|
|
108
|
-
|
|
1
|
+
---
|
|
2
|
+
name: quality-review
|
|
3
|
+
description: Tiered code review with severity classification
|
|
4
|
+
argument-hint: "<phase> [--level quick|standard|deep] [--dimensions security,architecture,...] [--skip-specs]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Agent
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<purpose>
|
|
16
|
+
Run multi-dimensional code review on a completed phase's changed files. Answers the question "is this code good?" -- complementing maestro-verify ("is the goal met?") and quality-test ("does it work for users?"). Three review levels (quick/standard/deep) scale with task depth, auto-detected from file count. Level definitions, dimension lists, deep-dive rules, and issue creation thresholds defined in workflow review.md.
|
|
17
|
+
</purpose>
|
|
18
|
+
|
|
19
|
+
<required_reading>
|
|
20
|
+
@~/.maestro/workflows/review.md
|
|
21
|
+
</required_reading>
|
|
22
|
+
|
|
23
|
+
<deferred_reading>
|
|
24
|
+
- [index.json](~/.maestro/templates/index.json) — read when updating phase index after review
|
|
25
|
+
</deferred_reading>
|
|
26
|
+
|
|
27
|
+
<context>
|
|
28
|
+
Phase: $ARGUMENTS (required — phase number or slug)
|
|
29
|
+
|
|
30
|
+
**Flags:**
|
|
31
|
+
- `--level quick|standard|deep` — Explicit review level (default: auto-detect from file count)
|
|
32
|
+
- `--dimensions <list>` — Comma-separated subset of dimensions to review (overrides level defaults)
|
|
33
|
+
- `--skip-specs` — Skip loading project specs as review context
|
|
34
|
+
|
|
35
|
+
**All context via state.json.artifacts[]:**
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
related = artifacts.filter(a =>
|
|
39
|
+
a.phase === target_phase && a.milestone === current_milestone
|
|
40
|
+
).sort_by(completed_at asc)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Each artifact's type determines its outputs at `.workflow/{a.path}/`:
|
|
44
|
+
- **execute** → .summaries/, .task/, verification.json, plan.json (source of files to review)
|
|
45
|
+
- **review** → review.json (prior verdict, findings — for delta comparison)
|
|
46
|
+
- **debug** → understanding.md, evidence.ndjson (confirmed root causes)
|
|
47
|
+
- **test** → uat.md, .tests/ (user-observable gaps)
|
|
48
|
+
|
|
49
|
+
Extract conclusions from related artifacts that may affect this review. Pass as prior quality context to reviewer agents — avoid redundant work, focus on gaps and regressions.
|
|
50
|
+
|
|
51
|
+
### Pre-load context (before dispatching reviewer agents)
|
|
52
|
+
|
|
53
|
+
1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, load component boundaries and layer rules. Pass as `codebase_context` to reviewer agents (especially architecture dimension).
|
|
54
|
+
2. **Wiki constraints**: Run `maestro wiki search "architecture constraint" --json 2>/dev/null`. If results found, pass as `wiki_context` to reviewer agents for evaluating code against documented decisions.
|
|
55
|
+
3. Both are optional — proceed without if unavailable.
|
|
56
|
+
|
|
57
|
+
**Output**: `REVIEW_DIR = .workflow/scratch/{YYYYMMDD}-review-P{N}-{slug}/` (P{N} = phase number, enables directory-level identification as state.json fallback)
|
|
58
|
+
</context>
|
|
59
|
+
|
|
60
|
+
<execution>
|
|
61
|
+
Follow '~/.maestro/workflows/review.md' completely.
|
|
62
|
+
|
|
63
|
+
**Output writes to REVIEW_DIR** (not EXEC_DIR):
|
|
64
|
+
- `REVIEW_DIR/review.json` — findings, severity distribution, verdict
|
|
65
|
+
|
|
66
|
+
**Register artifact on completion:**
|
|
67
|
+
```
|
|
68
|
+
Append to state.json.artifacts[]:
|
|
69
|
+
{
|
|
70
|
+
id: nextArtifactId(artifacts, "review"), // REV-001
|
|
71
|
+
type: "review",
|
|
72
|
+
milestone: current_milestone,
|
|
73
|
+
phase: target_phase,
|
|
74
|
+
scope: "phase",
|
|
75
|
+
path: "scratch/{YYYYMMDD}-review-P{N}-{slug}", // relative to .workflow/
|
|
76
|
+
status: "completed",
|
|
77
|
+
depends_on: exec_art.id, // or prior debug/review if re-review
|
|
78
|
+
harvested: false,
|
|
79
|
+
created_at: start_time,
|
|
80
|
+
completed_at: now()
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Report format and next-step routing by verdict defined in workflow review.md Report Format and Next Step Routing sections.
|
|
85
|
+
|
|
86
|
+
**Next-step routing summary:**
|
|
87
|
+
- PASS → `/quality-test {phase}`
|
|
88
|
+
- WARN → `/quality-test {phase}` (proceed with caveats)
|
|
89
|
+
- BLOCK → `/maestro-plan {phase} --gaps` (fix critical findings first)
|
|
90
|
+
</execution>
|
|
91
|
+
|
|
92
|
+
<error_codes>
|
|
93
|
+
| Code | Severity | Condition | Recovery |
|
|
94
|
+
|------|----------|-----------|----------|
|
|
95
|
+
| E001 | error | Phase argument required | Check arguments format, re-run with correct input |
|
|
96
|
+
| E002 | error | Phase directory not found | Check arguments format, re-run with correct input |
|
|
97
|
+
| E003 | error | No execution results found (no task summaries) | Verify execution completed with task summaries |
|
|
98
|
+
| E004 | error | No changed files detected in phase | Verify execution completed with task summaries |
|
|
99
|
+
| W001 | warning | Some dimension agents failed, partial results | Retry failed dimensions or accept partial results |
|
|
100
|
+
| W002 | warning | Deep-dive iteration limit reached with unresolved criticals | Accept current findings or escalate manually |
|
|
101
|
+
</error_codes>
|
|
102
|
+
|
|
103
|
+
<success_criteria>
|
|
104
|
+
- [ ] Phase resolved and changed files collected from task summaries
|
|
105
|
+
- [ ] Review level determined (explicit flag or auto-detected)
|
|
106
|
+
- [ ] Project specs loaded as review context (unless --skip-specs)
|
|
107
|
+
- [ ] Dimension reviews executed (inline for quick, parallel agents for standard/deep)
|
|
108
|
+
- [ ] All dimension results aggregated with severity classification
|
|
109
|
+
- [ ] Deep-dive completed if triggered (standard: auto, deep: forced)
|
|
110
|
+
- [ ] review.json written with complete findings, severity distribution, verdict
|
|
111
|
+
- [ ] Issues auto-created based on level thresholds
|
|
112
|
+
- [ ] index.json updated with review status
|
|
113
|
+
- [ ] Next step routed by verdict (PASS→test, WARN→test with caveats, BLOCK→plan --gaps)
|
|
114
|
+
</success_criteria>
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: quality-sync
|
|
3
|
-
description: Sync codebase docs
|
|
4
|
-
argument-hint: "[--full] [--since <commit|HEAD~N>] [--dry-run]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<purpose>
|
|
16
|
-
Synchronize project state after manual code changes or to refresh codebase documentation. Detects changes via git diff, traces impact through doc-index.json (file -> component -> feature -> requirement), updates state.json and index.json, and refreshes affected `.workflow/codebase/` documentation. Use --full flag for a complete resync of all tracked files regardless of git diff.
|
|
17
|
-
</purpose>
|
|
18
|
-
|
|
19
|
-
<required_reading>
|
|
20
|
-
@~/.maestro/workflows/sync.md
|
|
21
|
-
</required_reading>
|
|
22
|
-
|
|
23
|
-
<context>
|
|
24
|
-
$ARGUMENTS -- optional flags:
|
|
25
|
-
- `--full` -- Complete resync of all tracked files (ignores git diff, rebuilds all docs)
|
|
26
|
-
- `--since <commit|HEAD~N>` -- Diff since specific commit (default: last sync timestamp)
|
|
27
|
-
- `--dry-run` -- Show what would be updated without writing changes
|
|
28
|
-
</context>
|
|
29
|
-
|
|
30
|
-
<execution>
|
|
31
|
-
Follow '~/.maestro/workflows/sync.md' completely.
|
|
32
|
-
|
|
33
|
-
**Next-step routing on completion:**
|
|
34
|
-
- Docs refreshed → `/manage-status`
|
|
35
|
-
- Major structural changes detected → `/manage-codebase-rebuild` (full rebuild recommended)
|
|
36
|
-
</execution>
|
|
37
|
-
|
|
38
|
-
<error_codes>
|
|
39
|
-
| Code | Severity | Condition | Recovery |
|
|
40
|
-
|------|----------|-----------|----------|
|
|
41
|
-
| E001 | error | .workflow/ not initialized | Suggest running `/maestro-init` first|
|
|
42
|
-
| W001 | warning | No changes detected since last sync | Report clean state, skip updates |
|
|
43
|
-
</error_codes>
|
|
44
|
-
|
|
45
|
-
<success_criteria>
|
|
46
|
-
- [ ] state.json updated with current sync timestamp
|
|
47
|
-
- [ ] Codebase docs refreshed for all affected components
|
|
48
|
-
- [ ] doc-index.json reflects current file state
|
|
49
|
-
- [ ] Changes tracked and logged
|
|
50
|
-
- [ ] project.md Tech Stack section refreshed if dependency manifests changed
|
|
51
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: quality-sync
|
|
3
|
+
description: Sync codebase docs by tracing git diff impact
|
|
4
|
+
argument-hint: "[--full] [--since <commit|HEAD~N>] [--dry-run]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Agent
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<purpose>
|
|
16
|
+
Synchronize project state after manual code changes or to refresh codebase documentation. Detects changes via git diff, traces impact through doc-index.json (file -> component -> feature -> requirement), updates state.json and index.json, and refreshes affected `.workflow/codebase/` documentation. Use --full flag for a complete resync of all tracked files regardless of git diff.
|
|
17
|
+
</purpose>
|
|
18
|
+
|
|
19
|
+
<required_reading>
|
|
20
|
+
@~/.maestro/workflows/sync.md
|
|
21
|
+
</required_reading>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
$ARGUMENTS -- optional flags:
|
|
25
|
+
- `--full` -- Complete resync of all tracked files (ignores git diff, rebuilds all docs)
|
|
26
|
+
- `--since <commit|HEAD~N>` -- Diff since specific commit (default: last sync timestamp)
|
|
27
|
+
- `--dry-run` -- Show what would be updated without writing changes
|
|
28
|
+
</context>
|
|
29
|
+
|
|
30
|
+
<execution>
|
|
31
|
+
Follow '~/.maestro/workflows/sync.md' completely.
|
|
32
|
+
|
|
33
|
+
**Next-step routing on completion:**
|
|
34
|
+
- Docs refreshed → `/manage-status`
|
|
35
|
+
- Major structural changes detected → `/manage-codebase-rebuild` (full rebuild recommended)
|
|
36
|
+
</execution>
|
|
37
|
+
|
|
38
|
+
<error_codes>
|
|
39
|
+
| Code | Severity | Condition | Recovery |
|
|
40
|
+
|------|----------|-----------|----------|
|
|
41
|
+
| E001 | error | .workflow/ not initialized | Suggest running `/maestro-init` first|
|
|
42
|
+
| W001 | warning | No changes detected since last sync | Report clean state, skip updates |
|
|
43
|
+
</error_codes>
|
|
44
|
+
|
|
45
|
+
<success_criteria>
|
|
46
|
+
- [ ] state.json updated with current sync timestamp
|
|
47
|
+
- [ ] Codebase docs refreshed for all affected components
|
|
48
|
+
- [ ] doc-index.json reflects current file state
|
|
49
|
+
- [ ] Changes tracked and logged
|
|
50
|
+
- [ ] project.md Tech Stack section refreshed if dependency manifests changed
|
|
51
|
+
</success_criteria>
|