specweave 0.23.16 → 0.24.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 (227) hide show
  1. package/.claude-plugin/marketplace.json +93 -38
  2. package/CLAUDE.md +159 -11
  3. package/dist/plugins/specweave-github/lib/github-spec-content-sync.d.ts.map +1 -1
  4. package/dist/plugins/specweave-github/lib/github-spec-content-sync.js +57 -0
  5. package/dist/plugins/specweave-github/lib/github-spec-content-sync.js.map +1 -1
  6. package/dist/src/cli/commands/sync-spec-content.js +3 -0
  7. package/dist/src/cli/commands/sync-spec-content.js.map +1 -1
  8. package/dist/src/cli/helpers/ado-area-path-mapper.d.ts +89 -0
  9. package/dist/src/cli/helpers/ado-area-path-mapper.d.ts.map +1 -0
  10. package/dist/src/cli/helpers/ado-area-path-mapper.js +213 -0
  11. package/dist/src/cli/helpers/ado-area-path-mapper.js.map +1 -0
  12. package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.d.ts +29 -0
  13. package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.d.ts.map +1 -0
  14. package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.js +109 -0
  15. package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.js.map +1 -0
  16. package/dist/src/cli/helpers/issue-tracker/ado.d.ts +1 -0
  17. package/dist/src/cli/helpers/issue-tracker/ado.d.ts.map +1 -1
  18. package/dist/src/cli/helpers/issue-tracker/ado.js +2 -0
  19. package/dist/src/cli/helpers/issue-tracker/ado.js.map +1 -1
  20. package/dist/src/cli/helpers/smart-filter.d.ts +83 -0
  21. package/dist/src/cli/helpers/smart-filter.d.ts.map +1 -0
  22. package/dist/src/cli/helpers/smart-filter.js +265 -0
  23. package/dist/src/cli/helpers/smart-filter.js.map +1 -0
  24. package/dist/src/core/progress/progress-tracker.d.ts +4 -1
  25. package/dist/src/core/progress/progress-tracker.d.ts.map +1 -1
  26. package/dist/src/core/progress/progress-tracker.js +33 -4
  27. package/dist/src/core/progress/progress-tracker.js.map +1 -1
  28. package/dist/src/core/qa/quality-gate-decider.d.ts +1 -1
  29. package/dist/src/core/qa/quality-gate-decider.js +2 -2
  30. package/dist/src/core/qa/quality-gate-decider.js.map +1 -1
  31. package/dist/src/core/qa/risk-calculator.d.ts +2 -2
  32. package/dist/src/core/qa/risk-calculator.js +2 -2
  33. package/dist/src/core/spec-content-sync.d.ts +1 -1
  34. package/dist/src/core/spec-content-sync.d.ts.map +1 -1
  35. package/dist/src/core/validators/ac-presence-validator.d.ts +56 -0
  36. package/dist/src/core/validators/ac-presence-validator.d.ts.map +1 -0
  37. package/dist/src/core/validators/ac-presence-validator.js +149 -0
  38. package/dist/src/core/validators/ac-presence-validator.js.map +1 -0
  39. package/dist/src/integrations/ado/ado-dependency-loader.d.ts +1 -1
  40. package/dist/src/integrations/ado/ado-dependency-loader.d.ts.map +1 -1
  41. package/dist/src/integrations/ado/ado-dependency-loader.js +39 -7
  42. package/dist/src/integrations/ado/ado-dependency-loader.js.map +1 -1
  43. package/dist/src/integrations/ado/area-path-mapper.d.ts +137 -0
  44. package/dist/src/integrations/ado/area-path-mapper.d.ts.map +1 -0
  45. package/dist/src/integrations/ado/area-path-mapper.js +267 -0
  46. package/dist/src/integrations/ado/area-path-mapper.js.map +1 -0
  47. package/dist/src/integrations/jira/filter-processor.d.ts +126 -0
  48. package/dist/src/integrations/jira/filter-processor.d.ts.map +1 -0
  49. package/dist/src/integrations/jira/filter-processor.js +207 -0
  50. package/dist/src/integrations/jira/filter-processor.js.map +1 -0
  51. package/dist/src/integrations/jira/jira-client.d.ts +13 -0
  52. package/dist/src/integrations/jira/jira-client.d.ts.map +1 -1
  53. package/dist/src/integrations/jira/jira-client.js +33 -0
  54. package/dist/src/integrations/jira/jira-client.js.map +1 -1
  55. package/dist/src/utils/ac-embedder.d.ts +63 -0
  56. package/dist/src/utils/ac-embedder.d.ts.map +1 -0
  57. package/dist/src/utils/ac-embedder.js +217 -0
  58. package/dist/src/utils/ac-embedder.js.map +1 -0
  59. package/dist/src/utils/env-manager.d.ts +86 -0
  60. package/dist/src/utils/env-manager.d.ts.map +1 -0
  61. package/dist/src/utils/env-manager.js +188 -0
  62. package/dist/src/utils/env-manager.js.map +1 -0
  63. package/package.json +1 -1
  64. package/plugins/specweave/.claude-plugin/plugin.json +1 -1
  65. package/plugins/specweave/agents/AGENTS-INDEX.md +1 -1
  66. package/plugins/specweave/agents/increment-quality-judge-v2/AGENT.md +9 -9
  67. package/plugins/specweave/commands/specweave-do.md +37 -0
  68. package/plugins/specweave/commands/specweave-done.md +159 -0
  69. package/plugins/specweave/commands/specweave-embed-acs.md +446 -0
  70. package/plugins/specweave/commands/specweave-next.md +148 -3
  71. package/plugins/specweave/commands/specweave-qa.md +2 -2
  72. package/plugins/specweave/hooks/lib/migrate-increment-work.sh +1 -1
  73. package/plugins/specweave/hooks/lib/migrate-increment-work.sh.bak +245 -0
  74. package/plugins/specweave/hooks/lib/sync-spec-content.sh +2 -2
  75. package/plugins/specweave/hooks/lib/sync-spec-content.sh.bak +149 -0
  76. package/plugins/specweave/hooks/lib/update-status-line.sh +34 -4
  77. package/plugins/specweave/hooks/lib/validate-spec-status.sh +1 -1
  78. package/plugins/specweave/hooks/lib/validate-spec-status.sh.bak +163 -0
  79. package/plugins/specweave/hooks/post-first-increment.sh +1 -1
  80. package/plugins/specweave/hooks/post-first-increment.sh.bak +61 -0
  81. package/plugins/specweave/hooks/post-spec-update.sh +1 -1
  82. package/plugins/specweave/hooks/post-spec-update.sh.bak +158 -0
  83. package/plugins/specweave/hooks/post-user-story-complete.sh +1 -1
  84. package/plugins/specweave/hooks/post-user-story-complete.sh.bak +179 -0
  85. package/plugins/specweave/hooks/pre-command-deduplication.sh +1 -1
  86. package/plugins/specweave/hooks/pre-command-deduplication.sh.bak +83 -0
  87. package/plugins/specweave/hooks/pre-increment-start.sh +168 -0
  88. package/plugins/specweave/hooks/user-prompt-submit.sh +1 -1
  89. package/plugins/specweave/hooks/user-prompt-submit.sh.bak +386 -0
  90. package/plugins/specweave/skills/SKILLS-INDEX.md +1 -1
  91. package/plugins/specweave/skills/specweave-framework/SKILL.md +1 -1
  92. package/plugins/specweave-ado/.claude-plugin/plugin.json +1 -1
  93. package/plugins/specweave-ado/agents/ado-manager/AGENT.md +23 -0
  94. package/plugins/specweave-ado/agents/ado-multi-project-mapper/AGENT.md +23 -0
  95. package/plugins/specweave-ado/agents/ado-sync-judge/AGENT.md +23 -0
  96. package/plugins/specweave-ado/commands/specweave-ado-import-projects.md +331 -0
  97. package/plugins/specweave-alternatives/.claude-plugin/plugin.json +10 -0
  98. package/plugins/specweave-alternatives/commands/alternatives-analyze.md +336 -0
  99. package/plugins/specweave-alternatives/skills/architecture-alternatives/SKILL.md +651 -0
  100. package/plugins/specweave-alternatives/skills/bmad-method/SKILL.md +420 -0
  101. package/plugins/specweave-alternatives/skills/spec-kit-expert/SKILL.md +487 -0
  102. package/plugins/specweave-backend/agents/database-optimizer/AGENT.md +23 -0
  103. package/plugins/specweave-backend/commands/api-scaffold.md +80 -0
  104. package/plugins/specweave-backend/commands/crud-generate.md +109 -0
  105. package/plugins/specweave-backend/commands/migration-generate.md +139 -0
  106. package/plugins/specweave-confluent/agents/confluent-architect/AGENT.md +23 -0
  107. package/plugins/specweave-confluent/commands/connector-deploy.md +154 -0
  108. package/plugins/specweave-confluent/commands/ksqldb-query.md +179 -0
  109. package/plugins/specweave-confluent/commands/schema-register.md +123 -0
  110. package/plugins/specweave-core/.claude-plugin/plugin.json +21 -0
  111. package/plugins/specweave-core/commands/architecture-review.md +288 -0
  112. package/plugins/specweave-core/commands/code-review.md +213 -0
  113. package/plugins/specweave-core/commands/refactor-plan.md +249 -0
  114. package/plugins/specweave-core/skills/code-quality/SKILL.md +157 -0
  115. package/plugins/specweave-core/skills/design-patterns/SKILL.md +244 -0
  116. package/plugins/specweave-core/skills/software-architecture/SKILL.md +83 -0
  117. package/plugins/specweave-cost-optimizer/.claude-plugin/plugin.json +22 -0
  118. package/plugins/specweave-cost-optimizer/commands/cost-analyze.md +360 -0
  119. package/plugins/specweave-cost-optimizer/commands/cost-optimize.md +480 -0
  120. package/plugins/specweave-cost-optimizer/skills/aws-cost-expert/SKILL.md +416 -0
  121. package/plugins/specweave-cost-optimizer/skills/cloud-pricing/SKILL.md +325 -0
  122. package/plugins/specweave-cost-optimizer/skills/cost-optimization/SKILL.md +337 -0
  123. package/plugins/specweave-diagrams/.claude-plugin/plugin.json +1 -1
  124. package/plugins/specweave-diagrams/agents/diagrams-architect/AGENT.md +23 -0
  125. package/plugins/specweave-diagrams/commands/diagrams-generate.md +168 -0
  126. package/plugins/specweave-docs/.claude-plugin/plugin.json +10 -0
  127. package/plugins/specweave-docs/commands/docs-generate.md +441 -0
  128. package/plugins/specweave-docs/commands/docs-init.md +334 -0
  129. package/plugins/specweave-docs/skills/docusaurus/SKILL.md +581 -0
  130. package/plugins/specweave-docs/skills/spec-driven-brainstorming/SKILL.md +689 -0
  131. package/plugins/specweave-docs/skills/technical-writing/SKILL.md +1039 -0
  132. package/plugins/specweave-docs-preview/.claude-plugin/plugin.json +1 -1
  133. package/plugins/specweave-figma/.claude-plugin/plugin.json +23 -0
  134. package/plugins/specweave-figma/commands/figma-import.md +690 -0
  135. package/plugins/specweave-figma/commands/figma-to-react.md +834 -0
  136. package/plugins/specweave-figma/commands/figma-tokens.md +815 -0
  137. package/plugins/specweave-frontend/.claude-plugin/plugin.json +21 -0
  138. package/plugins/specweave-frontend/agents/frontend-architect/AGENT.md +387 -0
  139. package/plugins/specweave-frontend/agents/frontend-architect/README.md +385 -0
  140. package/plugins/specweave-frontend/agents/frontend-architect/examples.md +590 -0
  141. package/plugins/specweave-frontend/agents/frontend-architect/templates/component-template.tsx +152 -0
  142. package/plugins/specweave-frontend/agents/frontend-architect/templates/hook-template.ts +311 -0
  143. package/plugins/specweave-frontend/agents/frontend-architect/templates/page-template.tsx +228 -0
  144. package/plugins/specweave-frontend/commands/component-generate.md +510 -0
  145. package/plugins/specweave-frontend/commands/design-system-init.md +494 -0
  146. package/plugins/specweave-frontend/commands/frontend-scaffold.md +207 -0
  147. package/plugins/specweave-frontend/commands/nextjs-setup.md +396 -0
  148. package/plugins/specweave-frontend/skills/design-system-architect/SKILL.md +278 -0
  149. package/plugins/specweave-frontend/skills/frontend/SKILL.md +420 -0
  150. package/plugins/specweave-frontend/skills/nextjs/SKILL.md +546 -0
  151. package/plugins/specweave-github/.claude-plugin/plugin.json +1 -1
  152. package/plugins/specweave-github/agents/github-manager/AGENT.md +23 -0
  153. package/plugins/specweave-github/agents/github-task-splitter/AGENT.md +25 -0
  154. package/plugins/specweave-github/agents/user-story-updater/AGENT.md +25 -0
  155. package/plugins/specweave-github/hooks/.specweave/logs/hooks-debug.log +194 -0
  156. package/plugins/specweave-github/lib/github-spec-content-sync.js +49 -0
  157. package/plugins/specweave-github/lib/github-spec-content-sync.ts +67 -0
  158. package/plugins/specweave-infrastructure/.claude-plugin/plugin.json +1 -1
  159. package/plugins/specweave-infrastructure/agents/devops/AGENT.md +26 -0
  160. package/plugins/specweave-infrastructure/agents/network-engineer/AGENT.md +26 -0
  161. package/plugins/specweave-infrastructure/agents/observability-engineer/AGENT.md +26 -0
  162. package/plugins/specweave-infrastructure/agents/performance-engineer/AGENT.md +26 -0
  163. package/plugins/specweave-infrastructure/agents/sre/AGENT.md +26 -0
  164. package/plugins/specweave-jira/.claude-plugin/plugin.json +1 -1
  165. package/plugins/specweave-jira/agents/jira-manager/AGENT.md +26 -0
  166. package/plugins/specweave-jira/commands/import-projects.js +183 -0
  167. package/plugins/specweave-jira/commands/import-projects.md +97 -0
  168. package/plugins/specweave-jira/commands/import-projects.ts +288 -0
  169. package/plugins/specweave-jira/commands/specweave-jira-import-projects.md +298 -0
  170. package/plugins/specweave-kafka/.claude-plugin/plugin.json +1 -1
  171. package/plugins/specweave-kafka/agents/kafka-architect/AGENT.md +26 -0
  172. package/plugins/specweave-kafka/agents/kafka-devops/AGENT.md +26 -0
  173. package/plugins/specweave-kafka/agents/kafka-observability/AGENT.md +26 -0
  174. package/plugins/specweave-kafka-streams/.claude-plugin/plugin.json +1 -1
  175. package/plugins/specweave-kubernetes/agents/kubernetes-architect/AGENT.md +26 -0
  176. package/plugins/specweave-kubernetes/commands/cluster-setup.md +262 -0
  177. package/plugins/specweave-kubernetes/commands/deployment-generate.md +242 -0
  178. package/plugins/specweave-kubernetes/commands/helm-scaffold.md +333 -0
  179. package/plugins/specweave-ml/.claude-plugin/plugin.json +3 -3
  180. package/plugins/specweave-ml/agents/data-scientist/AGENT.md +26 -0
  181. package/plugins/specweave-ml/agents/ml-engineer/AGENT.md +26 -0
  182. package/plugins/specweave-ml/agents/mlops-engineer/AGENT.md +26 -0
  183. package/plugins/specweave-mobile/agents/mobile-architect/AGENT.md +26 -0
  184. package/plugins/specweave-mobile/commands/app-scaffold.md +233 -0
  185. package/plugins/specweave-mobile/commands/build-config.md +256 -0
  186. package/plugins/specweave-mobile/commands/screen-generate.md +289 -0
  187. package/plugins/specweave-n8n/.claude-plugin/plugin.json +1 -1
  188. package/plugins/specweave-payments/agents/payment-integration/AGENT.md +26 -0
  189. package/plugins/specweave-plugin-dev/.claude-plugin/plugin.json +20 -0
  190. package/plugins/specweave-plugin-dev/commands/plugin-create.md +333 -0
  191. package/plugins/specweave-plugin-dev/commands/plugin-publish.md +339 -0
  192. package/plugins/specweave-plugin-dev/commands/plugin-test.md +293 -0
  193. package/plugins/specweave-plugin-dev/skills/claude-sdk/SKILL.md +162 -0
  194. package/plugins/specweave-plugin-dev/skills/marketplace-publishing/SKILL.md +263 -0
  195. package/plugins/specweave-plugin-dev/skills/plugin-development/SKILL.md +316 -0
  196. package/plugins/specweave-release/.claude-plugin/plugin.json +1 -1
  197. package/plugins/specweave-release/agents/release-manager/AGENT.md +27 -0
  198. package/plugins/specweave-release/commands/specweave-release-npm.md +110 -0
  199. package/plugins/specweave-release/hooks/.specweave/logs/dora-tracking.log +168 -0
  200. package/plugins/specweave-testing/.claude-plugin/plugin.json +21 -0
  201. package/plugins/specweave-testing/agents/qa-engineer/AGENT.md +797 -0
  202. package/plugins/specweave-testing/agents/qa-engineer/README.md +443 -0
  203. package/plugins/specweave-testing/agents/qa-engineer/templates/playwright-e2e-test.ts +470 -0
  204. package/plugins/specweave-testing/agents/qa-engineer/templates/test-data-factory.ts +507 -0
  205. package/plugins/specweave-testing/agents/qa-engineer/templates/vitest-unit-test.ts +400 -0
  206. package/plugins/specweave-testing/agents/qa-engineer/test-strategies.md +726 -0
  207. package/plugins/specweave-testing/commands/e2e-setup.md +1081 -0
  208. package/plugins/specweave-testing/commands/test-coverage.md +979 -0
  209. package/plugins/specweave-testing/commands/test-generate.md +1156 -0
  210. package/plugins/specweave-testing/commands/test-init.md +409 -0
  211. package/plugins/specweave-testing/skills/e2e-playwright/SKILL.md +769 -0
  212. package/plugins/specweave-testing/skills/tdd-expert/SKILL.md +934 -0
  213. package/plugins/specweave-testing/skills/unit-testing-expert/SKILL.md +1011 -0
  214. package/plugins/specweave-tooling/.claude-plugin/plugin.json +22 -0
  215. package/plugins/specweave-tooling/commands/specweave-tooling-skill-create.md +691 -0
  216. package/plugins/specweave-tooling/commands/specweave-tooling-skill-package.md +751 -0
  217. package/plugins/specweave-tooling/commands/specweave-tooling-skill-validate.md +858 -0
  218. package/plugins/specweave-ui/.claude-plugin/plugin.json +10 -0
  219. package/plugins/specweave-ui/commands/ui-automate.md +199 -0
  220. package/plugins/specweave-ui/commands/ui-inspect.md +70 -0
  221. package/plugins/specweave-ui/skills/browser-automation/SKILL.md +314 -0
  222. package/plugins/specweave-ui/skills/ui-testing/SKILL.md +716 -0
  223. package/plugins/specweave-ui/skills/visual-regression/SKILL.md +728 -0
  224. package/plugins/specweave/commands/check-hooks.md +0 -257
  225. package/plugins/specweave/commands/specweave-archive-increments.md +0 -82
  226. package/plugins/specweave/skills/plugin-expert/SKILL.md +0 -340
  227. /package/plugins/specweave/{agents/code-reviewer.md → skills/code-reviewer/SKILL.md} +0 -0
