pi-maestro-flow 0.2.0

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.
Files changed (179) hide show
  1. package/README.md +124 -0
  2. package/agents/aggregator.md +27 -0
  3. package/agents/cli-explore-agent.md +188 -0
  4. package/agents/cross-role-reviewer.md +171 -0
  5. package/agents/delegate.md +19 -0
  6. package/agents/explorer.md +23 -0
  7. package/agents/impeccable-agent.md +99 -0
  8. package/agents/ralph-executor.md +81 -0
  9. package/agents/reference.md +24 -0
  10. package/agents/role-design-author.md +220 -0
  11. package/agents/team-supervisor.md +143 -0
  12. package/agents/team-worker.md +237 -0
  13. package/agents/ui-design-agent.md +270 -0
  14. package/agents/workflow-analyzer.md +116 -0
  15. package/agents/workflow-codebase-mapper.md +77 -0
  16. package/agents/workflow-collab-planner.md +147 -0
  17. package/agents/workflow-debugger.md +104 -0
  18. package/agents/workflow-executor.md +133 -0
  19. package/agents/workflow-external-researcher.md +86 -0
  20. package/agents/workflow-integration-checker.md +83 -0
  21. package/agents/workflow-nyquist-auditor.md +85 -0
  22. package/agents/workflow-phase-researcher.md +85 -0
  23. package/agents/workflow-plan-checker.md +100 -0
  24. package/agents/workflow-planner.md +200 -0
  25. package/agents/workflow-project-researcher.md +74 -0
  26. package/agents/workflow-research-synthesizer.md +70 -0
  27. package/agents/workflow-reviewer.md +82 -0
  28. package/agents/workflow-roadmapper.md +81 -0
  29. package/agents/workflow-verifier.md +120 -0
  30. package/package.json +58 -0
  31. package/skills/codify-to-knowhow/SKILL.md +167 -0
  32. package/skills/delegation-check/SKILL.md +297 -0
  33. package/skills/domain-add/SKILL.md +75 -0
  34. package/skills/insight-challenge/SKILL.md +226 -0
  35. package/skills/learn-decompose/SKILL.md +124 -0
  36. package/skills/learn-follow/SKILL.md +163 -0
  37. package/skills/learn-investigate/SKILL.md +160 -0
  38. package/skills/learn-second-opinion/SKILL.md +128 -0
  39. package/skills/maestro/SKILL.md +239 -0
  40. package/skills/maestro-amend/SKILL.md +169 -0
  41. package/skills/maestro-analyze/SKILL.md +173 -0
  42. package/skills/maestro-blueprint/SKILL.md +159 -0
  43. package/skills/maestro-brainstorm/SKILL.md +193 -0
  44. package/skills/maestro-collab/SKILL.md +181 -0
  45. package/skills/maestro-companion/SKILL.md +536 -0
  46. package/skills/maestro-composer/SKILL.md +192 -0
  47. package/skills/maestro-execute/SKILL.md +193 -0
  48. package/skills/maestro-fork/SKILL.md +104 -0
  49. package/skills/maestro-grill/SKILL.md +151 -0
  50. package/skills/maestro-guard/SKILL.md +124 -0
  51. package/skills/maestro-help/SKILL.md +328 -0
  52. package/skills/maestro-impeccable/SKILL.md +302 -0
  53. package/skills/maestro-init/SKILL.md +151 -0
  54. package/skills/maestro-merge/SKILL.md +90 -0
  55. package/skills/maestro-milestone-audit/SKILL.md +117 -0
  56. package/skills/maestro-milestone-complete/SKILL.md +133 -0
  57. package/skills/maestro-milestone-release/SKILL.md +131 -0
  58. package/skills/maestro-next/SKILL.md +269 -0
  59. package/skills/maestro-overlay/SKILL.md +203 -0
  60. package/skills/maestro-plan/SKILL.md +194 -0
  61. package/skills/maestro-player/SKILL.md +184 -0
  62. package/skills/maestro-quick/SKILL.md +117 -0
  63. package/skills/maestro-ralph/SKILL.md +905 -0
  64. package/skills/maestro-ralph-cli/SKILL.md +976 -0
  65. package/skills/maestro-ralph-cli-execute/SKILL.md +229 -0
  66. package/skills/maestro-ralph-execute/SKILL.md +409 -0
  67. package/skills/maestro-ralph-v2/SKILL.md +1198 -0
  68. package/skills/maestro-roadmap/SKILL.md +157 -0
  69. package/skills/maestro-swarm-workflow/SKILL.md +272 -0
  70. package/skills/maestro-tools-execute/SKILL.md +143 -0
  71. package/skills/maestro-tools-register/SKILL.md +192 -0
  72. package/skills/maestro-ui-codify/SKILL.md +127 -0
  73. package/skills/maestro-universal-workflow/SKILL.md +622 -0
  74. package/skills/maestro-update/SKILL.md +156 -0
  75. package/skills/manage-codebase-rebuild/SKILL.md +111 -0
  76. package/skills/manage-drift-realign/SKILL.md +159 -0
  77. package/skills/manage-harvest/SKILL.md +121 -0
  78. package/skills/manage-issue/SKILL.md +88 -0
  79. package/skills/manage-issue-discover/SKILL.md +104 -0
  80. package/skills/manage-kg-extractors/SKILL.md +147 -0
  81. package/skills/manage-knowhow/SKILL.md +102 -0
  82. package/skills/manage-knowhow-capture/SKILL.md +109 -0
  83. package/skills/manage-knowledge-audit/SKILL.md +147 -0
  84. package/skills/manage-status/SKILL.md +80 -0
  85. package/skills/manage-wiki/SKILL.md +104 -0
  86. package/skills/odyssey-debug/SKILL.md +344 -0
  87. package/skills/odyssey-improve/SKILL.md +423 -0
  88. package/skills/odyssey-planex/SKILL.md +542 -0
  89. package/skills/odyssey-review-test-fix/SKILL.md +392 -0
  90. package/skills/odyssey-ui/SKILL.md +388 -0
  91. package/skills/prompt-generator/SKILL.md +470 -0
  92. package/skills/quality-auto-test/SKILL.md +168 -0
  93. package/skills/quality-debug/SKILL.md +176 -0
  94. package/skills/quality-refactor/SKILL.md +108 -0
  95. package/skills/quality-retrospective/SKILL.md +134 -0
  96. package/skills/quality-review/SKILL.md +169 -0
  97. package/skills/quality-sync/SKILL.md +90 -0
  98. package/skills/quality-test/SKILL.md +183 -0
  99. package/skills/scholar-anti-ai-writing/SKILL.md +173 -0
  100. package/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -0
  101. package/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -0
  102. package/skills/scholar-citation-verify/SKILL.md +166 -0
  103. package/skills/scholar-citation-verify/references/api-usage.md +372 -0
  104. package/skills/scholar-citation-verify/references/common-errors.md +384 -0
  105. package/skills/scholar-citation-verify/references/verification-rules.md +399 -0
  106. package/skills/scholar-experiment/SKILL.md +321 -0
  107. package/skills/scholar-ideation/SKILL.md +288 -0
  108. package/skills/scholar-latex-organizer/SKILL.md +186 -0
  109. package/skills/scholar-publish/SKILL.md +220 -0
  110. package/skills/scholar-rebuttal-pro/README.md +313 -0
  111. package/skills/scholar-rebuttal-pro/SKILL.md +511 -0
  112. package/skills/scholar-review/SKILL.md +227 -0
  113. package/skills/scholar-thesis-docx/README.md +111 -0
  114. package/skills/scholar-thesis-docx/README_EN.md +108 -0
  115. package/skills/scholar-thesis-docx/SKILL.md +212 -0
  116. package/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -0
  117. package/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -0
  118. package/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -0
  119. package/skills/scholar-thesis-docx/references/script-usage.md +157 -0
  120. package/skills/scholar-thesis-docx/scripts/audit_docx_ooxml.py +429 -0
  121. package/skills/scholar-thesis-docx/scripts/check_word_com.ps1 +50 -0
  122. package/skills/scholar-thesis-docx/scripts/export_word_pdf.ps1 +62 -0
  123. package/skills/scholar-thesis-docx/scripts/normalize_word_styles.ps1 +498 -0
  124. package/skills/scholar-thesis-docx/scripts/render_mermaid_figure.ps1 +148 -0
  125. package/skills/scholar-writing/SKILL.md +296 -0
  126. package/skills/security-audit/SKILL.md +244 -0
  127. package/skills/skill-generator/SKILL.md +472 -0
  128. package/skills/skill-iter-tune/SKILL.md +382 -0
  129. package/skills/skill-simplify/SKILL.md +63 -0
  130. package/skills/skill-tuning/SKILL.md +174 -0
  131. package/skills/spec-add/SKILL.md +105 -0
  132. package/skills/spec-load/SKILL.md +98 -0
  133. package/skills/spec-remove/SKILL.md +74 -0
  134. package/skills/spec-setup/SKILL.md +75 -0
  135. package/skills/team-adversarial-swarm/SKILL.md +233 -0
  136. package/skills/team-adversarial-swarm/scripts/__pycache__/pheromone.cpython-313.pyc +0 -0
  137. package/skills/team-adversarial-swarm/scripts/__pycache__/scoring.cpython-313.pyc +0 -0
  138. package/skills/team-adversarial-swarm/scripts/aco.py +473 -0
  139. package/skills/team-adversarial-swarm/scripts/pheromone.py +144 -0
  140. package/skills/team-adversarial-swarm/scripts/scoring.py +92 -0
  141. package/skills/team-adversarial-swarm/scripts/test_aco.py +475 -0
  142. package/skills/team-arch-opt/SKILL.md +158 -0
  143. package/skills/team-brainstorm/SKILL.md +171 -0
  144. package/skills/team-coordinate/SKILL.md +266 -0
  145. package/skills/team-designer/SKILL.md +160 -0
  146. package/skills/team-executor/SKILL.md +189 -0
  147. package/skills/team-frontend/SKILL.md +136 -0
  148. package/skills/team-frontend-debug/SKILL.md +198 -0
  149. package/skills/team-interactive-craft/SKILL.md +141 -0
  150. package/skills/team-issue/SKILL.md +171 -0
  151. package/skills/team-lifecycle-v4/SKILL.md +209 -0
  152. package/skills/team-motion-design/SKILL.md +142 -0
  153. package/skills/team-perf-opt/SKILL.md +175 -0
  154. package/skills/team-planex/SKILL.md +137 -0
  155. package/skills/team-quality-assurance/SKILL.md +147 -0
  156. package/skills/team-review/SKILL.md +147 -0
  157. package/skills/team-roadmap-dev/SKILL.md +169 -0
  158. package/skills/team-swarm/SKILL.md +178 -0
  159. package/skills/team-swarm/scripts/aco.py +473 -0
  160. package/skills/team-swarm/scripts/pheromone.py +144 -0
  161. package/skills/team-swarm/scripts/scoring.py +92 -0
  162. package/skills/team-swarm/scripts/test_aco.py +475 -0
  163. package/skills/team-tech-debt/SKILL.md +128 -0
  164. package/skills/team-testing/SKILL.md +143 -0
  165. package/skills/team-ui-polish/SKILL.md +141 -0
  166. package/skills/team-uidesign/SKILL.md +144 -0
  167. package/skills/team-ultra-analyze/SKILL.md +173 -0
  168. package/skills/team-ux-improve/SKILL.md +151 -0
  169. package/skills/team-visual-a11y/SKILL.md +156 -0
  170. package/skills/workflow-skill-designer/SKILL.md +496 -0
  171. package/src/extension/index.ts +222 -0
  172. package/src/extension/schemas.ts +131 -0
  173. package/src/providers/cli-tools-loader.ts +74 -0
  174. package/src/providers/provider-registry.ts +130 -0
  175. package/src/tools/delegate.ts +85 -0
  176. package/src/tools/explore.ts +134 -0
  177. package/src/tools/moa.ts +213 -0
  178. package/src/tools/status.ts +99 -0
  179. package/src/tools/wait.ts +166 -0
