Communitygithub.com

ASoudy/AGS

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

AGS 是什麼?

此技能提供了一個結構化的開發工作流程,專為建立 React 和 Next.js 14+ 應用程式而設計,採用現代前端模式。它引導開發者與 AI 代理完成從專案初始設定到部署的八個階段,包括元件架構、樣式設計、資料擷取、路由、表單、測試與建置。該工作流程支援 Vercel 部署、TypeScript 5+、Tailwind CSS v4 以及 Zustand 與 React Query 等狀態管理解決方案。它定義了可調用的特定子技能(例如 @app-builder、@nextjs-app-router-patterns),並在每個階段提供可複製的提示,以執行常見任務。質量關卡確保 TypeScript 編譯無誤、測試通過、程式碼規範良好、效能指標達標以及無障礙合規。

相容平台~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 開發工作流程

概述

專為使用現代模式(包括 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 來 scaffold 一個新的 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. 設定設計代幣
  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.

相關技能