@@ -0,0 +1,385 @@
1
+ # Frontend Architect Agent
2
+
3
+ ## Overview
4
+
5
+ The Frontend Architect agent is a specialized AI agent designed to help with frontend architecture decisions, component design, performance optimization, and modern frontend development patterns.
6
+
7
+ ## When to Use This Agent
8
+
9
+ Invoke this agent when you need:
10
+
11
+ - **Architecture Design**: Component hierarchy, folder structure, state management strategy
12
+ - **Framework Selection**: Choosing between React/Next.js, Vue/Nuxt, or Angular
13
+ - **Performance Optimization**: Code splitting, lazy loading, bundle optimization
14
+ - **Design System Implementation**: Atomic Design, component libraries, theming
15
+ - **Migration Planning**: React Pages → App Router, Vue 2 → Vue 3, JavaScript → TypeScript
16
+ - **Micro-Frontend Architecture**: Module Federation, Single-SPA, independent deployments
17
+ - **Testing Strategy**: Unit, integration, E2E testing setup for frontend
18
+ - **Build Configuration**: Vite, Webpack, Turbopack setup and optimization
19
+ - **SEO & Accessibility**: Server-side rendering, metadata, WCAG compliance
20
+
21
+ ## How to Invoke
22
+
23
+ Use the Task tool with `subagent_type`:
24
+
25
+ ```typescript
26
+ Task({
27
+ subagent_type: "specweave-frontend:frontend-architect:frontend-architect",
28
+ prompt: "Design a component architecture for a dashboard application with real-time data updates"
29
+ });
30
+ ```
31
+
32
+ ## Agent Capabilities
33
+
34
+ ### 1. Framework Expertise
35
+
36
+ **React Ecosystem**:
37
+ - React 18+ with Concurrent features
38
+ - Next.js 14+ App Router and Server Components
39
+ - State management (Zustand, Redux Toolkit, Jotai, React Query)
40
+ - Custom Hooks patterns
41
+
42
+ **Vue Ecosystem**:
43
+ - Vue 3 Composition API
44
+ - Nuxt 3 with Nitro engine
45
+ - Pinia state management
46
+ - Composables and auto-imports
47
+
48
+ **Angular Ecosystem**:
49
+ - Angular 17+ with standalone components
50
+ - Signals for reactivity
51
+ - RxJS reactive programming
52
+ - NgRx state management
53
+
54
+ ### 2. Architecture Patterns
55
+
56
+ - **Atomic Design**: Organize components by complexity (Atoms → Molecules → Organisms → Templates → Pages)
57
+ - **Compound Components**: Flexible component composition
58
+ - **Smart vs Presentational**: Separation of concerns
59
+ - **Micro-Frontends**: Module Federation, Single-SPA
60
+ - **Design Systems**: Token architecture, multi-brand support
61
+
62
+ ### 3. Performance Optimization
63
+
64
+ - Code splitting strategies (route-based, component-based)
65
+ - Lazy loading and dynamic imports
66
+ - Bundle optimization (tree shaking, vendor splitting)
67
+ - Image optimization (next/image, responsive images)
68
+ - Core Web Vitals (LCP, FID, CLS)
69
+ - Virtual scrolling for large lists
70
+
71
+ ### 4. Build & Tooling
72
+
73
+ - Vite for lightning-fast development
74
+ - Webpack 5 with Module Federation
75
+ - Turbopack (Next.js)
76
+ - TypeScript strict mode configuration
77
+ - ESLint + Prettier + Husky
78
+
79
+ ### 5. Testing
80
+
81
+ - Vitest for unit testing
82
+ - React/Vue Testing Library
83
+ - Playwright for E2E
84
+ - MSW for API mocking
85
+ - Storybook for component development
86
+
87
+ ### 6. Styling Approaches
88
+
89
+ - CSS-in-JS (styled-components, Emotion, Vanilla Extract)
90
+ - Utility-first (TailwindCSS, UnoCSS)
91
+ - CSS Modules with composition
92
+ - Modern CSS (Variables, Container Queries, Cascade Layers)
93
+
94
+ ### 7. SEO & Accessibility
95
+
96
+ - Server-side rendering strategies
97
+ - Metadata API (Next.js)
98
+ - Structured data (JSON-LD)
99
+ - ARIA labels and roles
100
+ - Keyboard navigation
101
+ - WCAG AA/AAA compliance
102
+
103
+ ## Common Use Cases
104
+
105
+ ### 1. Scaffold New Frontend Project
106
+
107
+ **Prompt**:
108
+ ```
109
+ "Set up a Next.js 14 App Router project with TypeScript, TailwindCSS, Zustand for state management, and Playwright for E2E testing"
110
+ ```
111
+
112
+ **What the agent provides**:
113
+ - Project structure with best practices
114
+ - Configuration files (tsconfig, eslint, prettier)
115
+ - Base components and layouts
116
+ - Testing infrastructure setup
117
+ - Deployment pipeline configuration
118
+
119
+ ### 2. Design Component Architecture
120
+
121
+ **Prompt**:
122
+ ```
123
+ "Design a reusable DataTable component with sorting, filtering, pagination, and virtual scrolling for 10,000+ rows"
124
+ ```
125
+
126
+ **What the agent provides**:
127
+ - Component hierarchy (Atomic Design)
128
+ - Props interface design
129
+ - State management approach
130
+ - Performance optimization strategy
131
+ - Usage examples and documentation
132
+
133
+ ### 3. Optimize Performance
134
+
135
+ **Prompt**:
136
+ ```
137
+ "Analyze and optimize a React dashboard application with slow initial load (5s+) and laggy interactions"
138
+ ```
139
+
140
+ **What the agent provides**:
141
+ - Performance audit checklist
142
+ - Bundle size analysis approach
143
+ - Code splitting recommendations
144
+ - Lazy loading strategy
145
+ - Caching optimization
146
+ - Monitoring setup (Core Web Vitals)
147
+
148
+ ### 4. Implement Design System
149
+
150
+ **Prompt**:
151
+ ```
152
+ "Create a design system with support for light/dark themes, 3 brand colors, and consistent spacing/typography across 20+ components"
153
+ ```
154
+
155
+ **What the agent provides**:
156
+ - Design token architecture
157
+ - Theme configuration system
158
+ - Base components (atoms, molecules)
159
+ - Storybook setup
160
+ - Documentation guidelines
161
+
162
+ ### 5. Migration Strategy
163
+
164
+ **Prompt**:
165
+ ```
166
+ "Plan migration from React Pages Router to App Router for a 50+ page e-commerce application"
167
+ ```
168
+
169
+ **What the agent provides**:
170
+ - Incremental migration strategy
171
+ - Compatibility analysis
172
+ - Server Components adoption plan
173
+ - Data fetching migration
174
+ - Testing strategy
175
+ - Rollback plan
176
+
177
+ ## Example Workflows
178
+
179
+ ### Workflow 1: New Feature Development
180
+
181
+ 1. **Define Requirements**: Describe the feature and constraints
182
+ 2. **Architecture Design**: Agent designs component structure
183
+ 3. **Implementation Plan**: Breaking down into tasks
184
+ 4. **Code Scaffolding**: Generate initial component templates
185
+ 5. **Testing Strategy**: Unit + integration + E2E test plan
186
+ 6. **Performance Review**: Ensure Core Web Vitals targets met
187
+
188
+ ### Workflow 2: Performance Optimization
189
+
190
+ 1. **Current State Analysis**: Measure existing metrics
191
+ 2. **Bottleneck Identification**: Bundle size, render performance
192
+ 3. **Optimization Plan**: Code splitting, lazy loading, caching
193
+ 4. **Implementation**: Apply optimizations
194
+ 5. **Measurement**: Compare before/after metrics
195
+ 6. **Monitoring**: Set up ongoing tracking
196
+
197
+ ### Workflow 3: Design System Creation
198
+
199
+ 1. **Audit Existing Components**: Identify patterns and inconsistencies
200
+ 2. **Define Design Tokens**: Colors, typography, spacing, shadows
201
+ 3. **Create Base Components**: Atoms (Button, Input, Icon)
202
+ 4. **Build Composite Components**: Molecules (Form Field, Card)
203
+ 5. **Document Usage**: Storybook with examples
204
+ 6. **Migration Plan**: Adopt design system across codebase
205
+
206
+ ## Input Format
207
+
208
+ The agent expects a clear, specific prompt describing:
209
+
210
+ 1. **Context**: What are you building? What framework?
211
+ 2. **Requirements**: What features/constraints?
212
+ 3. **Goals**: Performance targets, accessibility needs, SEO requirements
213
+ 4. **Constraints**: Team size, timeline, existing tech stack
214
+
215
+ **Good prompt**:
216
+ ```
217
+ "Design a React dashboard for financial data visualization with:
218
+ - Real-time WebSocket updates
219
+ - 10+ chart types (using D3.js)
220
+ - Responsive design (mobile, tablet, desktop)
221
+ - Dark mode support
222
+ - Target LCP < 2.5s
223
+ - Accessibility WCAG AA compliant
224
+ Existing stack: Next.js 14, TypeScript, TailwindCSS"
225
+ ```
226
+
227
+ **Poor prompt**:
228
+ ```
229
+ "Make a dashboard"
230
+ ```
231
+
232
+ ## Output Format
233
+
234
+ The agent provides:
235
+
236
+ 1. **Architecture Overview**: High-level structure and decisions
237
+ 2. **Component Hierarchy**: Atomic Design breakdown
238
+ 3. **Technology Recommendations**: Libraries, tools, patterns
239
+ 4. **Implementation Plan**: Step-by-step tasks
240
+ 5. **Code Examples**: Scaffolding and patterns
241
+ 6. **Testing Strategy**: Unit, integration, E2E approach
242
+ 7. **Performance Checklist**: Optimization targets
243
+ 8. **Documentation**: Usage guidelines
244
+
245
+ ## Best Practices
246
+
247
+ ### 1. TypeScript First
248
+ Always use TypeScript with strict mode for type safety.
249
+
250
+ ### 2. Component Composition
251
+ Prefer composition over inheritance for flexibility.
252
+
253
+ ### 3. Performance Budgets
254
+ Monitor and enforce bundle size limits (e.g., < 200KB initial JS).
255
+
256
+ ### 4. Accessibility
257
+ Build with a11y from the start, not as afterthought.
258
+
259
+ ### 5. Testing Pyramid
260
+ More unit tests, fewer E2E tests (70% unit, 20% integration, 10% E2E).
261
+
262
+ ### 6. Code Splitting
263
+ Split by routes and heavy components for faster initial load.
264
+
265
+ ### 7. Progressive Enhancement
266
+ Ensure basic functionality without JavaScript.
267
+
268
+ ### 8. Documentation
269
+ Document complex components in Storybook with examples.
270
+
271
+ ## Integration with SpecWeave
272
+
273
+ ### Use with /specweave:increment
274
+
275
+ When planning a frontend feature increment:
276
+
277
+ ```bash
278
+ # 1. Plan increment
279
+ /specweave:increment "Design and implement responsive navigation with mega menu"
280
+
281
+ # 2. Generate architectural plan
282
+ Task({
283
+ subagent_type: "specweave-frontend:frontend-architect:frontend-architect",
284
+ prompt: "Design component architecture for responsive navigation with mega menu supporting 100+ menu items, search, and multi-level dropdowns"
285
+ });
286
+
287
+ # 3. Implement based on architectural plan
288
+ /specweave:do
289
+ ```
290
+
291
+ ### Use with /specweave:qa
292
+
293
+ After implementation, validate architecture decisions:
294
+
295
+ ```bash
296
+ # Run quality assessment
297
+ /specweave:qa 0123
298
+
299
+ # Agent checks:
300
+ # - Component modularity
301
+ # - Performance metrics
302
+ # - Accessibility compliance
303
+ # - Code splitting effectiveness
304
+ # - Bundle size
305
+ ```
306
+
307
+ ## Troubleshooting
308
+
309
+ ### Issue: Agent recommends outdated patterns
310
+
311
+ **Solution**: Specify framework version explicitly in prompt
312
+ ```
313
+ "Using Next.js 14 App Router (NOT Pages Router), design..."
314
+ ```
315
+
316
+ ### Issue: Recommendations too generic
317
+
318
+ **Solution**: Provide more context about constraints and requirements
319
+ ```
320
+ "For a team of 3 developers with React experience, building a B2B SaaS dashboard with 50+ pages, using Next.js 14, TypeScript, and TailwindCSS..."
321
+ ```
322
+
323
+ ### Issue: Performance recommendations unclear
324
+
325
+ **Solution**: Specify performance targets
326
+ ```
327
+ "Target: LCP < 2.5s, FID < 100ms, CLS < 0.1, initial bundle < 200KB"
328
+ ```
329
+
330
+ ## Advanced Usage
331
+
332
+ ### Micro-Frontend Architecture
333
+
334
+ ```typescript
335
+ Task({
336
+ subagent_type: "specweave-frontend:frontend-architect:frontend-architect",
337
+ prompt: `Design a micro-frontend architecture for an e-commerce platform with:
338
+ - Product catalog (team A)
339
+ - Shopping cart (team B)
340
+ - Checkout flow (team C)
341
+ - User profile (team D)
342
+ Requirements:
343
+ - Independent deployments per team
344
+ - Shared design system
345
+ - Module Federation (Webpack 5)
346
+ - Cross-team communication via events`
347
+ });
348
+ ```
349
+
350
+ ### Monorepo Setup
351
+
352
+ ```typescript
353
+ Task({
354
+ subagent_type: "specweave-frontend:frontend-architect:frontend-architect",
355
+ prompt: `Set up a Turborepo monorepo with:
356
+ - 3 Next.js applications (marketing, dashboard, admin)
357
+ - Shared UI component library (@acme/ui)
358
+ - Shared utilities (@acme/utils)
359
+ - Shared TypeScript config
360
+ - Independent versioning per package
361
+ - Build caching and parallel execution`
362
+ });
363
+ ```
364
+
365
+ ## Resources
366
+
367
+ - **React Docs**: https://react.dev
368
+ - **Next.js Docs**: https://nextjs.org/docs
369
+ - **Vue Docs**: https://vuejs.org
370
+ - **Angular Docs**: https://angular.io
371
+ - **Patterns.dev**: https://patterns.dev (Modern web patterns)
372
+ - **Web.dev**: https://web.dev (Performance, accessibility)
373
+
374
+ ## Version History
375
+
376
+ - **v1.0.0** (2025-01-22): Initial release with React, Vue, Angular expertise
377
+ - **v1.1.0** (TBD): Add Svelte/SvelteKit support
378
+ - **v1.2.0** (TBD): Add mobile framework support (React Native, Flutter)
379
+
380
+ ## Support
381
+
382
+ For issues or questions:
383
+ - GitHub Issues: https://github.com/anton-abyzov/specweave/issues
384
+ - Discord: https://discord.gg/specweave
385
+ - Documentation: https://spec-weave.com