react-nextjs-development – skill Lập trình cho agent AI
Phát triển ứng dụng React và Next.js 14+ với App Router, Server Components, TypeScript, Tailwind CSS và các mẫu frontend hiện đại.
Cài skill react-nextjs-development bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/react-nextjs-development-76aaf.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /react-nextjs-development – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/react-nextjs-development-76aaf.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $react-nextjs-development – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/react-nextjs-development-76aaf.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /react-nextjs-development – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/react-nextjs-development-76aaf.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /react-nextjs-development – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
React/Next.js Development Workflow
Overview
Specialized workflow for building React and Next.js 14+ applications with modern patterns including App Router, Server Components, TypeScript, and Tailwind CSS.
When to Use This Workflow
Use this workflow when:
- Building new React applications
- Creating Next.js 14+ projects with App Router
- Implementing Server Components
- Setting up TypeScript with React
- Styling with Tailwind CSS
- Building full-stack Next.js applications
Read the existing package/lockfile and installed framework documentation before selecting versions; Next.js caching, route parameters and server/client APIs differ across releases. Server Components and UI route guards do not replace authorization in every server action/route/data access. Keep secrets server-only, validate runtime inputs, and treat deployment/publication as a separately authorized environment action. Referenced skills are optional available components, not instructions to scaffold, add every library or deploy automatically.
Workflow Phases
Phase 1: Project Setup
Skills to Invoke
app-builder- Application scaffoldingsenior-fullstack- Full-stack guidancenextjs-app-router-patterns- Next.js 14+ patternstypescript-pro- TypeScript setup
Actions
1. Choose project type (React SPA, Next.js app)
2. Select a supported framework/build tool (for example Next.js or Vite); do not choose deprecated Create React App for a new project
3. Scaffold project structure
4. Configure TypeScript
5. Set up ESLint and Prettier
Copy-Paste Prompts
Use @app-builder to scaffold a new Next.js 14 project with App RouterUse @nextjs-app-router-patterns to set up Server ComponentsPhase 2: Component Architecture
Skills to Invoke
frontend-developer- Component developmentreact-patterns- React patternsreact-state-management- State managementreact-ui-patterns- UI patterns
Actions
1. Design component hierarchy
2. Create base components
3. Implement layout components
4. Set up state management
5. Create custom hooks
Copy-Paste Prompts
Use @frontend-developer to create reusable React componentsUse @react-patterns to implement proper component compositionUse @react-state-management to set up Zustand storePhase 3: Styling and Design
Skills to Invoke
frontend-design- UI designtailwind-patterns- Tailwind CSStailwind-design-system- Design systemcore-components- Component library
Actions
1. Set up Tailwind CSS
2. Configure design tokens
3. Create utility classes
4. Build component styles
5. Implement responsive design
Copy-Paste Prompts
Use @tailwind-patterns to style components with Tailwind CSS v4Use @frontend-design to create a modern dashboard UIPhase 4: Data Fetching
Skills to Invoke
nextjs-app-router-patterns- Server Componentsreact-state-management- React Queryapi-patterns- API integration
Actions
1. Implement Server Components
2. Set up React Query/SWR
3. Create API client
4. Handle loading states
5. Implement error boundaries
Copy-Paste Prompts
Use @nextjs-app-router-patterns to implement Server Components data fetchingPhase 5: Routing and Navigation
Skills to Invoke
nextjs-app-router-patterns- App Routernextjs-best-practices- Next.js patterns
Actions
1. Set up file-based routing
2. Create dynamic routes
3. Implement nested routes
4. Add route guards
5. Configure redirects
Copy-Paste Prompts
Use @nextjs-app-router-patterns to set up parallel routes and intercepting routesPhase 6: Forms and Validation
Skills to Invoke
frontend-developer- Form developmenttypescript-advanced-types- Type validationreact-ui-patterns- Form patterns
Actions
1. Choose form library (React Hook Form, Formik)
2. Set up validation (Zod, Yup)
3. Create form components
4. Handle submissions
5. Implement error handling
Copy-Paste Prompts
Use @frontend-developer to create forms with React Hook Form and ZodPhase 7: Testing
Skills to Invoke
javascript-testing-patterns- Jest/Vitestplaywright-skill- E2E testinge2e-testing-patterns- E2E patterns
Actions
1. Set up testing framework
2. Write unit tests
3. Create component tests
4. Implement E2E tests
5. Configure CI integration
Copy-Paste Prompts
Use @javascript-testing-patterns to write Vitest testsUse @playwright-skill to create E2E tests for critical flowsPhase 8: Build and Deployment
Skills to Invoke
vercel-deployment- Vercel deploymentvercel-deploy-claimable- Vercel deploymentweb-performance-optimization- Performance
Actions
1. Configure build settings
2. Optimize bundle size
3. Set up environment variables
4. Deploy to Vercel
5. Configure preview deployments
Copy-Paste Prompts
Use @vercel-deployment to deploy Next.js app to productionTechnology Stack
| Category | Technology |
|----------|------------|
| Framework | Next.js 14+, React 18+ |
| Language | TypeScript 5+ |
| Styling | Tailwind CSS v4 |
| State | Zustand, React Query |
| Forms | React Hook Form, Zod |
| Testing | Vitest, Playwright |
| Deployment | Vercel |
Quality Gates
- [ ] TypeScript compiles without errors
- [ ] All tests passing
- [ ] Linting clean
- [ ] Performance metrics met (LCP, CLS, INP) for the chosen measurement setup
- [ ] Accessibility checked (WCAG 2.1)
- [ ] Responsive design verified
Related Workflow Bundles
development- General developmenttesting-qa- Testing workflowdocumentation- Documentationtypescript-development- TypeScript patterns
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- react-patterns – Các mẫu và nguyên tắc React hiện đại. Hooks, composition, hiệu năng, thực hành…
- react-state-management – Thành thạo quản lý state React hiện đại với Redux Toolkit, Zustand, Jotai và React…
- receiving-code-review – Review code cần đánh giá kỹ thuật, không phải màn trình diễn cảm xúc.
- redis-cli – Tài liệu tham khảo và hướng dẫn sử dụng giao diện dòng lệnh Redis (redis-cli). Dùng kỹ…
- reference-builder – Tạo tài liệu kỹ thuật và tài liệu API toàn diện. Sinh danh sách tham số đầy đủ, hướng…
- remotion-best-practices – Các thực hành tốt nhất cho Remotion - tạo video trong React
- repo-maintainer – Kiểm tra và sửa vệ sinh repository ở các artifact, dependency, CI, tài liệu, trạng thái…
- repo-native-refactor – Review diff mà không chỉnh sửa, hoặc thực hiện dọn dẹp dựa trên bằng chứng trong khi giữ…