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,173 @@
1
+ ---
2
+ name: team-ultra-analyze
3
+ description: "Deep collaborative analysis team skill. Multi-role investigation with coordinator-driven synthesis. Triggers on \"team ultra-analyze\", \"team analyze\"."
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 Ultra Analyze
8
+
9
+ Deep collaborative analysis: explore -> analyze -> discuss -> synthesize. Supports Quick/Standard/Deep pipeline modes with configurable depth (N parallel agents). Discussion loops enable user-guided progressive understanding.
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ Skill(skill="team-ultra-analyze", args="<topic>")
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
+
31
+ Pipeline (Standard mode):
32
+ [EXPLORE-1..N](parallel) -> [ANALYZE-1..N](parallel) -> DISCUSS-001 -> SYNTH-001
33
+
34
+ Pipeline (Deep mode):
35
+ [EXPLORE-1..N] -> [ANALYZE-1..N] -> DISCUSS-001 -> ANALYZE-fix -> DISCUSS-002 -> ... -> SYNTH-001
36
+
37
+ Pipeline (Quick mode):
38
+ EXPLORE-001 -> ANALYZE-001 -> SYNTH-001
39
+ ```
40
+
41
+ ## Role Registry
42
+
43
+ | Role | Path | Prefix | Inner Loop |
44
+ |------|------|--------|------------|
45
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
46
+ | explorer | [roles/explorer/role.md](roles/explorer/role.md) | EXPLORE-* | false |
47
+ | analyst | [roles/analyst/role.md](roles/analyst/role.md) | ANALYZE-* | false |
48
+ | discussant | [roles/discussant/role.md](roles/discussant/role.md) | DISCUSS-* | false |
49
+ | synthesizer | [roles/synthesizer/role.md](roles/synthesizer/role.md) | SYNTH-* | false |
50
+
51
+
52
+ ## Pre-load (coordinator, before dispatch)
53
+
54
+ 1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for module boundaries
55
+ 2. **Specs (arch)**: `maestro load --type spec --category arch` — load arch constraints as shared context
56
+ 3. **Wiki knowledge**: `maestro search "analysis investigation deep-dive" --json` — top 5 entries as prior context
57
+ 4. All optional — proceed without if unavailable
58
+ ## Role Router
59
+
60
+ Parse `$ARGUMENTS`:
61
+ - Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
62
+ - No `--role` → `@roles/coordinator/role.md`, execute entry router
63
+
64
+ ## Shared Constants
65
+
66
+ - **Session prefix**: `UAN`
67
+ - **Session path**: `.workflow/.team/UAN-<slug>-<date>/`
68
+ - **Team name**: `ultra-analyze`
69
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
70
+ - **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
71
+
72
+ ## Worker Spawn Template
73
+
74
+ Coordinator spawns workers using this template:
75
+
76
+ ```
77
+ Agent({
78
+ subagent_type: "team-worker",
79
+ description: "Spawn <role> worker",
80
+ team_name: "ultra-analyze",
81
+ name: "<agent-name>",
82
+ run_in_background: true,
83
+ prompt: `## Role Assignment
84
+ role: <role>
85
+ role_spec: <skill_root>/roles/<role>/role.md
86
+ session: <session-folder>
87
+ session_id: <session-id>
88
+ team_name: ultra-analyze
89
+ requirement: <topic-description>
90
+ agent_name: <agent-name>
91
+ inner_loop: false
92
+
93
+ ## Progress Milestones
94
+ session_id: <session-id>
95
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
96
+ Report blockers immediately via team_msg type="blocker".
97
+ Report completion via team_msg type="task_complete" after final SendMessage.
98
+
99
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
100
+ Execute built-in Phase 1 (task discovery, owner=<agent-name>) -> role Phase 2-4 -> built-in Phase 5 (report).`
101
+ })
102
+ ```
103
+
104
+ ## User Commands
105
+
106
+ | Command | Action |
107
+ |---------|--------|
108
+ | `check` / `status` | Output execution status diagram, do not advance pipeline |
109
+ | `resume` / `continue` | Check worker status, advance to next pipeline step |
110
+
111
+ ## Session Directory
112
+
113
+ ```
114
+ .workflow/.team/UAN-{slug}-{YYYY-MM-DD}/
115
+ +-- .msg/messages.jsonl # Message bus log
116
+ +-- .msg/meta.json # Session metadata + cross-role state
117
+ +-- discussion.md # Understanding evolution and discussion timeline
118
+ +-- explorations/ # Explorer output
119
+ | +-- exploration-001.json
120
+ | +-- exploration-002.json
121
+ +-- analyses/ # Analyst output
122
+ | +-- analysis-001.json
123
+ | +-- analysis-002.json
124
+ +-- discussions/ # Discussant output
125
+ | +-- discussion-round-001.json
126
+ +-- conclusions.json # Synthesizer output
127
+ +-- wisdom/ # Cross-task knowledge
128
+ | +-- learnings.md
129
+ | +-- decisions.md
130
+ | +-- conventions.md
131
+ | +-- issues.md
132
+ ```
133
+
134
+ ## Completion Action
135
+
136
+ When pipeline completes, coordinator presents:
137
+
138
+ ```
139
+ AskUserQuestion({
140
+ questions: [{
141
+ question: "Ultra-Analyze pipeline complete. What would you like to do?",
142
+ header: "Completion",
143
+ multiSelect: false,
144
+ options: [
145
+ { label: "Archive & Clean (Recommended)", description: "Archive session, clean up tasks and team resources" },
146
+ { label: "Keep Active", description: "Keep session active for follow-up work or inspection" },
147
+ { label: "Export Results", description: "Export deliverables to a specified location, then clean" }
148
+ ]
149
+ }]
150
+ })
151
+ ```
152
+
153
+ | Choice | Action |
154
+ |--------|--------|
155
+ | Archive & Clean | Update session status="completed" -> TeamDelete() -> output final summary |
156
+ | Keep Active | Update session status="paused" -> output resume instructions |
157
+ | Export Results | AskUserQuestion for target path -> copy deliverables -> Archive & Clean |
158
+
159
+ ## Specs Reference
160
+
161
+ - [specs/team-config.json](specs/team-config.json) — Team configuration and pipeline settings
162
+
163
+ ## Error Handling
164
+
165
+ | Scenario | Resolution |
166
+ |----------|------------|
167
+ | Unknown --role value | Error with role registry list |
168
+ | Role file not found | Error with expected path (roles/{name}/role.md) |
169
+ | Discussion loop stuck >5 rounds | Force synthesis, offer continuation |
170
+ | CLI tool unavailable | Fallback chain: agy -> codex -> manual analysis |
171
+ | Explorer agent fails | Continue with available context, note limitation |
172
+ | Fast-advance conflict | Coordinator reconciles on next callback |
173
+ | Completion action fails | Default to Keep Active |
@@ -0,0 +1,151 @@
1
+ ---
2
+ name: team-ux-improve
3
+ description: "Unified team skill for UX improvement. Systematically discovers and fixes UI/UX interaction issues including unresponsive buttons, missing feedback, and state refresh problems. Uses team-worker agent architecture with roles/ for domain logic. Coordinator orchestrates pipeline, workers are team-worker agents. Triggers on \"team ux improve\"."
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 UX Improve
8
+
9
+ Systematic UX improvement pipeline: scan -> diagnose -> design -> implement -> test. 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-ux-improve", args="<project-path> [--framework react|vue]")
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 diagnoser designer implementer tester
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
+ | diagnoser | [roles/diagnoser/role.md](roles/diagnoser/role.md) | DIAG-* | false |
40
+ | designer | [roles/designer/role.md](roles/designer/role.md) | DESIGN-* | false |
41
+ | implementer | [roles/implementer/role.md](roles/implementer/role.md) | IMPL-* | true |
42
+ | tester | [roles/tester/role.md](roles/tester/role.md) | TEST-* | false |
43
+
44
+ ## Utility Member Registry
45
+
46
+ **Coordinator-only**: Utility members can only be spawned by Coordinator. Workers CANNOT call Agent() to spawn utility members.
47
+
48
+ | Utility Member | Path | Callable By | Purpose |
49
+ |----------------|------|-------------|---------|
50
+ | explorer | [roles/explorer/role.md](roles/explorer/role.md) | Coordinator only | Explore codebase for UI component patterns and framework-specific patterns |
51
+
52
+
53
+ ## Pre-load (coordinator, before dispatch)
54
+
55
+ 1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for module boundaries
56
+ 2. **Specs (ui)**: `maestro load --type spec --category ui` — load ui constraints as shared context
57
+ 3. **Wiki knowledge**: `maestro search "UX improvement interaction" --json` — top 5 entries as prior context
58
+ 4. All optional — proceed without if unavailable
59
+ ## Role Router
60
+
61
+ Parse `$ARGUMENTS`:
62
+ - Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
63
+ - No `--role` → `@roles/coordinator/role.md`, execute entry router
64
+
65
+ ## Shared Constants
66
+
67
+ - **Session prefix**: `ux-improve`
68
+ - **Session path**: `.workflow/.team/ux-improve-<timestamp>/`
69
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
70
+ - **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
71
+ - **Max test iterations**: 5
72
+
73
+ ## Worker Spawn Template
74
+
75
+ Coordinator spawns workers using this template:
76
+
77
+ ```
78
+ Agent({
79
+ subagent_type: "team-worker",
80
+ description: "Spawn <role> worker for <task-id>",
81
+ team_name: "ux-improve",
82
+ name: "<role>",
83
+ run_in_background: true,
84
+ prompt: `## Role Assignment
85
+ role: <role>
86
+ role_spec: <skill_root>/roles/<role>/role.md
87
+ session: <session-folder>
88
+ session_id: <session-id>
89
+ team_name: ux-improve
90
+ requirement: <task-description>
91
+ inner_loop: <true|false>
92
+
93
+ ## Progress Milestones
94
+ session_id: <session-id>
95
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
96
+ Report blockers immediately via team_msg type="blocker".
97
+ Report completion via team_msg type="task_complete" after final SendMessage.
98
+
99
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
100
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
101
+ })
102
+ ```
103
+
104
+ ## User Commands
105
+
106
+ | Command | Action |
107
+ |---------|--------|
108
+ | `check` / `status` | View execution status graph |
109
+ | `resume` / `continue` | Advance to next step |
110
+
111
+ ## Specs Reference
112
+
113
+ - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
114
+ - [specs/design-standards.md](specs/design-standards.md) — Impeccable visual design standards
115
+ - [specs/anti-patterns.md](specs/anti-patterns.md) — AI slop detection catalog (20 items)
116
+ - [specs/heuristics.md](specs/heuristics.md) — Nielsen's 10 usability heuristics evaluation framework
117
+
118
+ ## Session Directory
119
+
120
+ ```
121
+ .workflow/.team/ux-improve-<timestamp>/
122
+ ├── .msg/
123
+ │ ├── messages.jsonl # Team message bus
124
+ │ └── meta.json # Pipeline config + role state snapshot
125
+ ├── artifacts/ # Role deliverables
126
+ │ ├── scan-report.md # Scanner output
127
+ │ ├── diagnosis.md # Diagnoser output
128
+ │ ├── design-guide.md # Designer output
129
+ │ ├── fixes/ # Implementer output
130
+ │ └── test-report.md # Tester output
131
+ ├── explorations/ # Explorer cache
132
+ │ └── cache-index.json
133
+ └── wisdom/ # Session knowledge base
134
+ ├── contributions/ # Worker contributions (write-only for workers)
135
+ ├── principles/
136
+ ├── patterns/
137
+ └── anti-patterns/
138
+ ```
139
+
140
+ ## Error Handling
141
+
142
+ | Scenario | Resolution |
143
+ |----------|------------|
144
+ | Unknown command | Error with available command list |
145
+ | Role not found | Error with role registry |
146
+ | Project path invalid | Re-prompt user for valid path |
147
+ | Framework detection fails | AskUserQuestion for framework selection |
148
+ | Session corruption | Attempt recovery, fallback to manual |
149
+ | Fast-advance conflict | Coordinator reconciles on next callback |
150
+ | No UI issues found | Complete with empty fix list, generate clean bill report |
151
+ | Test iterations exceeded | Accept current state, continue to completion |
@@ -0,0 +1,156 @@
1
+ ---
2
+ name: team-visual-a11y
3
+ description: "Unified team skill for visual accessibility QA. OKLCH color contrast, typography readability, focus management, WCAG AA/AAA audit at rendered level. Uses team-worker agent architecture. Triggers on \"team visual a11y\", \"accessibility audit\", \"visual a11y\"."
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__emulate mcp__chrome-devtools__lighthouse_audit mcp__chrome-devtools__navigate_page mcp__chrome-devtools__resize_page
5
+ ---
6
+
7
+ # Team Visual Accessibility
8
+
9
+ Deep visual accessibility QA: OKLCH-based perceptual color contrast, typography readability at all viewports, focus-visible completeness, WCAG AA/AAA audit at rendered level. 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-visual-a11y", 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 |
29
+ [3 auditors spawn in PARALLEL] |
30
+ color-auditor typo-auditor focus-auditor
31
+ | | |
32
+ +---+---+---+---+
33
+ v
34
+ remediation-planner
35
+ |
36
+ v
37
+ fix-implementer (inner_loop)
38
+ |
39
+ v
40
+ [re-audit: color + focus in PARALLEL]
41
+ ```
42
+
43
+ ## Role Registry
44
+
45
+ | Role | Path | Prefix | Inner Loop |
46
+ |------|------|--------|------------|
47
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | -- | -- |
48
+ | color-auditor | [roles/color-auditor/role.md](roles/color-auditor/role.md) | COLOR-* | false |
49
+ | typo-auditor | [roles/typo-auditor/role.md](roles/typo-auditor/role.md) | TYPO-* | false |
50
+ | focus-auditor | [roles/focus-auditor/role.md](roles/focus-auditor/role.md) | FOCUS-* | false |
51
+ | remediation-planner | [roles/remediation-planner/role.md](roles/remediation-planner/role.md) | REMED-* | false |
52
+ | fix-implementer | [roles/fix-implementer/role.md](roles/fix-implementer/role.md) | FIX-* | true |
53
+
54
+
55
+ ## Pre-load (coordinator, before dispatch)
56
+
57
+ 1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for module boundaries
58
+ 2. **Specs (ui)**: `maestro load --type spec --category ui` — load ui constraints as shared context
59
+ 3. **Wiki knowledge**: `maestro search "accessibility WCAG contrast" --json` — top 5 entries as prior context
60
+ 4. All optional — proceed without if unavailable
61
+ ## Role Router
62
+
63
+ Parse `$ARGUMENTS`:
64
+ - Has `--role <name>` -> Read `roles/<name>/role.md`, execute Phase 2-4
65
+ - No `--role` -> `@roles/coordinator/role.md`, execute entry router
66
+
67
+ ## Shared Constants
68
+
69
+ - **Session prefix**: `VA`
70
+ - **Session path**: `.workflow/.team/VA-<slug>-<date>/`
71
+ - **team_name**: `visual-a11y`
72
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
73
+ - **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
74
+ - **Max GC rounds**: 2
75
+
76
+ ## Worker Spawn Template
77
+
78
+ Coordinator spawns workers using this template:
79
+
80
+ ```
81
+ Agent({
82
+ subagent_type: "team-worker",
83
+ description: "Spawn <role> worker for <task-id>",
84
+ team_name: "visual-a11y",
85
+ name: "<role>",
86
+ run_in_background: true,
87
+ prompt: `## Role Assignment
88
+ role: <role>
89
+ role_spec: <skill_root>/roles/<role>/role.md
90
+ session: <session-folder>
91
+ session_id: <session-id>
92
+ team_name: visual-a11y
93
+ requirement: <task-description>
94
+ inner_loop: <true|false>
95
+
96
+ ## Progress Milestones
97
+ session_id: <session-id>
98
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
99
+ Report blockers immediately via team_msg type="blocker".
100
+ Report completion via team_msg type="task_complete" after final SendMessage.
101
+
102
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
103
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
104
+ })
105
+ ```
106
+
107
+ ## User Commands
108
+
109
+ | Command | Action |
110
+ |---------|--------|
111
+ | `check` / `status` | View execution status graph |
112
+ | `resume` / `continue` | Advance to next step |
113
+
114
+ ## Specs Reference
115
+
116
+ - [specs/pipelines.md](specs/pipelines.md) -- Pipeline definitions and task registry
117
+ - [specs/oklch-standards.md](specs/oklch-standards.md) -- OKLCH color accessibility rules
118
+ - [specs/wcag-matrix.md](specs/wcag-matrix.md) -- WCAG 2.1 criteria matrix
119
+ - [specs/typography-scale.md](specs/typography-scale.md) -- Typography accessibility rules
120
+ - [specs/focus-patterns.md](specs/focus-patterns.md) -- Focus management patterns
121
+
122
+ ## Session Directory
123
+
124
+ ```
125
+ .workflow/.team/VA-<slug>-<date>/
126
+ +-- .msg/
127
+ | +-- messages.jsonl # Team message bus
128
+ | +-- meta.json # Pipeline config + GC state
129
+ +-- audits/
130
+ | +-- color/ # Color auditor output
131
+ | | +-- color-audit-001.md
132
+ | +-- typography/ # Typography auditor output
133
+ | | +-- typo-audit-001.md
134
+ | +-- focus/ # Focus auditor output
135
+ | +-- focus-audit-001.md
136
+ +-- remediation/ # Remediation planner output
137
+ | +-- remediation-plan.md
138
+ +-- fixes/ # Fix implementer output
139
+ | +-- fix-summary-001.md
140
+ +-- re-audit/ # Re-audit output (GC loop)
141
+ | +-- color-audit-002.md
142
+ | +-- focus-audit-002.md
143
+ +-- evidence/ # Screenshots, traces
144
+ ```
145
+
146
+ ## Error Handling
147
+
148
+ | Scenario | Resolution |
149
+ |----------|------------|
150
+ | Unknown command | Error with available command list |
151
+ | Role not found | Error with role registry |
152
+ | Session corruption | Attempt recovery, fallback to manual |
153
+ | Fast-advance conflict | Coordinator reconciles on next callback |
154
+ | Completion action fails | Default to Keep Active |
155
+ | GC loop stuck > 2 rounds | Escalate to user: accept / retry / terminate |
156
+ | Chrome DevTools unavailable | Degrade to static analysis only |