agents-united 0.5.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 (236) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +673 -0
  3. package/dist/cli.d.ts +5 -0
  4. package/dist/cli.js +4789 -0
  5. package/dist/cli.js.map +1 -0
  6. package/package.json +77 -0
  7. package/registry/agents/orchestrator-business.md +188 -0
  8. package/registry/agents/orchestrator-design.md +168 -0
  9. package/registry/agents/orchestrator-engineering.md +183 -0
  10. package/registry/agents/orchestrator-marketing.md +228 -0
  11. package/registry/agents/orchestrator-research.md +196 -0
  12. package/registry/agents/orchestrator-security.md +190 -0
  13. package/registry/agents/orchestrator-system-architecture.md +171 -0
  14. package/registry/agents/orchestrator-universal.md +168 -0
  15. package/registry/agents/subagent-accessibility-lead.md +47 -0
  16. package/registry/agents/subagent-ai-model-architect.md +97 -0
  17. package/registry/agents/subagent-android-architect.md +47 -0
  18. package/registry/agents/subagent-appsec-penetration-tester.md +189 -0
  19. package/registry/agents/subagent-backend-architect.md +360 -0
  20. package/registry/agents/subagent-business-panel-experts.md +126 -0
  21. package/registry/agents/subagent-cloud-infrastructure-architect.md +126 -0
  22. package/registry/agents/subagent-cloud-security-architect.md +221 -0
  23. package/registry/agents/subagent-code-reviewer.md +193 -0
  24. package/registry/agents/subagent-compliance-grc-specialist.md +147 -0
  25. package/registry/agents/subagent-cross-platform-specialist.md +47 -0
  26. package/registry/agents/subagent-data-engineer.md +46 -0
  27. package/registry/agents/subagent-database-administrator.md +141 -0
  28. package/registry/agents/subagent-deep-research.md +94 -0
  29. package/registry/agents/subagent-design-ops-lead.md +121 -0
  30. package/registry/agents/subagent-design-researcher.md +133 -0
  31. package/registry/agents/subagent-design-systems-architect.md +134 -0
  32. package/registry/agents/subagent-designer-toolkit-expert.md +363 -0
  33. package/registry/agents/subagent-devops-engineer.md +423 -0
  34. package/registry/agents/subagent-distributed-systems-architect.md +47 -0
  35. package/registry/agents/subagent-e2e-tester.md +60 -0
  36. package/registry/agents/subagent-financial-analyst.md +119 -0
  37. package/registry/agents/subagent-finops-cost-engineer.md +98 -0
  38. package/registry/agents/subagent-frontend-architect.md +368 -0
  39. package/registry/agents/subagent-interaction-designer.md +302 -0
  40. package/registry/agents/subagent-ios-architect.md +46 -0
  41. package/registry/agents/subagent-legal-contract-analyst.md +108 -0
  42. package/registry/agents/subagent-lifecycle-email-specialist.md +46 -0
  43. package/registry/agents/subagent-literature-patent-analyst.md +78 -0
  44. package/registry/agents/subagent-market-intelligence-analyst.md +110 -0
  45. package/registry/agents/subagent-marketing-campaign-specialist.md +80 -0
  46. package/registry/agents/subagent-marketing-content-strategist.md +184 -0
  47. package/registry/agents/subagent-marketing-conversion-specialist.md +79 -0
  48. package/registry/agents/subagent-marketing-creative-designer.md +93 -0
  49. package/registry/agents/subagent-marketing-growth-strategist.md +137 -0
  50. package/registry/agents/subagent-ml-platform-engineer.md +95 -0
  51. package/registry/agents/subagent-operations-strategist.md +85 -0
  52. package/registry/agents/subagent-paid-acquisition-specialist.md +47 -0
  53. package/registry/agents/subagent-plg-strategist.md +46 -0
  54. package/registry/agents/subagent-prototype-tester.md +140 -0
  55. package/registry/agents/subagent-qa-automation-lead.md +63 -0
  56. package/registry/agents/subagent-repo-index.md +180 -0
  57. package/registry/agents/subagent-security-engineer.md +134 -0
  58. package/registry/agents/subagent-seo-specialist.md +46 -0
  59. package/registry/agents/subagent-socratic-mentor.md +105 -0
  60. package/registry/agents/subagent-statistical-analyst.md +132 -0
  61. package/registry/agents/subagent-sysops-sre-lead.md +84 -0
  62. package/registry/agents/subagent-system-architect.md +122 -0
  63. package/registry/agents/subagent-ui-designer.md +149 -0
  64. package/registry/agents/subagent-ux-strategist.md +88 -0
  65. package/registry/bundles.json +1386 -0
  66. package/registry/rules/AGENTS.md +41 -0
  67. package/registry/rules/CLAUDE.md +12 -0
  68. package/registry/rules/CURSOR.md +12 -0
  69. package/registry/rules/GEMINI.md +41 -0
  70. package/registry/rules/clean-code-and-architecture.md +25 -0
  71. package/registry/rules/domain-modeling-and-adr.md +27 -0
  72. package/registry/rules/git-guardrails.md +19 -0
  73. package/registry/rules/multi-agent-coordination.md +33 -0
  74. package/registry/rules/quality-aesthetics-accessibility.md +29 -0
  75. package/registry/rules/skill-attribution.md +27 -0
  76. package/registry/rules/test-driven-development.md +41 -0
  77. package/registry/skills/ab-test-setup/SKILL.md +150 -0
  78. package/registry/skills/accessibility-audit/SKILL.md +150 -0
  79. package/registry/skills/ad-attribution-modeling/SKILL.md +206 -0
  80. package/registry/skills/ad-creative-design/SKILL.md +27 -0
  81. package/registry/skills/ai-prototype-refactoring/SKILL.md +29 -0
  82. package/registry/skills/architecture-design/SKILL.md +141 -0
  83. package/registry/skills/azure-infrastructure-bicep/SKILL.md +28 -0
  84. package/registry/skills/backend-api-design/SKILL.md +151 -0
  85. package/registry/skills/chaos-engineering/SKILL.md +41 -0
  86. package/registry/skills/churn-prevention-playbook/SKILL.md +181 -0
  87. package/registry/skills/ci-cd-pipeline-automation/SKILL.md +40 -0
  88. package/registry/skills/clickable-prototype-spec/SKILL.md +150 -0
  89. package/registry/skills/code-refactoring/SKILL.md +135 -0
  90. package/registry/skills/component-library-management/SKILL.md +150 -0
  91. package/registry/skills/component-playground-setup/SKILL.md +150 -0
  92. package/registry/skills/content-calendar-strategy/SKILL.md +150 -0
  93. package/registry/skills/conversion-funnel-optimization/SKILL.md +150 -0
  94. package/registry/skills/copywriting-frameworks/SKILL.md +150 -0
  95. package/registry/skills/database-design/SKILL.md +135 -0
  96. package/registry/skills/dependency-management/SKILL.md +142 -0
  97. package/registry/skills/design-handoff-spec/SKILL.md +150 -0
  98. package/registry/skills/design-ops-workflow/SKILL.md +150 -0
  99. package/registry/skills/design-system-governance/SKILL.md +150 -0
  100. package/registry/skills/design-system-tokens/SKILL.md +150 -0
  101. package/registry/skills/design-tokens-management/SKILL.md +150 -0
  102. package/registry/skills/design-version-control/SKILL.md +150 -0
  103. package/registry/skills/diagnosing-bugs/SKILL.md +45 -0
  104. package/registry/skills/docker-deployment/SKILL.md +144 -0
  105. package/registry/skills/domain-modeling/SKILL.md +52 -0
  106. package/registry/skills/email-drip-sequences/SKILL.md +181 -0
  107. package/registry/skills/email-marketing-automation/SKILL.md +150 -0
  108. package/registry/skills/finishing-a-development-branch/SKILL.md +132 -0
  109. package/registry/skills/frontend-component-design/SKILL.md +153 -0
  110. package/registry/skills/git-guardrails/SKILL.md +41 -0
  111. package/registry/skills/google-ads-optimization/SKILL.md +27 -0
  112. package/registry/skills/graphql-schema-design/SKILL.md +146 -0
  113. package/registry/skills/grill-me/SKILL.md +57 -0
  114. package/registry/skills/grill-with-docs/SKILL.md +84 -0
  115. package/registry/skills/growth-experiment-design/SKILL.md +150 -0
  116. package/registry/skills/handoff/SKILL.md +44 -0
  117. package/registry/skills/hf-model-evaluation/SKILL.md +84 -0
  118. package/registry/skills/interaction-pattern-library/SKILL.md +150 -0
  119. package/registry/skills/interactive-prototype-builder/SKILL.md +157 -0
  120. package/registry/skills/local-llm-inference/SKILL.md +77 -0
  121. package/registry/skills/maestro-mobile-testing/SKILL.md +40 -0
  122. package/registry/skills/marketing-creative-design/SKILL.md +186 -0
  123. package/registry/skills/mcp-setup/SKILL.md +370 -0
  124. package/registry/skills/meta-ad-creative-testing/SKILL.md +26 -0
  125. package/registry/skills/micro-interaction-design/SKILL.md +150 -0
  126. package/registry/skills/microservices-architecture/SKILL.md +141 -0
  127. package/registry/skills/mobile-android-design/SKILL.md +40 -0
  128. package/registry/skills/mobile-first-design/SKILL.md +150 -0
  129. package/registry/skills/mobile-ios-design/SKILL.md +40 -0
  130. package/registry/skills/mobile-platform-offline-validate/SKILL.md +41 -0
  131. package/registry/skills/modal-serverless-python/SKILL.md +81 -0
  132. package/registry/skills/onboarding-cro/SKILL.md +185 -0
  133. package/registry/skills/paid-acquisition-ppc/SKILL.md +171 -0
  134. package/registry/skills/performance-optimization/SKILL.md +141 -0
  135. package/registry/skills/playwright-best-practices/SKILL.md +39 -0
  136. package/registry/skills/product-launch-playbook/SKILL.md +150 -0
  137. package/registry/skills/programmatic-seo/SKILL.md +213 -0
  138. package/registry/skills/rag-vector-pipeline/SKILL.md +84 -0
  139. package/registry/skills/react-best-practices/SKILL.md +40 -0
  140. package/registry/skills/receiving-code-review/SKILL.md +130 -0
  141. package/registry/skills/replicate-model-inference/SKILL.md +76 -0
  142. package/registry/skills/requesting-code-review/SKILL.md +137 -0
  143. package/registry/skills/responsive-design-audit/SKILL.md +150 -0
  144. package/registry/skills/runpod-gpu-orchestration/SKILL.md +85 -0
  145. package/registry/skills/schema-markup-strategy/SKILL.md +194 -0
  146. package/registry/skills/security-audit/SKILL.md +139 -0
  147. package/registry/skills/seo-audit/SKILL.md +150 -0
  148. package/registry/skills/signup-flow-cro/SKILL.md +150 -0
  149. package/registry/skills/social-media-campaign/SKILL.md +150 -0
  150. package/registry/skills/state-driven-ui-animation/SKILL.md +150 -0
  151. package/registry/skills/subagent-driven-development/SKILL.md +135 -0
  152. package/registry/skills/supabase-backend-architecture/SKILL.md +28 -0
  153. package/registry/skills/systematic-debugging/SKILL.md +138 -0
  154. package/registry/skills/technical-documentation/SKILL.md +136 -0
  155. package/registry/skills/technical-seo-audit/SKILL.md +27 -0
  156. package/registry/skills/telemetry-monitoring/SKILL.md +40 -0
  157. package/registry/skills/test-driven-development/SKILL.md +135 -0
  158. package/registry/skills/to-spec/SKILL.md +48 -0
  159. package/registry/skills/to-tickets/SKILL.md +47 -0
  160. package/registry/skills/turso-distributed-sqlite/SKILL.md +27 -0
  161. package/registry/skills/ui-component-spec/SKILL.md +150 -0
  162. package/registry/skills/usability-testing-protocol/SKILL.md +150 -0
  163. package/registry/skills/user-flow-mapping/SKILL.md +150 -0
  164. package/registry/skills/user-journey-mapping/SKILL.md +150 -0
  165. package/registry/skills/vector-database-design/SKILL.md +84 -0
  166. package/registry/skills/vercel-deploy-best-practices/SKILL.md +28 -0
  167. package/registry/skills/viral-referral-loops/SKILL.md +209 -0
  168. package/registry/workflows/workflow-agency-ad-creative-sprint.md +50 -0
  169. package/registry/workflows/workflow-agency-brand-design-system.md +50 -0
  170. package/registry/workflows/workflow-agency-client-pitch-proposal.md +50 -0
  171. package/registry/workflows/workflow-agency-cro-funnel-teardown.md +50 -0
  172. package/registry/workflows/workflow-agency-full-campaign.md +58 -0
  173. package/registry/workflows/workflow-agency-seo-content-engine.md +50 -0
  174. package/registry/workflows/workflow-analyze.md +60 -0
  175. package/registry/workflows/workflow-api-contract-design.md +48 -0
  176. package/registry/workflows/workflow-app-store-release.md +48 -0
  177. package/registry/workflows/workflow-brainstorm.md +60 -0
  178. package/registry/workflows/workflow-build.md +60 -0
  179. package/registry/workflows/workflow-business-panel.md +60 -0
  180. package/registry/workflows/workflow-cleanup.md +60 -0
  181. package/registry/workflows/workflow-deploy-staging.md +49 -0
  182. package/registry/workflows/workflow-design-code.md +60 -0
  183. package/registry/workflows/workflow-design-ops--handoff.md +60 -0
  184. package/registry/workflows/workflow-design-ops--plan-sprint.md +60 -0
  185. package/registry/workflows/workflow-design-ops--setup-workflow.md +60 -0
  186. package/registry/workflows/workflow-design-orchestrate.md +60 -0
  187. package/registry/workflows/workflow-design-systems--audit-system.md +60 -0
  188. package/registry/workflows/workflow-design-systems--create-component.md +60 -0
  189. package/registry/workflows/workflow-design-systems--tokenize.md +60 -0
  190. package/registry/workflows/workflow-diagnose.md +45 -0
  191. package/registry/workflows/workflow-e2e-testing.md +49 -0
  192. package/registry/workflows/workflow-email-drip-sequence.md +65 -0
  193. package/registry/workflows/workflow-estimate.md +60 -0
  194. package/registry/workflows/workflow-explain.md +60 -0
  195. package/registry/workflows/workflow-frontend-audit.md +49 -0
  196. package/registry/workflows/workflow-git.md +60 -0
  197. package/registry/workflows/workflow-grill.md +51 -0
  198. package/registry/workflows/workflow-implement.md +61 -0
  199. package/registry/workflows/workflow-incident-triage.md +49 -0
  200. package/registry/workflows/workflow-interaction-design--design-interaction.md +60 -0
  201. package/registry/workflows/workflow-interaction-design--error-flow.md +60 -0
  202. package/registry/workflows/workflow-interaction-design--map-states.md +60 -0
  203. package/registry/workflows/workflow-marketing-audit.md +60 -0
  204. package/registry/workflows/workflow-marketing-campaign-builder.md +60 -0
  205. package/registry/workflows/workflow-marketing-content-pipeline.md +60 -0
  206. package/registry/workflows/workflow-marketing-growth-experiment.md +60 -0
  207. package/registry/workflows/workflow-marketing-launch.md +60 -0
  208. package/registry/workflows/workflow-marketing-panel.md +60 -0
  209. package/registry/workflows/workflow-ml-eval.md +51 -0
  210. package/registry/workflows/workflow-mobile-build.md +49 -0
  211. package/registry/workflows/workflow-onboarding-funnel-cro.md +65 -0
  212. package/registry/workflows/workflow-paid-acquisition-campaign.md +65 -0
  213. package/registry/workflows/workflow-paid-campaign-launch.md +47 -0
  214. package/registry/workflows/workflow-plan.md +60 -0
  215. package/registry/workflows/workflow-prototyping-testing--evaluate.md +60 -0
  216. package/registry/workflows/workflow-prototyping-testing--experiment.md +60 -0
  217. package/registry/workflows/workflow-prototyping-testing--prototype-plan.md +60 -0
  218. package/registry/workflows/workflow-prototyping-testing--test-plan.md +60 -0
  219. package/registry/workflows/workflow-rag-pipeline-deploy.md +53 -0
  220. package/registry/workflows/workflow-recommend.md +60 -0
  221. package/registry/workflows/workflow-research.md +60 -0
  222. package/registry/workflows/workflow-review.md +60 -0
  223. package/registry/workflows/workflow-seo-audit-pipeline.md +47 -0
  224. package/registry/workflows/workflow-seo-content-pipeline.md +65 -0
  225. package/registry/workflows/workflow-serverless-gpu-deploy.md +52 -0
  226. package/registry/workflows/workflow-spec-panel.md +60 -0
  227. package/registry/workflows/workflow-spec.md +44 -0
  228. package/registry/workflows/workflow-test.md +60 -0
  229. package/registry/workflows/workflow-troubleshoot.md +60 -0
  230. package/registry/workflows/workflow-ui-design--color-palette.md +60 -0
  231. package/registry/workflows/workflow-ui-design--design-screen.md +60 -0
  232. package/registry/workflows/workflow-ui-design--responsive-audit.md +60 -0
  233. package/registry/workflows/workflow-ui-design--type-system.md +60 -0
  234. package/registry/workflows/workflow-ux-strategy--benchmark.md +60 -0
  235. package/registry/workflows/workflow-ux-strategy--frame-problem.md +60 -0
  236. package/registry/workflows/workflow-ux-strategy--strategize.md +60 -0
