Communitygithub.com

Next.js And React エキスパート

このスキルは、モダンな Next.js や React のアーキテクチャ、データフロー、レンダリング戦略、ルーティング、またはパフォーマンスに敏感なフロントエンドの動作に関する作業に特化しています。

Next.js And React エキスパート とは?

このスキルは、Next.js および React システムのパフォーマンスボトルネックを特定し、優先順位をつけて修正するための専門的なガイドです。ウォーターフォール(逐次データ取得)、バンドルサイズの肥大化、不適切なサーバー/クライアント境界、過剰な再レンダリングといった、インパクトの大きい問題から先に取り組むことで、効果的な最適化を実現します。主に 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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Next.js And 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 – ホットパス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最適化を検討する。

レビューヒューリスティック

  • クライアントが所有権を必要としない場合、サーバー側の処理を優先する。
  • 依存関係が許せば、データフェッチを並列に保つ。
  • 送信コードを高速に実行しようとする前に、コード量を減らす。
  • 可能な場合は、変更前後の測定を行う。
  • 反射的にメモ化を追加せず、まず構造を修正する。

よくあるフォーカス領域

  • ルートレベルのウォーターフォール
  • 過剰に大きなクライアントコンポーネント
  • 不要なクライアントステート
  • ストリーミングやサスペンス境界の欠如
  • 不適切なキャッシュ動作
  • リストレンダリングと仮想化の問題

良い成果

優れたパフォーマンスパスは以下の状態で終了すべきです:

  • 主要なボトルネックが特定されている
  • 選択した最適化パスが説明されている
  • 関連するチェックが実行されているか推奨されている
  • コードベースがより複雑になるのではなく、よりシンプルになっている

関連スキル

  • 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.

関連スキル