Communitygithub.com

ComeOnOliver/skillshub

React 和 Next.js 14+ 应用开发,使用 App Router、Server Components、TypeScript、Tailwind CSS 及现代前端模式。

skillshub 是什么?

该技能提供了一个完整的 React 和 Next.js 14+ 应用开发工作流,专注于采用最新模式,如 App Router、Server Components、TypeScript 和 Tailwind CSS。它适用于从头开始构建新项目,或为现有项目引入现代前端架构。工作流分为八个明确阶段:项目搭建、组件架构、样式设计、数据获取、路由导航、表单验证、测试以及构建部署,每个阶段都集成了推荐的技能(如 `app-builder`、`nextjs-app-router-patterns`、`tailwind-patterns`)和可复制的提示。该技能支持开发全栈 Next.js 应用,涵盖 Zustand 状态管理、React Hook Form + Zod 表单验证、Vitest/Playwright 测试,以及 Vercel 部署。其价值在于提供一个可重复、可扩展的开发蓝图,确保团队遵循最佳实践,并包含质量门禁(如 TypeScript 类型检查、性能指标、无障碍性检查)。

兼容平台~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 的新对话。

文档

React/Next.js 开发工作流

概述

专门用于构建 React 和 Next.js 14+ 应用程序的工作流,采用现代模式,包括 App Router、Server Components、TypeScript 和 Tailwind CSS。

何时使用此工作流

在以下情况下使用此工作流:

  • 构建新的 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. 创建自定义 hooks

可复制的提示

使用 @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. 配置设计令牌
  3. 创建工具类
  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 客户端
  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. 优化包体积
  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

相关技能