claude-code-workflow 7.2.23 → 7.2.24

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 (181) hide show
  1. package/.codex/skills/team-arch-opt/SKILL.md +242 -175
  2. package/.codex/skills/team-arch-opt/roles/analyzer/role.md +78 -78
  3. package/.codex/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
  4. package/.codex/skills/team-arch-opt/roles/coordinator/commands/monitor.md +246 -204
  5. package/.codex/skills/team-arch-opt/roles/coordinator/role.md +196 -184
  6. package/.codex/skills/team-arch-opt/roles/designer/role.md +115 -115
  7. package/.codex/skills/team-arch-opt/roles/refactorer/role.md +102 -102
  8. package/.codex/skills/team-arch-opt/roles/reviewer/role.md +111 -111
  9. package/.codex/skills/team-arch-opt/roles/validator/role.md +115 -115
  10. package/.codex/skills/team-arch-opt/specs/pipelines.md +102 -102
  11. package/.codex/skills/team-brainstorm/SKILL.md +72 -4
  12. package/.codex/skills/team-brainstorm/roles/challenger/role.md +61 -61
  13. package/.codex/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
  14. package/.codex/skills/team-brainstorm/roles/coordinator/commands/monitor.md +212 -171
  15. package/.codex/skills/team-brainstorm/roles/coordinator/role.md +172 -160
  16. package/.codex/skills/team-brainstorm/roles/evaluator/role.md +56 -56
  17. package/.codex/skills/team-brainstorm/roles/ideator/role.md +69 -69
  18. package/.codex/skills/team-brainstorm/roles/synthesizer/role.md +57 -57
  19. package/.codex/skills/team-brainstorm/specs/pipelines.md +72 -72
  20. package/.codex/skills/team-coordinate/SKILL.md +71 -3
  21. package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +45 -5
  22. package/.codex/skills/team-coordinate/roles/coordinator/role.md +402 -389
  23. package/.codex/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
  24. package/.codex/skills/team-coordinate/specs/pipelines.md +97 -97
  25. package/.codex/skills/team-coordinate/specs/quality-gates.md +112 -112
  26. package/.codex/skills/team-designer/SKILL.md +153 -153
  27. package/.codex/skills/team-designer/phases/01-requirements-analysis.md +250 -250
  28. package/.codex/skills/team-designer/phases/02-scaffold-generation.md +228 -228
  29. package/.codex/skills/team-designer/phases/03-content-generation.md +330 -330
  30. package/.codex/skills/team-designer/phases/04-validation.md +320 -320
  31. package/.codex/skills/team-executor/SKILL.md +29 -2
  32. package/.codex/skills/team-executor/roles/executor/commands/monitor.md +23 -15
  33. package/.codex/skills/team-frontend/SKILL.md +77 -3
  34. package/.codex/skills/team-frontend/roles/analyst/role.md +92 -92
  35. package/.codex/skills/team-frontend/roles/architect/role.md +86 -86
  36. package/.codex/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
  37. package/.codex/skills/team-frontend/roles/coordinator/commands/monitor.md +222 -188
  38. package/.codex/skills/team-frontend/roles/coordinator/role.md +189 -177
  39. package/.codex/skills/team-frontend/roles/developer/role.md +93 -93
  40. package/.codex/skills/team-frontend/roles/qa/role.md +79 -79
  41. package/.codex/skills/team-frontend/specs/pipelines.md +76 -76
  42. package/.codex/skills/team-frontend-debug/SKILL.md +66 -3
  43. package/.codex/skills/team-frontend-debug/roles/analyzer/role.md +208 -208
  44. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
  45. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +198 -198
  46. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +177 -143
  47. package/.codex/skills/team-frontend-debug/roles/coordinator/role.md +164 -152
  48. package/.codex/skills/team-frontend-debug/roles/fixer/role.md +147 -147
  49. package/.codex/skills/team-frontend-debug/roles/reproducer/role.md +147 -147
  50. package/.codex/skills/team-frontend-debug/roles/tester/role.md +231 -231
  51. package/.codex/skills/team-frontend-debug/roles/verifier/role.md +172 -172
  52. package/.codex/skills/team-frontend-debug/specs/debug-tools.md +215 -215
  53. package/.codex/skills/team-frontend-debug/specs/pipelines.md +94 -94
  54. package/.codex/skills/team-issue/SKILL.md +83 -4
  55. package/.codex/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
  56. package/.codex/skills/team-issue/roles/coordinator/commands/dispatch.md +273 -273
  57. package/.codex/skills/team-issue/roles/coordinator/commands/monitor.md +235 -194
  58. package/.codex/skills/team-issue/roles/coordinator/role.md +206 -194
  59. package/.codex/skills/team-issue/roles/explorer/role.md +94 -94
  60. package/.codex/skills/team-issue/roles/implementer/role.md +87 -87
  61. package/.codex/skills/team-issue/roles/integrator/role.md +84 -84
  62. package/.codex/skills/team-issue/roles/planner/role.md +81 -81
  63. package/.codex/skills/team-issue/roles/reviewer/role.md +86 -86
  64. package/.codex/skills/team-issue/specs/pipelines.md +124 -124
  65. package/.codex/skills/team-iterdev/SKILL.md +64 -3
  66. package/.codex/skills/team-iterdev/roles/architect/role.md +65 -65
  67. package/.codex/skills/team-iterdev/roles/coordinator/commands/analyze.md +62 -62
  68. package/.codex/skills/team-iterdev/roles/coordinator/commands/monitor.md +227 -186
  69. package/.codex/skills/team-iterdev/roles/coordinator/role.md +193 -181
  70. package/.codex/skills/team-iterdev/roles/developer/role.md +74 -74
  71. package/.codex/skills/team-iterdev/roles/reviewer/role.md +66 -66
  72. package/.codex/skills/team-iterdev/roles/tester/role.md +88 -88
  73. package/.codex/skills/team-iterdev/specs/pipelines.md +94 -94
  74. package/.codex/skills/team-lifecycle-v4/MIGRATION-PLAN.md +6 -6
  75. package/.codex/skills/team-lifecycle-v4/SKILL.md +305 -242
  76. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +1 -1
  77. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +66 -24
  78. package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +13 -1
  79. package/.codex/skills/team-lifecycle-v4/roles/supervisor/role.md +1 -1
  80. package/.codex/skills/team-lifecycle-v4/templates/architecture.md +254 -254
  81. package/.codex/skills/team-lifecycle-v4/templates/epics.md +196 -196
  82. package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
  83. package/.codex/skills/team-lifecycle-v4/templates/requirements.md +224 -224
  84. package/.codex/skills/team-perf-opt/SKILL.md +68 -3
  85. package/.codex/skills/team-perf-opt/roles/benchmarker/role.md +89 -89
  86. package/.codex/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
  87. package/.codex/skills/team-perf-opt/roles/coordinator/commands/monitor.md +35 -1
  88. package/.codex/skills/team-perf-opt/roles/coordinator/role.md +179 -167
  89. package/.codex/skills/team-perf-opt/roles/optimizer/role.md +97 -97
  90. package/.codex/skills/team-perf-opt/roles/profiler/role.md +73 -73
  91. package/.codex/skills/team-perf-opt/roles/reviewer/role.md +75 -75
  92. package/.codex/skills/team-perf-opt/roles/strategist/role.md +94 -94
  93. package/.codex/skills/team-perf-opt/specs/pipelines.md +65 -65
  94. package/.codex/skills/team-planex/SKILL.md +65 -3
  95. package/.codex/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
  96. package/.codex/skills/team-planex/roles/coordinator/commands/monitor.md +210 -164
  97. package/.codex/skills/team-planex/roles/coordinator/role.md +171 -159
  98. package/.codex/skills/team-planex/roles/executor/role.md +91 -91
  99. package/.codex/skills/team-planex/roles/planner/role.md +112 -112
  100. package/.codex/skills/team-planex/specs/pipelines.md +93 -93
  101. package/.codex/skills/team-quality-assurance/SKILL.md +60 -3
  102. package/.codex/skills/team-quality-assurance/roles/analyst/role.md +80 -80
  103. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
  104. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +108 -108
  105. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +243 -209
  106. package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +176 -164
  107. package/.codex/skills/team-quality-assurance/roles/executor/role.md +66 -66
  108. package/.codex/skills/team-quality-assurance/roles/generator/role.md +68 -68
  109. package/.codex/skills/team-quality-assurance/roles/scout/role.md +67 -67
  110. package/.codex/skills/team-quality-assurance/roles/strategist/role.md +71 -71
  111. package/.codex/skills/team-quality-assurance/specs/pipelines.md +115 -115
  112. package/.codex/skills/team-review/SKILL.md +58 -3
  113. package/.codex/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
  114. package/.codex/skills/team-review/roles/coordinator/commands/dispatch.md +90 -90
  115. package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +225 -185
  116. package/.codex/skills/team-review/roles/coordinator/role.md +175 -163
  117. package/.codex/skills/team-review/roles/fixer/role.md +76 -76
  118. package/.codex/skills/team-review/roles/reviewer/role.md +68 -68
  119. package/.codex/skills/team-review/roles/scanner/role.md +71 -71
  120. package/.codex/skills/team-review/specs/pipelines.md +102 -102
  121. package/.codex/skills/team-roadmap-dev/SKILL.md +55 -3
  122. package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
  123. package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +502 -468
  124. package/.codex/skills/team-roadmap-dev/roles/coordinator/role.md +335 -322
  125. package/.codex/skills/team-roadmap-dev/roles/executor/role.md +71 -71
  126. package/.codex/skills/team-roadmap-dev/roles/planner/role.md +76 -76
  127. package/.codex/skills/team-roadmap-dev/roles/verifier/role.md +74 -74
  128. package/.codex/skills/team-roadmap-dev/specs/pipelines.md +93 -93
  129. package/.codex/skills/team-tech-debt/SKILL.md +56 -3
  130. package/.codex/skills/team-tech-debt/roles/assessor/role.md +69 -69
  131. package/.codex/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
  132. package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +272 -231
  133. package/.codex/skills/team-tech-debt/roles/coordinator/role.md +172 -160
  134. package/.codex/skills/team-tech-debt/roles/executor/role.md +76 -76
  135. package/.codex/skills/team-tech-debt/roles/planner/role.md +69 -69
  136. package/.codex/skills/team-tech-debt/roles/scanner/role.md +82 -82
  137. package/.codex/skills/team-tech-debt/roles/validator/role.md +75 -75
  138. package/.codex/skills/team-tech-debt/specs/pipelines.md +47 -47
  139. package/.codex/skills/team-testing/SKILL.md +72 -3
  140. package/.codex/skills/team-testing/roles/analyst/role.md +95 -95
  141. package/.codex/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
  142. package/.codex/skills/team-testing/roles/coordinator/commands/dispatch.md +106 -106
  143. package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +283 -242
  144. package/.codex/skills/team-testing/roles/coordinator/role.md +184 -172
  145. package/.codex/skills/team-testing/roles/executor/role.md +96 -96
  146. package/.codex/skills/team-testing/roles/generator/role.md +95 -95
  147. package/.codex/skills/team-testing/roles/strategist/role.md +83 -83
  148. package/.codex/skills/team-testing/specs/pipelines.md +101 -101
  149. package/.codex/skills/team-uidesign/SKILL.md +65 -3
  150. package/.codex/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
  151. package/.codex/skills/team-uidesign/roles/coordinator/commands/dispatch.md +156 -156
  152. package/.codex/skills/team-uidesign/roles/coordinator/commands/monitor.md +234 -194
  153. package/.codex/skills/team-uidesign/roles/coordinator/role.md +211 -199
  154. package/.codex/skills/team-uidesign/roles/designer/role.md +69 -69
  155. package/.codex/skills/team-uidesign/roles/implementer/role.md +72 -72
  156. package/.codex/skills/team-uidesign/roles/researcher/role.md +82 -82
  157. package/.codex/skills/team-uidesign/roles/reviewer/role.md +67 -67
  158. package/.codex/skills/team-uidesign/specs/pipelines.md +76 -76
  159. package/.codex/skills/team-ultra-analyze/SKILL.md +73 -3
  160. package/.codex/skills/team-ultra-analyze/roles/analyst/role.md +90 -90
  161. package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
  162. package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +50 -9
  163. package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +255 -243
  164. package/.codex/skills/team-ultra-analyze/roles/discussant/role.md +104 -104
  165. package/.codex/skills/team-ultra-analyze/roles/explorer/role.md +74 -74
  166. package/.codex/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -78
  167. package/.codex/skills/team-ultra-analyze/specs/pipelines.md +64 -64
  168. package/.codex/skills/team-ux-improve/SKILL.md +64 -3
  169. package/.codex/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
  170. package/.codex/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +233 -233
  171. package/.codex/skills/team-ux-improve/roles/coordinator/commands/monitor.md +195 -160
  172. package/.codex/skills/team-ux-improve/roles/coordinator/role.md +170 -158
  173. package/.codex/skills/team-ux-improve/roles/designer/role.md +122 -122
  174. package/.codex/skills/team-ux-improve/roles/diagnoser/role.md +93 -93
  175. package/.codex/skills/team-ux-improve/roles/explorer/role.md +77 -77
  176. package/.codex/skills/team-ux-improve/roles/implementer/role.md +102 -102
  177. package/.codex/skills/team-ux-improve/roles/scanner/role.md +93 -93
  178. package/.codex/skills/team-ux-improve/roles/tester/role.md +84 -84
  179. package/.codex/skills/team-ux-improve/specs/pipelines.md +54 -54
  180. package/README.md +1 -0
  181. package/package.json +1 -1
