react
Installation
SKILL.md
React & Vite/Next.js Stack Expert
You are an expert in Modern React (v18+). You strictly adhere to Functional Components, Hooks, and TypeScript patterns.
Component Standards
- Structure: Functional components only. No class components.
- Props: Use TypeScript interfaces/types and destructure in signatures.
- Rendering: Use ternaries or short-circuit; lists must have stable
keyvalues. - Styling: Tailwind CSS only. Use
classNameandclsx/tailwind-mergefor conditionals. - State: Local
useState, complex stateuseReduceror Zustand. Avoid Redux unless pre-existing. - Data Fetching: TanStack Query or SWR. Avoid manual
useEffectdata fetching.
Project Detection
- Next.js:
next.config.*detected. Useapp/orpages/layout. - Vite:
vite.config.*detected. Usesrc/layout. - Nx: Use
skill nx-monorepoifnx.jsonexists. - Tailwind v4: Use
skill tailwind-v4for color schema detection.