maestro-flow 0.5.37 → 0.5.38
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/skills/maestro/SKILL.md +11 -5
- package/.agents/skills/maestro-ralph/SKILL.md +80 -12
- package/.agents/skills/maestro-ralph-execute/SKILL.md +17 -6
- package/.agents/skills/manage-drift-realign/SKILL.md +153 -0
- package/.agy/skills/maestro/SKILL.md +11 -5
- package/.agy/skills/maestro-ralph/SKILL.md +80 -12
- package/.agy/skills/maestro-ralph-execute/SKILL.md +17 -6
- package/.agy/skills/manage-drift-realign/SKILL.md +153 -0
- package/.claude/commands/maestro-ralph-execute.md +17 -6
- package/.claude/commands/maestro-ralph.md +80 -12
- package/.claude/commands/maestro.md +11 -5
- package/.claude/commands/manage-drift-realign.md +151 -0
- package/.codex/skills/maestro/SKILL.md +16 -8
- package/.codex/skills/maestro-ralph/SKILL.md +138 -11
- package/.codex/skills/maestro-ralph-execute/SKILL.md +17 -6
- package/.codex/skills/manage-drift-realign/SKILL.md +471 -0
- package/README.md +25 -8
- package/README.zh-CN.md +6 -6
- package/dashboard/dist-server/src/commands/install-backend.d.ts +10 -0
- package/dashboard/dist-server/src/commands/install-backend.js +69 -0
- package/dashboard/dist-server/src/commands/install-backend.js.map +1 -1
- package/dashboard/dist-server/src/core/component-defs.d.ts +11 -0
- package/dashboard/dist-server/src/core/component-defs.js +34 -2
- package/dashboard/dist-server/src/core/component-defs.js.map +1 -1
- package/dist/src/cli.js +3 -2
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/install-backend.d.ts +10 -0
- package/dist/src/commands/install-backend.d.ts.map +1 -1
- package/dist/src/commands/install-backend.js +69 -0
- package/dist/src/commands/install-backend.js.map +1 -1
- package/dist/src/commands/install.js +1 -0
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/ralph.d.ts.map +1 -1
- package/dist/src/commands/ralph.js +8 -0
- package/dist/src/commands/ralph.js.map +1 -1
- package/dist/src/commands/timeline.d.ts +14 -0
- package/dist/src/commands/timeline.d.ts.map +1 -0
- package/dist/src/commands/timeline.js +377 -0
- package/dist/src/commands/timeline.js.map +1 -0
- package/dist/src/core/component-defs.d.ts +11 -0
- package/dist/src/core/component-defs.d.ts.map +1 -1
- package/dist/src/core/component-defs.js +34 -2
- package/dist/src/core/component-defs.js.map +1 -1
- package/dist/src/core/install-executor.d.ts.map +1 -1
- package/dist/src/core/install-executor.js +11 -1
- package/dist/src/core/install-executor.js.map +1 -1
- package/dist/src/core/install-profile.d.ts.map +1 -1
- package/dist/src/core/install-profile.js +52 -17
- package/dist/src/core/install-profile.js.map +1 -1
- package/dist/src/i18n/locales/en.d.ts.map +1 -1
- package/dist/src/i18n/locales/en.js +4 -1
- package/dist/src/i18n/locales/en.js.map +1 -1
- package/dist/src/i18n/locales/zh.d.ts.map +1 -1
- package/dist/src/i18n/locales/zh.js +4 -1
- package/dist/src/i18n/locales/zh.js.map +1 -1
- package/dist/src/i18n/types.d.ts +3 -0
- package/dist/src/i18n/types.d.ts.map +1 -1
- package/dist/src/ralph/cmd-complete.d.ts +4 -0
- package/dist/src/ralph/cmd-complete.d.ts.map +1 -1
- package/dist/src/ralph/cmd-complete.js +8 -0
- package/dist/src/ralph/cmd-complete.js.map +1 -1
- package/dist/src/ralph/cmd-next.js +58 -8
- package/dist/src/ralph/cmd-next.js.map +1 -1
- package/dist/src/ralph/status-schema.d.ts +29 -2
- package/dist/src/ralph/status-schema.d.ts.map +1 -1
- package/dist/src/ralph/status-schema.js +1 -1
- package/dist/src/tui/install-ui/ComponentGrid.d.ts.map +1 -1
- package/dist/src/tui/install-ui/ComponentGrid.js +71 -38
- package/dist/src/tui/install-ui/ComponentGrid.js.map +1 -1
- package/dist/src/tui/install-ui/ComponentGrid.logic.d.ts +12 -3
- package/dist/src/tui/install-ui/ComponentGrid.logic.d.ts.map +1 -1
- package/dist/src/tui/install-ui/ComponentGrid.logic.js +21 -4
- package/dist/src/tui/install-ui/ComponentGrid.logic.js.map +1 -1
- package/dist/src/tui/install-ui/CyberItem.d.ts +3 -1
- package/dist/src/tui/install-ui/CyberItem.d.ts.map +1 -1
- package/dist/src/tui/install-ui/CyberItem.js +6 -5
- package/dist/src/tui/install-ui/CyberItem.js.map +1 -1
- package/dist/src/tui/install-ui/GroupedHub.d.ts +9 -0
- package/dist/src/tui/install-ui/GroupedHub.d.ts.map +1 -1
- package/dist/src/tui/install-ui/GroupedHub.js +54 -47
- package/dist/src/tui/install-ui/GroupedHub.js.map +1 -1
- package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
- package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.js +54 -5
- package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
- package/dist/src/tui/install-ui/types.d.ts +1 -0
- package/dist/src/tui/install-ui/types.d.ts.map +1 -1
- package/dist/src/tui/install-ui/types.js.map +1 -1
- package/dist/src/tui/install-ui/useInstallFlowState.d.ts +8 -2
- package/dist/src/tui/install-ui/useInstallFlowState.d.ts.map +1 -1
- package/dist/src/tui/install-ui/useInstallFlowState.js +145 -15
- package/dist/src/tui/install-ui/useInstallFlowState.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/workflows/agy-instructions.md +127 -88
- package/workflows/analyze.md +2 -2
- package/workflows/auto-test.md +7 -1
- package/workflows/blueprint.md +22 -19
- package/workflows/brainstorm.md +11 -3
- package/workflows/business-test.md +4 -0
- package/workflows/codebase-rebuild.md +8 -1
- package/workflows/codebase-refresh.md +7 -1
- package/workflows/codex-instructions.md +1 -1
- package/workflows/debug.md +5 -2
- package/workflows/domain-add.md +6 -0
- package/workflows/drift-realign.md +396 -0
- package/workflows/execute.md +5 -4
- package/workflows/explore-usage.md +2 -2
- package/workflows/finish-work.md +6 -6
- package/workflows/fork.md +2 -2
- package/workflows/grill.md +6 -5
- package/workflows/harvest.md +2 -2
- package/workflows/impeccable.md +3 -2
- package/workflows/init.md +7 -7
- package/workflows/integration-test.md +1 -0
- package/workflows/issue-gaps-analyze.codex.md +2 -0
- package/workflows/issue-gaps-analyze.md +4 -4
- package/workflows/issue-plan.md +1 -1
- package/workflows/knowhow.md +7 -1
- package/workflows/knowledge-audit.md +1 -1
- package/workflows/maestro-super.md +2 -2
- package/workflows/maestro.md +3 -3
- package/workflows/map.md +2 -2
- package/workflows/milestone-audit.md +1 -1
- package/workflows/milestone-complete.md +1 -1
- package/workflows/plan.md +7 -6
- package/workflows/quick.md +8 -6
- package/workflows/ralph-amend-goal.md +177 -0
- package/workflows/refactor.md +2 -0
- package/workflows/retrospective.md +7 -3
- package/workflows/review.md +6 -4
- package/workflows/roadmap-common.md +3 -3
- package/workflows/roadmap.md +8 -5
- package/workflows/spec-generate.md +23 -18
- package/workflows/specs-load.md +1 -1
- package/workflows/specs-setup.md +2 -0
- package/workflows/sync.md +4 -2
- package/workflows/test-gen.md +1 -1
- package/workflows/test.md +1 -1
- package/workflows/ui-codify-extract.md +1 -0
- package/workflows/ui-codify-knowhow.md +1 -1
- package/workflows/ui-codify-package.md +1 -1
- package/workflows/ui-codify.md +9 -7
- package/workflows/ui-design.md +9 -7
- package/workflows/ui-style.md +6 -4
- package/workflows/verify.md +4 -4
- package/workflows/wiki-connect.md +2 -0
- package/workflows/wiki-digest.md +5 -3
- package/workflows/wiki-manage.md +4 -0
- package/workflows/maestro.codex.md +0 -365
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Specification document chain producing a complete specification package (Product Brief, PRD, Architecture, Epics, Roadmap) through 7 sequential phases with multi-CLI analysis and interactive refinement. Pure documentation — no code generation.
|
|
4
4
|
|
|
5
|
-
**Shared logic**:
|
|
5
|
+
**Shared logic**: `@~/.maestro/workflows/roadmap-common.md` (worktree guard, context loading, codebase exploration, external research, minimum-phase principle, roadmap write logic)
|
|
6
6
|
|
|
7
7
|
## Pipeline Position
|
|
8
8
|
|
|
@@ -70,7 +70,7 @@ Load specification and template documents:
|
|
|
70
70
|
| Quality gates | Per-phase quality criteria and scoring | P0 - must read |
|
|
71
71
|
| Templates | product-brief, requirements-prd, architecture-doc, epics-template | Read on-demand per phase |
|
|
72
72
|
|
|
73
|
-
**Load project specs and history**:
|
|
73
|
+
**Load project specs and history**: MANDATORY: execute ~/.maestro/workflows/roadmap-common.md "Load Project Context"; REQUIRED produce: specs+history loaded.
|
|
74
74
|
|
|
75
75
|
Additional full-mode rules:
|
|
76
76
|
- Features in `already_shipped` are EXCLUDED from spec generation scope
|
|
@@ -109,15 +109,15 @@ Session ID: SPEC-{slug}-{YYYY-MM-DD}
|
|
|
109
109
|
Output dir: .workflow/.spec/{session_id}/
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
**Step 2.3: Seed Analysis via CLI**
|
|
112
|
+
**Step 2.3: Seed Analysis via CLI** (MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep)
|
|
113
113
|
- Spawn CLI analysis to extract: problem_statement, target_users, domain, constraints, dimensions (3-5)
|
|
114
114
|
- Assess complexity: simple (1-2 components) / moderate (3-5) / complex (6+)
|
|
115
115
|
- For context-package input: enrich with feature decomposition data
|
|
116
116
|
|
|
117
|
-
**Step 2.4: Codebase Exploration** —
|
|
117
|
+
**Step 2.4: Codebase Exploration** — MANDATORY: execute ~/.maestro/workflows/roadmap-common.md Codebase Exploration logic; REQUIRED produce: discovery-context.json (codebase context)
|
|
118
118
|
- Output: `discovery-context.json` with relevant_files, patterns, tech_stack
|
|
119
119
|
|
|
120
|
-
**Step 2.5: External Research** —
|
|
120
|
+
**Step 2.5: External Research** — MANDATORY: execute ~/.maestro/workflows/roadmap-common.md External Research logic; REQUIRED produce: apiResearchContext (or [LOW CONFIDENCE] if none)
|
|
121
121
|
|
|
122
122
|
`apiResearchContext` is passed into:
|
|
123
123
|
- Step 4 (Product Brief): technology feasibility assessment
|
|
@@ -166,7 +166,7 @@ Generate product brief through multi-perspective CLI analysis.
|
|
|
166
166
|
- Read discovery-context.json (if codebase detected)
|
|
167
167
|
- For context-package input: read context-package.json domain and requirements sections
|
|
168
168
|
|
|
169
|
-
**Step 4.2: Multi-CLI Parallel Analysis (3 perspectives)**
|
|
169
|
+
**Step 4.2: Multi-CLI Parallel Analysis (3 perspectives)** (MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep)
|
|
170
170
|
|
|
171
171
|
| Perspective | Role | Focus |
|
|
172
172
|
|-------------|------|-------|
|
|
@@ -191,6 +191,8 @@ Generate product brief through multi-perspective CLI analysis.
|
|
|
191
191
|
|
|
192
192
|
**Output**: `product-brief.md`, `glossary.json`
|
|
193
193
|
|
|
194
|
+
**GATE P2→P3**: REQUIRED product-brief.md written; BLOCKED if missing
|
|
195
|
+
|
|
194
196
|
### Step 5: Requirements / PRD (Phase 3)
|
|
195
197
|
|
|
196
198
|
Generate detailed PRD with functional/non-functional requirements.
|
|
@@ -216,11 +218,13 @@ Generate detailed PRD with functional/non-functional requirements.
|
|
|
216
218
|
|
|
217
219
|
**Output**: `requirements/` directory (index + individual files)
|
|
218
220
|
|
|
221
|
+
**GATE P3→P4**: REQUIRED requirements/_index.md with MoSCoW table; BLOCKED if missing
|
|
222
|
+
|
|
219
223
|
### Step 6: Architecture (Phase 4)
|
|
220
224
|
|
|
221
225
|
Generate architecture decisions, component design, and technology selections.
|
|
222
226
|
|
|
223
|
-
**Step 6.1: Architecture Analysis via CLI (role: review)**
|
|
227
|
+
**Step 6.1: Architecture Analysis via CLI (role: review)** (MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep)
|
|
224
228
|
- System architecture style with justification
|
|
225
229
|
- Core components and responsibilities
|
|
226
230
|
- Component interaction diagram (Mermaid graph TD)
|
|
@@ -340,7 +344,7 @@ Convert Epics into an interactive roadmap with user confirmation.
|
|
|
340
344
|
- Read individual `EPIC-NNN-{slug}.md` for Stories and acceptance criteria
|
|
341
345
|
- Read `architecture/_index.md` for technical constraints (ADR decisions)
|
|
342
346
|
|
|
343
|
-
Apply **Minimum-Phase Principle** from roadmap-common.md for Epic→Phase mapping:
|
|
347
|
+
Apply **Minimum-Phase Principle** from ~/.maestro/workflows/roadmap-common.md for Epic→Phase mapping:
|
|
344
348
|
- Default: ALL Epics → 1 Phase (wave DAG orders tasks by Epic dependencies)
|
|
345
349
|
- Only split if hard dependency conditions are all met
|
|
346
350
|
- MVP-tagged Epics → Milestone 1, Post-MVP → Milestone 2+
|
|
@@ -350,7 +354,7 @@ Apply **Minimum-Phase Principle** from roadmap-common.md for Epic→Phase mappin
|
|
|
350
354
|
- ADR decisions → phase technical constraints
|
|
351
355
|
|
|
352
356
|
**Step 11.2: Generate Draft Roadmap**
|
|
353
|
-
|
|
357
|
+
MANDATORY: apply ~/.maestro/workflows/roadmap-common.md **Roadmap Template** format. For full mode, populate from product-brief.md vision and Epic→Stories acceptance criteria; REQUIRED produce: roadmap section.
|
|
354
358
|
|
|
355
359
|
**Step 11.3: Interactive Refinement (max 3 rounds)**
|
|
356
360
|
- Present roadmap overview: phase count, milestone structure, dependency graph
|
|
@@ -364,9 +368,9 @@ Follow roadmap-common.md **Roadmap Template** format. For full mode, populate fr
|
|
|
364
368
|
|
|
365
369
|
**Step 11.4: Write Outputs**
|
|
366
370
|
- Write `roadmap.md` to spec directory: `{spec_dir}/roadmap.md`
|
|
367
|
-
-
|
|
371
|
+
- MANDATORY: apply ~/.maestro/workflows/roadmap-common.md **Overwrite vs Edit Rules**; REQUIRED produce: .workflow/roadmap.md; BLOCKED if missing
|
|
368
372
|
- Update `spec-config.json`: add Phase 7 completion
|
|
369
|
-
-
|
|
373
|
+
- MANDATORY: apply ~/.maestro/workflows/roadmap-common.md **state.json Update Rules**; REQUIRED produce: state.json updated
|
|
370
374
|
|
|
371
375
|
**Step 11.5: Handoff Options (AskUserQuestion)**
|
|
372
376
|
|
|
@@ -380,6 +384,7 @@ Follow roadmap-common.md **Roadmap Template** format. For full mode, populate fr
|
|
|
380
384
|
### Step 12: Final Report
|
|
381
385
|
|
|
382
386
|
```
|
|
387
|
+
Glob product-brief.md AND requirements/ AND architecture/ AND epics/ MUST exist before final report; BLOCKED if missing.
|
|
383
388
|
== spec-generate complete ==
|
|
384
389
|
Session: SPEC-{slug}-{date} | Quality: {score}% ({gate}) | Phases: {completed_count}/7
|
|
385
390
|
Output: .workflow/.spec/{session_id}/
|
|
@@ -457,14 +462,14 @@ Init detects existing `.workflow/roadmap.md` and skips roadmap creation.
|
|
|
457
462
|
| Phase | Error | Blocking? | Action |
|
|
458
463
|
|-------|-------|-----------|--------|
|
|
459
464
|
| Phase 1 | Empty input | Yes | Error and exit |
|
|
460
|
-
| Phase 1 | CLI analysis fails | No | Basic parsing fallback |
|
|
465
|
+
| Phase 1 | CLI analysis fails | No | Basic parsing fallback; flag seed analysis as [LOW CONFIDENCE] (basic parsing) |
|
|
461
466
|
| Phase 1.5 | Gap analysis fails | No | Skip to basic prompts |
|
|
462
|
-
| Phase 2 | Single CLI fails | No | Continue with available |
|
|
463
|
-
| Phase 3 | Gemini fails | No | Codex fallback |
|
|
464
|
-
| Phase 4 | Review fails | No | Skip review |
|
|
467
|
+
| Phase 2 | Single CLI fails | No | Continue with available; flag product-brief as [LOW CONFIDENCE] (N-1 perspectives) |
|
|
468
|
+
| Phase 3 | Gemini fails | No | Codex fallback; flag requirements as [LOW CONFIDENCE] (fallback tool) |
|
|
469
|
+
| Phase 4 | Review fails | No | Skip review; flag architecture/ as [LOW CONFIDENCE] (review skipped) |
|
|
465
470
|
| Phase 5 | Story generation fails | No | Generate epics only |
|
|
466
|
-
| Phase 6 | Validation fails | No | Partial report |
|
|
471
|
+
| Phase 6 | Validation fails | No | Partial report; flag readiness-report as [LOW CONFIDENCE] (validation incomplete) |
|
|
467
472
|
| Phase 6.5 | Max iterations (2) | No | Force handoff |
|
|
468
|
-
| Step 2.5 | External research fails | No | apiResearchContext = null, continue |
|
|
473
|
+
| Step 2.5 | External research fails | No | apiResearchContext = null, continue; flag Phase 2-5 outputs as [LOW CONFIDENCE] (no external research) |
|
|
469
474
|
|
|
470
|
-
CLI Fallback Chain: Role-based resolution → degraded mode (local only)
|
|
475
|
+
CLI Fallback Chain: Role-based resolution → degraded mode (local only); flag all affected outputs as [LOW CONFIDENCE] (degraded local-only mode)
|
package/workflows/specs-load.md
CHANGED
|
@@ -59,7 +59,7 @@ Extract `--scope`, `--uid`, `--category <category>` and remaining text (keyword
|
|
|
59
59
|
maestro spec load --scope <scope> [--uid <uid>] [--category <category>] [--keyword <word>]
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
If `maestro spec load` CLI is unavailable, read files directly from the resolved directory.
|
|
62
|
+
If `maestro spec load` CLI is unavailable, read files directly from the resolved directory; flag loaded specs as [LOW CONFIDENCE] (CLI unavailable, direct file read).
|
|
63
63
|
|
|
64
64
|
### Step 3: Keyword Filter (optional)
|
|
65
65
|
|
package/workflows/specs-setup.md
CHANGED
package/workflows/sync.md
CHANGED
|
@@ -36,8 +36,8 @@ No files changed → emit W001, exit
|
|
|
36
36
|
Read .workflow/codebase/doc-index.json
|
|
37
37
|
Extract: components[], features[], requirements[], architecture_decisions[]
|
|
38
38
|
|
|
39
|
-
If missing: prompt → (a) run /manage-codebase-rebuild then re-run
|
|
40
|
-
or → (b) DEGRADED_MODE: git-diff-only, skip Steps 3-5
|
|
39
|
+
If missing: prompt → (a) MUST run /manage-codebase-rebuild then re-run
|
|
40
|
+
or → (b) DEGRADED_MODE: git-diff-only, skip Steps 3-5; flag sync as [LOW CONFIDENCE] (git-diff-only, Steps 3-5 skipped)
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
### Step 4: Impact Chain Traversal
|
|
@@ -50,6 +50,8 @@ Traverse impact chain: file → components (via code_locations match)
|
|
|
50
50
|
Aggregate deduplicated: { files, components, features, requirements }
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
GATE Step 4→5: impact_chain non-empty BEFORE update index; BLOCKED if impact_chain empty (no affected components/features/requirements identified)
|
|
54
|
+
|
|
53
55
|
### Step 5: Update Doc Index (skip if --dry-run)
|
|
54
56
|
|
|
55
57
|
```
|
package/workflows/test-gen.md
CHANGED
|
@@ -12,7 +12,7 @@ Tests expose bugs -- fixing is for quality-debug or maestro-execute.
|
|
|
12
12
|
specs_content = maestro spec load --category test
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Apply project test conventions (from Step 0 specs) when generating the plan (Step 4) and writing tests (Step 5); REQUIRED: tests conform to loaded spec conventions.
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
package/workflows/test.md
CHANGED
|
@@ -275,7 +275,7 @@ issues == 0 → Step 13. issues > 0 → Step 11.
|
|
|
275
275
|
### Step 11: Auto-Diagnose
|
|
276
276
|
|
|
277
277
|
1. **Cluster gaps** by component/area (same file/module → one cluster, same flow → one cluster)
|
|
278
|
-
2. **Spawn one debug agent per cluster** (parallel, `run_in_background: false`): pre-filled symptoms, `goal: find_root_cause`. Include `issue_id` refs.
|
|
278
|
+
2. MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: **Spawn one debug agent per cluster** (parallel, `run_in_background: false`): pre-filled symptoms, `goal: find_root_cause`. Include `issue_id` refs.
|
|
279
279
|
3. **Collect results**, update uat.md gaps:
|
|
280
280
|
```yaml
|
|
281
281
|
- test: {N}
|
|
@@ -350,6 +350,7 @@ Task(subagent_type="ui-design-agent",
|
|
|
350
350
|
```bash
|
|
351
351
|
# Agents run in parallel and write separate output files
|
|
352
352
|
# Each agent generates its own JSON directly
|
|
353
|
+
Glob ${temp_dir}/style-extraction/style-1/design-tokens.json, ${temp_dir}/animation-extraction/animation-tokens.json, ${temp_dir}/layout-extraction/layout-templates.json MUST exist before Phase 2 complete; BLOCKED if missing
|
|
353
354
|
echo "[Phase 2] Parallel agent analysis complete"
|
|
354
355
|
```
|
|
355
356
|
|
|
@@ -203,7 +203,7 @@ echo " knowhow-manifest.json written to ${package_dir}"
|
|
|
203
203
|
通过 Skill tool 调用 codify-to-knowhow:
|
|
204
204
|
|
|
205
205
|
```javascript
|
|
206
|
-
Skill("codify-to-knowhow", args="${package_dir}")
|
|
206
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Skill("codify-to-knowhow", args="${package_dir}")
|
|
207
207
|
```
|
|
208
208
|
|
|
209
209
|
等待 codify-to-knowhow 完成。它将:
|
|
@@ -50,7 +50,7 @@ echo "[Phase 3] Token files prepared"
|
|
|
50
50
|
**Agent Task**:
|
|
51
51
|
|
|
52
52
|
```javascript
|
|
53
|
-
Agent(ui-design-agent): `
|
|
53
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Agent(ui-design-agent): `
|
|
54
54
|
[PREVIEW_SHOWCASE_GENERATION]
|
|
55
55
|
Generate interactive multi-component showcase panel for reference package
|
|
56
56
|
|
package/workflows/ui-codify.md
CHANGED
|
@@ -130,7 +130,7 @@ echo " Output: $package_dir"
|
|
|
130
130
|
|
|
131
131
|
## Phase 2: Parallel Agent Extraction (Deferred)
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
MANDATORY: execute ui-codify-extract.md steps; REQUIRED produce: design-tokens.json, animation-tokens.json, layout-templates.json; BLOCKED if missing.
|
|
134
134
|
|
|
135
135
|
Variables available to Phase 2:
|
|
136
136
|
- `source_path` — absolute path to source directory
|
|
@@ -147,7 +147,7 @@ Phase 2 writes:
|
|
|
147
147
|
|
|
148
148
|
## Phase 3: Reference Package Generation (Deferred)
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
MANDATORY: execute ui-codify-package.md steps; REQUIRED produce: preview.html, preview.css, token files copied to package_dir; BLOCKED if missing.
|
|
151
151
|
|
|
152
152
|
Variables available to Phase 3:
|
|
153
153
|
- `temp_dir` — temporary workspace with extraction results
|
|
@@ -167,7 +167,7 @@ Phase 3 writes:
|
|
|
167
167
|
|
|
168
168
|
## Phase 4: Knowledge Asset Generation (Deferred)
|
|
169
169
|
|
|
170
|
-
|
|
170
|
+
MANDATORY: execute ui-codify-knowhow.md steps; REQUIRED produce: knowhow-manifest.json, knowhow files, spec entries; BLOCKED if missing.
|
|
171
171
|
|
|
172
172
|
Variables available to Phase 4:
|
|
173
173
|
- `package_dir` — package directory with all token files
|
|
@@ -189,15 +189,17 @@ Phase 4 writes:
|
|
|
189
189
|
| 1 | E001: Missing source path | Report usage, exit |
|
|
190
190
|
| 1 | E002: Source not found | Report path, exit |
|
|
191
191
|
| 1 | E003: Package exists | Suggest --overwrite, exit |
|
|
192
|
-
| 2 | Agent failure | Report which agent failed, continue with partial results |
|
|
192
|
+
| 2 | Agent failure | Report which agent failed, continue with partial results; flag partial results as [LOW CONFIDENCE] (agent failure) |
|
|
193
193
|
| 2 | No files discovered | Report empty discovery, exit |
|
|
194
194
|
| 3 | Token copy failed | Report missing file, exit |
|
|
195
|
-
| 3 | Preview generation failed | Report error, continue (preview is non-critical) |
|
|
196
|
-
| 4 | Manifest build failed | Report error, package still usable without knowhow |
|
|
197
|
-
| 4 | codify-to-knowhow failed | Report error, manifest remains for manual retry |
|
|
195
|
+
| 3 | Preview generation failed | Report error, continue (preview is non-critical); flag preview.html/css as [LOW CONFIDENCE] (preview generation failed) |
|
|
196
|
+
| 4 | Manifest build failed | Report error, package still usable without knowhow; flag knowhow assets as [LOW CONFIDENCE] (manifest build failed) |
|
|
197
|
+
| 4 | codify-to-knowhow failed | Report error, manifest remains for manual retry; flag knowhow/spec entries as [LOW CONFIDENCE] (codify-to-knowhow failed) |
|
|
198
198
|
|
|
199
199
|
## Completion Message
|
|
200
200
|
|
|
201
|
+
Glob all listed output files MUST exist before completion message; BLOCKED if missing.
|
|
202
|
+
|
|
201
203
|
```
|
|
202
204
|
UI Design System Codified!
|
|
203
205
|
|
package/workflows/ui-design.md
CHANGED
|
@@ -124,7 +124,7 @@ python3 "${SKILL_PATH}" "accessibility animation interaction" --domain ux
|
|
|
124
124
|
#### 3b. Generate design direction options via ui-design-agent
|
|
125
125
|
|
|
126
126
|
```
|
|
127
|
-
Agent(ui-design-agent): [DESIGN_DIRECTION_GENERATION]
|
|
127
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Agent(ui-design-agent): [DESIGN_DIRECTION_GENERATION]
|
|
128
128
|
|
|
129
129
|
Generate ${styleCount} maximally contrasting design directions (min 6D distance: 0.7).
|
|
130
130
|
|
|
@@ -152,7 +152,7 @@ Update `analysis-options.json` with `user_selection` field.
|
|
|
152
152
|
For each selected direction, spawn ui-design-agent:
|
|
153
153
|
|
|
154
154
|
```
|
|
155
|
-
Agent(ui-design-agent): [DESIGN_SYSTEM_GENERATION #${variant_index}]
|
|
155
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Agent(ui-design-agent): [DESIGN_SYSTEM_GENERATION #${variant_index}]
|
|
156
156
|
|
|
157
157
|
Generate production-ready design tokens from selected direction.
|
|
158
158
|
Map 6D attributes to token values:
|
|
@@ -200,7 +200,7 @@ Requirements: ALL colors OKLCH, WCAG AA (4.5:1 text, 3:1 UI), complete combinati
|
|
|
200
200
|
**Purpose:** Generate animation system complementing the selected styles.
|
|
201
201
|
|
|
202
202
|
```
|
|
203
|
-
Agent(ui-design-agent): [ANIMATION_SYSTEM_GENERATION]
|
|
203
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Agent(ui-design-agent): [ANIMATION_SYSTEM_GENERATION]
|
|
204
204
|
|
|
205
205
|
Input: selected variant's design-tokens.json (mood/weight context) + ui-ux-pro-max UX data.
|
|
206
206
|
Output: ${PHASE_DIR}/design-ref/animation-tokens.json
|
|
@@ -227,7 +227,7 @@ Requirements: CSS custom properties, prefers-reduced-motion mandatory, var() ref
|
|
|
227
227
|
#### 5a. Generate layout concept options
|
|
228
228
|
|
|
229
229
|
```
|
|
230
|
-
Agent(ui-design-agent): [LAYOUT_CONCEPT_GENERATION]
|
|
230
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Agent(ui-design-agent): [LAYOUT_CONCEPT_GENERATION]
|
|
231
231
|
|
|
232
232
|
Generate ${layoutCount} structurally distinct layout concepts per target.
|
|
233
233
|
Concepts must differ in: grid structure, component arrangement, visual hierarchy, navigation pattern.
|
|
@@ -249,7 +249,7 @@ Update analysis-options.json with `user_selection.selected_variants`.
|
|
|
249
249
|
For each selected concept × target:
|
|
250
250
|
|
|
251
251
|
```
|
|
252
|
-
Agent(ui-design-agent): [LAYOUT_TEMPLATE_GENERATION -- ${target} variant ${variant_id}]
|
|
252
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Agent(ui-design-agent): [LAYOUT_TEMPLATE_GENERATION -- ${target} variant ${variant_id}]
|
|
253
253
|
|
|
254
254
|
Structure ONLY, no visual style. Output: ${PHASE_DIR}/design-ref/layout-templates/layout-${target}-${variant_id}.json
|
|
255
255
|
|
|
@@ -267,6 +267,8 @@ Schema:
|
|
|
267
267
|
Rules: semantic HTML5, ARIA roles, var() refs only (no hard-coded values), mobile-first responsive. NO colors/fonts/shadows.
|
|
268
268
|
```
|
|
269
269
|
|
|
270
|
+
GATE Step 5→6: design-tokens.json + animation-tokens.json + layout-templates exist BEFORE assembly; BLOCKED if any missing
|
|
271
|
+
|
|
270
272
|
---
|
|
271
273
|
|
|
272
274
|
### Step 6: Assemble HTML Prototypes (Layer 4 — Assembly)
|
|
@@ -276,7 +278,7 @@ Rules: semantic HTML5, ARIA roles, var() refs only (no hard-coded values), mobil
|
|
|
276
278
|
For each `style × layout × target` combination, spawn ui-design-agent:
|
|
277
279
|
|
|
278
280
|
```
|
|
279
|
-
Agent(ui-design-agent): [PROTOTYPE_ASSEMBLY -- ${target}-style-${s}-layout-${l}]
|
|
281
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Agent(ui-design-agent): [PROTOTYPE_ASSEMBLY -- ${target}-style-${s}-layout-${l}]
|
|
280
282
|
|
|
281
283
|
Pure assembly: combine pre-extracted structure + tokens. NO design decisions.
|
|
282
284
|
|
|
@@ -375,7 +377,7 @@ Spacing & Layout, Effects & Interactions, Component Styles, Animation System, An
|
|
|
375
377
|
| Python not found | Abort with install instructions per OS |
|
|
376
378
|
| ui-ux-pro-max not found | Abort, suggest skill installation |
|
|
377
379
|
| Design system returns empty | Retry with broader keywords, then abort |
|
|
378
|
-
| Prototype agent fails | Log error, continue with other variants |
|
|
380
|
+
| Prototype agent fails | Log error, continue with other variants; flag variants as [LOW CONFIDENCE] (prototype agent failed) |
|
|
379
381
|
| User cancels selection | Save all variants as-is, exit without MASTER.md |
|
|
380
382
|
| --refine without existing design-ref | Error E004 |
|
|
381
383
|
|
package/workflows/ui-style.md
CHANGED
|
@@ -94,6 +94,8 @@ Save variants to `${PHASE_DIR}/design-ref/prototypes/variant-{N}-system.md`.
|
|
|
94
94
|
Display each variant summary (pattern, colors, typography, effects, anti-patterns).
|
|
95
95
|
User selects: [1-N | "redo" | "all"]. Auto mode selects variant 1.
|
|
96
96
|
|
|
97
|
+
GATE Step 3→4: selected variant confirmed BEFORE solidification; BLOCKED if no variant selected
|
|
98
|
+
|
|
97
99
|
---
|
|
98
100
|
|
|
99
101
|
### Step 4: Solidify Selected Design
|
|
@@ -109,7 +111,7 @@ python3 "${SKILL_PATH}" "${selected_variant_keywords}" --design-system --persist
|
|
|
109
111
|
|
|
110
112
|
#### 4b. Generate design-tokens.json
|
|
111
113
|
|
|
112
|
-
Spawn agent to extract structured tokens from MASTER.md into `${PHASE_DIR}/design-ref/design-tokens.json`.
|
|
114
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Spawn agent to extract structured tokens from MASTER.md into `${PHASE_DIR}/design-ref/design-tokens.json`.
|
|
113
115
|
|
|
114
116
|
**Token schema keys:** colors (brand/surface/semantic/text/border in OKLCH), typography (family/size/weight/line_height/combinations), spacing, border_radius, shadows, component_styles (button/card/input), breakpoints.
|
|
115
117
|
|
|
@@ -117,7 +119,7 @@ Spawn agent to extract structured tokens from MASTER.md into `${PHASE_DIR}/desig
|
|
|
117
119
|
|
|
118
120
|
#### 4c. Generate animation-tokens.json
|
|
119
121
|
|
|
120
|
-
Spawn agent to generate `${PHASE_DIR}/design-ref/animation-tokens.json` from design-tokens + MASTER.md.
|
|
122
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Spawn agent to generate `${PHASE_DIR}/design-ref/animation-tokens.json` from design-tokens + MASTER.md.
|
|
121
123
|
|
|
122
124
|
**Token schema keys:** duration (instant-slower), easing (ease-out/ease-in-out/spring), transitions, keyframes, interactions (hover states), reduced_motion (prefers-reduced-motion strategy).
|
|
123
125
|
|
|
@@ -140,7 +142,7 @@ Copy `design-system/MASTER.md` and `design-system/pages/*.md` (if generated) to
|
|
|
140
142
|
|
|
141
143
|
#### 4f. Optional: Generate HTML prototype
|
|
142
144
|
|
|
143
|
-
For each target, spawn agent to create `${PHASE_DIR}/design-ref/prototypes/${target}.html` from design-tokens + animation-tokens + MASTER.md.
|
|
145
|
+
For each target, MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: spawn agent to create `${PHASE_DIR}/design-ref/prototypes/${target}.html` from design-tokens + animation-tokens + MASTER.md.
|
|
144
146
|
|
|
145
147
|
**Rules:** standalone HTML with embedded CSS, realistic content (not lorem ipsum), SVG icons (Heroicons/Lucide CDN), cursor-pointer on clickables, responsive (375/768/1024px), WCAG AA, prefers-reduced-motion.
|
|
146
148
|
|
|
@@ -185,7 +187,7 @@ Same as ui-design.md — plan.md Step 4b detects `design-ref/MASTER.md` and incl
|
|
|
185
187
|
| Error | Action |
|
|
186
188
|
|-------|--------|
|
|
187
189
|
| ui-ux-pro-max returns empty | Retry with broader keywords, then abort |
|
|
188
|
-
| Token extraction agent fails | Retry once, warn if still fails |
|
|
190
|
+
| Token extraction agent fails | Retry once, warn if still fails; if still fails, mark design-tokens.json as [LOW CONFIDENCE] (token extraction agent failed) |
|
|
189
191
|
| User cancels selection | Save all variants, exit without solidification |
|
|
190
192
|
|
|
191
193
|
---
|
package/workflows/verify.md
CHANGED
|
@@ -405,7 +405,7 @@ For each success criterion / must-have truth:
|
|
|
405
405
|
|
|
406
406
|
### Step 4: Spawn Auditor Agent (if gaps found)
|
|
407
407
|
|
|
408
|
-
Spawn workflow-nyquist-auditor agent with gap list, test infrastructure, and phase context.
|
|
408
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Spawn workflow-nyquist-auditor agent with gap list, test infrastructure, and phase context.
|
|
409
409
|
Agent generates missing tests and returns:
|
|
410
410
|
- GAPS FILLED -> record new tests
|
|
411
411
|
- PARTIAL -> record resolved, escalate remainder
|
|
@@ -540,10 +540,10 @@ Next steps:
|
|
|
540
540
|
|-------|--------|
|
|
541
541
|
| Phase directory not found | Abort: "Phase {phase} not found." |
|
|
542
542
|
| No execution results | Abort: "No completed tasks found. Run /workflow:execute first." |
|
|
543
|
-
| No summaries found | Warn, proceed with task file analysis only |
|
|
543
|
+
| No summaries found | Warn, proceed with task file analysis only; flag verification.json as [LOW CONFIDENCE] (partial, summaries missing) |
|
|
544
544
|
| Test framework not detected | Skip coverage calculation, warn user |
|
|
545
|
-
| Coverage command fails | Log error, proceed with requirement mapping only |
|
|
546
|
-
| Verifier agent fails | Retry once, then write partial verification.json |
|
|
545
|
+
| Coverage command fails | Log error, proceed with requirement mapping only; flag validation.json coverage as [LOW CONFIDENCE] (partial, coverage command failed) |
|
|
546
|
+
| Verifier agent fails | Retry once, then write partial verification.json; flag verification.json as [LOW CONFIDENCE] (partial, verifier agent failed) |
|
|
547
547
|
|
|
548
548
|
---
|
|
549
549
|
|
|
@@ -39,6 +39,8 @@ Knowledge graph link discovery and health improvement. Analyzes the unified wiki
|
|
|
39
39
|
|
|
40
40
|
Gather baseline in parallel via `maestro wiki list --json`, `health`, `orphans`, `hubs --top 10`.
|
|
41
41
|
|
|
42
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: graph operations (`orphans`, `hubs --top 10`) — use the `maestro wiki` CLI to compute in-degree and orphan sets.
|
|
43
|
+
|
|
42
44
|
Working state: entry count by type, baseline health score, orphan IDs, hub in-degree counts.
|
|
43
45
|
|
|
44
46
|
Apply `--scope` filter if provided — restrict all subsequent analysis to matching type.
|
package/workflows/wiki-digest.md
CHANGED
|
@@ -74,8 +74,8 @@ Synthesize what these entries collectively teach. Focus on the knowledge pattern
|
|
|
74
74
|
|
|
75
75
|
### Key Entries
|
|
76
76
|
Top 3-5 most important entries by:
|
|
77
|
-
- Hub score (in-degree from `maestro wiki hubs`)
|
|
78
|
-
- Backlink count (from `maestro wiki backlinks <id>`)
|
|
77
|
+
- MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Hub score (in-degree from `maestro wiki hubs`)
|
|
78
|
+
- MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: Backlink count (from `maestro wiki backlinks <id>`)
|
|
79
79
|
- Recency (recently updated entries weigh more)
|
|
80
80
|
|
|
81
81
|
### Gap Detection
|
|
@@ -93,7 +93,7 @@ Per-theme health adapted from wiki health formula (entries, connectivity, comple
|
|
|
93
93
|
|
|
94
94
|
Search via `maestro wiki search` or parse `.workflow/specs/learnings.md` for keyword matches against each theme. Flag **unlinked insights** — learning entries matching a theme but not referenced by any wiki entry in that theme.
|
|
95
95
|
|
|
96
|
-
If `learnings.md` not found, skip with W002 warning.
|
|
96
|
+
If `learnings.md` not found, skip with W002 warning; mark digest cross-reference as [LOW CONFIDENCE] (learnings.md missing).
|
|
97
97
|
|
|
98
98
|
---
|
|
99
99
|
|
|
@@ -152,6 +152,8 @@ Produce `.workflow/knowhow/KNW-digest-{slug}-{YYYY-MM-DD}.md`:
|
|
|
152
152
|
|
|
153
153
|
---
|
|
154
154
|
|
|
155
|
+
GATE Stage 6→7: gaps identified BEFORE issue routing; BLOCKED if no gaps identified in Stage 5
|
|
156
|
+
|
|
155
157
|
## Stage 7: Gap → Issue Routing (if --create-issues)
|
|
156
158
|
|
|
157
159
|
For each knowledge gap from Stage 5: dedup against `.workflow/issues/issues.jsonl` (same theme + type). If new, append with `type: "knowledge-gap"`, `status: "open"`, `severity: "low"`, `source: "wiki-digest"`, `tags: ["knowledge-gap", "{theme-slug}"]`. Report created count.
|
package/workflows/wiki-manage.md
CHANGED
|
@@ -40,6 +40,8 @@ Complements `wiki-connect.md` (link discovery) and `wiki-digest.md` (synthesis)
|
|
|
40
40
|
|
|
41
41
|
Run in parallel: `maestro wiki health`, `list --json`, `orphans`, `hubs --top 5`.
|
|
42
42
|
|
|
43
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: graph operations (`orphans`, `hubs --top 5`) — use the `maestro wiki` CLI to compute orphan sets and hub in-degree.
|
|
44
|
+
|
|
43
45
|
### Step 2: Render Dashboard
|
|
44
46
|
|
|
45
47
|
Display: health score, entry counts by type, broken links, orphan count, top hubs. Include health status message and quick-action commands (`/wiki-connect --fix`, `/wiki-digest`, `/manage-wiki cleanup --fix`, `maestro wiki graph`).
|
|
@@ -72,6 +74,8 @@ If not `--json`: offer to view an entry by number selection.
|
|
|
72
74
|
|
|
73
75
|
Gather baseline via `maestro wiki health`, `orphans --json`, `graph`.
|
|
74
76
|
|
|
77
|
+
MANDATORY, NOT SUBSTITUTABLE by manual Read/Grep: graph operations (`orphans --json`, `graph`) — use the `maestro wiki` CLI to compute orphans and graph topology.
|
|
78
|
+
|
|
75
79
|
### Step 2: Categorize Issues
|
|
76
80
|
|
|
77
81
|
| Issue Type | Detection | Auto-fix Action |
|