@@ -0,0 +1,128 @@
1
+ ---
2
+ name: team-tech-debt
3
+ description: "Unified team skill for tech debt identification and remediation. Scans codebase for tech debt, assesses severity, plans and executes fixes with validation. Uses team-worker agent architecture with roles/ for domain logic. Coordinator orchestrates pipeline, workers are team-worker agents. Triggers on \"team tech debt\"."
4
+ allowed-tools: Agent AskUserQuestion Read Write Edit Bash Glob Grep TaskList TaskGet TaskUpdate TaskCreate TeamCreate TeamDelete SendMessage mcp__maestro__read_file mcp__maestro__write_file mcp__maestro__edit_file mcp__maestro__team_msg
5
+ ---
6
+
7
+ # Team Tech Debt
8
+
9
+ Systematic tech debt governance: scan -> assess -> plan -> fix -> validate. Built on **team-worker agent architecture** — all worker roles share a single agent definition with role-specific Phase 2-4 loaded from `roles/<role>/role.md`.
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ Skill(skill="team-tech-debt", args="task description")
15
+ |
16
+ SKILL.md (this file) = Router
17
+ |
18
+ +--------------+--------------+
19
+ | |
20
+ no --role flag --role <name>
21
+ | |
22
+ Coordinator Worker
23
+ roles/coordinator/role.md roles/<name>/role.md
24
+ |
25
+ +-- analyze → dispatch → spawn workers → STOP
26
+ |
27
+ +-------+-------+-------+-------+
28
+ v v v v v
29
+ [team-worker agents, each loads roles/<role>/role.md]
30
+ scanner assessor planner executor validator
31
+ ```
32
+
33
+ ## Role Registry
34
+
35
+ | Role | Path | Prefix | Inner Loop |
36
+ |------|------|--------|------------|
37
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
38
+ | scanner | [roles/scanner/role.md](roles/scanner/role.md) | TDSCAN-* | false |
39
+ | assessor | [roles/assessor/role.md](roles/assessor/role.md) | TDEVAL-* | false |
40
+ | planner | [roles/planner/role.md](roles/planner/role.md) | TDPLAN-* | false |
41
+ | executor | [roles/executor/role.md](roles/executor/role.md) | TDFIX-* | true |
42
+ | validator | [roles/validator/role.md](roles/validator/role.md) | TDVAL-* | false |
43
+
44
+ ## Role Router
45
+
46
+ Parse `$ARGUMENTS`:
47
+ - Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
48
+ - No `--role` → `@roles/coordinator/role.md`, execute entry router
49
+
50
+ ## Shared Constants
51
+
52
+ - **Session prefix**: `TD`
53
+ - **Session path**: `.workflow/.team/TD-<slug>-<date>/`
54
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
55
+ - **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
56
+ - **Max GC rounds**: 3
57
+
58
+ ## Worker Spawn Template
59
+
60
+ Coordinator spawns workers using this template:
61
+
62
+ ```
63
+ Agent({
64
+ subagent_type: "team-worker",
65
+ description: "Spawn <role> worker for <task-id>",
66
+ team_name: "tech-debt",
67
+ name: "<role>",
68
+ run_in_background: true,
69
+ prompt: `## Role Assignment
70
+ role: <role>
71
+ role_spec: <skill_root>/roles/<role>/role.md
72
+ session: <session-folder>
73
+ session_id: <session-id>
74
+ team_name: tech-debt
75
+ requirement: <task-description>
76
+ inner_loop: <true|false>
77
+
78
+ ## Progress Milestones
79
+ session_id: <session-id>
80
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
81
+ Report blockers immediately via team_msg type="blocker".
82
+ Report completion via team_msg type="task_complete" after final SendMessage.
83
+
84
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
85
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
86
+ })
87
+ ```
88
+
89
+ ## User Commands
90
+
91
+ | Command | Action |
92
+ |---------|--------|
93
+ | `check` / `status` | View execution status graph |
94
+ | `resume` / `continue` | Advance to next step |
95
+ | `--mode=scan` | Run scan-only pipeline (TDSCAN + TDEVAL) |
96
+ | `--mode=targeted` | Run targeted pipeline (TDPLAN + TDFIX + TDVAL) |
97
+ | `--mode=remediate` | Run full pipeline (default) |
98
+ | `-y` / `--yes` | Skip confirmations |
99
+
100
+ ## Specs Reference
101
+
102
+ - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
103
+
104
+ ## Session Directory
105
+
106
+ ```
107
+ .workflow/.team/TD-<slug>-<date>/
108
+ ├── .msg/
109
+ │ ├── messages.jsonl # Team message bus
110
+ │ └── meta.json # Pipeline config + role state snapshot
111
+ ├── scan/ # Scanner output
112
+ ├── assessment/ # Assessor output
113
+ ├── plan/ # Planner output
114
+ ├── fixes/ # Executor output
115
+ ├── validation/ # Validator output
116
+ └── wisdom/ # Cross-task knowledge
117
+ ```
118
+
119
+ ## Error Handling
120
+
121
+ | Scenario | Resolution |
122
+ |----------|------------|
123
+ | Unknown command | Error with available command list |
124
+ | Role not found | Error with role registry |
125
+ | Session corruption | Attempt recovery, fallback to manual |
126
+ | Fast-advance conflict | Coordinator reconciles on next callback |
127
+ | Completion action fails | Default to Keep Active |
128
+ | Scanner finds no debt | Report clean codebase, skip to summary |
@@ -0,0 +1,143 @@
1
+ ---
2
+ name: team-testing
3
+ description: "Unified team skill for testing team. Progressive test coverage through Generator-Critic loops, shared memory, and dynamic layer selection. Triggers on \"team testing\"."
4
+ allowed-tools: TeamCreate TeamDelete SendMessage TaskCreate TaskUpdate TaskList TaskGet Agent AskUserQuestion Read Write Edit Bash Glob Grep mcp__maestro__team_msg
5
+ ---
6
+
7
+ # Team Testing
8
+
9
+ Orchestrate multi-agent test pipeline: strategist -> generator -> executor -> analyst. Progressive layer coverage (L1/L2/L3) with Generator-Critic loops for coverage convergence.
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ Skill(skill="team-testing", args="task description")
15
+ |
16
+ SKILL.md (this file) = Router
17
+ |
18
+ +--------------+--------------+
19
+ | |
20
+ no --role flag --role <name>
21
+ | |
22
+ Coordinator Worker
23
+ roles/coordinator/role.md roles/<name>/role.md
24
+ |
25
+ +-- analyze -> dispatch -> spawn workers -> STOP
26
+ |
27
+ +-------+-------+-------+-------+
28
+ v v v v
29
+ [strat] [gen] [exec] [analyst]
30
+ team-worker agents, each loads roles/<role>/role.md
31
+ ```
32
+
33
+ ## Role Registry
34
+
35
+ | Role | Path | Prefix | Inner Loop |
36
+ |------|------|--------|------------|
37
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
38
+ | strategist | [roles/strategist/role.md](roles/strategist/role.md) | STRATEGY-* | false |
39
+ | generator | [roles/generator/role.md](roles/generator/role.md) | TESTGEN-* | true |
40
+ | executor | [roles/executor/role.md](roles/executor/role.md) | TESTRUN-* | true |
41
+ | analyst | [roles/analyst/role.md](roles/analyst/role.md) | TESTANA-* | false |
42
+
43
+ ## Role Router
44
+
45
+ Parse `$ARGUMENTS`:
46
+ - Has `--role <name>` -> Read `roles/<name>/role.md`, execute Phase 2-4
47
+ - No `--role` -> `@roles/coordinator/role.md`, execute entry router
48
+
49
+ ## Shared Constants
50
+
51
+ - **Session prefix**: `TST`
52
+ - **Session path**: `.workflow/.team/TST-<slug>-<date>/`
53
+ - **Team name**: `testing`
54
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
55
+ - **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
56
+
57
+ ## Worker Spawn Template
58
+
59
+ Coordinator spawns workers using this template:
60
+
61
+ ```
62
+ Agent({
63
+ subagent_type: "team-worker",
64
+ description: "Spawn <role> worker",
65
+ team_name: "testing",
66
+ name: "<role>",
67
+ run_in_background: true,
68
+ prompt: `## Role Assignment
69
+ role: <role>
70
+ role_spec: <skill_root>/roles/<role>/role.md
71
+ session: <session-folder>
72
+ session_id: <session-id>
73
+ team_name: testing
74
+ requirement: <task-description>
75
+ inner_loop: <true|false>
76
+
77
+ ## Progress Milestones
78
+ session_id: <session-id>
79
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
80
+ Report blockers immediately via team_msg type="blocker".
81
+ Report completion via team_msg type="task_complete" after final SendMessage.
82
+
83
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
84
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
85
+ })
86
+ ```
87
+
88
+ ## User Commands
89
+
90
+ | Command | Action |
91
+ |---------|--------|
92
+ | `check` / `status` | View pipeline status graph |
93
+ | `resume` / `continue` | Advance to next step |
94
+ | `revise <TASK-ID>` | Revise specific task |
95
+ | `feedback <text>` | Inject feedback for revision |
96
+
97
+ ## Completion Action
98
+
99
+ When pipeline completes, coordinator presents:
100
+
101
+ ```
102
+ AskUserQuestion({
103
+ questions: [{
104
+ question: "Testing pipeline complete. What would you like to do?",
105
+ header: "Completion",
106
+ multiSelect: false,
107
+ options: [
108
+ { label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
109
+ { label: "Keep Active", description: "Keep session for follow-up work" },
110
+ { label: "Deepen Coverage", description: "Add more test layers or increase coverage targets" }
111
+ ]
112
+ }]
113
+ })
114
+ ```
115
+
116
+ ## Session Directory
117
+
118
+ ```
119
+ .workflow/.team/TST-<slug>-<date>/
120
+ ├── .msg/messages.jsonl # Team message bus
121
+ ├── .msg/meta.json # Session metadata
122
+ ├── wisdom/ # Cross-task knowledge
123
+ ├── strategy/ # Strategist output
124
+ ├── tests/ # Generator output (L1-unit/, L2-integration/, L3-e2e/)
125
+ ├── results/ # Executor output
126
+ └── analysis/ # Analyst output
127
+ ```
128
+
129
+ ## Specs Reference
130
+
131
+ - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
132
+ - [specs/team-config.json](specs/team-config.json) — Team configuration
133
+
134
+ ## Error Handling
135
+
136
+ | Scenario | Resolution |
137
+ |----------|------------|
138
+ | Unknown --role value | Error with available role list |
139
+ | Role not found | Error with expected path (roles/<name>/role.md) |
140
+ | CLI tool fails | Worker fallback to direct implementation |
141
+ | GC loop exceeded | Accept current coverage with warning |
142
+ | Fast-advance conflict | Coordinator reconciles on next callback |
143
+ | Completion action fails | Default to Keep Active |
@@ -0,0 +1,141 @@
1
+ ---
2
+ name: team-ui-polish
3
+ description: "Unified team skill for UI polish. Auto-discover and fix UI design issues using Impeccable design standards. Anti-AI-slop detection, color/typography/spacing quality, motion, interaction states, visual hierarchy. Uses team-worker agent architecture. Triggers on \"team ui polish\", \"ui polish\", \"design polish\"."
4
+ allowed-tools: Agent AskUserQuestion Read Write Edit Bash Glob Grep TaskList TaskGet TaskUpdate TaskCreate TeamCreate TeamDelete SendMessage mcp__maestro__read_file mcp__maestro__write_file mcp__maestro__edit_file mcp__maestro__team_msg mcp__chrome-devtools__evaluate_script mcp__chrome-devtools__take_screenshot mcp__chrome-devtools__navigate_page mcp__chrome-devtools__resize_page
5
+ ---
6
+
7
+ # Team UI Polish
8
+
9
+ Automatic UI quality improvement pipeline: scan -> diagnose -> optimize -> verify. Built on **team-worker agent architecture** -- all worker roles share a single agent definition with role-specific Phase 2-4 loaded from `roles/<role>/role.md`.
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ Skill(skill="team-ui-polish", args="task description")
15
+ |
16
+ SKILL.md (this file) = Router
17
+ |
18
+ +--------------+--------------+
19
+ | |
20
+ no --role flag --role <name>
21
+ | |
22
+ Coordinator Worker
23
+ roles/coordinator/role.md roles/<name>/role.md
24
+ |
25
+ +-- analyze -> dispatch -> spawn workers -> STOP
26
+ |
27
+ +-------+-------+-------+
28
+ v v v v
29
+ [team-worker agents, each loads roles/<role>/role.md]
30
+ scanner diagnostician optimizer <-> verifier (GC loop)
31
+ ```
32
+
33
+ ## Role Registry
34
+
35
+ | Role | Path | Prefix | Inner Loop |
36
+ |------|------|--------|------------|
37
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | -- | -- |
38
+ | scanner | [roles/scanner/role.md](roles/scanner/role.md) | SCAN-* | false |
39
+ | diagnostician | [roles/diagnostician/role.md](roles/diagnostician/role.md) | DIAG-* | false |
40
+ | optimizer | [roles/optimizer/role.md](roles/optimizer/role.md) | OPT-* | true |
41
+ | verifier | [roles/verifier/role.md](roles/verifier/role.md) | VERIFY-* | false |
42
+
43
+
44
+ ## Pre-load (coordinator, before dispatch)
45
+
46
+ 1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for module boundaries
47
+ 2. **Specs (ui)**: `maestro load --type spec --category ui` — load ui constraints as shared context
48
+ 3. **Specs (coding)**: `maestro load --type spec --category coding` — load coding constraints as shared context
49
+ 4. **Wiki knowledge**: `maestro search "UI polish design quality" --json` — top 5 entries as prior context
50
+ 5. All optional — proceed without if unavailable
51
+ ## Role Router
52
+
53
+ Parse `$ARGUMENTS`:
54
+ - Has `--role <name>` -> Read `roles/<name>/role.md`, execute Phase 2-4
55
+ - No `--role` -> `@roles/coordinator/role.md`, execute entry router
56
+
57
+ ## Shared Constants
58
+
59
+ - **Session prefix**: `UIP`
60
+ - **Session path**: `.workflow/.team/UIP-<slug>-<date>/`
61
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
62
+ - **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
63
+ - **Max GC rounds**: 2
64
+
65
+ ## Worker Spawn Template
66
+
67
+ Coordinator spawns workers using this template:
68
+
69
+ ```
70
+ Agent({
71
+ subagent_type: "team-worker",
72
+ description: "Spawn <role> worker for <task-id>",
73
+ team_name: "ui-polish",
74
+ name: "<role>",
75
+ run_in_background: true,
76
+ prompt: `## Role Assignment
77
+ role: <role>
78
+ role_spec: <skill_root>/roles/<role>/role.md
79
+ session: <session-folder>
80
+ session_id: <session-id>
81
+ team_name: ui-polish
82
+ requirement: <task-description>
83
+ inner_loop: <true|false>
84
+
85
+ ## Progress Milestones
86
+ session_id: <session-id>
87
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
88
+ Report blockers immediately via team_msg type="blocker".
89
+ Report completion via team_msg type="task_complete" after final SendMessage.
90
+
91
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
92
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
93
+ })
94
+ ```
95
+
96
+ ## User Commands
97
+
98
+ | Command | Action |
99
+ |---------|--------|
100
+ | `check` / `status` | View execution status graph |
101
+ | `resume` / `continue` | Advance to next step |
102
+
103
+ ## Specs Reference
104
+
105
+ - [specs/pipelines.md](specs/pipelines.md) -- Pipeline definitions and task registry
106
+ - [specs/team-config.json](specs/team-config.json) -- Team configuration
107
+ - [specs/anti-patterns.md](specs/anti-patterns.md) -- AI slop and design anti-pattern catalog
108
+ - [specs/design-standards.md](specs/design-standards.md) -- Impeccable positive design standards
109
+ - [specs/fix-strategies.md](specs/fix-strategies.md) -- Issue-to-fix mapping
110
+ - [specs/scoring-guide.md](specs/scoring-guide.md) -- Scoring rubric
111
+
112
+ ## Session Directory
113
+
114
+ ```
115
+ .workflow/.team/UIP-<slug>-<date>/
116
+ +-- .msg/
117
+ | +-- messages.jsonl # Team message bus
118
+ | +-- meta.json # Pipeline config + GC state
119
+ +-- scan/ # Scanner output
120
+ | +-- scan-report.md
121
+ +-- diagnosis/ # Diagnostician output
122
+ | +-- diagnosis-report.md
123
+ +-- optimization/ # Optimizer output
124
+ | +-- fix-log.md
125
+ +-- verification/ # Verifier output
126
+ | +-- verify-report.md
127
+ +-- evidence/ # Screenshots (before/after)
128
+ | +-- *.png
129
+ +-- wisdom/ # Cross-task knowledge
130
+ ```
131
+
132
+ ## Error Handling
133
+
134
+ | Scenario | Resolution |
135
+ |----------|------------|
136
+ | Unknown command | Error with available command list |
137
+ | Role not found | Error with role registry |
138
+ | Session corruption | Attempt recovery, fallback to manual |
139
+ | Fast-advance conflict | Coordinator reconciles on next callback |
140
+ | Completion action fails | Default to Keep Active |
141
+ | GC loop stuck > 2 rounds | Escalate to user: accept / retry / terminate |
@@ -0,0 +1,144 @@
1
+ ---
2
+ name: team-uidesign
3
+ description: "Unified team skill for UI design team. Research -> design tokens -> audit -> implementation. Uses team-worker agent architecture with roles/ for domain logic. Coordinator orchestrates dual-track pipeline with GC loops and sync points. Triggers on \"team ui design\", \"ui design team\"."
4
+ allowed-tools: Agent AskUserQuestion Read Write Edit Bash Glob Grep TaskList TaskGet TaskUpdate TaskCreate TeamCreate TeamDelete SendMessage mcp__maestro__read_file mcp__maestro__write_file mcp__maestro__edit_file mcp__maestro__team_msg
5
+ ---
6
+
7
+ # Team UI Design
8
+
9
+ Systematic UI design pipeline: research -> design tokens -> review -> implementation. Built on **team-worker agent architecture** — all worker roles share a single agent definition with role-specific Phase 2-4 loaded from `roles/<role>/role.md`.
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ Skill(skill="team-uidesign", args="task description")
15
+ |
16
+ SKILL.md (this file) = Router
17
+ |
18
+ +--------------+--------------+
19
+ | |
20
+ no --role flag --role <name>
21
+ | |
22
+ Coordinator Worker
23
+ roles/coordinator/role.md roles/<name>/role.md
24
+ |
25
+ +-- analyze → dispatch → spawn workers → STOP
26
+ |
27
+ +-------+-------+-------+-------+
28
+ v v v v
29
+ [team-worker agents, each loads roles/<role>/role.md]
30
+ researcher designer reviewer implementer
31
+ ```
32
+
33
+ ## Role Registry
34
+
35
+ | Role | Path | Prefix | Inner Loop |
36
+ |------|------|--------|------------|
37
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
38
+ | researcher | [roles/researcher/role.md](roles/researcher/role.md) | RESEARCH-* | false |
39
+ | designer | [roles/designer/role.md](roles/designer/role.md) | DESIGN-* | false |
40
+ | reviewer | [roles/reviewer/role.md](roles/reviewer/role.md) | AUDIT-* | false |
41
+ | implementer | [roles/implementer/role.md](roles/implementer/role.md) | BUILD-* | false |
42
+
43
+
44
+ ## Pre-load (coordinator, before dispatch)
45
+
46
+ 1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for module boundaries
47
+ 2. **Specs (ui)**: `maestro load --type spec --category ui` — load ui constraints as shared context
48
+ 3. **Wiki knowledge**: `maestro search "UI design tokens audit" --json` — top 5 entries as prior context
49
+ 4. All optional — proceed without if unavailable
50
+ ## Role Router
51
+
52
+ Parse `$ARGUMENTS`:
53
+ - Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
54
+ - No `--role` → `@roles/coordinator/role.md`, execute entry router
55
+
56
+ ## Shared Constants
57
+
58
+ - **Session prefix**: `UDS`
59
+ - **Session path**: `.workflow/.team/UDS-<slug>-<date>/`
60
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
61
+ - **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
62
+ - **Max GC rounds**: 2
63
+
64
+ ## Worker Spawn Template
65
+
66
+ Coordinator spawns workers using this template:
67
+
68
+ ```
69
+ Agent({
70
+ subagent_type: "team-worker",
71
+ description: "Spawn <role> worker for <task-id>",
72
+ team_name: "uidesign",
73
+ name: "<role>",
74
+ run_in_background: true,
75
+ prompt: `## Role Assignment
76
+ role: <role>
77
+ role_spec: <skill_root>/roles/<role>/role.md
78
+ session: <session-folder>
79
+ session_id: <session-id>
80
+ team_name: uidesign
81
+ requirement: <task-description>
82
+ inner_loop: false
83
+
84
+ ## Progress Milestones
85
+ session_id: <session-id>
86
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
87
+ Report blockers immediately via team_msg type="blocker".
88
+ Report completion via team_msg type="task_complete" after final SendMessage.
89
+
90
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
91
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
92
+ })
93
+ ```
94
+
95
+ ## User Commands
96
+
97
+ | Command | Action |
98
+ |---------|--------|
99
+ | `check` / `status` | View execution status graph |
100
+ | `resume` / `continue` | Advance to next step |
101
+
102
+ ## Specs Reference
103
+
104
+ - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
105
+ - [specs/design-standards.md](specs/design-standards.md) — Impeccable design standards (OKLCH, typography, spacing, motion, interaction)
106
+ - [specs/anti-patterns.md](specs/anti-patterns.md) — AI slop detection catalog (20 items)
107
+ - [specs/scoring-guide.md](specs/scoring-guide.md) — 8-dimension quality scoring rubric
108
+ - [specs/ux-writing.md](specs/ux-writing.md) — UX writing standards (labels, errors, empty states, voice)
109
+
110
+ ## Session Directory
111
+
112
+ ```
113
+ .workflow/.team/UDS-<slug>-<date>/
114
+ ├── .msg/
115
+ │ ├── messages.jsonl # Team message bus
116
+ │ └── meta.json # Pipeline config + GC state
117
+ ├── research/ # Researcher output
118
+ │ ├── design-system-analysis.json
119
+ │ ├── component-inventory.json
120
+ │ ├── accessibility-audit.json
121
+ │ ├── design-intelligence.json
122
+ │ └── visual-quality-baseline.json
123
+ ├── design/ # Designer output
124
+ │ ├── design-tokens.json
125
+ │ ├── component-specs/
126
+ │ └── layout-specs/
127
+ ├── audit/ # Reviewer output
128
+ │ └── audit-*.md
129
+ ├── build/ # Implementer output
130
+ │ ├── token-files/
131
+ │ └── component-files/
132
+ └── wisdom/ # Cross-task knowledge
133
+ ```
134
+
135
+ ## Error Handling
136
+
137
+ | Scenario | Resolution |
138
+ |----------|------------|
139
+ | Unknown command | Error with available command list |
140
+ | Role not found | Error with role registry |
141
+ | Session corruption | Attempt recovery, fallback to manual |
142
+ | Fast-advance conflict | Coordinator reconciles on next callback |
143
+ | Completion action fails | Default to Keep Active |
144
+ | GC loop stuck > 2 rounds | Escalate to user: accept / retry / terminate |