Communitygithub.com

ASoudy/AGS

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

AGS 是什么?

该技能为构建 React 和 Next.js 14+ 应用程序提供了全面的工作流程,专注于现代开发模式,如 App Router、Server Components、TypeScript 和 Tailwind CSS。它涵盖了从项目搭建、组件架构、样式设计到数据获取、路由导航、表单验证、测试以及构建部署的完整开发生命周期。技能文档详细列出了每个阶段的特定操作步骤、可调用的相关技能以及可直接复制粘贴的提示,帮助开发者高效执行常见任务。支持 Next.js 14+、React 18+、TypeScript 5+、Tailwind CSS v4 等主流技术栈,并集成了 Zustand、React Query、React Hook Form、Zod、Vitest 和 Playwright 等工具。此技能适用于需要快速启动或优化基于 Next.js 14+ 的全栈应用开发场景,尤其适合团队希望统一开发流程或新手快速上手大型项目时使用。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ASoudy/AGS/tree/HEAD/AGAS/plugins/antigravity-awesome-skills-claude/skills/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
  • 为 React 配置 TypeScript
  • 使用 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 存储

阶段 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.

ASoudy/AGS

Advanced JavaScript animation library skill for creating complex, high-performance web animations.

ASoudy/AGS

Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis.

ASoudy/AGS

Build content-focused websites with Astro — zero JS by default, islands architecture, multi-framework components, and Markdown/MDX support.

ASoudy/AGS

One sentence - what this skill does and when to invoke it

ASoudy/AGS

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

ASoudy/AGS

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

ASoudy/AGS

Pull a YouTube video transcript into a queryable markdown vault with yt-dlp subtitle discovery, VTT cleanup, metadata frontmatter, and capture-seed stubs.

ASoudy/AGS

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

ASoudy/AGS

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

ASoudy/AGS

AI-powered animation tool for creating motion in logos, UI, icons, and social media assets.

ASoudy/AGS

CRITICAL: Use for Makepad animation system. Triggers on: makepad animation, makepad animator, makepad hover, makepad state, makepad transition, "from: { all: Forward", makepad pressed, makepad 动画, makepad 状态, makepad 过渡, makepad 悬停效果

ASoudy/AGS

Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

ASoudy/AGS

Next.js App Router principles. Server Components, data fetching, routing patterns.

ASoudy/AGS

Expert integration of Supabase Auth with Next.js App Router

ASoudy/AGS

Best practices for Remotion - Video creation in React

ASoudy/AGS

Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

ASoudy/AGS

Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence

ASoudy/AGS

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

ASoudy/AGS

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

ASoudy/AGS

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

相关技能