Communitygithub.com

Anhvu1107/all-agent-skill

當工作內容明確與現代 Next.js 或 React 架構、資料流、渲染策略、路由或對效能敏感的前端行為相關時,務必使用此技能。

all-agent-skill 是什麼?

此技能專注於診斷並解決 Next.js 與 React 應用程式中最具影響力的效能瓶頸,例如資料瀑布(waterfalls)、過大的打包檔案、不良的伺服器/客戶端邊界以及過度渲染等問題。它透過結構化的檢查清單與參考文件(如`references/performance-investigation-playbook.md`),引導開發者依優先級逐步排除問題,並強調先解決架構性問題再進行微觀最佳化的原則。此技能適用於任何現代 Next.js 或 React 專案,尤其適合需要最佳化頁面載入速度、資料擷取策略或渲染效能的場景。其核心精神是「先測量,再行動」,並以簡化而非複雜化程式碼庫為最終目標。

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

在你喜歡的 AI 中提問

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

說明文件

Next.js 和 React 專家

選擇性閱讀規則

從這些開始:

  • references/usage-routing.md
  • references/quality-checklist.md

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

選擇性閱讀規則

從這些開始:

  • references/senior-master-standard.md

選擇最符合當前瓶頸的檔案:

  • references/performance-investigation-playbook.md 用來結構化調查過程
  • references/app-router-checklist.md 用來審視 App Router 的邊界、資料擷取與快取
  • 1-async-eliminating-waterfalls.md 針對連續資料擷取與請求鏈
  • 2-bundle-bundle-size-optimization.md 針對大型打包檔案與反應緩慢的互動
  • 3-server-server-side-performance.md 針對 SSR 與伺服器路由的效能
  • 4-client-client-side-data-fetching.md 針對客戶端快取與請求行為
  • 5-rerender-re-render-optimization.md 針對過度重新渲染
  • 6-rendering-rendering-performance.md 針對渲染瓶頸與大型列表
  • 7-js-javascript-performance.md 針對熱路徑(hot-path)JavaScript 問題
  • 8-advanced-advanced-patterns.md 針對進階的 React 執行模式
  • 9-cache-components.md 針對 Next.js 16 的快取元件與部分預渲染

目的

透過優先修復影響最大的瓶頸來改善 React 和 Next.js 系統。

在更大的問題(如資料瀑布、打包檔案膨脹或不良邊界)尚未解決之前,不要進行微觀最佳化。

使用此技能的時機

  • 頁面或流程感覺緩慢,且瓶頸尚未被隔離
  • React 程式碼重新渲染次數過於頻繁
  • 需要審視 Next.js 的資料擷取或渲染策略
  • 打包大小或用戶端 JavaScript 數量對使用者體驗造成負面影響
  • 需要在現代 Next.js 的快取選擇上做出深思熟慮的決定

優先順序

  1. 消除資料瀑布。
  2. 減少不必要的已傳輸 JavaScript。
  3. 修正不良的伺服器-用戶端邊界。
  4. 處理重新渲染與渲染熱點。
  5. 然後才考慮低階的 JavaScript 最佳化。

審查啟發法

  • 當客戶端不需要所有權時,優先使用伺服器端工作。
  • 在相依性允許的情況下,保持資料擷取的並行性。
  • 在嘗試加速已傳輸程式碼的執行之前,先傳輸較少的程式碼。
  • 盡可能測量前後差異。
  • 不要反射性地添加記憶化(memoization),先修正結構。

常見關注領域

  • 路由層級的資料瀑布
  • 過大的用戶端元件
  • 不必要的用戶端狀態
  • 缺少串流(streaming)或 Suspense 邊界
  • 不良的快取行為
  • 列表渲染與虛擬化問題

良好成果

一次有效的效能調校應以以下結果作結:

  • 識別出主要瓶頸
  • 解釋所選的最佳化路徑
  • 執行或建議相關檢查
  • 讓程式碼庫變得更簡單,而非更複雜

相關技能

  • frontend-design:當 UX 與實作品質相互影響時使用
  • web-design-guidelines:用於介面層級的審計
  • performance-profiling:用於更廣泛的量測策略
  • api-patterns:當後端形狀造成前端資料瀑布時使用

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

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 the request matches React Nextjs Development: React and Next.js 14+ application development with App Router, Server Components, TypeScript, Tailwind CSS, and modern frontend patterns.

Anhvu1107/all-agent-skill

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

相關技能