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,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: spec-remove
|
|
3
3
|
description: Remove spec entry by ID
|
|
4
|
-
argument-hint: <entry-id>
|
|
4
|
+
argument-hint: <entry-id> [--cascade]
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- ask_question
|
|
7
7
|
- grep_search
|
|
@@ -25,6 +25,9 @@ $ARGUMENTS -- expects `<entry-id>` (e.g., `spec-learnings-003`, `spec-coding-con
|
|
|
25
25
|
**Entry ID format**: `spec-{file-stem}-{NNN}` — the sub-node ID assigned by WikiIndexer when indexing `<spec-entry>` blocks.
|
|
26
26
|
|
|
27
27
|
**Discovery**: Use `maestro wiki list --type spec --json` or `/spec-load --keyword <term>` to find entry IDs.
|
|
28
|
+
|
|
29
|
+
**Flags:**
|
|
30
|
+
- `--cascade` — When the target spec is a ref-type entry (created via `spec-add --ref` and linked to a knowhow document), also delete the referenced knowhow file. Without this flag, ref-type removal leaves an orphan knowhow file.
|
|
28
31
|
</context>
|
|
29
32
|
|
|
30
33
|
<execution>
|
|
@@ -46,5 +49,6 @@ Follow '~/.maestro/workflows/specs-remove.md' completely.
|
|
|
46
49
|
- [ ] User confirmed removal (unless -y flag)
|
|
47
50
|
- [ ] Entry removed from container file via `maestro wiki remove-entry`
|
|
48
51
|
- [ ] Wiki index auto-updated
|
|
49
|
-
- [ ]
|
|
52
|
+
- [ ] If `--cascade` and entry has a `ref` attribute: referenced knowhow file deleted, orphan avoided
|
|
53
|
+
- [ ] Confirmation displayed with removed entry details (and cascaded knowhow path if applicable)
|
|
50
54
|
</success_criteria>
|
|
@@ -75,7 +75,7 @@ After codebase exploration, scan results for context-aware trigger signals (base
|
|
|
75
75
|
|
|
76
76
|
## Phase 4: Context Packaging
|
|
77
77
|
|
|
78
|
-
1. Write
|
|
78
|
+
1. Write blueprint-config.json → <session>/spec/
|
|
79
79
|
2. Write discovery-context.json → <session>/spec/
|
|
80
80
|
3. Inline Discuss (DISCUSS-001):
|
|
81
81
|
- Artifact: <session>/spec/discovery-context.json
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
2. Load quality gate thresholds from specs/quality-gates.md
|
|
23
23
|
3. Score each dimension
|
|
24
24
|
4. Run cross-document validation
|
|
25
|
-
5. Generate readiness-report.md +
|
|
25
|
+
5. Generate readiness-report.md + blueprint-summary.md
|
|
26
26
|
6. Run DISCUSS-003:
|
|
27
27
|
- Artifact: <session>/spec/readiness-report.md
|
|
28
28
|
- Perspectives: product, technical, quality, risk, coverage
|
|
@@ -41,4 +41,4 @@
|
|
|
41
41
|
|
|
42
42
|
Write to <session>/artifacts/:
|
|
43
43
|
- readiness-report.md: Dimension scores, issue list, traceability matrix
|
|
44
|
-
-
|
|
44
|
+
- blueprint-summary.md: Executive summary of all spec docs
|
|
@@ -47,7 +47,7 @@ Template-driven document generation with progressive dependency loading.
|
|
|
47
47
|
|
|
48
48
|
### Inputs
|
|
49
49
|
- Template from routing table
|
|
50
|
-
-
|
|
50
|
+
- blueprint-config.json from <session>/spec/
|
|
51
51
|
- discovery-context.json from <session>/spec/
|
|
52
52
|
- Prior decisions from context_accumulator (inner loop)
|
|
53
53
|
- Discussion feedback from <session>/discussions/ (if exists)
|
|
@@ -32,7 +32,7 @@ status: draft
|
|
|
32
32
|
generated_at: {timestamp}
|
|
33
33
|
version: 1
|
|
34
34
|
dependencies:
|
|
35
|
-
- ../
|
|
35
|
+
- ../blueprint-config.json
|
|
36
36
|
- ../product-brief.md
|
|
37
37
|
- ../requirements/_index.md
|
|
38
38
|
---
|
|
@@ -246,9 +246,9 @@ date: {timestamp}
|
|
|
246
246
|
|
|
247
247
|
| Variable | Source | Description |
|
|
248
248
|
|----------|--------|-------------|
|
|
249
|
-
| `{session_id}` |
|
|
249
|
+
| `{session_id}` | blueprint-config.json | Session identifier |
|
|
250
250
|
| `{timestamp}` | Runtime | ISO8601 generation timestamp |
|
|
251
251
|
| `{product_name}` | product-brief.md | Product/feature name |
|
|
252
252
|
| `{NNN}` | Auto-increment | ADR/requirement number |
|
|
253
253
|
| `{slug}` | Auto-generated | Kebab-case from decision title |
|
|
254
|
-
| `{has_codebase}` |
|
|
254
|
+
| `{has_codebase}` | blueprint-config.json | Whether existing codebase exists |
|
|
@@ -32,7 +32,7 @@ status: draft
|
|
|
32
32
|
generated_at: {timestamp}
|
|
33
33
|
version: 1
|
|
34
34
|
dependencies:
|
|
35
|
-
- ../
|
|
35
|
+
- ../blueprint-config.json
|
|
36
36
|
- ../product-brief.md
|
|
37
37
|
- ../requirements/_index.md
|
|
38
38
|
- ../architecture/_index.md
|
|
@@ -187,7 +187,7 @@ status: draft
|
|
|
187
187
|
|
|
188
188
|
| Variable | Source | Description |
|
|
189
189
|
|----------|--------|-------------|
|
|
190
|
-
| `{session_id}` |
|
|
190
|
+
| `{session_id}` | blueprint-config.json | Session identifier |
|
|
191
191
|
| `{timestamp}` | Runtime | ISO8601 generation timestamp |
|
|
192
192
|
| `{product_name}` | product-brief.md | Product/feature name |
|
|
193
193
|
| `{EPIC}` | Auto-increment | Epic number (3 digits) |
|
|
@@ -23,7 +23,7 @@ generated_at: {timestamp}
|
|
|
23
23
|
stepsCompleted: []
|
|
24
24
|
version: 1
|
|
25
25
|
dependencies:
|
|
26
|
-
-
|
|
26
|
+
- blueprint-config.json
|
|
27
27
|
---
|
|
28
28
|
|
|
29
29
|
# Product Brief: {product_name}
|
|
@@ -117,7 +117,7 @@ dependencies:
|
|
|
117
117
|
|
|
118
118
|
## References
|
|
119
119
|
|
|
120
|
-
- Derived from: [
|
|
120
|
+
- Derived from: [blueprint-config.json](blueprint-config.json)
|
|
121
121
|
- Next: [Requirements PRD](requirements.md)
|
|
122
122
|
```
|
|
123
123
|
|
|
@@ -125,7 +125,7 @@ dependencies:
|
|
|
125
125
|
|
|
126
126
|
| Variable | Source | Description |
|
|
127
127
|
|----------|--------|-------------|
|
|
128
|
-
| `{session_id}` |
|
|
128
|
+
| `{session_id}` | blueprint-config.json | Session identifier |
|
|
129
129
|
| `{timestamp}` | Runtime | ISO8601 generation timestamp |
|
|
130
130
|
| `{product_name}` | Seed analysis | Product/feature name |
|
|
131
131
|
| `{executive_summary}` | CLI synthesis | 2-3 sentence summary |
|
|
@@ -36,7 +36,7 @@ status: draft
|
|
|
36
36
|
generated_at: {timestamp}
|
|
37
37
|
version: 1
|
|
38
38
|
dependencies:
|
|
39
|
-
- ../
|
|
39
|
+
- ../blueprint-config.json
|
|
40
40
|
- ../product-brief.md
|
|
41
41
|
---
|
|
42
42
|
|
|
@@ -215,7 +215,7 @@ status: draft
|
|
|
215
215
|
|
|
216
216
|
| Variable | Source | Description |
|
|
217
217
|
|----------|--------|-------------|
|
|
218
|
-
| `{session_id}` |
|
|
218
|
+
| `{session_id}` | blueprint-config.json | Session identifier |
|
|
219
219
|
| `{timestamp}` | Runtime | ISO8601 generation timestamp |
|
|
220
220
|
| `{product_name}` | product-brief.md | Product/feature name |
|
|
221
221
|
| `{NNN}` | Auto-increment | Requirement number (zero-padded 3 digits) |
|
|
@@ -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
|
|
8
6
|
- Glob
|
|
@@ -0,0 +1,171 @@
|
|
|
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
|
|
6
|
+
- Glob
|
|
7
|
+
- Grep
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Cross-Role Reviewer
|
|
11
|
+
|
|
12
|
+
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 AskUserQuestion and subsequent file edits.
|
|
13
|
+
|
|
14
|
+
## Inputs (parsed from your prompt)
|
|
15
|
+
|
|
16
|
+
| Field | Required | Notes |
|
|
17
|
+
|---|---|---|
|
|
18
|
+
| `analysis_indexes` | yes | absolute paths to all `{role}/analysis.md` files |
|
|
19
|
+
| `guidance_path` | yes | path to `guidance-specification.md` (for decision-ID context) |
|
|
20
|
+
| `feature_list` | optional | F-id + slug + title rows (for cross-feature analysis) |
|
|
21
|
+
|
|
22
|
+
## Process
|
|
23
|
+
|
|
24
|
+
1. Read every `analysis.md` in `analysis_indexes` and `guidance_path`.
|
|
25
|
+
2. From each `analysis.md`, extract §2 Decision Digest tables:
|
|
26
|
+
- **Decisions table** — role stances per feature
|
|
27
|
+
- **Interfaces table** — contracts and their consumers
|
|
28
|
+
- **Cross-Cutting Positions table** — role-wide stances on shared topics
|
|
29
|
+
- **Findings Summary table** — discoveries and their impact
|
|
30
|
+
3. Compare across roles:
|
|
31
|
+
- **Conflicts**: same feature or topic, contradictory stances between roles
|
|
32
|
+
- **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
|
|
33
|
+
- **Synergies**: complementary Findings or compatible Interfaces that could be unified
|
|
34
|
+
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.
|
|
35
|
+
5. Return the report as structured markdown. Stop.
|
|
36
|
+
|
|
37
|
+
### When digest is insufficient
|
|
38
|
+
|
|
39
|
+
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:
|
|
40
|
+
|
|
41
|
+
```yaml
|
|
42
|
+
need_deeper_context:
|
|
43
|
+
file: "{role}/analysis-F-003-auth.md"
|
|
44
|
+
reason: "SA-12 stance ambiguous, need full Architecture section"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
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.
|
|
48
|
+
|
|
49
|
+
## Output Contract (return as text — do NOT write files)
|
|
50
|
+
|
|
51
|
+
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).
|
|
52
|
+
|
|
53
|
+
```markdown
|
|
54
|
+
# Cross-Role Review
|
|
55
|
+
|
|
56
|
+
## Conflicts (need user decision)
|
|
57
|
+
### C-001: {short title}
|
|
58
|
+
- **Feature**: F-{id} (or "cross-cutting" if no specific feature)
|
|
59
|
+
- **Role A position**: {role} — Decision {ID}: "{stance}" (from §2 Decisions)
|
|
60
|
+
- **Role B position**: {role} — Decision {ID}: "{stance}" (from §2 Decisions)
|
|
61
|
+
- **Why it matters**: {what breaks if unresolved}
|
|
62
|
+
- **Suggested resolution**: {your recommended pick + 1-line rationale}
|
|
63
|
+
- **Confidence**: HIGH | MEDIUM | LOW
|
|
64
|
+
- **patch_targets**:
|
|
65
|
+
- target_file: `{role-A}/analysis-F-{id}-{slug}.md`
|
|
66
|
+
target_heading: `## {exact heading text}`
|
|
67
|
+
edit_type: `annotate_and_strikeout`
|
|
68
|
+
edit_content: `> **Cross-Role Resolution (C-001)**: {1-line resolution}`
|
|
69
|
+
- target_file: `{role-B}/analysis-F-{id}-{slug}.md`
|
|
70
|
+
target_heading: `## {exact heading text}`
|
|
71
|
+
edit_type: `annotate_and_strikeout`
|
|
72
|
+
edit_content: `> **Cross-Role Resolution (C-001)**: {1-line resolution}`
|
|
73
|
+
|
|
74
|
+
### C-002: ...
|
|
75
|
+
|
|
76
|
+
## Gaps (referenced but undefined)
|
|
77
|
+
### G-001: {short title}
|
|
78
|
+
- **Where referenced**: {role}'s §2 Interfaces table — consumer "{consumer role}" for "{interface name}"
|
|
79
|
+
- **Where it should be defined**: {owner-role}'s analysis (§2 Decisions or sub-file)
|
|
80
|
+
- **Owner role**: {role most appropriate to define it}
|
|
81
|
+
- **Suggested addition** (1-3 lines to insert at owner site)
|
|
82
|
+
- **patch_targets**:
|
|
83
|
+
- target_file: `{ref-role}/analysis.md`
|
|
84
|
+
target_heading: `### Interfaces`
|
|
85
|
+
edit_type: `annotate_after_heading`
|
|
86
|
+
edit_content: `> **Cross-Role Gap (G-001)**: {interface} consumer {owner-role} has no matching definition — see resolution below`
|
|
87
|
+
- target_file: `{owner-role}/analysis.md`
|
|
88
|
+
target_heading: `### Decisions`
|
|
89
|
+
edit_type: `append_to_section`
|
|
90
|
+
edit_content: `| {new-ID} | {feature} | {stance to fill gap} | {constraints} |`
|
|
91
|
+
|
|
92
|
+
### G-002: ...
|
|
93
|
+
|
|
94
|
+
## Synergy Opportunities (cross-role wins)
|
|
95
|
+
### S-001: {short title}
|
|
96
|
+
- **Roles involved**: {role A, role B}
|
|
97
|
+
- **Observation**: {what they could share / align}
|
|
98
|
+
- **Benefit**: {what's gained by aligning}
|
|
99
|
+
- **patch_targets**:
|
|
100
|
+
- target_file: `{role-A}/analysis-F-{id}-{slug}.md` or `{role-A}/analysis.md`
|
|
101
|
+
target_heading: `## {exact heading text}`
|
|
102
|
+
edit_type: `annotate_after_heading`
|
|
103
|
+
edit_content: `> **Cross-Role Synergy (S-001)**: aligns with {role-B} "{heading}" — {1-line how}`
|
|
104
|
+
- target_file: `{role-B}/analysis-F-{id}-{slug}.md` or `{role-B}/analysis.md`
|
|
105
|
+
target_heading: `## {exact heading text}`
|
|
106
|
+
edit_type: `annotate_after_heading`
|
|
107
|
+
edit_content: `> **Cross-Role Synergy (S-001)**: aligns with {role-A} "{heading}" — {1-line how}`
|
|
108
|
+
|
|
109
|
+
### S-002: ...
|
|
110
|
+
|
|
111
|
+
## Summary
|
|
112
|
+
- conflicts_count: N
|
|
113
|
+
- gaps_count: N
|
|
114
|
+
- synergies_count: N
|
|
115
|
+
- deeper_context_requests: N
|
|
116
|
+
- review_confidence: 0.0-1.0
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### edit_type vocabulary (closed set)
|
|
120
|
+
|
|
121
|
+
| edit_type | Behaviour |
|
|
122
|
+
|---|---|
|
|
123
|
+
| `annotate_after_heading` | Insert `edit_content` as a `> blockquote` line immediately after the matched heading. Original content untouched. |
|
|
124
|
+
| `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. |
|
|
125
|
+
| `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). |
|
|
126
|
+
|
|
127
|
+
The orchestrator MUST refuse to apply any edit whose `edit_type` is outside this set.
|
|
128
|
+
|
|
129
|
+
### edit_type defaults assume "Accept suggested resolution"
|
|
130
|
+
|
|
131
|
+
For Conflicts, both patch_targets default to `annotate_and_strikeout`. The orchestrator adjusts per user choice:
|
|
132
|
+
|
|
133
|
+
| User choice | role-A edit_type | role-B edit_type |
|
|
134
|
+
|---|---|---|
|
|
135
|
+
| Accept suggested resolution | `annotate_and_strikeout` | `annotate_and_strikeout` |
|
|
136
|
+
| Pick role A's stance | `annotate_after_heading` (keep A) | `annotate_and_strikeout` |
|
|
137
|
+
| Pick role B's stance | `annotate_and_strikeout` | `annotate_after_heading` (keep B) |
|
|
138
|
+
| Defer to TODO | skip both patches; log in guidance §12 as deferred | skip |
|
|
139
|
+
|
|
140
|
+
## Quality Standards
|
|
141
|
+
|
|
142
|
+
- **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.
|
|
143
|
+
- **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.
|
|
144
|
+
- **target_file paths use role-folder format**: `{role}/analysis.md` or `{role}/analysis-F-{id}-{slug}.md`, not `design/{role}.md`.
|
|
145
|
+
- **Every Conflict MUST be actionable**: include a concrete suggested resolution + 1-line rationale.
|
|
146
|
+
- **Every Gap MUST name an owner role AND provide concrete edit_content**. Vague "more analysis needed" gaps MUST be dropped.
|
|
147
|
+
- **Every Synergy MUST patch BOTH role files** so the alignment is visible from either entry point.
|
|
148
|
+
- **Reference guidance decisions by ID**: when a role decision conflicts with a guidance decision, call out the ID.
|
|
149
|
+
|
|
150
|
+
## Scope
|
|
151
|
+
|
|
152
|
+
- ✅ Same feature, different role decisions that contradict (compare §2 Decisions rows)
|
|
153
|
+
- ✅ Interface consumer references a role with no matching definition (compare §2 Interfaces)
|
|
154
|
+
- ✅ Cross-Cutting Positions on same topic with contradictory stances
|
|
155
|
+
- ✅ Findings from one role that could benefit another (§2 Findings Summary)
|
|
156
|
+
- ❌ Internal inconsistencies within one role's files (that's the role-design-author's job)
|
|
157
|
+
- ❌ Decisions already locked in guidance §1-§10 (those are settled — surface only if a role file violates them)
|
|
158
|
+
|
|
159
|
+
## Return Protocol
|
|
160
|
+
|
|
161
|
+
- **TASK COMPLETE**: structured markdown report returned. Include the Summary block with counts.
|
|
162
|
+
- **TASK NEEDS_CONTEXT**: include `need_deeper_context` blocks for files the orchestrator should inject.
|
|
163
|
+
- **TASK BLOCKED**: cannot proceed (missing analysis files, all files empty). Report blocker.
|
|
164
|
+
|
|
165
|
+
## NEVER
|
|
166
|
+
|
|
167
|
+
- Write files. Your output is text only — the orchestrator does the file edits.
|
|
168
|
+
- Invent conflicts where the role digests actually agree. False positives are worse than misses.
|
|
169
|
+
- Re-derive guidance-specification decisions. Quote them by ID only.
|
|
170
|
+
- Exceed 3000 words in the report — be specific, not exhaustive.
|
|
171
|
+
- Use file paths in `design/` format — always use `{role}/` format.
|
|
@@ -0,0 +1,218 @@
|
|
|
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
|
|
6
|
+
- Write
|
|
7
|
+
- Glob
|
|
8
|
+
- Grep
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Role Design Author
|
|
12
|
+
|
|
13
|
+
You produce a set of analysis files for one role in a brainstorm session, organized under `{output_dir}/`.
|
|
14
|
+
|
|
15
|
+
## Inputs (parsed from your prompt)
|
|
16
|
+
|
|
17
|
+
| Field | Required | Notes |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| `role_name` | yes | kebab-case slug, e.g. `system-architect` |
|
|
20
|
+
| `role_template_path` | yes | **absolute** path to `planning-roles/{role}.md` (orchestrator MUST expand `~/`) |
|
|
21
|
+
| `guidance_path` | yes | **absolute** path to `guidance-specification.md` |
|
|
22
|
+
| `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`. |
|
|
23
|
+
| `feature_list` | optional | F-id + slug + title rows; if missing, fall back to non-feature organization |
|
|
24
|
+
| `design_research` | optional | external research markdown to integrate as evidence |
|
|
25
|
+
| `project_specs` | optional | pre-loaded `maestro spec load` output |
|
|
26
|
+
| `user_context` | optional | answers from prior interactive context gathering |
|
|
27
|
+
| `style_skill` | optional | path to style-skill package (ui-designer only) |
|
|
28
|
+
|
|
29
|
+
## Output Contract
|
|
30
|
+
|
|
31
|
+
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`.
|
|
32
|
+
|
|
33
|
+
**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).
|
|
34
|
+
|
|
35
|
+
### File Structure
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
{output_dir}/
|
|
39
|
+
├── analysis.md # INDEX — digest + cross-cutting + file index
|
|
40
|
+
├── analysis-F-{id}-{slug}.md # one per feature (when feature_list available)
|
|
41
|
+
└── findings-{slug}.md # additional discoveries (0 or more)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### analysis.md — Index Document
|
|
45
|
+
|
|
46
|
+
This is the single entry point for all consumers. It MUST contain:
|
|
47
|
+
|
|
48
|
+
```markdown
|
|
49
|
+
# {Role Title} Analysis — {Topic}
|
|
50
|
+
|
|
51
|
+
> Contract: guidance-specification.md §{role} (decisions {ID range})
|
|
52
|
+
> Owns: {what this role decides}
|
|
53
|
+
> Does not own: {what other roles decide}
|
|
54
|
+
|
|
55
|
+
## 1. Role Mandate (≤ 200 words)
|
|
56
|
+
One paragraph: what you decide, what you defer, why you are in this brainstorm.
|
|
57
|
+
|
|
58
|
+
## 2. Decision Digest
|
|
59
|
+
|
|
60
|
+
### Decisions
|
|
61
|
+
| ID | Feature | Stance | Constraints (RFC 2119) |
|
|
62
|
+
|----|---------|--------|------------------------|
|
|
63
|
+
| {PREFIX}-{NN} | F-{id} or cross-cutting | concise position statement | MUST/SHOULD/MAY rules |
|
|
64
|
+
|
|
65
|
+
### Interfaces
|
|
66
|
+
| Name | Contract | Consumers |
|
|
67
|
+
|------|----------|-----------|
|
|
68
|
+
| {interface name} | {signature or data shape} | {other roles that depend on this} |
|
|
69
|
+
|
|
70
|
+
### Cross-Cutting Positions
|
|
71
|
+
| Topic | Stance |
|
|
72
|
+
|-------|--------|
|
|
73
|
+
| {topic from §3 foundations} | {one-line position} |
|
|
74
|
+
|
|
75
|
+
### Findings Summary
|
|
76
|
+
| Slug | Title | Impact |
|
|
77
|
+
|------|-------|--------|
|
|
78
|
+
| {slug} | {short title} | {one-line impact} |
|
|
79
|
+
|
|
80
|
+
## 3. Cross-Cutting Foundations
|
|
81
|
+
|
|
82
|
+
Authoritative subsection list per role (use these as §3 subsection headings).
|
|
83
|
+
If the role template contains a "## MUST-Have Sections (Brainstorming)" block,
|
|
84
|
+
that block supplements (does NOT replace) the list below — merge both, dedupe.
|
|
85
|
+
|
|
86
|
+
- system-architect: Data Model · State Machine · Error Handling · Observability · Configuration · Boundary Scenarios
|
|
87
|
+
- data-architect: Filesystem Layout · YAML Schemas · Indexer Algorithm · Ref Bridge · Lifecycle · Migration
|
|
88
|
+
- ux-expert: Information Architecture · Sigil/Input · Visual Choreography · Streaming · Confirmation · Interrupt · Accessibility
|
|
89
|
+
- subject-matter-expert: Pitfall Taxonomy · Pattern Fingerprints · Domain-Silence Decisions · Differentiation Thesis · Crosswalk
|
|
90
|
+
- test-strategist: Test Layers · Coverage Targets · Risk-Based Prioritization · Tooling
|
|
91
|
+
- product-manager: Personas · Success Metrics · Roadmap Shape · Prioritization Rationale
|
|
92
|
+
- product-owner: Backlog Decomposition · Acceptance Criteria · Done Definition
|
|
93
|
+
- scrum-master: Cadence · Ceremonies · Impediments · Flow Metrics
|
|
94
|
+
- ui-designer: Design Tokens · Component States · Visual Language · Animation
|
|
95
|
+
|
|
96
|
+
## 4. File Index
|
|
97
|
+
|
|
98
|
+
| File | Type | Feature | Headings |
|
|
99
|
+
|------|------|---------|----------|
|
|
100
|
+
| [analysis-F-{id}-{slug}.md](...) | feature | F-{id} | {comma-separated heading list} |
|
|
101
|
+
| [findings-{slug}.md](...) | finding | — | {comma-separated heading list} |
|
|
102
|
+
|
|
103
|
+
## 5. Outstanding TODOs
|
|
104
|
+
List items needing follow-up (codebase study, external research, decisions deferred).
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### analysis-F-{id}-{slug}.md — Per-Feature Analysis
|
|
108
|
+
|
|
109
|
+
One file per feature in `feature_list`. Each file < 2000 words:
|
|
110
|
+
|
|
111
|
+
```markdown
|
|
112
|
+
# F-{id} — {Feature Title}
|
|
113
|
+
|
|
114
|
+
> Role: {role_name} | Related decisions: {ID-01, ID-02, ...}
|
|
115
|
+
|
|
116
|
+
## Architecture
|
|
117
|
+
Module / crate / component layout for this feature.
|
|
118
|
+
|
|
119
|
+
## Interface Contract
|
|
120
|
+
Traits / RPC methods / data contracts this feature exposes or consumes.
|
|
121
|
+
|
|
122
|
+
## Constraints (RFC 2119)
|
|
123
|
+
MUST / SHOULD / MAY rules specific to this feature.
|
|
124
|
+
|
|
125
|
+
## Test Approach
|
|
126
|
+
Unit / integration / fuzz / e2e strategy for this feature.
|
|
127
|
+
|
|
128
|
+
## TODOs
|
|
129
|
+
Study tasks, decisions deferred, references to read.
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### findings-{slug}.md — Additional Discoveries
|
|
133
|
+
|
|
134
|
+
For insights that don't belong to any defined feature (0 or more files, each < 1000 words):
|
|
135
|
+
|
|
136
|
+
```markdown
|
|
137
|
+
# Finding: {Title}
|
|
138
|
+
|
|
139
|
+
> Role: {role_name} | Impact: {HIGH | MEDIUM | LOW}
|
|
140
|
+
|
|
141
|
+
## Description
|
|
142
|
+
What was discovered and why it matters.
|
|
143
|
+
|
|
144
|
+
## Affected Features
|
|
145
|
+
Which features or cross-cutting concerns are impacted.
|
|
146
|
+
|
|
147
|
+
## Recommendation
|
|
148
|
+
Proposed action or decision needed.
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Process
|
|
152
|
+
|
|
153
|
+
1. Read the role template at `role_template_path`. Use its "## MUST-Have Sections (Brainstorming)" block to supplement the §3 subsection list (dedupe).
|
|
154
|
+
2. Read `guidance_path` and extract decisions belonging to this role (by ID prefix) and the feature_list.
|
|
155
|
+
3. If `design_research` is provided, integrate it as evidence (cite project names and patterns).
|
|
156
|
+
4. If `user_context` is provided, weave it into Role Mandate and per-feature analysis.
|
|
157
|
+
5. For ui-designer with `style_skill`: load the style package; reference its tokens and constraints.
|
|
158
|
+
6. Write `analysis.md` first — this is the index. Build §2 Decision Digest as you analyze.
|
|
159
|
+
7. Write one `analysis-F-{id}-{slug}.md` per feature. Keep each focused and < 2000 words.
|
|
160
|
+
8. Write `findings-{slug}.md` for any discoveries outside the feature scope. Skip if none.
|
|
161
|
+
9. After all files are written, finalize §4 File Index in `analysis.md` with accurate headings from the written files.
|
|
162
|
+
|
|
163
|
+
## RFC 2119
|
|
164
|
+
|
|
165
|
+
All behavioral statements MUST use MUST / SHOULD / MAY / MUST NOT / SHOULD NOT.
|
|
166
|
+
- §2 Decisions table Constraints column: primary location for RFC keywords
|
|
167
|
+
- §3 Cross-Cutting Foundations: use in constraint paragraphs
|
|
168
|
+
- analysis-F-*.md §Constraints: mandatory RFC keywords
|
|
169
|
+
- Aim for ≥ 5 RFC keyword occurrences across analysis.md
|
|
170
|
+
|
|
171
|
+
## Reference, Don't Duplicate
|
|
172
|
+
|
|
173
|
+
- Reference guidance decisions by ID (`see SA-03`) — do NOT copy the decision text.
|
|
174
|
+
- Reference feature IDs (`F-001`) in file names and headers.
|
|
175
|
+
- Reference design-research findings by project name and section.
|
|
176
|
+
- Cross-reference between files using relative links: `see [F-002](analysis-F-002-skill-engine.md)`.
|
|
177
|
+
|
|
178
|
+
## Quality Gates (self-check before reporting completion)
|
|
179
|
+
|
|
180
|
+
- [ ] `analysis.md` exists and is non-empty
|
|
181
|
+
- [ ] §1 Role Mandate ≤ 200 words
|
|
182
|
+
- [ ] §2 Decision Digest has all four tables (Decisions, Interfaces, Cross-Cutting Positions, Findings Summary)
|
|
183
|
+
- [ ] §2 Decisions table has ≥ 1 row per feature in feature_list
|
|
184
|
+
- [ ] §3 contains at least the subsections required by the role template
|
|
185
|
+
- [ ] §4 File Index lists every written file with accurate headings
|
|
186
|
+
- [ ] One `analysis-F-{id}-{slug}.md` per feature in feature_list (skip if no feature_list)
|
|
187
|
+
- [ ] Each analysis-F-*.md < 2000 words
|
|
188
|
+
- [ ] Each findings-*.md < 1000 words
|
|
189
|
+
- [ ] RFC 2119 keywords appear ≥ 5 times across analysis.md
|
|
190
|
+
- [ ] No interrogative sentences (all declarative)
|
|
191
|
+
- [ ] system-architect: §3 contains "Data Model" and "State Machine" headings
|
|
192
|
+
|
|
193
|
+
## Return Protocol
|
|
194
|
+
|
|
195
|
+
Report completion with this structure (the orchestrator reads ONLY this, not the files):
|
|
196
|
+
|
|
197
|
+
```
|
|
198
|
+
TASK COMPLETE
|
|
199
|
+
index: {output_dir}/analysis.md
|
|
200
|
+
files_written: {count}
|
|
201
|
+
feature_coverage: [F-001, F-002, ...]
|
|
202
|
+
missing_features: []
|
|
203
|
+
findings_count: {N}
|
|
204
|
+
rfc_keyword_count: {N}
|
|
205
|
+
total_lines: {sum across all files}
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
If blocked: report blocker with `TASK BLOCKED` prefix.
|
|
209
|
+
|
|
210
|
+
## NEVER
|
|
211
|
+
|
|
212
|
+
- Write to any path outside `output_dir/`
|
|
213
|
+
- Duplicate guidance-specification content (reference by ID)
|
|
214
|
+
- Overlap with other roles' focus areas (see "Owns / Does not own" header)
|
|
215
|
+
- Use interrogative sentences in the deliverables
|
|
216
|
+
- Exceed 2000 words per analysis-F-*.md or 1000 words per findings-*.md
|
|
217
|
+
- Omit the §2 Decision Digest or §4 File Index from analysis.md
|
|
218
|
+
- 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
|
|
23
6
|
- Write
|
|
@@ -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
|
|
6
6
|
- Write
|
|
@@ -22,7 +22,7 @@ You perform targeted external research using Exa search to gather API details, d
|
|
|
22
22
|
|
|
23
23
|
## Research Modes
|
|
24
24
|
|
|
25
|
-
### API Research (for
|
|
25
|
+
### API Research (for blueprint, roadmap)
|
|
26
26
|
Focus: concrete API details, library versions, integration patterns, configuration options.
|
|
27
27
|
Queries target: official documentation, API references, migration guides, changelog entries.
|
|
28
28
|
|
|
@@ -25,8 +25,8 @@ $ARGUMENTS — target path/module and optional flags.
|
|
|
25
25
|
- `--save-spec`: `Skill("spec-add")` for each new pattern
|
|
26
26
|
- `--save-wiki`: create wiki note per dimension group
|
|
27
27
|
|
|
28
|
-
**Storage read**: target files + `coding-conventions.md` +
|
|
29
|
-
**Storage write**: `.workflow/knowhow/KNW-decompose-{slug}-{date}.md` + append
|
|
28
|
+
**Storage read**: target files + `coding-conventions.md` + `.workflow/specs/learnings.md` (dedup)
|
|
29
|
+
**Storage write**: `.workflow/knowhow/KNW-decompose-{slug}-{date}.md` + append `.workflow/specs/learnings.md`
|
|
30
30
|
</context>
|
|
31
31
|
|
|
32
32
|
<state_machine>
|
|
@@ -47,7 +47,7 @@ S_RESOLVE:
|
|
|
47
47
|
→ S_RESOLVE WHEN: unresolvable DO: AskUserQuestion
|
|
48
48
|
|
|
49
49
|
S_DEDUP:
|
|
50
|
-
→ S_ANALYZE DO: read coding-conventions.md + specs/learnings.md → build known pattern set
|
|
50
|
+
→ S_ANALYZE DO: read coding-conventions.md + .workflow/specs/learnings.md → build known pattern set
|
|
51
51
|
|
|
52
52
|
S_ANALYZE:
|
|
53
53
|
→ S_CROSSREF DO: A_PARALLEL_DIMENSION_ANALYSIS
|
|
@@ -59,7 +59,7 @@ S_CATALOG:
|
|
|
59
59
|
→ S_PERSIST DO: write KNW-decompose report (grouped by dimension: pattern table + details)
|
|
60
60
|
|
|
61
61
|
S_PERSIST:
|
|
62
|
-
→ END DO: append specs/learnings.md [+ spec-add if --save-spec] [+ wiki note if --save-wiki]
|
|
62
|
+
→ END DO: append .workflow/specs/learnings.md [+ spec-add if --save-spec] [+ wiki note if --save-wiki]
|
|
63
63
|
|
|
64
64
|
</transitions>
|
|
65
65
|
|
|
@@ -86,7 +86,7 @@ For each finding, match against known pattern set:
|
|
|
86
86
|
| Status | Condition |
|
|
87
87
|
|--------|-----------|
|
|
88
88
|
| documented | Already in coding-conventions.md |
|
|
89
|
-
| known | In specs/learnings.md |
|
|
89
|
+
| known | In .workflow/specs/learnings.md |
|
|
90
90
|
| new | Not seen before |
|
|
91
91
|
|
|
92
92
|
Flag contradictions (finding conflicts with documented convention). Merge duplicates across agents (same pattern found by multiple dimensions).
|
|
@@ -106,7 +106,7 @@ Flag contradictions (finding conflicts with documented convention). Merge duplic
|
|
|
106
106
|
<success_criteria>
|
|
107
107
|
- [ ] 4 dimension agents spawned in parallel, findings with anchors
|
|
108
108
|
- [ ] Cross-reference: documented/known/new status assigned
|
|
109
|
-
- [ ] Pattern catalog written + specs/learnings.md appended
|
|
109
|
+
- [ ] Pattern catalog written + .workflow/specs/learnings.md appended
|
|
110
110
|
</success_criteria>
|
|
111
111
|
|
|
112
112
|
<next_step_routing>
|