web-frontend
Installation
SKILL.md
Web Frontend Skill
Core Principles
- Server Components by Default - Use Client Components only when needed (hooks, events, browser APIs)
- Type-Safe API Calls - Always use tRPC for data fetching
- Semantic Colors - Use design tokens from globals.css
- Form Validation - React Hook Form + Zod for complex forms
- Protected Routes - Wrap authenticated pages with AuthGuard
- Error Boundaries - Use error.tsx for automatic error handling
Patterns to Follow
Pattern 1: Server vs Client Component Decision
Decision Tree: