Communitygithub.com

React/Next.js 開發工作流程

使用 App Router、Server Components、TypeScript、Tailwind CSS 和現代前端模式來開發 React 和 Next.js 14+ 應用程式。

Next.js 開發工作流程 是什麼?

此技能提供了一個專門的工作流程,用於使用現代模式(包括 App Router、Server Components、TypeScript 和 Tailwind CSS)構建 React 和 Next.js 14+ 應用程式。它涵蓋了從專案初始化到部署的整個開發生命週期,分為八個階段:專案設置、元件架構、樣式與設計、資料獲取、路由與導航、表單與驗證、測試以及建置與部署。每個階段都包含可調用的技能、具體的執行步驟和可複製的提示,以便與 Cursor 或 Codex 等啟用 AI 代理的開發工具中的其他技能進行順暢互動。它支援 Vite、Next.js 建立應用程式和 Create React App 等工具,並整合了 Zustand、React Query、React Hook Form、Zod、Vitest 和 Playwright 等其他程式庫。從頭到尾遵循此結構化工作流程,開發人員可以確保他們的專案遵循最佳實務,並滿足 TypeScript 編譯、測試通過、無 Linting 錯誤以及效能指標(LCP、CLS、FID)等品質閘門。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/sickn33/react-nextjs-development

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Next.js 開發工作流程 是做什麼的?

概述

專門用於使用現代模式(包括 App Router、Server Components、TypeScript 和 Tailwind CSS)構建 React 和 Next.js 14+ 應用程式的工作流程。

何時使用此工作流程

在以下情況下使用此工作流程:

  • 建置新的 React 應用程式
  • 使用 App Router 建立 Next.js 14+ 專案
  • 實作 Server Components
  • 使用 TypeScript 設定 React
  • 使用 Tailwind CSS 進行樣式設計
  • 建置全端 Next.js 應用程式

工作流程階段

階段 1:專案設置

要呼叫的技能

  • app-builder - 應用程式樣板產生
  • senior-fullstack - 全端指導
  • nextjs-app-router-patterns - Next.js 14+ 模式
  • typescript-pro - TypeScript 設定

動作

  1. 選擇專案類型(React SPA、Next.js 應用程式)
  2. 選擇建置工具(Vite、Next.js、Create React App)
  3. 產生專案結構
  4. 設定 TypeScript
  5. 設定 ESLint 和 Prettier

可複製提示

使用 @app-builder 來產生一個新的 Next.js 14 專案,包含 App Router
使用 @nextjs-app-router-patterns 來設定 Server Components

階段 2:元件架構

要呼叫的技能

  • frontend-developer - 元件開發
  • react-patterns - React 模式
  • react-state-management - 狀態管理
  • react-ui-patterns - UI 模式

動作

  1. 設計元件階層
  2. 建立基礎元件
  3. 實作佈局元件
  4. 設定狀態管理
  5. 建立自訂 Hook

可複製提示

使用 @frontend-developer 來建立可重複使用的 React 元件
使用 @react-patterns 來實作適當的元件組合
使用 @react-state-management 來設定 Zustand store

階段 3:樣式與設計

要呼叫的技能

  • frontend-design - UI 設計
  • tailwind-patterns - Tailwind CSS
  • tailwind-design-system - 設計系統
  • core-components - 元件庫

動作

  1. 設定 Tailwind CSS
  2. 設定設計 token
  3. 建立 utility class
  4. 建置元件樣式
  5. 實作響應式設計

可複製提示

使用 @tailwind-patterns 來使用 Tailwind CSS v4 設定元件樣式
使用 @frontend-design 來建立現代儀表板 UI

階段 4:資料獲取

要呼叫的技能

  • nextjs-app-router-patterns - Server Components
  • react-state-management - React Query
  • api-patterns - API 整合

動作

  1. 實作 Server Components
  2. 設定 React Query/SWR
  3. 建立 API client
  4. 處理載入狀態
  5. 實作錯誤邊界

可複製提示

使用 @nextjs-app-router-patterns 來實作 Server Components 資料獲取

階段 5:路由與導航

要呼叫的技能

  • nextjs-app-router-patterns - App Router
  • nextjs-best-practices - Next.js 模式

動作

  1. 設定基於檔案的路由
  2. 建立動態路由
  3. 實作巢狀路由
  4. 新增路由守衛
  5. 設定重新導向

可複製提示

使用 @nextjs-app-router-patterns 來設定平行路由和攔截路由

階段 6:表單與驗證

要呼叫的技能

  • frontend-developer - 表單開發
  • typescript-advanced-types - 類型驗證
  • react-ui-patterns - 表單模式

動作

  1. 選擇表單函式庫(React Hook Form、Formik)
  2. 設定驗證(Zod、Yup)
  3. 建立表單元件
  4. 處理提交
  5. 實作錯誤處理

可複製提示

使用 @frontend-developer 來使用 React Hook Form 和 Zod 建立表單

階段 7:測試

要呼叫的技能

  • javascript-testing-patterns - Jest/Vitest
  • playwright-skill - E2E 測試
  • e2e-testing-patterns - E2E 模式

動作

  1. 設定測試框架
  2. 撰寫單元測試
  3. 建立元件測試
  4. 實作 E2E 測試
  5. 設定 CI 整合

可複製提示

使用 @javascript-testing-patterns 來撰寫 Vitest 測試
使用 @playwright-skill 來為關鍵流程建立 E2E 測試

階段 8:建置與部署

要呼叫的技能

  • vercel-deployment - Vercel 部署
  • vercel-deploy-claimable - Vercel 部署
  • web-performance-optimization - 效能

動作

  1. 設定建置設定
  2. 最佳化 bundle 大小
  3. 設定環境變數
  4. 部署到 Vercel
  5. 設定預覽部署

可複製提示

使用 @vercel-deployment 將 Next.js 應用程式部署到正式環境

技術棧

類別技術
框架Next.js 14+, React 18+
語言TypeScript 5+
樣式Tailwind CSS v4
狀態管理Zustand, React Query
表單React Hook Form, Zod
測試Vitest, Playwright
部署Vercel

品質閘門

  • TypeScript 編譯無錯誤
  • 所有測試通過
  • Linting 乾淨
  • 效能指標達標(LCP, CLS, FID)
  • 無障礙檢查通過(WCAG 2.1)
  • 響應式設計驗證通過

相關工作流程套件

  • development - 一般開發
  • testing-qa - 測試工作流程
  • documentation - 文件
  • typescript-development - TypeScript 模式

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能