maestro-flow 0.4.11 → 0.4.13
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/.agents/agents/cli-explore-agent.md +1 -3
- package/.agents/agents/cross-role-reviewer.md +173 -0
- package/.agents/agents/role-design-author.md +220 -0
- package/.agents/agents/ui-design-agent.md +1 -18
- package/.agents/agents/workflow-analyzer.md +1 -1
- package/.agents/agents/workflow-external-researcher.md +1 -1
- package/.agents/skills/learn-decompose/SKILL.md +6 -6
- package/.agents/skills/learn-follow/SKILL.md +4 -4
- package/.agents/skills/learn-investigate/SKILL.md +6 -6
- package/.agents/skills/learn-retro/SKILL.md +7 -7
- package/.agents/skills/learn-second-opinion/SKILL.md +4 -4
- package/.agents/skills/maestro/SKILL.md +61 -27
- package/.agents/skills/maestro-amend/SKILL.md +1 -0
- package/.agents/skills/maestro-analyze/SKILL.md +37 -4
- package/.agents/skills/maestro-blueprint/SKILL.md +133 -0
- package/.agents/skills/maestro-brainstorm/SKILL.md +120 -103
- package/.agents/skills/maestro-fork/SKILL.md +1 -1
- package/.agents/skills/maestro-guard/SKILL.md +3 -2
- package/.agents/skills/maestro-help/SKILL.md +48 -14
- package/.agents/skills/maestro-help/index/catalog.json +29 -11
- package/.agents/skills/maestro-help/phases/01-parse-intent.md +1 -1
- package/.agents/skills/maestro-help/phases/02-search-present.md +6 -4
- package/.agents/skills/maestro-help/phases/03-workflow-guide.md +60 -33
- package/.agents/skills/maestro-impeccable/SKILL.md +13 -11
- package/.agents/skills/maestro-init/SKILL.md +3 -3
- package/.agents/skills/maestro-milestone-audit/SKILL.md +5 -3
- package/.agents/skills/maestro-milestone-complete/SKILL.md +7 -5
- package/.agents/skills/maestro-milestone-release/SKILL.md +1 -1
- package/.agents/skills/maestro-plan/SKILL.md +16 -4
- package/.agents/skills/maestro-ralph/SKILL.md +297 -226
- package/.agents/skills/maestro-ralph-execute/SKILL.md +82 -67
- package/.agents/skills/maestro-roadmap/SKILL.md +43 -81
- package/.agents/skills/manage-harvest/SKILL.md +1 -0
- package/.agents/skills/manage-issue-discover/SKILL.md +1 -1
- package/.agents/skills/manage-knowhow/SKILL.md +1 -1
- package/.agents/skills/manage-learn/SKILL.md +4 -4
- package/.agents/skills/quality-auto-test/SKILL.md +6 -6
- package/.agents/skills/quality-refactor/SKILL.md +1 -1
- package/.agents/skills/quality-retrospective/SKILL.md +2 -2
- package/.agents/skills/security-audit/SKILL.md +24 -0
- package/.agents/skills/spec-remove/SKILL.md +6 -2
- package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
- package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
- package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
- package/.agents/skills/team-lifecycle-v4/templates/architecture.md +3 -3
- package/.agents/skills/team-lifecycle-v4/templates/epics.md +2 -2
- package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
- package/.agents/skills/team-lifecycle-v4/templates/requirements.md +2 -2
- package/.agy/agents/cli-explore-agent.md +1 -3
- package/.agy/agents/cross-role-reviewer.md +170 -0
- package/.agy/agents/role-design-author.md +217 -0
- package/.agy/agents/ui-design-agent.md +1 -18
- package/.agy/agents/workflow-analyzer.md +1 -1
- package/.agy/agents/workflow-external-researcher.md +1 -1
- package/.agy/skills/learn-decompose/SKILL.md +6 -6
- package/.agy/skills/learn-follow/SKILL.md +4 -4
- package/.agy/skills/learn-investigate/SKILL.md +6 -6
- package/.agy/skills/learn-retro/SKILL.md +7 -7
- package/.agy/skills/learn-second-opinion/SKILL.md +4 -4
- package/.agy/skills/maestro/SKILL.md +61 -27
- package/.agy/skills/maestro-amend/SKILL.md +1 -0
- package/.agy/skills/maestro-analyze/SKILL.md +37 -4
- package/.agy/skills/maestro-blueprint/SKILL.md +133 -0
- package/.agy/skills/maestro-brainstorm/SKILL.md +120 -103
- package/.agy/skills/maestro-fork/SKILL.md +1 -1
- package/.agy/skills/maestro-guard/SKILL.md +3 -2
- package/.agy/skills/maestro-help/SKILL.md +48 -14
- package/.agy/skills/maestro-help/index/catalog.json +29 -11
- package/.agy/skills/maestro-help/phases/01-parse-intent.md +1 -1
- package/.agy/skills/maestro-help/phases/02-search-present.md +6 -4
- package/.agy/skills/maestro-help/phases/03-workflow-guide.md +60 -33
- package/.agy/skills/maestro-impeccable/SKILL.md +13 -11
- package/.agy/skills/maestro-init/SKILL.md +3 -3
- package/.agy/skills/maestro-milestone-audit/SKILL.md +5 -3
- package/.agy/skills/maestro-milestone-complete/SKILL.md +7 -5
- package/.agy/skills/maestro-milestone-release/SKILL.md +1 -1
- package/.agy/skills/maestro-plan/SKILL.md +16 -4
- package/.agy/skills/maestro-ralph/SKILL.md +297 -226
- package/.agy/skills/maestro-ralph-execute/SKILL.md +82 -67
- package/.agy/skills/maestro-roadmap/SKILL.md +43 -81
- package/.agy/skills/manage-harvest/SKILL.md +1 -0
- package/.agy/skills/manage-issue-discover/SKILL.md +1 -1
- package/.agy/skills/manage-knowhow/SKILL.md +1 -1
- package/.agy/skills/manage-learn/SKILL.md +4 -4
- package/.agy/skills/quality-auto-test/SKILL.md +6 -6
- package/.agy/skills/quality-refactor/SKILL.md +1 -1
- package/.agy/skills/quality-retrospective/SKILL.md +2 -2
- package/.agy/skills/security-audit/SKILL.md +24 -0
- package/.agy/skills/spec-remove/SKILL.md +6 -2
- package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
- package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
- package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
- package/.agy/skills/team-lifecycle-v4/templates/architecture.md +3 -3
- package/.agy/skills/team-lifecycle-v4/templates/epics.md +2 -2
- package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
- package/.agy/skills/team-lifecycle-v4/templates/requirements.md +2 -2
- package/.claude/agents/cli-explore-agent.md +1 -3
- package/.claude/agents/cross-role-reviewer.md +171 -0
- package/.claude/agents/role-design-author.md +218 -0
- package/.claude/agents/ui-design-agent.md +1 -18
- package/.claude/agents/workflow-analyzer.md +1 -1
- package/.claude/agents/workflow-external-researcher.md +1 -1
- package/.claude/commands/learn-decompose.md +6 -6
- package/.claude/commands/learn-follow.md +4 -4
- package/.claude/commands/learn-investigate.md +6 -6
- package/.claude/commands/learn-retro.md +7 -7
- package/.claude/commands/learn-second-opinion.md +4 -4
- package/.claude/commands/maestro-amend.md +1 -0
- package/.claude/commands/maestro-analyze.md +37 -4
- package/.claude/commands/maestro-blueprint.md +131 -0
- package/.claude/commands/maestro-brainstorm.md +133 -116
- package/.claude/commands/maestro-fork.md +1 -1
- package/.claude/commands/maestro-guard.md +3 -2
- package/.claude/commands/maestro-impeccable.md +13 -11
- package/.claude/commands/maestro-init.md +3 -3
- package/.claude/commands/maestro-milestone-audit.md +5 -3
- package/.claude/commands/maestro-milestone-complete.md +7 -5
- package/.claude/commands/maestro-milestone-release.md +1 -1
- package/.claude/commands/maestro-plan.md +16 -4
- package/.claude/commands/maestro-ralph-execute.md +82 -67
- package/.claude/commands/maestro-ralph.md +297 -226
- package/.claude/commands/maestro-roadmap.md +43 -81
- package/.claude/commands/maestro.md +61 -27
- package/.claude/commands/manage-harvest.md +1 -0
- package/.claude/commands/manage-issue-discover.md +1 -1
- package/.claude/commands/manage-knowhow.md +1 -1
- package/.claude/commands/manage-learn.md +4 -4
- package/.claude/commands/quality-auto-test.md +6 -6
- package/.claude/commands/quality-refactor.md +1 -1
- package/.claude/commands/quality-retrospective.md +2 -2
- package/.claude/commands/security-audit.md +24 -0
- package/.claude/commands/spec-remove.md +6 -2
- package/.claude/skills/maestro-help/SKILL.md +48 -14
- package/.claude/skills/maestro-help/index/catalog.json +29 -11
- package/.claude/skills/maestro-help/phases/01-parse-intent.md +1 -1
- package/.claude/skills/maestro-help/phases/02-search-present.md +6 -4
- package/.claude/skills/maestro-help/phases/03-workflow-guide.md +60 -33
- package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
- package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
- package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
- package/.claude/skills/team-lifecycle-v4/templates/architecture.md +3 -3
- package/.claude/skills/team-lifecycle-v4/templates/epics.md +2 -2
- package/.claude/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
- package/.claude/skills/team-lifecycle-v4/templates/requirements.md +2 -2
- package/.codex/skills/learn-decompose/SKILL.md +4 -4
- package/.codex/skills/learn-follow/SKILL.md +3 -3
- package/.codex/skills/learn-investigate/SKILL.md +3 -3
- package/.codex/skills/learn-retro/SKILL.md +3 -3
- package/.codex/skills/learn-second-opinion/SKILL.md +3 -3
- package/.codex/skills/maestro/SKILL.md +75 -38
- package/.codex/skills/maestro-amend/SKILL.md +157 -0
- package/.codex/skills/maestro-analyze/SKILL.md +72 -23
- package/.codex/skills/maestro-blueprint/SKILL.md +123 -0
- package/.codex/skills/maestro-brainstorm/SKILL.md +277 -46
- package/.codex/skills/maestro-composer/SKILL.md +1 -1
- package/.codex/skills/maestro-execute/SKILL.md +13 -4
- package/.codex/skills/maestro-fork/SKILL.md +2 -0
- package/.codex/skills/maestro-guard/SKILL.md +3 -2
- package/.codex/skills/maestro-help/SKILL.md +28 -18
- package/.codex/skills/maestro-help/catalog.json +29 -11
- package/.codex/skills/maestro-impeccable/SKILL.md +13 -11
- package/.codex/skills/maestro-init/SKILL.md +7 -7
- package/.codex/skills/maestro-plan/SKILL.md +27 -9
- package/.codex/skills/maestro-ralph/SKILL.md +740 -601
- package/.codex/skills/maestro-roadmap/SKILL.md +56 -72
- package/.codex/skills/maestro-update/SKILL.md +169 -0
- package/.codex/skills/maestro-verify/SKILL.md +11 -2
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +9 -5
- package/.codex/skills/manage-harvest/SKILL.md +11 -3
- package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
- package/.codex/skills/manage-knowhow/SKILL.md +1 -1
- package/.codex/skills/manage-learn/SKILL.md +3 -3
- package/.codex/skills/quality-refactor/SKILL.md +2 -2
- package/.codex/skills/quality-retrospective/SKILL.md +12 -5
- package/.codex/skills/security-audit/SKILL.md +24 -0
- package/.codex/skills/spec-remove/SKILL.md +8 -2
- package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
- package/.codex/skills/team-lifecycle-v4/templates/architecture.md +3 -3
- package/.codex/skills/team-lifecycle-v4/templates/epics.md +2 -2
- package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
- package/.codex/skills/team-lifecycle-v4/templates/requirements.md +2 -2
- package/README.md +8 -8
- package/README.zh-CN.md +8 -8
- package/dashboard/dist-server/dashboard/src/server/routes/settings.js +3 -3
- package/dashboard/dist-server/dashboard/src/server/routes/settings.js.map +1 -1
- package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.js +13 -7
- package/dist/src/agents/cli-agent-runner.js.map +1 -1
- package/dist/src/commands/spec.d.ts.map +1 -1
- package/dist/src/commands/spec.js +8 -1
- package/dist/src/commands/spec.js.map +1 -1
- package/dist/src/tools/spec-init.d.ts +16 -2
- package/dist/src/tools/spec-init.d.ts.map +1 -1
- package/dist/src/tools/spec-init.js +58 -187
- package/dist/src/tools/spec-init.js.map +1 -1
- package/dist/src/tools/spec-loader.d.ts.map +1 -1
- package/dist/src/tools/spec-loader.js +16 -16
- package/dist/src/tools/spec-loader.js.map +1 -1
- package/dist/src/tools/spec-seeds.d.ts +33 -0
- package/dist/src/tools/spec-seeds.d.ts.map +1 -0
- package/dist/src/tools/spec-seeds.js +200 -0
- package/dist/src/tools/spec-seeds.js.map +1 -0
- package/dist/src/tools/spec-writer.d.ts.map +1 -1
- package/dist/src/tools/spec-writer.js +7 -9
- package/dist/src/tools/spec-writer.js.map +1 -1
- package/dist/src/utils/update-notices.js +12 -0
- package/dist/src/utils/update-notices.js.map +1 -1
- package/package.json +1 -1
- package/templates/business-test-report.json +1 -1
- package/templates/index.json +1 -1
- package/templates/roadmap.md +15 -9
- package/templates/state.json +18 -17
- package/workflows/agy-instructions.md +2 -0
- package/workflows/analyze.md +79 -11
- package/workflows/auto-test.md +12 -7
- package/workflows/blueprint.md +431 -0
- package/workflows/brainstorm.md +617 -496
- package/workflows/business-test.md +7 -7
- package/workflows/claude-instructions.md +2 -0
- package/workflows/codebase-rebuild.md +4 -4
- package/workflows/codex-instructions.md +16 -83
- package/workflows/debug.md +1 -1
- package/workflows/harvest.md +184 -10
- package/workflows/impeccable.md +2 -0
- package/workflows/init.md +9 -8
- package/workflows/issue-analyze.md +14 -100
- package/workflows/issue-discover.md +2 -3
- package/workflows/issue-execute.md +1 -1
- package/workflows/issue-gaps-analyze.md +2 -0
- package/workflows/learn.md +1 -1
- package/workflows/maestro-chain-execute.md +10 -228
- package/workflows/maestro.md +2 -1
- package/workflows/milestone-audit.md +12 -4
- package/workflows/milestone-complete.md +14 -9
- package/workflows/milestone-release.md +82 -0
- package/workflows/plan.md +91 -25
- package/workflows/retrospective.md +1 -1
- package/workflows/roadmap-common.md +1 -1
- package/workflows/roadmap.md +14 -4
- package/workflows/spec-generate.md +26 -13
- package/workflows/specs-add.md +6 -1
- package/workflows/specs-load.md +6 -1
- package/workflows/specs-setup.md +6 -1
- package/workflows/sync.md +13 -0
- package/workflows/tools-spec.md +4 -0
- package/workflows/ui-design.md +5 -5
- package/workflows/ui-style.md +1 -1
- package/workflows/wiki-manage.md +2 -0
- package/.agents/agents/conceptual-planning-agent.md +0 -247
- package/.agy/agents/conceptual-planning-agent.md +0 -244
- package/.claude/agents/conceptual-planning-agent.md +0 -245
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cli-explore-agent
|
|
3
|
-
description:
|
|
4
|
-
Read-only code exploration agent with dual-source analysis strategy (Bash + CLI semantic).
|
|
5
|
-
Orchestrates 4-phase workflow: Task Understanding → Analysis Execution → Schema Validation → Output Generation.
|
|
3
|
+
description: Read-only code exploration via Bash + CLI semantic dual-source analysis, with schema-validated structured output.
|
|
6
4
|
allowed-tools:
|
|
7
5
|
- read_file
|
|
8
6
|
- find_files
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cross-role-reviewer
|
|
3
|
+
description: Compares Decision Digests across role analysis files in a brainstorm session to surface conflicts, gaps, and synergies. Read-only — returns structured text for the orchestrator to apply.
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- read_file
|
|
6
|
+
- find_files
|
|
7
|
+
- search
|
|
8
|
+
---
|
|
9
|
+
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# Cross-Role Reviewer
|
|
13
|
+
|
|
14
|
+
You read N role analysis index files from a brainstorm session and report cross-role issues. You do NOT write files. You produce structured text that the orchestrator consumes to drive ask_user and subsequent file edits.
|
|
15
|
+
|
|
16
|
+
## Inputs (parsed from your prompt)
|
|
17
|
+
|
|
18
|
+
| Field | Required | Notes |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `analysis_indexes` | yes | absolute paths to all `{role}/analysis.md` files |
|
|
21
|
+
| `guidance_path` | yes | path to `guidance-specification.md` (for decision-ID context) |
|
|
22
|
+
| `feature_list` | optional | F-id + slug + title rows (for cross-feature analysis) |
|
|
23
|
+
|
|
24
|
+
## Process
|
|
25
|
+
|
|
26
|
+
1. Read every `analysis.md` in `analysis_indexes` and `guidance_path`.
|
|
27
|
+
2. From each `analysis.md`, extract §2 Decision Digest tables:
|
|
28
|
+
- **Decisions table** — role stances per feature
|
|
29
|
+
- **Interfaces table** — contracts and their consumers
|
|
30
|
+
- **Cross-Cutting Positions table** — role-wide stances on shared topics
|
|
31
|
+
- **Findings Summary table** — discoveries and their impact
|
|
32
|
+
3. Compare across roles:
|
|
33
|
+
- **Conflicts**: same feature or topic, contradictory stances between roles
|
|
34
|
+
- **Gaps**: Interface consumer references a role that has no matching Decisions entry; or a Cross-Cutting topic addressed by one role but not by another that should
|
|
35
|
+
- **Synergies**: complementary Findings or compatible Interfaces that could be unified
|
|
36
|
+
4. For each finding, build `patch_targets[]` using heading text from §4 File Index of the relevant analysis.md — this gives you exact file paths and heading text for sub-files.
|
|
37
|
+
5. Return the report as structured markdown. Stop.
|
|
38
|
+
|
|
39
|
+
### When digest is insufficient
|
|
40
|
+
|
|
41
|
+
If a Decisions/Positions entry is too terse to judge a potential conflict, mark the finding with `need_deeper_context` and specify which sub-file to read:
|
|
42
|
+
|
|
43
|
+
```yaml
|
|
44
|
+
need_deeper_context:
|
|
45
|
+
file: "{role}/analysis-F-003-auth.md"
|
|
46
|
+
reason: "SA-12 stance ambiguous, need full Architecture section"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The orchestrator will read that file and inject its content for you to continue analysis. This is a fallback — aim to resolve 90%+ of findings from digest alone.
|
|
50
|
+
|
|
51
|
+
## Output Contract (return as text — do NOT write files)
|
|
52
|
+
|
|
53
|
+
Every finding MUST include a structured `patch_targets[]` block so the orchestrator can locate and apply edits without re-parsing prose. Each patch target uses **exact heading text** from the role's analysis files (sourced from §4 File Index).
|
|
54
|
+
|
|
55
|
+
```markdown
|
|
56
|
+
# Cross-Role Review
|
|
57
|
+
|
|
58
|
+
## Conflicts (need user decision)
|
|
59
|
+
### C-001: {short title}
|
|
60
|
+
- **Feature**: F-{id} (or "cross-cutting" if no specific feature)
|
|
61
|
+
- **Role A position**: {role} — Decision {ID}: "{stance}" (from §2 Decisions)
|
|
62
|
+
- **Role B position**: {role} — Decision {ID}: "{stance}" (from §2 Decisions)
|
|
63
|
+
- **Why it matters**: {what breaks if unresolved}
|
|
64
|
+
- **Suggested resolution**: {your recommended pick + 1-line rationale}
|
|
65
|
+
- **Confidence**: HIGH | MEDIUM | LOW
|
|
66
|
+
- **patch_targets**:
|
|
67
|
+
- target_file: `{role-A}/analysis-F-{id}-{slug}.md`
|
|
68
|
+
target_heading: `## {exact heading text}`
|
|
69
|
+
edit_type: `annotate_and_strikeout`
|
|
70
|
+
edit_content: `> **Cross-Role Resolution (C-001)**: {1-line resolution}`
|
|
71
|
+
- target_file: `{role-B}/analysis-F-{id}-{slug}.md`
|
|
72
|
+
target_heading: `## {exact heading text}`
|
|
73
|
+
edit_type: `annotate_and_strikeout`
|
|
74
|
+
edit_content: `> **Cross-Role Resolution (C-001)**: {1-line resolution}`
|
|
75
|
+
|
|
76
|
+
### C-002: ...
|
|
77
|
+
|
|
78
|
+
## Gaps (referenced but undefined)
|
|
79
|
+
### G-001: {short title}
|
|
80
|
+
- **Where referenced**: {role}'s §2 Interfaces table — consumer "{consumer role}" for "{interface name}"
|
|
81
|
+
- **Where it should be defined**: {owner-role}'s analysis (§2 Decisions or sub-file)
|
|
82
|
+
- **Owner role**: {role most appropriate to define it}
|
|
83
|
+
- **Suggested addition** (1-3 lines to insert at owner site)
|
|
84
|
+
- **patch_targets**:
|
|
85
|
+
- target_file: `{ref-role}/analysis.md`
|
|
86
|
+
target_heading: `### Interfaces`
|
|
87
|
+
edit_type: `annotate_after_heading`
|
|
88
|
+
edit_content: `> **Cross-Role Gap (G-001)**: {interface} consumer {owner-role} has no matching definition — see resolution below`
|
|
89
|
+
- target_file: `{owner-role}/analysis.md`
|
|
90
|
+
target_heading: `### Decisions`
|
|
91
|
+
edit_type: `append_to_section`
|
|
92
|
+
edit_content: `| {new-ID} | {feature} | {stance to fill gap} | {constraints} |`
|
|
93
|
+
|
|
94
|
+
### G-002: ...
|
|
95
|
+
|
|
96
|
+
## Synergy Opportunities (cross-role wins)
|
|
97
|
+
### S-001: {short title}
|
|
98
|
+
- **Roles involved**: {role A, role B}
|
|
99
|
+
- **Observation**: {what they could share / align}
|
|
100
|
+
- **Benefit**: {what's gained by aligning}
|
|
101
|
+
- **patch_targets**:
|
|
102
|
+
- target_file: `{role-A}/analysis-F-{id}-{slug}.md` or `{role-A}/analysis.md`
|
|
103
|
+
target_heading: `## {exact heading text}`
|
|
104
|
+
edit_type: `annotate_after_heading`
|
|
105
|
+
edit_content: `> **Cross-Role Synergy (S-001)**: aligns with {role-B} "{heading}" — {1-line how}`
|
|
106
|
+
- target_file: `{role-B}/analysis-F-{id}-{slug}.md` or `{role-B}/analysis.md`
|
|
107
|
+
target_heading: `## {exact heading text}`
|
|
108
|
+
edit_type: `annotate_after_heading`
|
|
109
|
+
edit_content: `> **Cross-Role Synergy (S-001)**: aligns with {role-A} "{heading}" — {1-line how}`
|
|
110
|
+
|
|
111
|
+
### S-002: ...
|
|
112
|
+
|
|
113
|
+
## Summary
|
|
114
|
+
- conflicts_count: N
|
|
115
|
+
- gaps_count: N
|
|
116
|
+
- synergies_count: N
|
|
117
|
+
- deeper_context_requests: N
|
|
118
|
+
- review_confidence: 0.0-1.0
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### edit_type vocabulary (closed set)
|
|
122
|
+
|
|
123
|
+
| edit_type | Behaviour |
|
|
124
|
+
|---|---|
|
|
125
|
+
| `annotate_after_heading` | Insert `edit_content` as a `> blockquote` line immediately after the matched heading. Original content untouched. |
|
|
126
|
+
| `annotate_and_strikeout` | Insert `edit_content` after the heading AND wrap the next paragraph in `<!-- superseded -->` … `<!-- /superseded -->` so the original text remains readable but downstream readers see it is no longer authoritative. |
|
|
127
|
+
| `append_to_section` | Append `edit_content` as a new paragraph/row at the end of the named section (before the next heading at same or higher level). |
|
|
128
|
+
|
|
129
|
+
The orchestrator MUST refuse to apply any edit whose `edit_type` is outside this set.
|
|
130
|
+
|
|
131
|
+
### edit_type defaults assume "Accept suggested resolution"
|
|
132
|
+
|
|
133
|
+
For Conflicts, both patch_targets default to `annotate_and_strikeout`. The orchestrator adjusts per user choice:
|
|
134
|
+
|
|
135
|
+
| User choice | role-A edit_type | role-B edit_type |
|
|
136
|
+
|---|---|---|
|
|
137
|
+
| Accept suggested resolution | `annotate_and_strikeout` | `annotate_and_strikeout` |
|
|
138
|
+
| Pick role A's stance | `annotate_after_heading` (keep A) | `annotate_and_strikeout` |
|
|
139
|
+
| Pick role B's stance | `annotate_and_strikeout` | `annotate_after_heading` (keep B) |
|
|
140
|
+
| Defer to TODO | skip both patches; log in guidance §12 as deferred | skip |
|
|
141
|
+
|
|
142
|
+
## Quality Standards
|
|
143
|
+
|
|
144
|
+
- **Every finding MUST include a `patch_targets[]` block** using the closed `edit_type` vocabulary above. Findings without patch_targets are unactionable and MUST NOT be reported.
|
|
145
|
+
- **target_heading MUST be exact heading text** from the role file, sourced from §4 File Index or by reading the target file. The orchestrator uses this for string matching.
|
|
146
|
+
- **target_file paths use role-folder format**: `{role}/analysis.md` or `{role}/analysis-F-{id}-{slug}.md`, not `design/{role}.md`.
|
|
147
|
+
- **Every Conflict MUST be actionable**: include a concrete suggested resolution + 1-line rationale.
|
|
148
|
+
- **Every Gap MUST name an owner role AND provide concrete edit_content**. Vague "more analysis needed" gaps MUST be dropped.
|
|
149
|
+
- **Every Synergy MUST patch BOTH role files** so the alignment is visible from either entry point.
|
|
150
|
+
- **Reference guidance decisions by ID**: when a role decision conflicts with a guidance decision, call out the ID.
|
|
151
|
+
|
|
152
|
+
## Scope
|
|
153
|
+
|
|
154
|
+
- ✅ Same feature, different role decisions that contradict (compare §2 Decisions rows)
|
|
155
|
+
- ✅ Interface consumer references a role with no matching definition (compare §2 Interfaces)
|
|
156
|
+
- ✅ Cross-Cutting Positions on same topic with contradictory stances
|
|
157
|
+
- ✅ Findings from one role that could benefit another (§2 Findings Summary)
|
|
158
|
+
- ❌ Internal inconsistencies within one role's files (that's the role-design-author's job)
|
|
159
|
+
- ❌ Decisions already locked in guidance §1-§10 (those are settled — surface only if a role file violates them)
|
|
160
|
+
|
|
161
|
+
## Return Protocol
|
|
162
|
+
|
|
163
|
+
- **TASK COMPLETE**: structured markdown report returned. Include the Summary block with counts.
|
|
164
|
+
- **TASK NEEDS_CONTEXT**: include `need_deeper_context` blocks for files the orchestrator should inject.
|
|
165
|
+
- **TASK BLOCKED**: cannot proceed (missing analysis files, all files empty). Report blocker.
|
|
166
|
+
|
|
167
|
+
## NEVER
|
|
168
|
+
|
|
169
|
+
- Write files. Your output is text only — the orchestrator does the file edits.
|
|
170
|
+
- Invent conflicts where the role digests actually agree. False positives are worse than misses.
|
|
171
|
+
- Re-derive guidance-specification decisions. Quote them by ID only.
|
|
172
|
+
- Exceed 3000 words in the report — be specific, not exhaustive.
|
|
173
|
+
- Use file paths in `design/` format — always use `{role}/` format.
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: role-design-author
|
|
3
|
+
description: Generates multi-file role analysis for a brainstorm session — analysis.md index + per-feature files + optional findings under {output_dir}/{role}/.
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- read_file
|
|
6
|
+
- write_file
|
|
7
|
+
- find_files
|
|
8
|
+
- search
|
|
9
|
+
---
|
|
10
|
+
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# Role Design Author
|
|
14
|
+
|
|
15
|
+
You produce a set of analysis files for one role in a brainstorm session, organized under `{output_dir}/`.
|
|
16
|
+
|
|
17
|
+
## Inputs (parsed from your prompt)
|
|
18
|
+
|
|
19
|
+
| Field | Required | Notes |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `role_name` | yes | kebab-case slug, e.g. `system-architect` |
|
|
22
|
+
| `role_template_path` | yes | **absolute** path to `planning-roles/{role}.md` (orchestrator MUST expand `~/`) |
|
|
23
|
+
| `guidance_path` | yes | **absolute** path to `guidance-specification.md` |
|
|
24
|
+
| `output_dir` | yes | **absolute** path to role folder — `{session_dir}/{role}/`. If you receive a relative path or a literal `{output_dir}` placeholder, fail fast with `TASK BLOCKED: output_dir is not absolute`. |
|
|
25
|
+
| `feature_list` | optional | F-id + slug + title rows; if missing, fall back to non-feature organization |
|
|
26
|
+
| `design_research` | optional | external research markdown to integrate as evidence |
|
|
27
|
+
| `project_specs` | optional | pre-loaded `maestro spec load` output |
|
|
28
|
+
| `user_context` | optional | answers from prior interactive context gathering |
|
|
29
|
+
| `style_skill` | optional | path to style-skill package (ui-designer only) |
|
|
30
|
+
|
|
31
|
+
## Output Contract
|
|
32
|
+
|
|
33
|
+
Write files to `output_dir/` using the Write tool. Do NOT write files anywhere else. Do NOT return analysis as chat text — files on disk are the only valid deliverable. After writing, verify with Glob that `analysis.md` exists; if any Write call fails (e.g. relative path rejected), fail fast with `TASK BLOCKED`.
|
|
34
|
+
|
|
35
|
+
**Authority note**: This Output Contract is authoritative for file layout. The role template at `role_template_path` may contain a legacy "## Brainstorming Analysis Structure" section describing a single-file layout — ignore it for file structure. Use the role template ONLY to source §3 subsection headings (via its "## MUST-Have Sections (Brainstorming)" block when present).
|
|
36
|
+
|
|
37
|
+
### File Structure
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
{output_dir}/
|
|
41
|
+
├── analysis.md # INDEX — digest + cross-cutting + file index
|
|
42
|
+
├── analysis-F-{id}-{slug}.md # one per feature (when feature_list available)
|
|
43
|
+
└── findings-{slug}.md # additional discoveries (0 or more)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### analysis.md — Index Document
|
|
47
|
+
|
|
48
|
+
This is the single entry point for all consumers. It MUST contain:
|
|
49
|
+
|
|
50
|
+
```markdown
|
|
51
|
+
# {Role Title} Analysis — {Topic}
|
|
52
|
+
|
|
53
|
+
> Contract: guidance-specification.md §{role} (decisions {ID range})
|
|
54
|
+
> Owns: {what this role decides}
|
|
55
|
+
> Does not own: {what other roles decide}
|
|
56
|
+
|
|
57
|
+
## 1. Role Mandate (≤ 200 words)
|
|
58
|
+
One paragraph: what you decide, what you defer, why you are in this brainstorm.
|
|
59
|
+
|
|
60
|
+
## 2. Decision Digest
|
|
61
|
+
|
|
62
|
+
### Decisions
|
|
63
|
+
| ID | Feature | Stance | Constraints (RFC 2119) |
|
|
64
|
+
|----|---------|--------|------------------------|
|
|
65
|
+
| {PREFIX}-{NN} | F-{id} or cross-cutting | concise position statement | MUST/SHOULD/MAY rules |
|
|
66
|
+
|
|
67
|
+
### Interfaces
|
|
68
|
+
| Name | Contract | Consumers |
|
|
69
|
+
|------|----------|-----------|
|
|
70
|
+
| {interface name} | {signature or data shape} | {other roles that depend on this} |
|
|
71
|
+
|
|
72
|
+
### Cross-Cutting Positions
|
|
73
|
+
| Topic | Stance |
|
|
74
|
+
|-------|--------|
|
|
75
|
+
| {topic from §3 foundations} | {one-line position} |
|
|
76
|
+
|
|
77
|
+
### Findings Summary
|
|
78
|
+
| Slug | Title | Impact |
|
|
79
|
+
|------|-------|--------|
|
|
80
|
+
| {slug} | {short title} | {one-line impact} |
|
|
81
|
+
|
|
82
|
+
## 3. Cross-Cutting Foundations
|
|
83
|
+
|
|
84
|
+
Authoritative subsection list per role (use these as §3 subsection headings).
|
|
85
|
+
If the role template contains a "## MUST-Have Sections (Brainstorming)" block,
|
|
86
|
+
that block supplements (does NOT replace) the list below — merge both, dedupe.
|
|
87
|
+
|
|
88
|
+
- system-architect: Data Model · State Machine · Error Handling · Observability · Configuration · Boundary Scenarios
|
|
89
|
+
- data-architect: Filesystem Layout · YAML Schemas · Indexer Algorithm · Ref Bridge · Lifecycle · Migration
|
|
90
|
+
- ux-expert: Information Architecture · Sigil/Input · Visual Choreography · Streaming · Confirmation · Interrupt · Accessibility
|
|
91
|
+
- subject-matter-expert: Pitfall Taxonomy · Pattern Fingerprints · Domain-Silence Decisions · Differentiation Thesis · Crosswalk
|
|
92
|
+
- test-strategist: Test Layers · Coverage Targets · Risk-Based Prioritization · Tooling
|
|
93
|
+
- product-manager: Personas · Success Metrics · Roadmap Shape · Prioritization Rationale
|
|
94
|
+
- product-owner: Backlog Decomposition · Acceptance Criteria · Done Definition
|
|
95
|
+
- scrum-master: Cadence · Ceremonies · Impediments · Flow Metrics
|
|
96
|
+
- ui-designer: Design Tokens · Component States · Visual Language · Animation
|
|
97
|
+
|
|
98
|
+
## 4. File Index
|
|
99
|
+
|
|
100
|
+
| File | Type | Feature | Headings |
|
|
101
|
+
|------|------|---------|----------|
|
|
102
|
+
| [analysis-F-{id}-{slug}.md](...) | feature | F-{id} | {comma-separated heading list} |
|
|
103
|
+
| [findings-{slug}.md](...) | finding | — | {comma-separated heading list} |
|
|
104
|
+
|
|
105
|
+
## 5. Outstanding TODOs
|
|
106
|
+
List items needing follow-up (codebase study, external research, decisions deferred).
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### analysis-F-{id}-{slug}.md — Per-Feature Analysis
|
|
110
|
+
|
|
111
|
+
One file per feature in `feature_list`. Each file < 2000 words:
|
|
112
|
+
|
|
113
|
+
```markdown
|
|
114
|
+
# F-{id} — {Feature Title}
|
|
115
|
+
|
|
116
|
+
> Role: {role_name} | Related decisions: {ID-01, ID-02, ...}
|
|
117
|
+
|
|
118
|
+
## Architecture
|
|
119
|
+
Module / crate / component layout for this feature.
|
|
120
|
+
|
|
121
|
+
## Interface Contract
|
|
122
|
+
Traits / RPC methods / data contracts this feature exposes or consumes.
|
|
123
|
+
|
|
124
|
+
## Constraints (RFC 2119)
|
|
125
|
+
MUST / SHOULD / MAY rules specific to this feature.
|
|
126
|
+
|
|
127
|
+
## Test Approach
|
|
128
|
+
Unit / integration / fuzz / e2e strategy for this feature.
|
|
129
|
+
|
|
130
|
+
## TODOs
|
|
131
|
+
Study tasks, decisions deferred, references to read.
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### findings-{slug}.md — Additional Discoveries
|
|
135
|
+
|
|
136
|
+
For insights that don't belong to any defined feature (0 or more files, each < 1000 words):
|
|
137
|
+
|
|
138
|
+
```markdown
|
|
139
|
+
# Finding: {Title}
|
|
140
|
+
|
|
141
|
+
> Role: {role_name} | Impact: {HIGH | MEDIUM | LOW}
|
|
142
|
+
|
|
143
|
+
## Description
|
|
144
|
+
What was discovered and why it matters.
|
|
145
|
+
|
|
146
|
+
## Affected Features
|
|
147
|
+
Which features or cross-cutting concerns are impacted.
|
|
148
|
+
|
|
149
|
+
## Recommendation
|
|
150
|
+
Proposed action or decision needed.
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Process
|
|
154
|
+
|
|
155
|
+
1. Read the role template at `role_template_path`. Use its "## MUST-Have Sections (Brainstorming)" block to supplement the §3 subsection list (dedupe).
|
|
156
|
+
2. Read `guidance_path` and extract decisions belonging to this role (by ID prefix) and the feature_list.
|
|
157
|
+
3. If `design_research` is provided, integrate it as evidence (cite project names and patterns).
|
|
158
|
+
4. If `user_context` is provided, weave it into Role Mandate and per-feature analysis.
|
|
159
|
+
5. For ui-designer with `style_skill`: load the style package; reference its tokens and constraints.
|
|
160
|
+
6. Write `analysis.md` first — this is the index. Build §2 Decision Digest as you analyze.
|
|
161
|
+
7. Write one `analysis-F-{id}-{slug}.md` per feature. Keep each focused and < 2000 words.
|
|
162
|
+
8. Write `findings-{slug}.md` for any discoveries outside the feature scope. Skip if none.
|
|
163
|
+
9. After all files are written, finalize §4 File Index in `analysis.md` with accurate headings from the written files.
|
|
164
|
+
|
|
165
|
+
## RFC 2119
|
|
166
|
+
|
|
167
|
+
All behavioral statements MUST use MUST / SHOULD / MAY / MUST NOT / SHOULD NOT.
|
|
168
|
+
- §2 Decisions table Constraints column: primary location for RFC keywords
|
|
169
|
+
- §3 Cross-Cutting Foundations: use in constraint paragraphs
|
|
170
|
+
- analysis-F-*.md §Constraints: mandatory RFC keywords
|
|
171
|
+
- Aim for ≥ 5 RFC keyword occurrences across analysis.md
|
|
172
|
+
|
|
173
|
+
## Reference, Don't Duplicate
|
|
174
|
+
|
|
175
|
+
- Reference guidance decisions by ID (`see SA-03`) — do NOT copy the decision text.
|
|
176
|
+
- Reference feature IDs (`F-001`) in file names and headers.
|
|
177
|
+
- Reference design-research findings by project name and section.
|
|
178
|
+
- Cross-reference between files using relative links: `see [F-002](analysis-F-002-skill-engine.md)`.
|
|
179
|
+
|
|
180
|
+
## Quality Gates (self-check before reporting completion)
|
|
181
|
+
|
|
182
|
+
- [ ] `analysis.md` exists and is non-empty
|
|
183
|
+
- [ ] §1 Role Mandate ≤ 200 words
|
|
184
|
+
- [ ] §2 Decision Digest has all four tables (Decisions, Interfaces, Cross-Cutting Positions, Findings Summary)
|
|
185
|
+
- [ ] §2 Decisions table has ≥ 1 row per feature in feature_list
|
|
186
|
+
- [ ] §3 contains at least the subsections required by the role template
|
|
187
|
+
- [ ] §4 File Index lists every written file with accurate headings
|
|
188
|
+
- [ ] One `analysis-F-{id}-{slug}.md` per feature in feature_list (skip if no feature_list)
|
|
189
|
+
- [ ] Each analysis-F-*.md < 2000 words
|
|
190
|
+
- [ ] Each findings-*.md < 1000 words
|
|
191
|
+
- [ ] RFC 2119 keywords appear ≥ 5 times across analysis.md
|
|
192
|
+
- [ ] No interrogative sentences (all declarative)
|
|
193
|
+
- [ ] system-architect: §3 contains "Data Model" and "State Machine" headings
|
|
194
|
+
|
|
195
|
+
## Return Protocol
|
|
196
|
+
|
|
197
|
+
Report completion with this structure (the orchestrator reads ONLY this, not the files):
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
TASK COMPLETE
|
|
201
|
+
index: {output_dir}/analysis.md
|
|
202
|
+
files_written: {count}
|
|
203
|
+
feature_coverage: [F-001, F-002, ...]
|
|
204
|
+
missing_features: []
|
|
205
|
+
findings_count: {N}
|
|
206
|
+
rfc_keyword_count: {N}
|
|
207
|
+
total_lines: {sum across all files}
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
If blocked: report blocker with `TASK BLOCKED` prefix.
|
|
211
|
+
|
|
212
|
+
## NEVER
|
|
213
|
+
|
|
214
|
+
- Write to any path outside `output_dir/`
|
|
215
|
+
- Duplicate guidance-specification content (reference by ID)
|
|
216
|
+
- Overlap with other roles' focus areas (see "Owns / Does not own" header)
|
|
217
|
+
- Use interrogative sentences in the deliverables
|
|
218
|
+
- Exceed 2000 words per analysis-F-*.md or 1000 words per findings-*.md
|
|
219
|
+
- Omit the §2 Decision Digest or §4 File Index from analysis.md
|
|
220
|
+
- Return analysis as text without writing files
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ui-design-agent
|
|
3
|
-
description:
|
|
4
|
-
Specialized agent for UI design token management and prototype generation with W3C Design Tokens Format compliance.
|
|
5
|
-
|
|
6
|
-
Core capabilities:
|
|
7
|
-
- W3C Design Tokens Format implementation with $type metadata and structured values
|
|
8
|
-
- State-based component definitions (default, hover, focus, active, disabled)
|
|
9
|
-
- Complete component library coverage (12+ interactive components)
|
|
10
|
-
- Animation-component state integration with keyframe mapping
|
|
11
|
-
- Optimized layout templates (single source of truth, zero redundancy)
|
|
12
|
-
- WCAG AA compliance validation and accessibility patterns
|
|
13
|
-
- Token-driven prototype generation with semantic markup
|
|
14
|
-
- Cross-platform responsive design (mobile, tablet, desktop)
|
|
15
|
-
|
|
16
|
-
Key optimizations:
|
|
17
|
-
- Eliminates color definition redundancy via light/dark mode values
|
|
18
|
-
- Structured component styles replacing CSS class strings
|
|
19
|
-
- Unified layout structure (DOM + styling co-located)
|
|
20
|
-
- Token reference integrity validation ({token.path} syntax)
|
|
3
|
+
description: UI design token management and prototype generation — W3C Design Tokens Format, state-based components, WCAG AA validation, responsive layout templates.
|
|
21
4
|
allowed-tools:
|
|
22
5
|
- read_file
|
|
23
6
|
- write_file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workflow-analyzer
|
|
3
|
-
description:
|
|
3
|
+
description: Evaluates technical topics, proposals, or decisions across multiple dimensions with evidence-based scoring and recommendations.
|
|
4
4
|
allowed-tools:
|
|
5
5
|
- read_file
|
|
6
6
|
- write_file
|
|
@@ -24,7 +24,7 @@ You perform targeted external research using Exa search to gather API details, d
|
|
|
24
24
|
|
|
25
25
|
## Research Modes
|
|
26
26
|
|
|
27
|
-
### API Research (for
|
|
27
|
+
### API Research (for blueprint, roadmap)
|
|
28
28
|
Focus: concrete API details, library versions, integration patterns, configuration options.
|
|
29
29
|
Queries target: official documentation, API references, migration guides, changelog entries.
|
|
30
30
|
|
|
@@ -27,8 +27,8 @@ $ARGUMENTS — target path/module and optional flags.
|
|
|
27
27
|
- `--save-spec`: `invoke_skill("spec-add")` for each new pattern
|
|
28
28
|
- `--save-wiki`: create wiki note per dimension group
|
|
29
29
|
|
|
30
|
-
**Storage read**: target files + `coding-conventions.md` +
|
|
31
|
-
**Storage write**: `.workflow/knowhow/KNW-decompose-{slug}-{date}.md` + append
|
|
30
|
+
**Storage read**: target files + `coding-conventions.md` + `.workflow/specs/learnings.md` (dedup)
|
|
31
|
+
**Storage write**: `.workflow/knowhow/KNW-decompose-{slug}-{date}.md` + append `.workflow/specs/learnings.md`
|
|
32
32
|
</context>
|
|
33
33
|
|
|
34
34
|
<state_machine>
|
|
@@ -49,7 +49,7 @@ S_RESOLVE:
|
|
|
49
49
|
→ S_RESOLVE WHEN: unresolvable DO: ask_user
|
|
50
50
|
|
|
51
51
|
S_DEDUP:
|
|
52
|
-
→ S_ANALYZE DO: read coding-conventions.md + specs/learnings.md → build known pattern set
|
|
52
|
+
→ S_ANALYZE DO: read coding-conventions.md + .workflow/specs/learnings.md → build known pattern set
|
|
53
53
|
|
|
54
54
|
S_ANALYZE:
|
|
55
55
|
→ S_CROSSREF DO: A_PARALLEL_DIMENSION_ANALYSIS
|
|
@@ -61,7 +61,7 @@ S_CATALOG:
|
|
|
61
61
|
→ S_PERSIST DO: write KNW-decompose report (grouped by dimension: pattern table + details)
|
|
62
62
|
|
|
63
63
|
S_PERSIST:
|
|
64
|
-
→ END DO: append specs/learnings.md [+ spec-add if --save-spec] [+ wiki note if --save-wiki]
|
|
64
|
+
→ END DO: append .workflow/specs/learnings.md [+ spec-add if --save-spec] [+ wiki note if --save-wiki]
|
|
65
65
|
|
|
66
66
|
</transitions>
|
|
67
67
|
|
|
@@ -88,7 +88,7 @@ For each finding, match against known pattern set:
|
|
|
88
88
|
| Status | Condition |
|
|
89
89
|
|--------|-----------|
|
|
90
90
|
| documented | Already in coding-conventions.md |
|
|
91
|
-
| known | In specs/learnings.md |
|
|
91
|
+
| known | In .workflow/specs/learnings.md |
|
|
92
92
|
| new | Not seen before |
|
|
93
93
|
|
|
94
94
|
Flag contradictions (finding conflicts with documented convention). Merge duplicates across agents (same pattern found by multiple dimensions).
|
|
@@ -108,7 +108,7 @@ Flag contradictions (finding conflicts with documented convention). Merge duplic
|
|
|
108
108
|
<success_criteria>
|
|
109
109
|
- [ ] 4 dimension agents spawned in parallel, findings with anchors
|
|
110
110
|
- [ ] Cross-reference: documented/known/new status assigned
|
|
111
|
-
- [ ] Pattern catalog written + specs/learnings.md appended
|
|
111
|
+
- [ ] Pattern catalog written + .workflow/specs/learnings.md appended
|
|
112
112
|
</success_criteria>
|
|
113
113
|
|
|
114
114
|
<next_step_routing>
|
|
@@ -14,7 +14,7 @@ allowed-tools:
|
|
|
14
14
|
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
15
15
|
|
|
16
16
|
<purpose>
|
|
17
|
-
Guided reading: walk through content section-by-section using forcing questions to extract patterns, identify assumptions, and build an understanding map. Findings persist to
|
|
17
|
+
Guided reading: walk through content section-by-section using forcing questions to extract patterns, identify assumptions, and build an understanding map. Findings persist to `.workflow/specs/learnings.md` as `<spec-entry>` blocks.
|
|
18
18
|
</purpose>
|
|
19
19
|
|
|
20
20
|
<context>
|
|
@@ -32,8 +32,8 @@ $ARGUMENTS — target and optional flags.
|
|
|
32
32
|
- `--depth deep`: every function, every branch, every assumption
|
|
33
33
|
- `--save-wiki`: create wiki note entry with reading notes
|
|
34
34
|
|
|
35
|
-
**Storage read**: target file + wiki forward/backlinks + `coding-conventions.md` +
|
|
36
|
-
**Storage write**: `.workflow/knowhow/KNW-follow-{slug}-{date}.md` + append
|
|
35
|
+
**Storage read**: target file + wiki forward/backlinks + `coding-conventions.md` + `.workflow/specs/learnings.md` (dedup)
|
|
36
|
+
**Storage write**: `.workflow/knowhow/KNW-follow-{slug}-{date}.md` + append `.workflow/specs/learnings.md`
|
|
37
37
|
</context>
|
|
38
38
|
|
|
39
39
|
<state_machine>
|
|
@@ -66,7 +66,7 @@ S_EXTRACT:
|
|
|
66
66
|
→ S_PERSIST DO: A_EXTRACT_PATTERNS
|
|
67
67
|
|
|
68
68
|
S_PERSIST:
|
|
69
|
-
→ END DO: write KNW-follow + append specs/learnings.md [+ wiki note if --save-wiki]
|
|
69
|
+
→ END DO: write KNW-follow + append .workflow/specs/learnings.md [+ wiki note if --save-wiki]
|
|
70
70
|
|
|
71
71
|
</transitions>
|
|
72
72
|
|
|
@@ -30,9 +30,9 @@ $ARGUMENTS — question text and optional flags.
|
|
|
30
30
|
- `.workflow/knowhow/KNW-investigate-{slug}/evidence.ndjson` — structured evidence (one JSON line per item)
|
|
31
31
|
- `.workflow/knowhow/KNW-investigate-{slug}/understanding.md` — evolving understanding
|
|
32
32
|
- `.workflow/knowhow/KNW-investigate-{slug}/report.md` — final report
|
|
33
|
-
-
|
|
33
|
+
- `.workflow/specs/learnings.md` — appended `<spec-entry>` blocks
|
|
34
34
|
|
|
35
|
-
**Storage read**: source files in scope + `maestro wiki search` +
|
|
35
|
+
**Storage read**: source files in scope + `maestro wiki search` + `.workflow/specs/learnings.md` + `debug-notes.md` + `codebase/architecture.md`
|
|
36
36
|
</context>
|
|
37
37
|
|
|
38
38
|
<state_machine>
|
|
@@ -45,7 +45,7 @@ S_HYPOTHESIZE — 生成假设列表 PERSIST:
|
|
|
45
45
|
S_CLI_EXPLORE — CLI 辅助探索(可选) PERSIST: evidence.ndjson (append)
|
|
46
46
|
S_TEST — 逐假设测试 PERSIST: evidence.ndjson + understanding.md
|
|
47
47
|
S_ESCALATE — 3-strike 升级 PERSIST: —
|
|
48
|
-
S_REPORT — 综合报告 + persist PERSIST: report.md + specs/learnings.md
|
|
48
|
+
S_REPORT — 综合报告 + persist PERSIST: report.md + .workflow/specs/learnings.md
|
|
49
49
|
</states>
|
|
50
50
|
|
|
51
51
|
<transitions>
|
|
@@ -57,7 +57,7 @@ S_EVIDENCE:
|
|
|
57
57
|
→ S_PATTERN DO: A_COLLECT_EVIDENCE
|
|
58
58
|
|
|
59
59
|
S_PATTERN:
|
|
60
|
-
→ S_HYPOTHESIZE DO: match evidence against debug-notes.md + specs/learnings.md patterns
|
|
60
|
+
→ S_HYPOTHESIZE DO: match evidence against debug-notes.md + .workflow/specs/learnings.md patterns
|
|
61
61
|
|
|
62
62
|
S_HYPOTHESIZE:
|
|
63
63
|
→ S_CLI_EXPLORE WHEN: CLI tools enabled AND hypotheses non-trivial DO: A_FORM_HYPOTHESES
|
|
@@ -85,7 +85,7 @@ S_REPORT:
|
|
|
85
85
|
### A_FRAME_QUESTION
|
|
86
86
|
|
|
87
87
|
1. Parse question, generate slug, create KNW-investigate-{slug}/
|
|
88
|
-
2. Search prior knowledge: `maestro wiki search "<question>"` + search specs/learnings.md + read debug-notes.md
|
|
88
|
+
2. Search prior knowledge: `maestro wiki search "<question>"` + search .workflow/specs/learnings.md + read debug-notes.md
|
|
89
89
|
3. Write initial understanding.md (question, prior knowledge summary, scope, timestamp)
|
|
90
90
|
|
|
91
91
|
### A_COLLECT_EVIDENCE
|
|
@@ -126,7 +126,7 @@ For each hypothesis (rank order):
|
|
|
126
126
|
### A_SYNTHESIZE_REPORT
|
|
127
127
|
|
|
128
128
|
Write report.md: Answer (or INCONCLUSIVE), Evidence Trail table, Hypotheses Tested table, Key Learnings, Open Questions.
|
|
129
|
-
Append to specs/learnings.md: confirmed → roles="implement", disproved → roles="analyze" (gotcha).
|
|
129
|
+
Append to .workflow/specs/learnings.md: confirmed → roles="implement", disproved → roles="analyze" (gotcha).
|
|
130
130
|
|
|
131
131
|
</actions>
|
|
132
132
|
|
|
@@ -16,7 +16,7 @@ allowed-tools:
|
|
|
16
16
|
<purpose>
|
|
17
17
|
Unified retrospective combining git activity analysis and decision quality evaluation. Works on raw git history and wiki/spec data. Two lenses (git, decision), usable independently or together.
|
|
18
18
|
|
|
19
|
-
All insights persist to
|
|
19
|
+
All insights persist to `.workflow/specs/learnings.md` as `<spec-entry>` blocks.
|
|
20
20
|
</purpose>
|
|
21
21
|
|
|
22
22
|
<context>
|
|
@@ -30,9 +30,9 @@ $ARGUMENTS — lens selection and scope flags.
|
|
|
30
30
|
**Storage write**:
|
|
31
31
|
- `.workflow/knowhow/KNW-retro-{date}.md` — unified report
|
|
32
32
|
- `.workflow/knowhow/KNW-retro-{date}.json` — structured metrics
|
|
33
|
-
-
|
|
33
|
+
- `.workflow/specs/learnings.md` — appended `<spec-entry>` blocks (source: retro-git / retro-decision)
|
|
34
34
|
|
|
35
|
-
**Storage read**: git history, `.workflow/state.json`, prior `KNW-retro-*.json`,
|
|
35
|
+
**Storage read**: git history, `.workflow/state.json`, prior `KNW-retro-*.json`, `.workflow/specs/learnings.md`, wiki specs, `architecture-constraints.md`, phase context files
|
|
36
36
|
</context>
|
|
37
37
|
|
|
38
38
|
<state_machine>
|
|
@@ -42,7 +42,7 @@ S_PARSE — 解析 lens + flags PERSIST: —
|
|
|
42
42
|
S_GIT — git 活动分析(lens=git/all 时) PERSIST: metrics
|
|
43
43
|
S_DECISION — 决策质量评估(lens=decision/all 时) PERSIST: evaluations
|
|
44
44
|
S_REPORT — 生成统一报告 PERSIST: .md + .json
|
|
45
|
-
S_PERSIST — 写 spec-entry 块 PERSIST: specs/learnings.md
|
|
45
|
+
S_PERSIST — 写 spec-entry 块 PERSIST: .workflow/specs/learnings.md
|
|
46
46
|
</states>
|
|
47
47
|
|
|
48
48
|
<transitions>
|
|
@@ -62,7 +62,7 @@ S_REPORT:
|
|
|
62
62
|
→ S_PERSIST DO: write KNW-retro-{date}.md + .json
|
|
63
63
|
|
|
64
64
|
S_PERSIST:
|
|
65
|
-
→ END DO: append insights to specs/learnings.md via `maestro spec add learning`
|
|
65
|
+
→ END DO: append insights to .workflow/specs/learnings.md via `maestro spec add learning`
|
|
66
66
|
RULE: INS-id = hash(lens + metric_or_decision_id + date) for cross-session stability
|
|
67
67
|
|
|
68
68
|
</transitions>
|
|
@@ -104,7 +104,7 @@ maestro wiki search "decision" --json
|
|
|
104
104
|
maestro wiki list --type spec --json
|
|
105
105
|
git log --oneline --all --grep="decision\|chose\|decided" -20
|
|
106
106
|
```
|
|
107
|
-
Plus: architecture-constraints.md, phase context Locked/Deferred sections, specs/learnings.md.
|
|
107
|
+
Plus: architecture-constraints.md, phase context Locked/Deferred sections, .workflow/specs/learnings.md.
|
|
108
108
|
Apply --phase/--tag/--id filters.
|
|
109
109
|
|
|
110
110
|
**Build registry** per decision: id, title, source, date, rationale, alternatives, phase, implementation_evidence [file paths].
|
|
@@ -148,7 +148,7 @@ Apply --phase/--tag/--id filters.
|
|
|
148
148
|
- [ ] Git lens: metrics computed (commits, LOC, test ratio, churn, sessions), insights distilled
|
|
149
149
|
- [ ] Decision lens: decisions collected, 3 agents evaluated in parallel, lifecycle classified
|
|
150
150
|
- [ ] Unified report + structured JSON written
|
|
151
|
-
- [ ] specs/learnings.md appended with stable INS-ids
|
|
151
|
+
- [ ] .workflow/specs/learnings.md appended with stable INS-ids
|
|
152
152
|
</success_criteria>
|
|
153
153
|
|
|
154
154
|
<next_step_routing>
|
|
@@ -19,7 +19,7 @@ Structured second-opinion on code, decisions, or plans. Three modes:
|
|
|
19
19
|
- **challenge**: single adversarial agent — break assumptions, propose alternatives
|
|
20
20
|
- **consult**: interactive Q&A — agent studies target, answers your questions
|
|
21
21
|
|
|
22
|
-
Findings persist to
|
|
22
|
+
Findings persist to `.workflow/specs/learnings.md` as `<spec-entry>` blocks.
|
|
23
23
|
</purpose>
|
|
24
24
|
|
|
25
25
|
<context>
|
|
@@ -47,7 +47,7 @@ S_RESOLVE — 解析 target PERSIST: —
|
|
|
47
47
|
S_CONTEXT — 加载 specs/wiki 上下文 PERSIST: —
|
|
48
48
|
S_EXECUTE — 按 mode 执行分析 PERSIST: —
|
|
49
49
|
S_SYNTHESIZE — 综合观点、生成报告 PERSIST: outputs
|
|
50
|
-
S_PERSIST — 写文件、append specs/learnings.md PERSIST: knowhow files
|
|
50
|
+
S_PERSIST — 写文件、append .workflow/specs/learnings.md PERSIST: knowhow files
|
|
51
51
|
</states>
|
|
52
52
|
|
|
53
53
|
<transitions>
|
|
@@ -68,7 +68,7 @@ S_SYNTHESIZE:
|
|
|
68
68
|
→ S_PERSIST DO: merge perspectives → agreements, disagreements, verdict, top 3 recommendations
|
|
69
69
|
|
|
70
70
|
S_PERSIST:
|
|
71
|
-
→ END DO: write KNW-opinion + append <spec-entry> blocks to specs/learnings.md
|
|
71
|
+
→ END DO: write KNW-opinion + append <spec-entry> blocks to .workflow/specs/learnings.md
|
|
72
72
|
|
|
73
73
|
</transitions>
|
|
74
74
|
|
|
@@ -114,7 +114,7 @@ Interactive loop:
|
|
|
114
114
|
<success_criteria>
|
|
115
115
|
- [ ] Mode executed: review (3 parallel agents) / challenge (adversarial) / consult (interactive Q&A)
|
|
116
116
|
- [ ] Synthesis with agreements, disagreements, verdict
|
|
117
|
-
- [ ] Report written + findings appended to specs/learnings.md
|
|
117
|
+
- [ ] Report written + findings appended to .workflow/specs/learnings.md
|
|
118
118
|
</success_criteria>
|
|
119
119
|
|
|
120
120
|
<next_step_routing>
|