Communitygithub.com

Anhvu1107/all-agent-skill

當請求符合 React Next.js 開發時務必使用:React 與 Next.js 14+ 應用程式開發,包含 App Router、Server Components、TypeScript、Tailwind CSS 及現代前端模式。

all-agent-skill 是什麼?

此技能專為使用 React 與 Next.js 14+ 框架,搭配 App Router、Server Components、TypeScript 以及 Tailwind CSS 等現代前端模式,來建構應用程式所設計。它提供了一套結構化的工作流程,涵蓋從專案初始化、元件架構、樣式設計、資料擷取、路由設定、表單驗證、測試到部署的完整生命週期。此技能會調用一系列子技能(例如 app-builder、nextjs-app-router-patterns、react-state-management),並提供可直接複製貼上的提示,以簡化開發流程。它支援在 Cursor、Claude Code 及 Codex 等 AI 代理平台中使用,透過自動化常見任務與強制執行最佳實務,從而提升生產力。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Anhvu1107/all-agent-skill/tree/HEAD/.agent/skills/react-nextjs-development

在你喜歡的 AI 中提問

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

說明文件

React/Next.js 開發工作流程

選擇性閱讀規則

從以下文件開始:

  • references/senior-master-standard.md
  • references/usage-routing.md
  • references/quality-checklist.md

然後僅載入與使用者實際任務相符的繼承文件、腳本、資產或範例。

概述

專門用於使用現代模式(包括 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. 建立工具類別
  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.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches 007: Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Agentfolio: Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Animejs Animation: Advanced JavaScript animation library skill for creating complex, high-performance web animations.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Astropy: Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Astro: Build content-focused websites with Astro — zero JS by default, islands architecture, multi-framework components, and Markdown/MDX support.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Emotional ARC Designer: One sentence - what this skill does and when to invoke it

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Fixing Motion Performance: Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches I18n Localization: Internationalization and localization patterns.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Interactive Portfolio: Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches JQ: Expert jq usage for JSON querying, filtering, transformation, and pipeline integration.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Landing Page Generator: Generates high-converting Next.js/React landing pages with Tailwind CSS.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches LEX: Centralized ''Truth Engine'' for cross-jurisdictional legal context (US, EU, CA) and contract scaffolding.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Magic Animator: AI-powered animation tool for creating motion in logos, UI, icons, and social media assets.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Makepad Animation: CRITICAL: Use for Makepad animation system.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Nextjs APP Router Patterns: Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

Anhvu1107/all-agent-skill

ALWAYS use this when the user mentions Nextjs Best Practices, asks to build, debug, review, document, automate, test, configure, migrate, or make decisions in this domain, or the task clearly depends on Nextjs Best Practices; scope: Next.js App Router principles. Apply the bundled workflow, references, scripts, Senior Master standard, and Codex strict review gate before final output.

Anhvu1107/all-agent-skill

description: ALWAYS use this when the work is specifically about modern Next.js or React architecture, data flow, rendering strategy, routing, or performance-sensitive frontend behavior.

Anhvu1107/all-agent-skill

ALWAYS use this when the request matches Nextjs Supabase Auth: Expert integration of Supabase Auth with Next.js App Router

Anhvu1107/all-agent-skill

ALWAYS use this when the task involves reading, extracting, splitting, merging, rotating, creating, validating, OCR-ing, form-filling, or otherwise producing or modifying PDF files.

Anhvu1107/all-agent-skill

ALWAYS use this when working with Remotion code, video compositions, rendering logic, timing, media assets, or React-based motion workflows.

相關技能