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.
Specialized agent for frontend architecture decisions, component design, and performance optimization. Use it to design component hierarchies, choose frameworks, plan migrations, implement design systems, and optimize Core Web Vitals for React, Vue, or Angular applications.
/plugin marketplace add anton-abyzov/specweave/plugin install sw-frontend@specweaveThe Frontend Architect agent is a specialized AI agent designed to help with frontend architecture decisions, component design, performance optimization, and modern frontend development patterns.
Invoke this agent when you need:
Use the Task tool with subagent_type:
Task({
subagent_type: "specweave-frontend:frontend-architect:frontend-architect",
prompt: "Design a component architecture for a dashboard application with real-time data updates"
});
React Ecosystem:
Vue Ecosystem:
Angular Ecosystem:
Prompt:
"Set up a Next.js 14 App Router project with TypeScript, TailwindCSS, Zustand for state management, and Playwright for E2E testing"
What the agent provides:
Prompt:
"Design a reusable DataTable component with sorting, filtering, pagination, and virtual scrolling for 10,000+ rows"
What the agent provides:
Prompt:
"Analyze and optimize a React dashboard application with slow initial load (5s+) and laggy interactions"
What the agent provides:
Prompt:
"Create a design system with support for light/dark themes, 3 brand colors, and consistent spacing/typography across 20+ components"
What the agent provides:
Prompt:
"Plan migration from React Pages Router to App Router for a 50+ page e-commerce application"
What the agent provides:
The agent expects a clear, specific prompt describing:
Good prompt:
"Design a React dashboard for financial data visualization with:
- Real-time WebSocket updates
- 10+ chart types (using D3.js)
- Responsive design (mobile, tablet, desktop)
- Dark mode support
- Target LCP < 2.5s
- Accessibility WCAG AA compliant
Existing stack: Next.js 14, TypeScript, TailwindCSS"
Poor prompt:
"Make a dashboard"
The agent provides:
Always use TypeScript with strict mode for type safety.
Prefer composition over inheritance for flexibility.
Monitor and enforce bundle size limits (e.g., < 200KB initial JS).
Build with a11y from the start, not as afterthought.
More unit tests, fewer E2E tests (70% unit, 20% integration, 10% E2E).
Split by routes and heavy components for faster initial load.
Ensure basic functionality without JavaScript.
Document complex components in Storybook with examples.
When planning a frontend feature increment:
# 1. Plan increment
/sw:increment "Design and implement responsive navigation with mega menu"
# 2. Generate architectural plan
Task({
subagent_type: "specweave-frontend:frontend-architect:frontend-architect",
prompt: "Design component architecture for responsive navigation with mega menu supporting 100+ menu items, search, and multi-level dropdowns"
});
# 3. Implement based on architectural plan
/sw:do
After implementation, validate architecture decisions:
# Run quality assessment
/sw:qa 0123
# Agent checks:
# - Component modularity
# - Performance metrics
# - Accessibility compliance
# - Code splitting effectiveness
# - Bundle size
Solution: Specify framework version explicitly in prompt
"Using Next.js 14 App Router (NOT Pages Router), design..."
Solution: Provide more context about constraints and requirements
"For a team of 3 developers with React experience, building a B2B SaaS dashboard with 50+ pages, using Next.js 14, TypeScript, and TailwindCSS..."
Solution: Specify performance targets
"Target: LCP < 2.5s, FID < 100ms, CLS < 0.1, initial bundle < 200KB"
Task({
subagent_type: "specweave-frontend:frontend-architect:frontend-architect",
prompt: `Design a micro-frontend architecture for an e-commerce platform with:
- Product catalog (team A)
- Shopping cart (team B)
- Checkout flow (team C)
- User profile (team D)
Requirements:
- Independent deployments per team
- Shared design system
- Module Federation (Webpack 5)
- Cross-team communication via events`
});
Task({
subagent_type: "specweave-frontend:frontend-architect:frontend-architect",
prompt: `Set up a Turborepo monorepo with:
- 3 Next.js applications (marketing, dashboard, admin)
- Shared UI component library (@acme/ui)
- Shared utilities (@acme/utils)
- Shared TypeScript config
- Independent versioning per package
- Build caching and parallel execution`
});
For issues or questions:
You are an elite AI agent architect specializing in crafting high-performance agent configurations. Your expertise lies in translating user requirements into precisely-tuned agent specifications that maximize effectiveness and reliability.