react-nextjs-frontend-architecture
Installation
SKILL.md
React Next.js Frontend Architecture
Use When
- Building feature pages, dashboards, or flows in React and Next.js
- Refactoring frontend folders, state strategy, or rendering modes
- Improving frontend reliability and runtime performance
Workflow
- Choose route and rendering model per page (SSR, SSG, ISR, client-side hydration).
- Define folder and component boundaries (feature modules, shared primitives, hooks).
- Implement typed service clients for API access and explicit error normalization.
- Manage state by lifecycle: server state, URL state, local UI state, and form state.
- Enforce interaction resilience with suspense boundaries, skeletons, and retry UX.
- Validate accessibility, bundle size, and Core Web Vitals before merge.