maestro-flow 0.3.48 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/impeccable-agent.md +99 -0
- package/.claude/commands/maestro-analyze.md +2 -2
- package/.claude/commands/maestro-brainstorm.md +116 -112
- package/.claude/commands/maestro-composer.md +5 -0
- package/.claude/commands/maestro-impeccable.md +231 -74
- package/.claude/commands/maestro-merge.md +3 -0
- package/.claude/commands/maestro-roadmap.md +5 -1
- package/.claude/commands/maestro.md +3 -3
- package/.claude/commands/manage-issue-discover.md +4 -0
- package/.claude/commands/quality-refactor.md +3 -0
- package/.claude/skills/maestro-help/index/catalog.json +1 -1
- package/.claude/skills/maestro-help/phases/01-parse-intent.md +1 -1
- package/.codex/skills/maestro/SKILL.md +70 -28
- package/.codex/skills/maestro-brainstorm/SKILL.md +19 -2
- package/.codex/skills/maestro-composer/SKILL.md +5 -0
- package/.codex/skills/maestro-help/catalog.json +1 -1
- package/.codex/skills/maestro-impeccable/SKILL.md +230 -97
- package/.codex/skills/maestro-merge/SKILL.md +3 -0
- package/.codex/skills/maestro-milestone-audit/SKILL.md +64 -7
- package/.codex/skills/maestro-quick/SKILL.md +1 -1
- package/.codex/skills/maestro-roadmap/SKILL.md +1 -1
- package/.codex/skills/maestro-tools-execute/SKILL.md +1 -1
- package/.codex/skills/maestro-tools-register/SKILL.md +1 -1
- package/.codex/skills/quality-refactor/SKILL.md +114 -22
- package/chains/_intent-map.json +1 -1
- package/chains/singles/ui-design.json +4 -4
- package/chains/{ui-design-driven.json → ui-craft-build.json} +8 -8
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +3 -3
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
- package/dist/src/commands/delegate.d.ts.map +1 -1
- package/dist/src/commands/delegate.js +12 -7
- package/dist/src/commands/delegate.js.map +1 -1
- package/dist/src/commands/impeccable.d.ts +2 -1
- package/dist/src/commands/impeccable.d.ts.map +1 -1
- package/dist/src/commands/impeccable.js +80 -1
- package/dist/src/commands/impeccable.js.map +1 -1
- package/package.json +1 -1
- package/templates/planning-roles/ui-designer.md +86 -99
- package/templates/workflows/specs/node-catalog.md +1 -1
- package/workflows/brainstorm.md +26 -0
- package/workflows/cli-tools-usage.md +9 -26
- package/workflows/delegate-usage.md +301 -343
- package/workflows/impeccable/design.md +462 -0
- package/workflows/impeccable/explore.md +157 -0
- package/workflows/impeccable/shape.md +4 -0
- package/workflows/impeccable/ui-search/__pycache__/core.cpython-313.pyc +0 -0
- package/workflows/impeccable/ui-search/__pycache__/design_system.cpython-313.pyc +0 -0
- package/workflows/impeccable/ui-search/core.py +262 -0
- package/workflows/impeccable/ui-search/data/app-interface.csv +31 -0
- package/workflows/impeccable/ui-search/data/charts.csv +26 -0
- package/workflows/impeccable/ui-search/data/colors.csv +162 -0
- package/workflows/impeccable/ui-search/data/design.csv +1776 -0
- package/workflows/impeccable/ui-search/data/draft.csv +1779 -0
- package/workflows/impeccable/ui-search/data/google-fonts.csv +1924 -0
- package/workflows/impeccable/ui-search/data/icons.csv +106 -0
- package/workflows/impeccable/ui-search/data/landing.csv +35 -0
- package/workflows/impeccable/ui-search/data/products.csv +162 -0
- package/workflows/impeccable/ui-search/data/react-performance.csv +45 -0
- package/workflows/impeccable/ui-search/data/stacks/angular.csv +51 -0
- package/workflows/impeccable/ui-search/data/stacks/astro.csv +54 -0
- package/workflows/impeccable/ui-search/data/stacks/flutter.csv +53 -0
- package/workflows/impeccable/ui-search/data/stacks/html-tailwind.csv +56 -0
- package/workflows/impeccable/ui-search/data/stacks/jetpack-compose.csv +53 -0
- package/workflows/impeccable/ui-search/data/stacks/laravel.csv +51 -0
- package/workflows/impeccable/ui-search/data/stacks/nextjs.csv +53 -0
- package/workflows/impeccable/ui-search/data/stacks/nuxt-ui.csv +51 -0
- package/workflows/impeccable/ui-search/data/stacks/nuxtjs.csv +59 -0
- package/workflows/impeccable/ui-search/data/stacks/react-native.csv +52 -0
- package/workflows/impeccable/ui-search/data/stacks/react.csv +54 -0
- package/workflows/impeccable/ui-search/data/stacks/shadcn.csv +61 -0
- package/workflows/impeccable/ui-search/data/stacks/svelte.csv +54 -0
- package/workflows/impeccable/ui-search/data/stacks/swiftui.csv +51 -0
- package/workflows/impeccable/ui-search/data/stacks/threejs.csv +54 -0
- package/workflows/impeccable/ui-search/data/stacks/vue.csv +50 -0
- package/workflows/impeccable/ui-search/data/styles.csv +85 -0
- package/workflows/impeccable/ui-search/data/typography.csv +74 -0
- package/workflows/impeccable/ui-search/data/ui-reasoning.csv +162 -0
- package/workflows/impeccable/ui-search/data/ux-guidelines.csv +100 -0
- package/workflows/impeccable/ui-search/design_system.py +1148 -0
- package/workflows/impeccable/ui-search/prototype-template.html +511 -0
- package/workflows/impeccable/ui-search/render-prototype.js +208 -0
- package/workflows/impeccable/ui-search/search.py +114 -0
- package/workflows/maestro-chain-execute.md +2 -2
- package/workflows/maestro.codex.md +3 -3
- package/workflows/maestro.md +107 -117
- package/workflows/plan.md +1 -1
- package/workflows/ui-design.md +1 -1
- package/workflows/ui-style.md +1 -1
- package/.claude/commands/maestro-ui-craft.md +0 -364
- package/.claude/commands/maestro-ui-design.md +0 -104
- package/.claude/skills/maestro-impeccable/SKILL.md +0 -169
- package/.codex/skills/maestro-ui-craft/SKILL.md +0 -341
- package/.codex/skills/maestro-ui-design/SKILL.md +0 -242
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maestro-impeccable
|
|
3
|
-
description: Production-grade UI design
|
|
4
|
-
argument-hint: "<command> [target] [
|
|
3
|
+
description: Production-grade UI design — 24 commands + chain orchestration with quality gates + design search
|
|
4
|
+
argument-hint: "<command|chain|intent> [target] [flags]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Write
|
|
@@ -9,81 +9,238 @@ allowed-tools:
|
|
|
9
9
|
- Bash
|
|
10
10
|
- Glob
|
|
11
11
|
- Grep
|
|
12
|
-
-
|
|
12
|
+
- Agent
|
|
13
13
|
- AskUserQuestion
|
|
14
|
+
- TodoWrite
|
|
14
15
|
---
|
|
16
|
+
|
|
15
17
|
<purpose>
|
|
16
|
-
|
|
17
|
-
Build (craft, shape, teach, document, extract), Evaluate (critique, audit), Refine (polish, bolder, quieter, distill, harden, onboard),
|
|
18
|
-
Enhance (animate, colorize, typeset, layout, delight, overdrive), Fix (clarify, adapt, optimize), Iterate (live).
|
|
18
|
+
UI design command. Parse input → prerequisites → read workflow file → execute → track.
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
- **Direct**: single command via workflow file
|
|
21
|
+
- **Chain**: orchestrate command sequence with quality gates
|
|
22
|
+
- **Search**: query design knowledge base via CLI
|
|
23
23
|
</purpose>
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
|
35
|
-
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
|
78
|
-
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
-
|
|
89
|
-
|
|
25
|
+
## Input
|
|
26
|
+
|
|
27
|
+
$ARGUMENTS first word determines mode:
|
|
28
|
+
|
|
29
|
+
| First Word | Mode |
|
|
30
|
+
|------------|------|
|
|
31
|
+
| Known command (see routing table) | Direct |
|
|
32
|
+
| Chain name: build, redesign, improve, enhance, launch, harden, foundation, live | Chain |
|
|
33
|
+
| continue / next / -c | Resume |
|
|
34
|
+
| search | Search: `maestro impeccable search "$REST"` |
|
|
35
|
+
| Free text (concrete task) | Direct craft — has specific target + specs/reference |
|
|
36
|
+
| Free text (project intent) | Intent → classify → chain |
|
|
37
|
+
| (empty) | Menu: show commands by category |
|
|
38
|
+
|
|
39
|
+
## Command Routing
|
|
40
|
+
|
|
41
|
+
All workflows at `~/.maestro/workflows/impeccable/{command}.md`:
|
|
42
|
+
|
|
43
|
+
| Command | Category | Description |
|
|
44
|
+
|---------|----------|-------------|
|
|
45
|
+
| craft | Build | Shape then build end-to-end — full page/component implementation |
|
|
46
|
+
| shape | Build | Plan UX/UI before code — information architecture, wireframe, visual direction |
|
|
47
|
+
| teach | Build | Set up PRODUCT.md — users, brand, tone, anti-references, principles |
|
|
48
|
+
| document | Build | Generate DESIGN.md from existing code — extract tokens, typography, colors |
|
|
49
|
+
| extract | Build | Pull tokens/components into reusable design system |
|
|
50
|
+
| explore | Build | Multi-style comparison — generate variants, render prototypes, visual compare, select/mix |
|
|
51
|
+
| critique | Evaluate | UX heuristic review with Nielsen scoring (/40) + P0/P1 findings |
|
|
52
|
+
| audit | Evaluate | Technical quality checks — a11y, performance, responsive, code quality (/20) |
|
|
53
|
+
| polish | Refine | Final quality pass — micro-adjustments, pixel perfection |
|
|
54
|
+
| bolder | Refine | Amplify bland/safe designs — stronger personality, more contrast |
|
|
55
|
+
| quieter | Refine | Tone down aggressive/overwhelming designs — reduce visual noise |
|
|
56
|
+
| distill | Refine | Strip to essence — remove clutter, reduce cognitive load |
|
|
57
|
+
| harden | Refine | Production-ready — error states, i18n, edge cases, overflow, empty states |
|
|
58
|
+
| onboard | Refine | First-run flows, empty states, activation paths, progressive disclosure |
|
|
59
|
+
| animate | Enhance | Add purposeful motion — transitions, micro-interactions, scroll effects |
|
|
60
|
+
| colorize | Enhance | Add strategic color — OKLCH palette, contrast, color strategy |
|
|
61
|
+
| typeset | Enhance | Improve typography — scale, hierarchy, font pairing, line length |
|
|
62
|
+
| layout | Enhance | Fix spacing, rhythm, visual hierarchy, alignment, grid |
|
|
63
|
+
| delight | Enhance | Add personality — memorable details, joy, surprise moments |
|
|
64
|
+
| overdrive | Enhance | Push past conventional limits — ambitious visual effects |
|
|
65
|
+
| clarify | Fix | Improve UX copy — labels, error messages, microcopy, CTAs |
|
|
66
|
+
| adapt | Fix | Adapt for devices/screens — responsive, touch targets, breakpoints |
|
|
67
|
+
| optimize | Fix | Fix UI performance — loading, rendering, bundle, paint/layout jank |
|
|
68
|
+
| live | Iterate | Browser-based variant iteration — real-time design in DevTools |
|
|
69
|
+
|
|
70
|
+
Reference files (loaded by workflow as needed, not standalone commands):
|
|
71
|
+
brand.md, product.md, design.md, codex.md, heuristics-scoring.md, cognitive-load.md,
|
|
72
|
+
color-and-contrast.md, interaction-design.md, motion-design.md, personas.md,
|
|
73
|
+
responsive-design.md, spatial-design.md, typography.md, ux-writing.md
|
|
74
|
+
|
|
75
|
+
## Chains
|
|
76
|
+
|
|
77
|
+
| Chain | Steps | Scenario |
|
|
78
|
+
|-------|-------|----------|
|
|
79
|
+
| build | teach? → explore? → shape → craft → critique → [refine] → audit → polish | 从零新建 |
|
|
80
|
+
| redesign | document → explore → shape → craft → critique → [refine] → audit → polish | 基于现有代码重设计 |
|
|
81
|
+
| improve | critique → [refine] → polish → audit | 迭代改进 |
|
|
82
|
+
| enhance | {cmd...} → critique → [refine] → polish | 定向增强(支持多命令) |
|
|
83
|
+
| launch | harden → adapt → optimize → audit → polish | 全方位上线准备 |
|
|
84
|
+
| harden | harden → audit → polish | 边界加固 |
|
|
85
|
+
| foundation | teach? → explore → document → extract | 纯设计系统建设 |
|
|
86
|
+
| live | live | 实时迭代 |
|
|
87
|
+
|
|
88
|
+
- `?` = conditional: teach if PRODUCT.md missing; explore if DESIGN.md missing and --skip-design not set
|
|
89
|
+
- `[refine]` = quality gate loop: gate fails → auto-select fix commands from findings → re-gate
|
|
90
|
+
- `{cmd...}` = enhance 支持多命令,逗号分隔:`enhance colorize,typeset landing-page`
|
|
91
|
+
|
|
92
|
+
Chain flags: --threshold <N> (default 26/40), --max-loops <N> (default 3), --skip-design, --styles <N>, -y
|
|
93
|
+
|
|
94
|
+
## Free Text Routing
|
|
95
|
+
|
|
96
|
+
Free text 按优先级三层匹配。命中即停,不继续向下。
|
|
97
|
+
|
|
98
|
+
### Layer 1: 意图匹配单个命令 → Direct
|
|
99
|
+
|
|
100
|
+
将用户描述与 Command Routing 表的 Description 列语义匹配。匹配最接近的**一个**命令。
|
|
101
|
+
|
|
102
|
+
| Intent signal | Command |
|
|
103
|
+
|---------------|---------|
|
|
104
|
+
| 评审, review, 检查UX, 评分, heuristic | critique |
|
|
105
|
+
| 审计, a11y, 可访问性, 技术检查, performance audit, 代码质量 | audit |
|
|
106
|
+
| 加动画, 动效, transitions, micro-interactions, 过渡 | animate |
|
|
107
|
+
| 配色, 颜色, palette, 色彩, OKLCH, contrast | colorize |
|
|
108
|
+
| 字体, 排版, typography, font, 字号, 行高 | typeset |
|
|
109
|
+
| 布局, 间距, spacing, grid, 对齐, alignment, 视觉层次 | layout |
|
|
110
|
+
| 太花, 太吵, tone down, 视觉噪音, 简洁点 | quieter |
|
|
111
|
+
| 太平淡, 加强, 更大胆, more personality, 更有个性 | bolder |
|
|
112
|
+
| 太复杂, 简化, strip, 去掉多余, cognitive load | distill |
|
|
113
|
+
| 打磨, 微调, pixel perfect, final pass, 最终润色 | polish |
|
|
114
|
+
| 文案, copy, 标签, 错误提示, UX writing, microcopy | clarify |
|
|
115
|
+
| 响应式, mobile, 适配, breakpoints, touch targets | adapt |
|
|
116
|
+
| 性能, loading, bundle, 卡顿, jank, 速度 | optimize |
|
|
117
|
+
| 边界, error states, i18n, 溢出, 空状态加固 | harden |
|
|
118
|
+
| 引导, 新手, 首次使用, onboarding, empty state, 激活 | onboard |
|
|
119
|
+
| 趣味, 惊喜, personality, memorable, joy | delight |
|
|
120
|
+
| 炫酷, 极限, extraordinary, 超常规, 技术极限 | overdrive |
|
|
121
|
+
| 规划, plan UX, wireframe, 信息架构, 视觉方向 | shape |
|
|
122
|
+
| 多风格, 变体, variants, compare styles, 风格对比 | explore |
|
|
123
|
+
| 品牌定义, PRODUCT.md, 产品上下文 | teach |
|
|
124
|
+
| 提取设计, DESIGN.md, 设计文档化 | document |
|
|
125
|
+
| 提取组件, pull tokens, 设计系统提取 | extract |
|
|
126
|
+
| 实时, browser iteration, 浏览器迭代 | live |
|
|
127
|
+
|
|
128
|
+
### Layer 2: 具体构建任务 → Direct craft
|
|
129
|
+
|
|
130
|
+
Layer 1 未命中,但意图是"构建/创建某个具体东西":
|
|
131
|
+
- 包含具体文件路径或目标(`d:\path`, `src/pages/`, `index.html`)
|
|
132
|
+
- 包含详细视觉规格(布局、风格、配色方案)
|
|
133
|
+
- 包含参考素材(`参考...`, `based on...`, `like...`)
|
|
134
|
+
|
|
135
|
+
→ 路由到 **craft**(Direct)
|
|
136
|
+
|
|
137
|
+
### Layer 3: 项目意图 → Chain
|
|
138
|
+
|
|
139
|
+
Layer 1+2 未命中,意图是泛泛的项目方向:
|
|
140
|
+
|
|
141
|
+
| Pattern | Chain |
|
|
142
|
+
|---------|-------|
|
|
143
|
+
| 新建, create, build, new, 从零开始 | build |
|
|
144
|
+
| 重做, redesign, 重新设计, rethink, 换风格, 改版 | redesign |
|
|
145
|
+
| 改进, improve, iterate, better, 迭代 | improve |
|
|
146
|
+
| 增强, enhance, 视觉升级, visual upgrade | enhance |
|
|
147
|
+
| 上线, launch, deploy, ship, 发布准备, production-ready | launch |
|
|
148
|
+
| 加固, harden, 生产化, 边界情况 | harden |
|
|
149
|
+
| 设计系统, design system, tokens, 设计规范, 设计基建 | foundation |
|
|
150
|
+
| 实时, live, browser | live |
|
|
151
|
+
|
|
152
|
+
Ambiguous + no `-y` → AskUserQuestion.
|
|
153
|
+
|
|
154
|
+
## Prerequisites
|
|
155
|
+
|
|
156
|
+
Before reading any command workflow:
|
|
157
|
+
|
|
158
|
+
1. **Context**: `maestro spec load --category ui` → if empty → `maestro impeccable load-context`
|
|
159
|
+
2. **PRODUCT.md**: missing/placeholder (<200 chars / `[TODO]`) → execute teach first, then resume original task
|
|
160
|
+
3. **Register**: identify brand/product → Read `~/.maestro/workflows/impeccable/{brand|product}.md`
|
|
161
|
+
|
|
162
|
+
## Direct Execution
|
|
163
|
+
|
|
164
|
+
1. Prerequisites ✓
|
|
165
|
+
2. **显示执行信息**:
|
|
166
|
+
```
|
|
167
|
+
── Command: {command} ────────────────────
|
|
168
|
+
Category: {category} | Target: {target}
|
|
169
|
+
─────────────────────────────────────────
|
|
170
|
+
```
|
|
171
|
+
3. Read `~/.maestro/workflows/impeccable/{command}.md`
|
|
172
|
+
4. **TodoWrite 跟踪**:按 workflow 文件中的主要阶段创建 todo 项
|
|
173
|
+
- 格式:`[{command}] {phase description}`
|
|
174
|
+
- 每个阶段完成后立即标记 completed
|
|
175
|
+
5. Follow workflow file instructions
|
|
176
|
+
6. Post: suggest logical next command (teach→shape, shape→craft, craft→critique, etc.)
|
|
177
|
+
|
|
178
|
+
## Chain Execution
|
|
179
|
+
|
|
180
|
+
1. Prerequisites ✓
|
|
181
|
+
2. **显示执行链**:解析 chain 定义,输出完整步骤预览:
|
|
182
|
+
```
|
|
183
|
+
── Chain: build ──────────────────────────
|
|
184
|
+
1. teach (conditional: PRODUCT.md missing)
|
|
185
|
+
2. explore (conditional: DESIGN.md missing)
|
|
186
|
+
3. shape
|
|
187
|
+
4. craft
|
|
188
|
+
5. critique ◆ quality gate (threshold: 26/40)
|
|
189
|
+
6. [refine] ↺ auto-fix loop (max: 3)
|
|
190
|
+
7. audit ◆ quality gate (threshold: 14/20)
|
|
191
|
+
8. polish
|
|
192
|
+
─────────────────────────────────────────
|
|
193
|
+
Target: {target}
|
|
194
|
+
```
|
|
195
|
+
- `◆` 标记 quality gate 步骤,显示阈值
|
|
196
|
+
- `↺` 标记 refine loop,显示最大循环次数
|
|
197
|
+
- conditional 步骤注明触发条件
|
|
198
|
+
- 跳过的 conditional 步骤标记 `(skipped)`
|
|
199
|
+
3. Create session: `.workflow/.maestro/ui-craft-{YYYYMMDD-HHmmss}/status.json`
|
|
200
|
+
```json
|
|
201
|
+
{ "chain_type": "...", "target": "...", "steps": [...], "current_step": 0,
|
|
202
|
+
"gate_history": [], "loop_count": 0, "status": "running" }
|
|
203
|
+
```
|
|
204
|
+
4. **TodoWrite 初始化**:为 chain 所有步骤创建 todo 项
|
|
205
|
+
- 每步一项,格式:`[chain] step N: {command} — {description}`
|
|
206
|
+
- conditional 步骤若跳过,立即标记 completed
|
|
207
|
+
- quality gate 步骤标注阈值:`[chain] step 5: critique ◆ gate ≥26/40`
|
|
208
|
+
5. For each step:
|
|
209
|
+
- Read `~/.maestro/workflows/impeccable/{command}.md` → execute
|
|
210
|
+
- **步骤开始**:TodoWrite 标记当前步骤 in_progress
|
|
211
|
+
- **步骤完成**:TodoWrite 标记 completed + update status.json (`current_step`, step `status`)
|
|
212
|
+
- **步骤失败**:TodoWrite 标记 completed(with note) + 记录原因
|
|
213
|
+
6. **Quality gate** (critique/audit steps):
|
|
214
|
+
- Parse score: critique `**Total** | | **N/40**`, audit `**Total** | | **N/20**`
|
|
215
|
+
- Count `[P0]` / `[P1]` tags
|
|
216
|
+
- Pass: score ≥ threshold AND P0 == 0 → advance
|
|
217
|
+
- Fail: collect suggested commands from findings → execute → re-gate
|
|
218
|
+
- Max loops exceeded → force advance with warning
|
|
219
|
+
- TodoWrite:gate 结果记入当前步骤备注(score, P0/P1 count, pass/fail)
|
|
220
|
+
7. Final report: scores + trend + commands executed
|
|
221
|
+
|
|
222
|
+
## Resume
|
|
223
|
+
|
|
224
|
+
Scan `.workflow/.maestro/ui-craft-*/status.json` for `status == "running"` → most recent → resume from `current_step`.
|
|
225
|
+
|
|
226
|
+
## Quality Gate — Finding → Command Fallback
|
|
227
|
+
|
|
228
|
+
When findings lack explicit suggested command:
|
|
229
|
+
|
|
230
|
+
| Finding Category | Command |
|
|
231
|
+
|-----------------|---------|
|
|
232
|
+
| Layout, spacing, hierarchy, alignment | layout |
|
|
233
|
+
| Color, contrast, palette | colorize |
|
|
234
|
+
| Typography, font, readability | typeset |
|
|
235
|
+
| Animation, motion, transitions | animate |
|
|
236
|
+
| Copy, labels, UX writing | clarify |
|
|
237
|
+
| Responsive, mobile, breakpoints | adapt |
|
|
238
|
+
| Performance, loading, speed | optimize |
|
|
239
|
+
| Complexity, overload, clutter | distill |
|
|
240
|
+
| Bland, safe, generic | bolder |
|
|
241
|
+
| Aggressive, overwhelming | quieter |
|
|
242
|
+
| Onboarding, empty state | onboard |
|
|
243
|
+
| Edge cases, i18n, error handling | harden |
|
|
244
|
+
| Personality, memorability | delight |
|
|
245
|
+
|
|
246
|
+
Never auto-select: teach, shape, craft, live, document, extract, overdrive, critique, audit.
|
|
@@ -31,6 +31,9 @@ Flags (`-m`, `--force`, `--dry-run`, `--no-cleanup`, `--continue`), merge sequen
|
|
|
31
31
|
<execution>
|
|
32
32
|
Follow '~/.maestro/workflows/merge.md' completely.
|
|
33
33
|
|
|
34
|
+
**Knowledge inquiry on completion:**
|
|
35
|
+
After successful merge, ask user once: "Record milestone learnings?" If yes, persist via `Skill("spec-add", "learning \"<title>\" \"<insight>\" --keywords <kw1>,<kw2>")`.
|
|
36
|
+
|
|
34
37
|
**Next-step routing on completion:**
|
|
35
38
|
- View dashboard → Skill({ skill: "manage-status" })
|
|
36
39
|
- Audit milestone → Skill({ skill: "maestro-milestone-audit" })
|
|
@@ -69,6 +69,10 @@ maestro-plan → maestro-execute → maestro-verify
|
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
**Note (full mode):** `maestro-init` MUST run before `--mode full`. It creates the `.workflow/` directory and project context.
|
|
72
|
+
|
|
73
|
+
### Pre-load specs
|
|
74
|
+
1. **Architecture specs**: Run `maestro spec load --category arch` to load architecture constraints. Use as context for phase decomposition — ensures roadmap respects documented decisions and boundaries.
|
|
75
|
+
2. Optional — proceed without if unavailable.
|
|
72
76
|
</context>
|
|
73
77
|
|
|
74
78
|
<execution>
|
|
@@ -100,7 +104,7 @@ Follow `~/.maestro/workflows/spec-generate.md` completely.
|
|
|
100
104
|
|-----------|-----------|
|
|
101
105
|
| Roadmap approved, need analysis | /maestro-analyze 1 |
|
|
102
106
|
| Simple project, ready to plan | /maestro-plan 1 |
|
|
103
|
-
| Need UI design first | /maestro-
|
|
107
|
+
| Need UI design first | /maestro-impeccable build |
|
|
104
108
|
| View project dashboard | /manage-status |
|
|
105
109
|
| Need project setup (full mode) | /maestro-init |
|
|
106
110
|
</execution>
|
|
@@ -119,8 +119,8 @@ S_FALLBACK:
|
|
|
119
119
|
### A_CLASSIFY_INTENT
|
|
120
120
|
|
|
121
121
|
1. Read `~/.maestro/workflows/maestro.md` from deferred_reading
|
|
122
|
-
2.
|
|
123
|
-
3. Select
|
|
122
|
+
2. Match intent to best task_type via chain catalog (semantic, AI-driven)
|
|
123
|
+
3. Select chain from chainMap
|
|
124
124
|
4. Determine per-step type: `internal` (Skill) or `external` (delegate)
|
|
125
125
|
|
|
126
126
|
### A_CLARIFY
|
|
@@ -155,7 +155,7 @@ S_FALLBACK:
|
|
|
155
155
|
| maestro-analyze | `-y` | Skip scoping, auto-deepen |
|
|
156
156
|
| maestro-brainstorm | `-y` | Skip questions, use defaults |
|
|
157
157
|
| maestro-roadmap | `-y` | Skip questions (create/revise/review) |
|
|
158
|
-
| maestro-
|
|
158
|
+
| maestro-impeccable | `-y` | Auto-select design variant + skip confirmations |
|
|
159
159
|
| maestro-plan | `-y` | Skip confirmations and clarification |
|
|
160
160
|
| maestro-execute | `-y` | Skip confirmations, blocked auto-continue |
|
|
161
161
|
| quality-auto-test | `-y` | Skip plan confirmation |
|
|
@@ -48,6 +48,10 @@ $ARGUMENTS -- optional. Parse first token to determine mode.
|
|
|
48
48
|
**State files:**
|
|
49
49
|
- `.workflow/issues/issues.jsonl` -- issues appended here
|
|
50
50
|
- `.workflow/issues/discoveries/{SESSION_ID}/` -- session artifacts
|
|
51
|
+
|
|
52
|
+
### Pre-load specs
|
|
53
|
+
1. **Debug specs**: Run `maestro spec load --category debug` to load known antipatterns, root causes, and gotchas. Informs discovery perspectives with prior findings.
|
|
54
|
+
2. Optional — proceed without if unavailable.
|
|
51
55
|
</context>
|
|
52
56
|
|
|
53
57
|
<execution>
|
|
@@ -41,6 +41,9 @@ If not provided, prompt user for scope.
|
|
|
41
41
|
<execution>
|
|
42
42
|
Follow '~/.maestro/workflows/refactor.md' completely.
|
|
43
43
|
|
|
44
|
+
**Knowledge inquiry on completion:**
|
|
45
|
+
After successful refactoring, ask user once: "Record refactoring pattern as coding convention?" If yes, persist via `Skill("spec-add", "coding \"<title>\" \"<pattern>\" --keywords <kw1>,<kw2>")`.
|
|
46
|
+
|
|
44
47
|
**Next-step routing on completion:**
|
|
45
48
|
- All tests pass → `/quality-sync` (update codebase docs)
|
|
46
49
|
- Test failures after refactor → `/quality-debug {scope}`
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
{"name": "maestro-ralph", "command": "/maestro-ralph", "category": "ralph", "description": "Ralph 引擎 — 自适应生命周期决策节点管理", "source": "../../commands/maestro-ralph.md"},
|
|
28
28
|
{"name": "maestro-ralph-execute", "command": "/maestro-ralph-execute", "category": "ralph", "description": "Ralph 执行 — 运行自适应决策链", "source": "../../commands/maestro-ralph-execute.md"},
|
|
29
29
|
{"name": "maestro-learn", "command": "/maestro-learn", "category": "core", "description": "学习 — 从执行中提取知识和模式", "source": "../../commands/maestro-learn.md"},
|
|
30
|
-
{"name": "maestro-
|
|
30
|
+
{"name": "maestro-impeccable", "command": "/maestro-impeccable", "category": "ui", "description": "UI 生产 — 设计系统生成 + impeccable 链式编排 + 质量门控", "source": "../../commands/maestro-impeccable.md"},
|
|
31
31
|
{"name": "maestro-ui-codify", "command": "/maestro-ui-codify", "category": "ui", "description": "UI 固化 — 将设计产出转化为知识资产", "source": "../../commands/maestro-ui-codify.md"},
|
|
32
32
|
{"name": "maestro-update", "command": "/maestro-update", "category": "core", "description": "版本更新 — 检查并安装最新版本", "source": "../../commands/maestro-update.md"},
|
|
33
33
|
{"name": "maestro-tools-register", "command": "/maestro-tools-register", "category": "tools", "description": "MCP 工具注册 — 注册外部工具到 Maestro", "source": "../../commands/maestro-tools-register.md"},
|
|
@@ -62,7 +62,7 @@ const knownCommands = [
|
|
|
62
62
|
"brainstorm", "quick", "overlay", "amend", "fork", "merge", "collab",
|
|
63
63
|
"milestone-audit", "milestone-complete", "milestone-release",
|
|
64
64
|
"composer", "player", "ralph", "ralph-execute", "learn",
|
|
65
|
-
"
|
|
65
|
+
"impeccable", "ui-codify", "update",
|
|
66
66
|
"tools-register", "tools-execute",
|
|
67
67
|
"issue", "issue-discover", "knowhow", "knowhow-capture",
|
|
68
68
|
"status", "wiki", "harvest", "codebase-refresh", "codebase-rebuild",
|
|
@@ -137,39 +137,81 @@ S_FALLBACK:
|
|
|
137
137
|
|
|
138
138
|
If matched, skip to chain resolution.
|
|
139
139
|
|
|
140
|
-
**Layer 2:
|
|
140
|
+
**Layer 2: Semantic intent matching**
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
Directly match user intent to the best `task_type` (maps to chain in Chain Map). Use LLM semantic understanding — no rigid keyword lookup.
|
|
143
|
+
|
|
144
|
+
Extract:
|
|
143
145
|
```json
|
|
144
146
|
{
|
|
145
|
-
"
|
|
146
|
-
"object": "<feature|bug|issue|code|test|spec|phase|milestone|doc|performance|security|ui|memory|codebase|config>",
|
|
147
|
+
"task_type": "<from chain catalog below>",
|
|
147
148
|
"scope": "<module/file/area or null>",
|
|
148
|
-
"issue_id": "<ISS-XXXXXXXX-NNN
|
|
149
|
-
"phase_ref": "<integer
|
|
149
|
+
"issue_id": "<ISS-XXXXXXXX-NNN if mentioned, else null>",
|
|
150
|
+
"phase_ref": "<integer if mentioned, else null>",
|
|
150
151
|
"urgency": "<low|normal|high>"
|
|
151
152
|
}
|
|
152
153
|
```
|
|
153
154
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
|
161
|
-
|
|
162
|
-
|
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
|
|
172
|
-
|
|
155
|
+
**Chain catalog — select by best semantic fit:**
|
|
156
|
+
|
|
157
|
+
| task_type | When user intent is about... |
|
|
158
|
+
|-----------|---------------------------|
|
|
159
|
+
| `quick` | Simple/small task, add a feature, quick change |
|
|
160
|
+
| `plan` | Plan, design, architect a phase |
|
|
161
|
+
| `execute` | Implement, develop, code a phase |
|
|
162
|
+
| `analyze` | Understand, investigate, evaluate code |
|
|
163
|
+
| `verify` | Check goals met, validate results |
|
|
164
|
+
| `review` | Code quality review |
|
|
165
|
+
| `test` | Run or create tests, UAT |
|
|
166
|
+
| `test_gen` | Generate tests for coverage gaps |
|
|
167
|
+
| `debug` | Diagnose, troubleshoot, fix broken behavior |
|
|
168
|
+
| `refactor` | Restructure, clean up, reduce tech debt |
|
|
169
|
+
| `init` | Initialize project |
|
|
170
|
+
| `sync` | Update/sync documentation |
|
|
171
|
+
| `retrospective` | Phase review, post-mortem, 复盘 |
|
|
172
|
+
| `learn` | Capture insights, record learnings |
|
|
173
|
+
| `release` | Publish, ship, tag version |
|
|
174
|
+
| `amend` | Revise workflow commands |
|
|
175
|
+
| `compose` | Design/compose reusable workflows |
|
|
176
|
+
| `overlay` | Create/edit command overlays |
|
|
177
|
+
| `update` | Update maestro itself |
|
|
178
|
+
| `harvest` | Extract knowledge from artifacts |
|
|
179
|
+
| `wiki` | Manage wiki graph |
|
|
180
|
+
| `knowhow` | Manage knowhow entries |
|
|
181
|
+
| `ui_design` | UI design, build new UI |
|
|
182
|
+
| `issue` | Issue CRUD — create, list, close, query |
|
|
183
|
+
| `issue_discover` | Discover/find issues in codebase |
|
|
184
|
+
| `issue_analyze` | Analyze a specific issue |
|
|
185
|
+
| `issue_plan` | Plan fix for an issue |
|
|
186
|
+
| `issue_execute` | Fix issue end-to-end (auto-upgrades to issue-full) |
|
|
187
|
+
| `feature` | Standard feature: plan→execute→verify |
|
|
188
|
+
| `full-lifecycle` | Complete phase: plan→execute→verify→review→test→audit→complete |
|
|
189
|
+
| `brainstorm-driven` | Start from exploration/brainstorm |
|
|
190
|
+
| `spec-driven` | From spec/requirements (heavy, with init) |
|
|
191
|
+
| `roadmap-driven` | From requirements (light, with init) |
|
|
192
|
+
| `analyze-plan-execute` | Fast track: analyze→plan→execute |
|
|
193
|
+
| `execute-verify` | Resume after planning |
|
|
194
|
+
| `review-fix` | Fix review-blocked issues |
|
|
195
|
+
| `quality-loop` | Full quality improvement cycle |
|
|
196
|
+
| `quality-loop-partial` | Partial quality fix |
|
|
197
|
+
| `quality-fix` | Analyze gaps→plan→execute→verify |
|
|
198
|
+
| `deploy` | Verify then release |
|
|
199
|
+
| `milestone-close` | Close/transition milestone |
|
|
200
|
+
| `milestone-release` | Release milestone with version tag |
|
|
201
|
+
| `phase_transition` | Transition phase: audit→complete |
|
|
202
|
+
| `next-milestone` | Advance to next milestone |
|
|
203
|
+
| `state_continue` | Continue from current project state |
|
|
204
|
+
|
|
205
|
+
**Selection priorities:**
|
|
206
|
+
1. `issue_id` present → prefer issue chains
|
|
207
|
+
2. UI/design/界面/页面/原型 → prefer `ui_design`
|
|
208
|
+
3. Multiple lifecycle steps implied → prefer multi-step chains
|
|
209
|
+
4. Single specific action → prefer single-step chains
|
|
210
|
+
5. "问题" describing broken behavior → `debug`; tracked item with ISS-ID → `issue`; ambiguous → `debug`
|
|
211
|
+
6. Simple task, no lifecycle context → `quick`
|
|
212
|
+
7. Global fallback → `quick`
|
|
213
|
+
|
|
214
|
+
**Clarity scoring**: 3=task_type+scope+phase, 2=task_type+scope, 1=task_type only, 0=empty.
|
|
173
215
|
If `clarity < 2` and not `auto_mode` → transition to A_CLARIFY_INTENT.
|
|
174
216
|
|
|
175
217
|
**Layer 4: State-based routing** (when `taskType === 'state_continue'`)
|
|
@@ -261,7 +303,7 @@ Read `.workflow/state.json` and route by condition:
|
|
|
261
303
|
| `status` | `manage-status` |
|
|
262
304
|
| `init` | `maestro-init` |
|
|
263
305
|
| `analyze` | `maestro-analyze {phase}` |
|
|
264
|
-
| `ui_design` | `maestro-
|
|
306
|
+
| `ui_design` | `maestro-impeccable build "{phase}"` |
|
|
265
307
|
| `plan` | `maestro-plan {phase}` |
|
|
266
308
|
| `execute` | `maestro-execute {phase}` |
|
|
267
309
|
| `verify` | `maestro-verify {phase}` |
|
|
@@ -314,7 +356,7 @@ Read `.workflow/state.json` and route by condition:
|
|
|
314
356
|
| `deploy` | maestro-verify → maestro-milestone-release |
|
|
315
357
|
| `spec-driven` | maestro-init → [B] maestro-roadmap --mode full → [B] maestro-plan → [B] maestro-execute → maestro-verify |
|
|
316
358
|
| `brainstorm-driven` | [B] maestro-brainstorm → [B] maestro-plan → [B] maestro-execute → maestro-verify |
|
|
317
|
-
| `ui-
|
|
359
|
+
| `ui-craft-build` | maestro-impeccable build → [B] maestro-plan → [B] maestro-execute → maestro-verify |
|
|
318
360
|
| `roadmap-driven` | maestro-init → [B] maestro-roadmap → [B] maestro-plan → [B] maestro-execute → maestro-verify |
|
|
319
361
|
| `next-milestone` | [B] maestro-roadmap → [B] maestro-plan → [B] maestro-execute → maestro-verify |
|
|
320
362
|
| `full-lifecycle` | [B] maestro-plan → [B] maestro-execute → maestro-verify → quality-review → quality-test → maestro-milestone-audit → maestro-milestone-complete |
|
|
@@ -341,7 +383,7 @@ Read `.workflow/state.json` and route by condition:
|
|
|
341
383
|
|
|
342
384
|
| Skill | Flag |
|
|
343
385
|
|-------|------|
|
|
344
|
-
| maestro-init, maestro-analyze, maestro-brainstorm, maestro-
|
|
386
|
+
| maestro-init, maestro-analyze, maestro-brainstorm, maestro-impeccable, maestro-roadmap | `-y` |
|
|
345
387
|
| maestro-plan, maestro-execute, maestro-milestone-complete | `-y` |
|
|
346
388
|
| quality-auto-test, quality-retrospective | `-y` |
|
|
347
389
|
| quality-test | `-y --auto-fix` |
|
|
@@ -49,6 +49,7 @@ S_ROLES — 选择 roles(-y auto / interactive) PERSIST: —
|
|
|
49
49
|
S_CSV_GEN — 生成 tasks.csv PERSIST: tasks.csv
|
|
50
50
|
S_WAVE_1 — Guidance Spec (single agent) PERSIST: guidance-specification.md
|
|
51
51
|
S_CHECK_1 — Checkpoint: 用户审阅 guidance(-y 跳过) PERSIST: —
|
|
52
|
+
S_DESIGN — 视觉风格确定 (impeccable teach + explore) PERSIST: DESIGN.md
|
|
52
53
|
S_WAVE_2 — Role Analysis (parallel spawn) PERSIST: role analyses
|
|
53
54
|
S_CHECK_2 — Checkpoint: 用户审阅 roles(-y 跳过) PERSIST: —
|
|
54
55
|
S_WAVE_3 — Synthesis + Feature Index (single agent) PERSIST: synthesis artifacts
|
|
@@ -63,10 +64,15 @@ S_CSV_GEN → S_WAVE_1 DO: generate tasks.csv (1 guidance + N roles + 1 synthe
|
|
|
63
64
|
S_WAVE_1 → S_CHECK_1 WHEN: completed DO: spawn wave-1, merge results, read guidance-spec
|
|
64
65
|
S_WAVE_1 → END WHEN: failed DO: abort pipeline
|
|
65
66
|
|
|
66
|
-
S_CHECK_1 →
|
|
67
|
+
S_CHECK_1 → S_DESIGN WHEN: (-y OR user "Proceed") AND ui-designer in selected_roles
|
|
68
|
+
S_CHECK_1 → S_WAVE_2 WHEN: (-y OR user "Proceed") AND ui-designer NOT in selected_roles
|
|
67
69
|
S_CHECK_1 → S_CHECK_1 WHEN: user "Revise" DO: edit guidance-spec, re-display
|
|
68
70
|
S_CHECK_1 → END WHEN: user "Abort"
|
|
69
71
|
|
|
72
|
+
S_DESIGN → S_WAVE_2 WHEN: DESIGN.md exists OR explore completed DO: A_DESIGN_EXPLORE
|
|
73
|
+
S_DESIGN → S_WAVE_2 WHEN: DESIGN.md already exists (skip explore)
|
|
74
|
+
S_DESIGN → S_WAVE_2 WHEN: explore failed → W004 → continue without
|
|
75
|
+
|
|
70
76
|
S_WAVE_2 → S_CHECK_2 DO: spawn wave-2 (parallel), merge results
|
|
71
77
|
S_WAVE_2 → S_WAVE_3 WHEN: all failed DO: skip synthesis
|
|
72
78
|
|
|
@@ -88,13 +94,24 @@ S_AGGREGATE → END DO: A_AGGREGATE
|
|
|
88
94
|
|
|
89
95
|
**Synthesis (W3)**: Cross-role consensus/conflicts/unique → conflict tags [RESOLVED]/[SUGGESTED]/[UNRESOLVED] → feature-specs or synthesis-specification.md → feature-index.json + synthesis-changelog.md. Four-layer: Direct Reference → Structured Extraction → Conflict Distillation → Cross-Feature Annotation.
|
|
90
96
|
|
|
97
|
+
### A_DESIGN_EXPLORE
|
|
98
|
+
|
|
99
|
+
When ui-designer is among selected roles, establish visual direction before Wave 2:
|
|
100
|
+
|
|
101
|
+
1. If `.workflow/impeccable/PRODUCT.md` missing → run `$maestro-impeccable teach`
|
|
102
|
+
2. If `.workflow/impeccable/DESIGN.md` missing → run `$maestro-impeccable explore`
|
|
103
|
+
3. If both already exist → skip (visual direction already locked)
|
|
104
|
+
|
|
105
|
+
explore generates multi-style HTML prototypes, visual comparison, user selection/mix, and produces DESIGN.md.
|
|
106
|
+
ui-designer agents in Wave 2 then focus on UX analysis only (interaction flows, state design), not visual styling.
|
|
107
|
+
|
|
91
108
|
### A_AGGREGATE
|
|
92
109
|
|
|
93
110
|
1. Export results.csv
|
|
94
111
|
2. Generate context.md (summary, guidance, per-role findings, synthesis, feature index, next steps)
|
|
95
112
|
3. Confidence scoring: 5 dimensions (role_coverage, cross_role_consistency, feature_completeness, spec_quality, design_feasibility). Quality gate: >3 UNRESOLVED → warn.
|
|
96
113
|
4. Copy artifacts to target .brainstorming/
|
|
97
|
-
5. Next-step routing: UI features detected → maestro-
|
|
114
|
+
5. Next-step routing: DESIGN.md established → `maestro-impeccable build <feature>`; else UI features detected → `maestro-impeccable build <feature>`; else → maestro-analyze / maestro-plan / maestro-roadmap
|
|
98
115
|
|
|
99
116
|
</actions>
|
|
100
117
|
</state_machine>
|
|
@@ -50,6 +50,11 @@ $ARGUMENTS — natural language workflow description, or flags.
|
|
|
50
50
|
|
|
51
51
|
**Node catalog**: Read `~/.maestro/templates/workflows/specs/node-catalog.md` at Phase 2 (deferred).
|
|
52
52
|
**Template schema**: Read `~/.maestro/templates/workflows/specs/template-schema.md` at Phase 5 (deferred).
|
|
53
|
+
|
|
54
|
+
### Pre-load specs
|
|
55
|
+
1. **Architecture specs**: Run `maestro spec load --category arch` to load architecture constraints. Use as context for node resolution — ensures workflow design respects documented patterns.
|
|
56
|
+
2. **Coding specs**: Run `maestro spec load --category coding` to load coding conventions. Informs executor argument defaults and context injection.
|
|
57
|
+
3. Optional — proceed without if unavailable.
|
|
53
58
|
</context>
|
|
54
59
|
|
|
55
60
|
<execution>
|