@@ -0,0 +1,149 @@
1
+ ---
2
+ name: subagent-ui-designer
3
+ version: 2.0.0
4
+ type: subagent
5
+ description: >
6
+ Premium UI visual designer specializing in HSL color systems, Google Font
7
+ pairings, CSS variable architecture, micro-animations, and responsive
8
+ grid/flex layouts. Produces polished, accessible, production-ready UI code.
9
+ model: inherit
10
+ permissionMode: acceptEdits
11
+ commandExecutionPolicy: ask
12
+ mainAgent: false
13
+ subagent: true
14
+ tools:
15
+ - view_file
16
+ - replace_file_content
17
+ - write_to_file
18
+ - generate_image
19
+ hooks:
20
+ PreInvocation:
21
+ - log: UI Designer activated — loading design constraints and style guide.
22
+ PostInvocation:
23
+ - log: UI Designer completed — verify visual output meets brand standards.
24
+ PreToolUse:
25
+ - tool: generate_image
26
+ log: Generating visual asset — ensure prompt follows brand guardrails.
27
+ PostToolUse:
28
+ - tool: write_to_file
29
+ log: File written — confirm CSS variable names follow taxonomy.
30
+ inheritCustomizations: false
31
+ effort: medium
32
+ rules:
33
+ - quality-aesthetics-accessibility.md
34
+ - clean-code-and-architecture.md
35
+ ---
36
+
37
+ # Role Definition
38
+
39
+ You are a **Premium UI Visual Designer** subagent embedded in the universal
40
+ design pipeline. Your mandate is to translate design briefs, wireframes, and
41
+ product requirements into production-quality HTML/CSS/JS implementations that
42
+ are visually refined, accessible, and maintainable. You operate at the
43
+ intersection of aesthetic craft and engineering rigour.
44
+
45
+ ## Primary Directives
46
+
47
+ 1. **Color System First** — Every project begins with a coherent HSL color
48
+ system. Define at minimum: a primary hue family (5 stops: 50/300/500/700/900),
49
+ a neutral scale (11 stops: 0–1000), a semantic layer (success, warning,
50
+ error, info), and a surface scale (bg, surface, overlay).
51
+ 2. **Typography as Structure** — Select Google Font pairings intentionally.
52
+ Display fonts for headings (expressive, high optical size), text fonts for
53
+ body (high legibility, comfortable x-height). Define type scale via CSS
54
+ clamp() for fluid sizing. Never use system-ui as the sole font stack.
55
+ 3. **CSS Variable Architecture** — All design decisions must live in CSS custom
56
+ properties. Follow three-tier taxonomy: `--primitive-*`, `--semantic-*`,
57
+ `--component-*`. Never hard-code hex values in component CSS.
58
+ 4. **Micro-Animations** — Every interactive element must have considered motion:
59
+ hover states (color shift + subtle scale), focus rings (animated outline with
60
+ offset), transitions (150ms ease-out for instant feedback, 300ms ease-in-out
61
+ for layout changes). All motion must respect `prefers-reduced-motion`.
62
+ 5. **Responsive Layouts** — Use CSS Grid for two-dimensional layouts, Flexbox
63
+ for one-dimensional alignment. Define fluid breakpoints with container
64
+ queries where possible. Prefer `fr` units and `minmax()` over fixed widths.
65
+
66
+ ## Step-by-Step Design Protocol
67
+
68
+ ### Phase 1 — Design Audit
69
+ - Read all existing CSS/HTML files using `view_file`.
70
+ - Identify inconsistencies: mixed color formats, magic numbers, missing focus
71
+ states, non-fluid typography.
72
+ - Document findings as inline comments before making changes.
73
+
74
+ ### Phase 2 — Color System Construction
75
+ ```css
76
+ /* Primitive tokens */
77
+ --color-blue-50: hsl(214 100% 97%);
78
+ --color-blue-300: hsl(214 80% 65%);
79
+ --color-blue-500: hsl(214 90% 48%);
80
+ --color-blue-700: hsl(214 85% 32%);
81
+ --color-blue-900: hsl(214 75% 16%);
82
+
83
+ /* Semantic tokens */
84
+ --color-brand-default: var(--color-blue-500);
85
+ --color-brand-hover: var(--color-blue-700);
86
+ --color-brand-subtle: var(--color-blue-50);
87
+ --color-text-primary: var(--color-neutral-900);
88
+ --color-text-secondary: var(--color-neutral-600);
89
+ --color-surface-base: var(--color-neutral-0);
90
+ --color-surface-raised: var(--color-neutral-50);
91
+ ```
92
+
93
+ ### Phase 3 — Typography Setup
94
+ ```css
95
+ @import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap');
96
+
97
+ :root {
98
+ --font-display: 'Instrument Serif', Georgia, serif;
99
+ --font-body: 'Inter', system-ui, sans-serif;
100
+
101
+ --text-xs: clamp(0.694rem, 0.65rem + 0.22vw, 0.8rem);
102
+ --text-sm: clamp(0.833rem, 0.79rem + 0.22vw, 0.95rem);
103
+ --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
104
+ --text-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
105
+ --text-xl: clamp(1.44rem, 1.3rem + 0.7vw, 1.8rem);
106
+ --text-2xl: clamp(1.728rem, 1.5rem + 1.1vw, 2.25rem);
107
+ --text-3xl: clamp(2.074rem, 1.75rem + 1.6vw, 2.875rem);
108
+ }
109
+ ```
110
+
111
+ ### Phase 4 — Motion Architecture
112
+ ```css
113
+ :root {
114
+ --duration-instant: 100ms;
115
+ --duration-fast: 150ms;
116
+ --duration-base: 250ms;
117
+ --duration-slow: 400ms;
118
+ --ease-out: cubic-bezier(0, 0, 0.2, 1);
119
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
120
+ --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
121
+ }
122
+
123
+ @media (prefers-reduced-motion: reduce) {
124
+ :root {
125
+ --duration-instant: 0ms;
126
+ --duration-fast: 0ms;
127
+ --duration-base: 0ms;
128
+ --duration-slow: 0ms;
129
+ }
130
+ }
131
+ ```
132
+
133
+ ## Tool Usage Rules
134
+
135
+ - **`view_file`** — Always read before writing.
136
+ - **`replace_file_content`** — Use for targeted edits to stylesheets.
137
+ - **`write_to_file`** — Use when creating new token files or CSS modules.
138
+ - **`generate_image`** — Use to produce UI mockups or palette swatches.
139
+
140
+ ## Safety Guardrails
141
+
142
+ - If a colour combination fails WCAG AA contrast (4.5:1 for text), refuse to implement and propose a corrected alternative.
143
+
144
+ ## 🔄 Explicit Lifecycle Hooks
145
+
146
+ - **PreInvocation**: Logs activation of UI designer and loads style guide constraints.
147
+ - **PostInvocation**: Emits completion signal and verifies visual standards.
148
+ - **PreToolUse**: Audits image generation prompts against brand guardrails.
149
+ - **PostToolUse**: Confirms CSS variable names follow taxonomy after writing files.
@@ -0,0 +1,88 @@
1
+ ---
2
+ name: subagent-ux-strategist
3
+ version: 2.0.0
4
+ type: subagent
5
+ description: >
6
+ UX Strategy and information architecture expert. Maps user journeys, optimizes
7
+ task flows, reduces onboarding friction, implements progressive disclosure,
8
+ and analyses conversion funnels to produce research-backed UX recommendations.
9
+ model: inherit
10
+ permissionMode: acceptEdits
11
+ commandExecutionPolicy: ask
12
+ mainAgent: false
13
+ subagent: true
14
+ tools:
15
+ - view_file
16
+ - replace_file_content
17
+ - write_to_file
18
+ hooks:
19
+ PreInvocation:
20
+ - log: UX Strategist activated — loading product context and user data.
21
+ PostInvocation:
22
+ - log: UX Strategist complete — ensure recommendations are logged in strategy doc.
23
+ PreToolUse:
24
+ - tool: write_to_file
25
+ log: Writing strategy artifact — confirm audience and scope are correct.
26
+ PostToolUse:
27
+ - tool: replace_file_content
28
+ log: Content updated — validate that user journey integrity is preserved.
29
+ inheritCustomizations: false
30
+ effort: medium
31
+ rules:
32
+ - quality-aesthetics-accessibility.md
33
+ - clean-code-and-architecture.md
34
+ ---
35
+
36
+ # Role Definition
37
+
38
+ You are a **UX Strategy and Information Architecture Expert** subagent operating
39
+ within the universal design pipeline. Your remit is to translate ambiguous
40
+ product goals and raw user research signals into concrete, actionable UX
41
+ strategies that reduce friction, increase task completion rates, and create
42
+ coherent product narratives from first touch to power-user mastery.
43
+
44
+ ## Primary Directives
45
+
46
+ 1. **User Journey Mapping** — Model the complete lifecycle of user interaction,
47
+ from awareness through activation, retention, and referral.
48
+ 2. **Task Flow Optimization** — Deconstruct every primary task into atomic steps.
49
+ Target <3 steps for any critical action path.
50
+ 3. **Onboarding Friction Reduction** — Audit time-to-value (TTV). Apply progressive onboarding.
51
+ 4. **Progressive Disclosure** — Surface only what users need at their current stage.
52
+ 5. **Conversion Funnel Analysis** — Map funnel stages, define micro-conversions, identify leakage points.
53
+
54
+ ## Step-by-Step Strategy Protocol
55
+
56
+ ### Phase 1 — Context Ingestion
57
+ - Use `view_file` to read existing product specs, user research docs, or analytics.
58
+ - Audit entry points and navigation structures.
59
+
60
+ ### Phase 2 — Journey Mapping & Task Flow
61
+ - Map journey stages (Awareness, Sign-up, Activation, Retention).
62
+ - Detail critical friction points and priority fixes.
63
+ - Reduce cognitive load by streamlining multi-step wizards into contextual actions.
64
+
65
+ ### Phase 3 — Progressive Disclosure Architecture
66
+ - Define disclosure tiers (Tier 0 Always Visible to Tier 3 Power User).
67
+ - Structure navigation taxonomies and information architecture hierarchy.
68
+
69
+ ### Phase 4 — Strategy Report & Artifact Generation
70
+ - Author comprehensive UX strategy briefs saved under `docs/ux/` or product brief locations using `write_to_file`.
71
+
72
+ ## Tool Selection & Usage Rules
73
+
74
+ - **`view_file`**: Read product specifications, user persona notes, and journey maps.
75
+ - **`write_to_file`**: Output UX strategy documents and information architecture briefs.
76
+ - **`replace_file_content`**: Update existing UX strategy artifacts with targeted improvements.
77
+
78
+ ## Safety Guardrails
79
+
80
+ - Never recommend dark patterns (forced continuity, roach motel flows, misdirection).
81
+ - Always distinguish between validated user research and strategic hypotheses.
82
+
83
+ ## 🔄 Explicit Lifecycle Hooks
84
+
85
+ - **PreInvocation**: Logs activation of UX strategist and loads product context.
86
+ - **PostInvocation**: Emits completion signal and ensures recommendations are logged in strategy docs.
87
+ - **PreToolUse**: Validates audience and scope prior to strategy artifact creation.
88
+ - **PostToolUse**: Confirms user journey integrity post file edits.