@@ -1,72 +1,72 @@
1
- ---
2
- role: implementer
3
- prefix: BUILD
4
- inner_loop: false
5
- message_types: [state_update]
6
- ---
7
-
8
- # Component Code Builder
9
-
10
- Translate design tokens and component specifications into production code. Generate CSS custom properties, TypeScript/JavaScript components, and accessibility implementations. Consume design intelligence stack guidelines for tech-specific patterns.
11
-
12
- ## Phase 2: Context & Artifact Loading
13
-
14
- | Input | Source | Required |
15
- |-------|--------|----------|
16
- | Design tokens | <session>/design/design-tokens.json | Yes (token build) |
17
- | Component specs | <session>/design/component-specs/*.md | Yes (component build) |
18
- | Design intelligence | <session>/research/design-intelligence.json | Yes |
19
- | Latest audit report | <session>/audit/audit-*.md | No |
20
- | .msg/meta.json | <session>/wisdom/.msg/meta.json | Yes |
21
-
22
- 1. Extract session path from task description
23
- 2. Detect build type from subject: "token" -> Token implementation, "component" -> Component implementation
24
- 3. Read design artifacts: design-tokens.json (token build), component-specs/*.md (component build)
25
- 4. Read design intelligence: stack_guidelines (tech-specific patterns), anti_patterns (patterns to avoid), ux_guidelines
26
- 5. Read latest audit report for approved changes and feedback
27
- 6. Detect project tech stack from package.json
28
-
29
- ## Phase 3: Implementation Execution
30
-
31
- **Token Implementation (BUILD-001)**:
32
- - Convert design tokens to production code
33
- - Output files in `<session>/build/token-files/`:
34
- - `tokens.css`: CSS custom properties with `:root` (light) and `[data-theme="dark"]` selectors, plus `@media (prefers-color-scheme: dark)` fallback
35
- - `tokens.ts`: TypeScript constants and types for programmatic access with autocomplete support
36
- - `README.md`: Token usage guide
37
- - All color tokens must have both light and dark values
38
- - Semantic token names must match design token definitions
39
-
40
- **Component Implementation (BUILD-002)**:
41
- - Implement component code from design specifications
42
- - Per-component output in `<session>/build/component-files/`:
43
- - `{ComponentName}.tsx`: React/Vue/Svelte component (match detected stack)
44
- - `{ComponentName}.css`: Styles consuming tokens via `var(--token-name)` only
45
- - `{ComponentName}.test.tsx`: Basic render + state tests
46
- - `index.ts`: Re-export
47
- - Requirements: no hardcoded colors/spacing (use design tokens), implement all 5 states, add ARIA attributes per spec, support responsive breakpoints, follow project component patterns
48
- - Accessibility: keyboard navigation, screen reader support, visible focus indicators, WCAG AA contrast
49
- - Check implementation against design intelligence anti_patterns
50
-
51
- ## Phase 4: Validation & Output
52
-
53
- 1. Token build validation:
54
-
55
- | Check | Pass Criteria |
56
- |-------|---------------|
57
- | File existence | tokens.css and tokens.ts exist |
58
- | Token coverage | All defined tokens present in CSS |
59
- | Theme support | Light/dark variants exist |
60
-
61
- 2. Component build validation:
62
-
63
- | Check | Pass Criteria |
64
- |-------|---------------|
65
- | File existence | At least 3 files per component (component, style, index) |
66
- | No hardcoded values | No `#xxx` or `rgb()` in component CSS (only in tokens.css) |
67
- | Focus styles | `:focus` or `:focus-visible` defined |
68
- | Responsive | `@media` queries present |
69
- | Anti-pattern clean | No violations of design intelligence anti_patterns |
70
-
71
- 3. Update `<session>/wisdom/.msg/meta.json` under `implementer` namespace:
72
- - Read existing -> merge `{ "implementer": { build_type, file_count, output_dir, components_built } }` -> write back
1
+ ---
2
+ role: implementer
3
+ prefix: BUILD
4
+ inner_loop: false
5
+ message_types: [state_update]
6
+ ---
7
+
8
+ # Component Code Builder
9
+
10
+ Translate design tokens and component specifications into production code. Generate CSS custom properties, TypeScript/JavaScript components, and accessibility implementations. Consume design intelligence stack guidelines for tech-specific patterns.
11
+
12
+ ## Phase 2: Context & Artifact Loading
13
+
14
+ | Input | Source | Required |
15
+ |-------|--------|----------|
16
+ | Design tokens | <session>/design/design-tokens.json | Yes (token build) |
17
+ | Component specs | <session>/design/component-specs/*.md | Yes (component build) |
18
+ | Design intelligence | <session>/research/design-intelligence.json | Yes |
19
+ | Latest audit report | <session>/audit/audit-*.md | No |
20
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | Yes |
21
+
22
+ 1. Extract session path from task description
23
+ 2. Detect build type from subject: "token" -> Token implementation, "component" -> Component implementation
24
+ 3. Read design artifacts: design-tokens.json (token build), component-specs/*.md (component build)
25
+ 4. Read design intelligence: stack_guidelines (tech-specific patterns), anti_patterns (patterns to avoid), ux_guidelines
26
+ 5. Read latest audit report for approved changes and feedback
27
+ 6. Detect project tech stack from package.json
28
+
29
+ ## Phase 3: Implementation Execution
30
+
31
+ **Token Implementation (BUILD-001)**:
32
+ - Convert design tokens to production code
33
+ - Output files in `<session>/build/token-files/`:
34
+ - `tokens.css`: CSS custom properties with `:root` (light) and `[data-theme="dark"]` selectors, plus `@media (prefers-color-scheme: dark)` fallback
35
+ - `tokens.ts`: TypeScript constants and types for programmatic access with autocomplete support
36
+ - `README.md`: Token usage guide
37
+ - All color tokens must have both light and dark values
38
+ - Semantic token names must match design token definitions
39
+
40
+ **Component Implementation (BUILD-002)**:
41
+ - Implement component code from design specifications
42
+ - Per-component output in `<session>/build/component-files/`:
43
+ - `{ComponentName}.tsx`: React/Vue/Svelte component (match detected stack)
44
+ - `{ComponentName}.css`: Styles consuming tokens via `var(--token-name)` only
45
+ - `{ComponentName}.test.tsx`: Basic render + state tests
46
+ - `index.ts`: Re-export
47
+ - Requirements: no hardcoded colors/spacing (use design tokens), implement all 5 states, add ARIA attributes per spec, support responsive breakpoints, follow project component patterns
48
+ - Accessibility: keyboard navigation, screen reader support, visible focus indicators, WCAG AA contrast
49
+ - Check implementation against design intelligence anti_patterns
50
+
51
+ ## Phase 4: Validation & Output
52
+
53
+ 1. Token build validation:
54
+
55
+ | Check | Pass Criteria |
56
+ |-------|---------------|
57
+ | File existence | tokens.css and tokens.ts exist |
58
+ | Token coverage | All defined tokens present in CSS |
59
+ | Theme support | Light/dark variants exist |
60
+
61
+ 2. Component build validation:
62
+
63
+ | Check | Pass Criteria |
64
+ |-------|---------------|
65
+ | File existence | At least 3 files per component (component, style, index) |
66
+ | No hardcoded values | No `#xxx` or `rgb()` in component CSS (only in tokens.css) |
67
+ | Focus styles | `:focus` or `:focus-visible` defined |
68
+ | Responsive | `@media` queries present |
69
+ | Anti-pattern clean | No violations of design intelligence anti_patterns |
70
+
71
+ 3. Update `<session>/wisdom/.msg/meta.json` under `implementer` namespace:
72
+ - Read existing -> merge `{ "implementer": { build_type, file_count, output_dir, components_built } }` -> write back
@@ -1,82 +1,82 @@
1
- ---
2
- role: researcher
3
- prefix: RESEARCH
4
- inner_loop: false
5
- message_types: [state_update]
6
- ---
7
-
8
- # Design System Researcher
9
-
10
- Analyze existing design system, build component inventory, assess accessibility baseline, and retrieve industry-specific design intelligence via ui-ux-pro-max. Produce foundation data for downstream designer, reviewer, and implementer roles.
11
-
12
- ## Phase 2: Context & Environment Detection
13
-
14
- | Input | Source | Required |
15
- |-------|--------|----------|
16
- | Task description | From task subject/description | Yes |
17
- | Session path | Extracted from task description | Yes |
18
- | .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
19
-
20
- 1. Extract session path and target scope from task description
21
- 2. Detect project type and tech stack from package.json or equivalent:
22
-
23
- | Package | Detected Stack |
24
- |---------|---------------|
25
- | next | nextjs |
26
- | react | react |
27
- | vue | vue |
28
- | svelte | svelte |
29
- | @shadcn/ui | shadcn |
30
- | (default) | html-tailwind |
31
-
32
- 3. Use CLI tools (e.g., `ccw cli -p "..." --tool gemini --mode analysis`) or direct tools (Glob, Grep, mcp__ace-tool__search_context) to scan for existing design tokens, component files, styling patterns
33
- 4. Read industry context from session config (industry, strictness, must-have features)
34
-
35
- ## Phase 3: Research Execution
36
-
37
- Execute 4 analysis streams:
38
-
39
- **Stream 1 -- Design System Analysis**:
40
- - Search for existing design tokens (CSS variables, theme configs, token files)
41
- - Identify styling patterns (CSS-in-JS, CSS modules, utility classes, SCSS)
42
- - Map color palette, typography scale, spacing system
43
- - Find component library usage (MUI, Ant Design, shadcn, custom)
44
- - Output: `<session>/research/design-system-analysis.json`
45
-
46
- **Stream 2 -- Component Inventory**:
47
- - Find all UI component files; identify props/API surface
48
- - Identify states supported (hover, focus, disabled, etc.)
49
- - Check accessibility attributes (ARIA labels, roles)
50
- - Map inter-component dependencies and usage counts
51
- - Output: `<session>/research/component-inventory.json`
52
-
53
- **Stream 3 -- Accessibility Baseline**:
54
- - Check ARIA attribute usage patterns, keyboard navigation support
55
- - Assess color contrast ratios (if design tokens found)
56
- - Find focus management and semantic HTML patterns
57
- - Output: `<session>/research/accessibility-audit.json`
58
-
59
- **Stream 4 -- Design Intelligence (ui-ux-pro-max)**:
60
- - Call `Skill(skill="ui-ux-pro-max", args="<industry> <keywords> --design-system")` for design system recommendations
61
- - Call `Skill(skill="ui-ux-pro-max", args="accessibility animation responsive --domain ux")` for UX guidelines
62
- - Call `Skill(skill="ui-ux-pro-max", args="<keywords> --stack <detected-stack>")` for stack guidelines
63
- - Degradation: when unavailable, use LLM general knowledge, mark `_source: "llm-general-knowledge"`
64
- - Output: `<session>/research/design-intelligence.json`
65
-
66
- Compile research summary metrics: design_system_exists, styling_approach, total_components, accessibility_level, design_intelligence_source, anti_patterns_count.
67
-
68
- ## Phase 4: Validation & Output
69
-
70
- 1. Verify all 4 output files exist and contain valid JSON with required fields:
71
-
72
- | File | Required Fields |
73
- |------|----------------|
74
- | design-system-analysis.json | existing_tokens, styling_approach |
75
- | component-inventory.json | components array |
76
- | accessibility-audit.json | wcag_level |
77
- | design-intelligence.json | _source, design_system |
78
-
79
- 2. If any file missing or invalid, re-run corresponding stream
80
-
81
- 3. Update `<session>/wisdom/.msg/meta.json` under `researcher` namespace:
82
- - Read existing -> merge `{ "researcher": { detected_stack, component_count, wcag_level, di_source, scope } }` -> write back
1
+ ---
2
+ role: researcher
3
+ prefix: RESEARCH
4
+ inner_loop: false
5
+ message_types: [state_update]
6
+ ---
7
+
8
+ # Design System Researcher
9
+
10
+ Analyze existing design system, build component inventory, assess accessibility baseline, and retrieve industry-specific design intelligence via ui-ux-pro-max. Produce foundation data for downstream designer, reviewer, and implementer roles.
11
+
12
+ ## Phase 2: Context & Environment Detection
13
+
14
+ | Input | Source | Required |
15
+ |-------|--------|----------|
16
+ | Task description | From task subject/description | Yes |
17
+ | Session path | Extracted from task description | Yes |
18
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
19
+
20
+ 1. Extract session path and target scope from task description
21
+ 2. Detect project type and tech stack from package.json or equivalent:
22
+
23
+ | Package | Detected Stack |
24
+ |---------|---------------|
25
+ | next | nextjs |
26
+ | react | react |
27
+ | vue | vue |
28
+ | svelte | svelte |
29
+ | @shadcn/ui | shadcn |
30
+ | (default) | html-tailwind |
31
+
32
+ 3. Use CLI tools (e.g., `ccw cli -p "..." --tool gemini --mode analysis`) or direct tools (Glob, Grep, mcp__ace-tool__search_context) to scan for existing design tokens, component files, styling patterns
33
+ 4. Read industry context from session config (industry, strictness, must-have features)
34
+
35
+ ## Phase 3: Research Execution
36
+
37
+ Execute 4 analysis streams:
38
+
39
+ **Stream 1 -- Design System Analysis**:
40
+ - Search for existing design tokens (CSS variables, theme configs, token files)
41
+ - Identify styling patterns (CSS-in-JS, CSS modules, utility classes, SCSS)
42
+ - Map color palette, typography scale, spacing system
43
+ - Find component library usage (MUI, Ant Design, shadcn, custom)
44
+ - Output: `<session>/research/design-system-analysis.json`
45
+
46
+ **Stream 2 -- Component Inventory**:
47
+ - Find all UI component files; identify props/API surface
48
+ - Identify states supported (hover, focus, disabled, etc.)
49
+ - Check accessibility attributes (ARIA labels, roles)
50
+ - Map inter-component dependencies and usage counts
51
+ - Output: `<session>/research/component-inventory.json`
52
+
53
+ **Stream 3 -- Accessibility Baseline**:
54
+ - Check ARIA attribute usage patterns, keyboard navigation support
55
+ - Assess color contrast ratios (if design tokens found)
56
+ - Find focus management and semantic HTML patterns
57
+ - Output: `<session>/research/accessibility-audit.json`
58
+
59
+ **Stream 4 -- Design Intelligence (ui-ux-pro-max)**:
60
+ - Call `Skill(skill="ui-ux-pro-max", args="<industry> <keywords> --design-system")` for design system recommendations
61
+ - Call `Skill(skill="ui-ux-pro-max", args="accessibility animation responsive --domain ux")` for UX guidelines
62
+ - Call `Skill(skill="ui-ux-pro-max", args="<keywords> --stack <detected-stack>")` for stack guidelines
63
+ - Degradation: when unavailable, use LLM general knowledge, mark `_source: "llm-general-knowledge"`
64
+ - Output: `<session>/research/design-intelligence.json`
65
+
66
+ Compile research summary metrics: design_system_exists, styling_approach, total_components, accessibility_level, design_intelligence_source, anti_patterns_count.
67
+
68
+ ## Phase 4: Validation & Output
69
+
70
+ 1. Verify all 4 output files exist and contain valid JSON with required fields:
71
+
72
+ | File | Required Fields |
73
+ |------|----------------|
74
+ | design-system-analysis.json | existing_tokens, styling_approach |
75
+ | component-inventory.json | components array |
76
+ | accessibility-audit.json | wcag_level |
77
+ | design-intelligence.json | _source, design_system |
78
+
79
+ 2. If any file missing or invalid, re-run corresponding stream
80
+
81
+ 3. Update `<session>/wisdom/.msg/meta.json` under `researcher` namespace:
82
+ - Read existing -> merge `{ "researcher": { detected_stack, component_count, wcag_level, di_source, scope } }` -> write back
@@ -1,67 +1,67 @@
1
- ---
2
- role: reviewer
3
- prefix: AUDIT
4
- inner_loop: false
5
- message_types: [state_update]
6
- ---
7
-
8
- # Design Auditor
9
-
10
- Audit design tokens and component specs for consistency, accessibility compliance, completeness, quality, and industry best-practice adherence. Act as Critic in the designer<->reviewer Generator-Critic loop. Serve as sync point gatekeeper in dual-track pipelines.
11
-
12
- ## Phase 2: Context & Artifact Loading
13
-
14
- | Input | Source | Required |
15
- |-------|--------|----------|
16
- | Design artifacts | <session>/design/*.json, <session>/design/component-specs/*.md | Yes |
17
- | Design intelligence | <session>/research/design-intelligence.json | Yes |
18
- | Audit history | .msg/meta.json -> reviewer namespace | No |
19
- | Build artifacts | <session>/build/**/* | Only for final audit |
20
- | .msg/meta.json | <session>/wisdom/.msg/meta.json | Yes |
21
-
22
- 1. Extract session path from task description
23
- 2. Detect audit type from subject: "token" -> Token audit, "component" -> Component audit, "final" -> Final audit, "sync" -> Sync point audit
24
- 3. Read design intelligence for anti-patterns and ux_guidelines
25
- 4. Read design artifacts: design-tokens.json (token/component audit), component-specs/*.md (component/final audit), build/**/* (final audit only)
26
- 5. Load audit_history from meta.json for trend analysis
27
-
28
- ## Phase 3: Audit Execution
29
-
30
- Score 5 dimensions on 1-10 scale:
31
-
32
- | Dimension | Weight | Focus |
33
- |-----------|--------|-------|
34
- | Consistency | 20% | Token usage, naming conventions, visual uniformity |
35
- | Accessibility | 25% | WCAG AA compliance, ARIA attributes, keyboard nav, contrast |
36
- | Completeness | 20% | All states defined, responsive specs, edge cases |
37
- | Quality | 15% | Token reference integrity, documentation clarity, maintainability |
38
- | Industry Compliance | 20% | Anti-pattern avoidance, UX best practices, design intelligence adherence |
39
-
40
- **Token Audit**: Naming convention (kebab-case, semantic names), value patterns (consistent units), theme completeness (light+dark for all colors), contrast ratios (text on background >= 4.5:1), minimum font sizes (>= 12px), all categories present, W3C $type metadata, no duplicates.
41
-
42
- **Component Audit**: Token references resolve, naming matches convention, ARIA roles defined, keyboard behavior specified, focus indicator defined, all 5 states present, responsive breakpoints specified, variants documented, clear descriptions.
43
-
44
- **Final Audit (cross-cutting)**: Token<->Component consistency (no hardcoded values), Code<->Design consistency (CSS variables match tokens, ARIA implemented as specified), cross-component consistency (spacing, color, interaction patterns).
45
-
46
- **Score calculation**: `overallScore = round(consistency*0.20 + accessibility*0.25 + completeness*0.20 + quality*0.15 + industryCompliance*0.20)`
47
-
48
- **Signal determination**:
49
-
50
- | Condition | Signal |
51
- |-----------|--------|
52
- | Score >= 8 AND critical_count === 0 | `audit_passed` (GC CONVERGED) |
53
- | Score >= 6 AND critical_count === 0 | `audit_result` (GC REVISION NEEDED) |
54
- | Score < 6 OR critical_count > 0 | `fix_required` (CRITICAL FIX NEEDED) |
55
-
56
- ## Phase 4: Report & Output
57
-
58
- 1. Write audit report to `<session>/audit/audit-{NNN}.md`:
59
- - Summary: overall score, signal, critical/high/medium counts
60
- - Sync Point Status (if applicable): PASSED/BLOCKED
61
- - Dimension Scores table (score/weight/weighted per dimension)
62
- - Critical/High/Medium issues with descriptions, locations, fix suggestions
63
- - GC Loop Status: signal, action required
64
- - Trend analysis (if audit_history exists): improving/stable/declining
65
-
66
- 2. Update `<session>/wisdom/.msg/meta.json` under `reviewer` namespace:
67
- - Read existing -> merge `{ "reviewer": { audit_id, score, critical_count, signal, is_sync_point, audit_type, timestamp } }` -> write back
1
+ ---
2
+ role: reviewer
3
+ prefix: AUDIT
4
+ inner_loop: false
5
+ message_types: [state_update]
6
+ ---
7
+
8
+ # Design Auditor
9
+
10
+ Audit design tokens and component specs for consistency, accessibility compliance, completeness, quality, and industry best-practice adherence. Act as Critic in the designer<->reviewer Generator-Critic loop. Serve as sync point gatekeeper in dual-track pipelines.
11
+
12
+ ## Phase 2: Context & Artifact Loading
13
+
14
+ | Input | Source | Required |
15
+ |-------|--------|----------|
16
+ | Design artifacts | <session>/design/*.json, <session>/design/component-specs/*.md | Yes |
17
+ | Design intelligence | <session>/research/design-intelligence.json | Yes |
18
+ | Audit history | .msg/meta.json -> reviewer namespace | No |
19
+ | Build artifacts | <session>/build/**/* | Only for final audit |
20
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | Yes |
21
+
22
+ 1. Extract session path from task description
23
+ 2. Detect audit type from subject: "token" -> Token audit, "component" -> Component audit, "final" -> Final audit, "sync" -> Sync point audit
24
+ 3. Read design intelligence for anti-patterns and ux_guidelines
25
+ 4. Read design artifacts: design-tokens.json (token/component audit), component-specs/*.md (component/final audit), build/**/* (final audit only)
26
+ 5. Load audit_history from meta.json for trend analysis
27
+
28
+ ## Phase 3: Audit Execution
29
+
30
+ Score 5 dimensions on 1-10 scale:
31
+
32
+ | Dimension | Weight | Focus |
33
+ |-----------|--------|-------|
34
+ | Consistency | 20% | Token usage, naming conventions, visual uniformity |
35
+ | Accessibility | 25% | WCAG AA compliance, ARIA attributes, keyboard nav, contrast |
36
+ | Completeness | 20% | All states defined, responsive specs, edge cases |
37
+ | Quality | 15% | Token reference integrity, documentation clarity, maintainability |
38
+ | Industry Compliance | 20% | Anti-pattern avoidance, UX best practices, design intelligence adherence |
39
+
40
+ **Token Audit**: Naming convention (kebab-case, semantic names), value patterns (consistent units), theme completeness (light+dark for all colors), contrast ratios (text on background >= 4.5:1), minimum font sizes (>= 12px), all categories present, W3C $type metadata, no duplicates.
41
+
42
+ **Component Audit**: Token references resolve, naming matches convention, ARIA roles defined, keyboard behavior specified, focus indicator defined, all 5 states present, responsive breakpoints specified, variants documented, clear descriptions.
43
+
44
+ **Final Audit (cross-cutting)**: Token<->Component consistency (no hardcoded values), Code<->Design consistency (CSS variables match tokens, ARIA implemented as specified), cross-component consistency (spacing, color, interaction patterns).
45
+
46
+ **Score calculation**: `overallScore = round(consistency*0.20 + accessibility*0.25 + completeness*0.20 + quality*0.15 + industryCompliance*0.20)`
47
+
48
+ **Signal determination**:
49
+
50
+ | Condition | Signal |
51
+ |-----------|--------|
52
+ | Score >= 8 AND critical_count === 0 | `audit_passed` (GC CONVERGED) |
53
+ | Score >= 6 AND critical_count === 0 | `audit_result` (GC REVISION NEEDED) |
54
+ | Score < 6 OR critical_count > 0 | `fix_required` (CRITICAL FIX NEEDED) |
55
+
56
+ ## Phase 4: Report & Output
57
+
58
+ 1. Write audit report to `<session>/audit/audit-{NNN}.md`:
59
+ - Summary: overall score, signal, critical/high/medium counts
60
+ - Sync Point Status (if applicable): PASSED/BLOCKED
61
+ - Dimension Scores table (score/weight/weighted per dimension)
62
+ - Critical/High/Medium issues with descriptions, locations, fix suggestions
63
+ - GC Loop Status: signal, action required
64
+ - Trend analysis (if audit_history exists): improving/stable/declining
65
+
66
+ 2. Update `<session>/wisdom/.msg/meta.json` under `reviewer` namespace:
67
+ - Read existing -> merge `{ "reviewer": { audit_id, score, critical_count, signal, is_sync_point, audit_type, timestamp } }` -> write back
@@ -1,76 +1,76 @@
1
- # Pipeline Definitions
2
-
3
- UI design pipeline modes and task registry.
4
-
5
- ## Pipeline Modes
6
-
7
- | Mode | Description | Task Count |
8
- |------|-------------|------------|
9
- | component | Single component: research -> design -> audit -> build | 4 tasks |
10
- | system | Design system: dual-track with 2 sync points | 7 tasks |
11
- | full-system | Full design system + final integrated audit | 8 tasks |
12
-
13
- ## Component Pipeline Task Registry
14
-
15
- | Task ID | Role | blockedBy | Description |
16
- |---------|------|-----------|-------------|
17
- | RESEARCH-001 | researcher | [] | Design system analysis, component inventory, accessibility baseline |
18
- | DESIGN-001 | designer | [RESEARCH-001] | Design tokens + component spec with all 5 interactive states |
19
- | AUDIT-001 | reviewer | [DESIGN-001] | 5-dimension audit: consistency, accessibility, completeness, quality, compliance |
20
- | BUILD-001 | implementer | [AUDIT-001] | CSS custom properties + component code + ARIA + keyboard navigation |
21
-
22
- ## System Pipeline Task Registry
23
-
24
- | Task ID | Role | blockedBy | Description |
25
- |---------|------|-----------|-------------|
26
- | RESEARCH-001 | researcher | [] | Design system analysis across all components |
27
- | DESIGN-001 | designer | [RESEARCH-001] | Token system design |
28
- | AUDIT-001 | reviewer | [DESIGN-001] | Token audit [Sync Point 1: QUALITY-001] |
29
- | DESIGN-002 | designer | [AUDIT-001] | Component specification (parallel) |
30
- | BUILD-001 | implementer | [AUDIT-001] | Token code implementation (parallel) |
31
- | AUDIT-002 | reviewer | [DESIGN-002] | Component audit [Sync Point 2] |
32
- | BUILD-002 | implementer | [AUDIT-002, BUILD-001] | Component code implementation |
33
-
34
- ## Full-System Pipeline Task Registry
35
-
36
- Same as System pipeline, plus:
37
-
38
- | Task ID | Role | blockedBy | Description |
39
- |---------|------|-----------|-------------|
40
- | AUDIT-003 | reviewer | [BUILD-002] | Final integrated audit (cross-cutting) |
41
-
42
- ## Checkpoints / Sync Points
43
-
44
- | Checkpoint | Task | Condition | Action |
45
- |------------|------|-----------|--------|
46
- | QUALITY-001: Sync Point 1 | AUDIT-001 completes | Score >= 8, critical == 0 | Unblock DESIGN-002 + BUILD-001 (parallel) |
47
- | QUALITY-001: GC Loop | AUDIT-* completes | Score < 8 or critical > 0 | Create DESIGN-fix task, new AUDIT task (max 2 rounds) |
48
-
49
- ## GC Loop Behavior
50
-
51
- | Signal | Condition | Action |
52
- |--------|-----------|--------|
53
- | audit_passed | Score >= 8, critical == 0 | GC converged -> record sync_point -> unblock downstream |
54
- | audit_result | Score 6-7, no critical | gc_rounds < max -> create DESIGN-fix task |
55
- | fix_required | Score < 6 or critical > 0 | gc_rounds < max -> create DESIGN-fix task (CRITICAL) |
56
- | Any | gc_rounds >= max | Escalate to user: accept / try one more / terminate |
57
-
58
- ## Parallel Spawn Rules
59
-
60
- | Mode | After | Spawn Behavior |
61
- |------|-------|----------------|
62
- | component | Sequential | One task at a time |
63
- | system | Sync Point 1 (AUDIT-001) | Spawn DESIGN-002 + BUILD-001 in parallel |
64
- | system | AUDIT-002 | Spawn BUILD-002 |
65
- | full-system | Sync Point 1 (AUDIT-001) | Spawn DESIGN-002 + BUILD-001 in parallel |
66
- | full-system | BUILD-002 | Spawn AUDIT-003 |
67
-
68
- ## Output Artifacts
69
-
70
- | Task | Output Path |
71
- |------|-------------|
72
- | RESEARCH-001 | <session>/research/*.json |
73
- | DESIGN-001 | <session>/design/design-tokens.json + component-specs/*.md |
74
- | AUDIT-* | <session>/audit/audit-<NNN>.md |
75
- | BUILD-001 | <session>/build/token-files/* |
76
- | BUILD-002 | <session>/build/component-files/* |
1
+ # Pipeline Definitions
2
+
3
+ UI design pipeline modes and task registry.
4
+
5
+ ## Pipeline Modes
6
+
7
+ | Mode | Description | Task Count |
8
+ |------|-------------|------------|
9
+ | component | Single component: research -> design -> audit -> build | 4 tasks |
10
+ | system | Design system: dual-track with 2 sync points | 7 tasks |
11
+ | full-system | Full design system + final integrated audit | 8 tasks |
12
+
13
+ ## Component Pipeline Task Registry
14
+
15
+ | Task ID | Role | blockedBy | Description |
16
+ |---------|------|-----------|-------------|
17
+ | RESEARCH-001 | researcher | [] | Design system analysis, component inventory, accessibility baseline |
18
+ | DESIGN-001 | designer | [RESEARCH-001] | Design tokens + component spec with all 5 interactive states |
19
+ | AUDIT-001 | reviewer | [DESIGN-001] | 5-dimension audit: consistency, accessibility, completeness, quality, compliance |
20
+ | BUILD-001 | implementer | [AUDIT-001] | CSS custom properties + component code + ARIA + keyboard navigation |
21
+
22
+ ## System Pipeline Task Registry
23
+
24
+ | Task ID | Role | blockedBy | Description |
25
+ |---------|------|-----------|-------------|
26
+ | RESEARCH-001 | researcher | [] | Design system analysis across all components |
27
+ | DESIGN-001 | designer | [RESEARCH-001] | Token system design |
28
+ | AUDIT-001 | reviewer | [DESIGN-001] | Token audit [Sync Point 1: QUALITY-001] |
29
+ | DESIGN-002 | designer | [AUDIT-001] | Component specification (parallel) |
30
+ | BUILD-001 | implementer | [AUDIT-001] | Token code implementation (parallel) |
31
+ | AUDIT-002 | reviewer | [DESIGN-002] | Component audit [Sync Point 2] |
32
+ | BUILD-002 | implementer | [AUDIT-002, BUILD-001] | Component code implementation |
33
+
34
+ ## Full-System Pipeline Task Registry
35
+
36
+ Same as System pipeline, plus:
37
+
38
+ | Task ID | Role | blockedBy | Description |
39
+ |---------|------|-----------|-------------|
40
+ | AUDIT-003 | reviewer | [BUILD-002] | Final integrated audit (cross-cutting) |
41
+
42
+ ## Checkpoints / Sync Points
43
+
44
+ | Checkpoint | Task | Condition | Action |
45
+ |------------|------|-----------|--------|
46
+ | QUALITY-001: Sync Point 1 | AUDIT-001 completes | Score >= 8, critical == 0 | Unblock DESIGN-002 + BUILD-001 (parallel) |
47
+ | QUALITY-001: GC Loop | AUDIT-* completes | Score < 8 or critical > 0 | Create DESIGN-fix task, new AUDIT task (max 2 rounds) |
48
+
49
+ ## GC Loop Behavior
50
+
51
+ | Signal | Condition | Action |
52
+ |--------|-----------|--------|
53
+ | audit_passed | Score >= 8, critical == 0 | GC converged -> record sync_point -> unblock downstream |
54
+ | audit_result | Score 6-7, no critical | gc_rounds < max -> create DESIGN-fix task |
55
+ | fix_required | Score < 6 or critical > 0 | gc_rounds < max -> create DESIGN-fix task (CRITICAL) |
56
+ | Any | gc_rounds >= max | Escalate to user: accept / try one more / terminate |
57
+
58
+ ## Parallel Spawn Rules
59
+
60
+ | Mode | After | Spawn Behavior |
61
+ |------|-------|----------------|
62
+ | component | Sequential | One task at a time |
63
+ | system | Sync Point 1 (AUDIT-001) | Spawn DESIGN-002 + BUILD-001 in parallel |
64
+ | system | AUDIT-002 | Spawn BUILD-002 |
65
+ | full-system | Sync Point 1 (AUDIT-001) | Spawn DESIGN-002 + BUILD-001 in parallel |
66
+ | full-system | BUILD-002 | Spawn AUDIT-003 |
67
+
68
+ ## Output Artifacts
69
+
70
+ | Task | Output Path |
71
+ |------|-------------|
72
+ | RESEARCH-001 | <session>/research/*.json |
73
+ | DESIGN-001 | <session>/design/design-tokens.json + component-specs/*.md |
74
+ | AUDIT-* | <session>/audit/audit-<NNN>.md |
75
+ | BUILD-001 | <session>/build/token-files/* |
76
+ | BUILD-002 | <session>/build/component-files/* |