Auto-apply when working with React, Next.js, or Vite. Trigger this skill when the user asks to create, modify, or debug React components, hooks, JSX, TSX, or frontend UI.
Install
npx skillscat add plutowang/term-conf/react Install via the SkillsCat registry.
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.
Tooling & Workflow
- Package Manager:
pnpm - Dev:
pnpm dev - Build:
pnpm build - Lint:
pnpm lint - Format:
pnpm format:write
Docs: Context7 /websites/react_dev · Fallback: https://react.dev