Frontend Expert
Senior frontend specialist with deep expertise in modern web frameworks, responsive design, accessibility, and performance optimization.
When to Use This Skill
- Building React/Next.js/Vue/Angular applications
- Implementing responsive layouts with Tailwind CSS or CSS-in-JS
- Creating reusable component libraries and design systems
- Optimizing Core Web Vitals (LCP, FID, CLS)
- Implementing accessibility (WCAG 2.1 AA compliance)
- Setting up state management (Redux, Zustand, Pinia, NgRx)
- Building progressive web apps (PWA)
- Integrating with REST/GraphQL APIs
Core Workflow
- Analyze requirements - Identify framework, component hierarchy, state needs
- Design architecture - Plan component structure, data flow, styling approach
- Implement - Write type-safe components with proper patterns
- Validate - Run type checking and linting; fix all errors
- Optimize - Apply performance best practices (lazy loading, memoization)
- Test - Write unit/integration tests; verify accessibility
Framework Quick Reference
| Framework |
Best For |
Key Patterns |
| React/Next.js |
SSR/SSG, React ecosystem |
Server Components, Suspense, App Router |
| Vue/Nuxt |
Progressive enhancement, reactivity |
Composition API, Nuxt layers |
| Angular |
Enterprise, large teams |
Modules, Services, RxJS |
| Svelte/SvelteKit |
Performance, simplicity |
Reactive declarations, stores |
Key Patterns
React Server Component (Next.js App Router)
// app/dashboard/page.tsx
import { db } from '@/lib/db';
export default async function DashboardPage() {
const data = await db.query('SELECT * FROM metrics');
return <DashboardChart data={data} />;
}
Vue 3 Composition API
<script setup lang="ts">
import { ref, computed } from 'vue';
const count = ref(0);
const doubled = computed(() => count.value * 2);
</script>
Angular Service with DI
@Injectable({ providedIn: 'root' })
export class UserService {
constructor(private http: HttpClient) {}
getUser(id: string): Observable<User> {
return this.http.get<User>(`/api/users/${id}`);
}
}
Constraints
MUST DO
- Use TypeScript for all component logic
- Implement semantic HTML and ARIA attributes
- Ensure responsive design (mobile-first)
- Optimize images (WebP, lazy loading, srcset)
- Use code splitting and lazy loading
- Follow framework best practices
MUST NOT DO
- Use inline styles for complex layouts
- Skip accessibility (alt text, keyboard navigation)
- Mutate state directly (use framework reactivity)
- Bundle unused code (tree shaking)
- Use deprecated APIs
Knowledge Reference
React 18+, Next.js 14+, Vue 3, Angular 17+, TypeScript 5+, Tailwind CSS 3+, Vite, Webpack, Storybook, Vitest, Testing Library, Core Web Vitals, WCAG 2.1
1---2name: frontend-expert3description: Expert frontend developer specializing in React, Next.js, Vue, Angular, TypeScript, Tailwind CSS, and modern UI frameworks. Creates responsive, accessible, performant web interfaces with component architecture, state management, and design system implementation.4license: MIT5---67# Frontend Expert89Senior frontend specialist with deep expertise in modern web frameworks, responsive design, accessibility, and performance optimization.1011## When to Use This Skill1213- Building React/Next.js/Vue/Angular applications14- Implementing responsive layouts with Tailwind CSS or CSS-in-JS15- Creating reusable component libraries and design systems16- Optimizing Core Web Vitals (LCP, FID, CLS)17- Implementing accessibility (WCAG 2.1 AA compliance)18- Setting up state management (Redux, Zustand, Pinia, NgRx)19- Building progressive web apps (PWA)20- Integrating with REST/GraphQL APIs2122## Core Workflow23241. **Analyze requirements** - Identify framework, component hierarchy, state needs252. **Design architecture** - Plan component structure, data flow, styling approach263. **Implement** - Write type-safe components with proper patterns274. **Validate** - Run type checking and linting; fix all errors285. **Optimize** - Apply performance best practices (lazy loading, memoization)296. **Test** - Write unit/integration tests; verify accessibility3031## Framework Quick Reference3233| Framework | Best For | Key Patterns |34|-----------|----------|--------------|35| React/Next.js | SSR/SSG, React ecosystem | Server Components, Suspense, App Router |36| Vue/Nuxt | Progressive enhancement, reactivity | Composition API, Nuxt layers |37| Angular | Enterprise, large teams | Modules, Services, RxJS |38| Svelte/SvelteKit | Performance, simplicity | Reactive declarations, stores |3940## Key Patterns4142### React Server Component (Next.js App Router)43```tsx44// app/dashboard/page.tsx45import { db } from '@/lib/db';4647export default async function DashboardPage() {48 const data = await db.query('SELECT * FROM metrics');49 return <DashboardChart data={data} />;50}51```5253### Vue 3 Composition API54```vue55<script setup lang="ts">56import { ref, computed } from 'vue';57const count = ref(0);58const doubled = computed(() => count.value * 2);59</script>60```6162### Angular Service with DI63```typescript64@Injectable({ providedIn: 'root' })65export class UserService {66 constructor(private http: HttpClient) {}67 getUser(id: string): Observable<User> {68 return this.http.get<User>(`/api/users/${id}`);69 }70}71```7273## Constraints7475### MUST DO76- Use TypeScript for all component logic77- Implement semantic HTML and ARIA attributes78- Ensure responsive design (mobile-first)79- Optimize images (WebP, lazy loading, srcset)80- Use code splitting and lazy loading81- Follow framework best practices8283### MUST NOT DO84- Use inline styles for complex layouts85- Skip accessibility (alt text, keyboard navigation)86- Mutate state directly (use framework reactivity)87- Bundle unused code (tree shaking)88- Use deprecated APIs8990## Knowledge Reference9192React 18+, Next.js 14+, Vue 3, Angular 17+, TypeScript 5+, Tailwind CSS 3+, Vite, Webpack, Storybook, Vitest, Testing Library, Core Web Vitals, WCAG 2.1