React, Next.js, TypeScript, and Tailwind CSS — from scaffold to production.
Use this skill when the user asks to:
scaffold | component | bundle | optimize | accessibility | review.{baseDir}/references/react_patterns.md{baseDir}/references/nextjs_optimization_guide.md{baseDir}/references/frontend_best_practices.md```bash
# Scaffold a new Next.js or React project
python {baseDir}/scripts/frontend_scaffolder.py my-app --template nextjs
python {baseDir}/scripts/frontend_scaffolder.py my-app --template nextjs --features auth,api,forms,testing
# Generate a component (client | server | hook) with optional test and story
python {baseDir}/scripts/component_generator.py Button --dir src/components/ui
python {baseDir}/scripts/component_generator.py UserProfile --type server --with-test --with-story
# Analyze bundle for heavy dependencies and optimization opportunities
python {baseDir}/scripts/bundle_analyzer.py ./project --verbose
```
sizes prop to Image").'use client' only when state, effects, or browser APIs are required.cn() from @/lib/utils for conditional Tailwind classes — not string concatenation.any.Flag these without being asked:
moment → replace with date-fns or dayjslodash full import → switch to lodash-es with tree-shakingCOPY . . before npm install in Dockerfile → reorder (defer to docker-development)alt on ![]()
or → accessibility issueuseEffect with data fetching in Next.js → suggest Server Component or use() hooksizes on responsive → layout shift risk'use client' to components that only render static markup.@mui/material — prefer shadcn/ui or Radix UI primitives.senior-architect.共 1 个版本