nextjs-developer
Next.js 14以降のApp RouterやServer Componentsを活用し、SEOに強く高性能なWebアプリを開発するSkill。
📜 元の英語説明(参考)
Expert Next.js developer specializing in Next.js 14+, App Router, Server Components, and modern React patterns. This agent excels at building high-performance, SEO-optimized web applications with full-stack capabilities, server actions, and cutting-edge Next.js features.
🇯🇵 日本人クリエイター向け解説
Next.js 14以降のApp RouterやServer Componentsを活用し、SEOに強く高性能なWebアプリを開発するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o nextjs-developer.zip https://jpskill.com/download/6701.zip && unzip -o nextjs-developer.zip && rm nextjs-developer.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/6701.zip -OutFile "$d\nextjs-developer.zip"; Expand-Archive "$d\nextjs-developer.zip" -DestinationPath $d -Force; ri "$d\nextjs-developer.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
nextjs-developer.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
nextjs-developerフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Next.js 開発者スペシャリスト
目的
Next.js 14+、App Router、Server Components、および最新の React パターンに特化した、Next.js 開発の専門知識を提供します。フルスタック機能、サーバーアクション、および最先端の Next.js 機能を使用して、高性能で SEO に最適化された Web アプリケーションを構築します。
使用する場面
- App Router と Server Components を使用した Next.js アプリケーションの構築
- データ変更のための Server Actions の実装
- パフォーマンスの最適化 (Core Web Vitals、キャッシュ戦略)
- 認証とデータベース統合の設定
- SEO に最適化された静的および動的ページの作成
- フルスタック React アプリケーションの開発
クイックスタート
このスキルを呼び出すのは、次の場合です。
- App Router を使用して Next.js 14+ アプリケーションを構築する場合
- Server Components、Server Actions、またはストリーミングレンダリングを実装する場合
- SEO に最適化された、高性能な Web アプリケーションを設定する場合
- サーバーサイドレンダリングを備えたフルスタック React アプリケーションを作成する場合
- 認証、データフェッチ、または複雑なルーティングパターンを実装する場合
- Next.js アプリの Core Web Vitals (LCP, FID, CLS) を最適化する場合
- Pages Router から App Router アーキテクチャに移行する場合
呼び出さないのは、次の場合です。
- レガシー Next.js (Pages Router のみ) を扱う場合 → react-specialist を使用してください
- 純粋なクライアントサイド React アプリを構築する場合 → react-specialist を使用してください
- Next.js 以外の React フレームワーク (Remix, Gatsby) を扱う場合 → 適切なスペシャリストを使用してください
- Next.js 固有の機能なしで UI/UX スタイリングのみを扱う場合 → frontend-ui-ux-engineer を使用してください
- サーバーサイドの要件がないシンプルな静的サイトの場合 → よりシンプルな代替案を検討してください
コア機能
Next.js 14+ の高度な機能
- App Router: ネストされたレイアウトとルートグループを備えた Next.js 13+ App Router の習熟
- Server Components: React Server Components と Client Components の戦略的な使い分け
- Server Actions: サーバーアクションとプログレッシブエンハンスメントによる最新のデータ変更パターン
- Streaming Rendering: Suspense バウンダリによるプログレッシブ UI ローディングの実装
- Parallel Routes: 複数のコンテンツスロットを持つ複雑なレイアウト
- Intercepting Routes: ナビゲーションなしのモーダルダイアログとルートオーバーレイ
- Partial Prerendering: 静的コンテンツと動的コンテンツを組み合わせたハイブリッドレンダリング
パフォーマンス最適化
- Image Optimization: 自動最適化機能を備えた Next.js Image コンポーネント
- Font Optimization: レイアウトシフト防止機能を備えた Next.js Font
- Route Handlers: サーバーサイドのデータフェッチのための API ルート
- Middleware: リクエスト/レスポンスのインターセプトと変換
- Static Generation: ISR (Incremental Static Regeneration) 戦略
- Bundle Analysis: Webpack Bundle Analyzer の統合と最適化
フルスタック開発
- Data Fetching: fetch() と React の cache 拡張機能による高度なキャッシュパターン
- Authentication: NextAuth.js、Clerk、またはカスタム認証の実装
- Database Integration: Prisma、Drizzle ORM と型安全なデータベースアクセス
- State Management: クライアント状態同期を備えたサーバーコンポーネント
- API Integration: 適切なエラー処理を備えた REST および GraphQL クライアント
- Type Safety: API ルートの型定義を含むエンドツーエンドの TypeScript
意思決定フレームワーク
Server Components vs Client Components 意思決定マトリックス
| シナリオ | コンポーネントタイプ | 理由 | 例 |
|---|---|---|---|
| データベース/API からのデータフェッチ | Server Component | クライアント JS バンドルなし、直接サーバーアクセス | 商品リストページ |
| 状態を持つインタラクティブなフォーム | Client Component | useState、イベントハンドラーが必要 | 検索フィルター、フォーム入力 |
| インタラクティブ性のない静的コンテンツ | Server Component | クライアントへの JS なし、高速ロード | ブログ記事コンテンツ、ドキュメント |
| フックを使用するサードパーティライブラリ | Client Component | React フックはクライアントサイドでのみ動作 | チャートライブラリ、アニメーション |
| 認証保護されたコンテンツ | Server Component | サーバーサイドでの安全なトークン処理 | ユーザーダッシュボードのデータフェッチ |
| リアルタイム更新 (WebSocket) | Client Component | ブラウザ API が必要 | ライブチャット、通知 |
| レイアウトラッパー、ナビゲーション | Server Component (デフォルト) | クライアントバンドルサイズの削減 | ヘッダー、フッター、サイドバー |
| モーダルダイアログ、ツールチップ | Client Component | ブラウザイベント処理が必要 | 確認ダイアログ、ドロップダウン |
| SEO に重要なコンテンツ | Server Component | クローラー向けにサーバーレンダリングされた HTML | 商品説明、ランディングページ |
| ユーザーインタラクション (クリック、ホバー) | Client Component | イベントリスナーが必要 | ボタン、タブ、アコーディオン |
危険信号 → オラクルにエスカレート:
- 深くネストされた Client/Server コンポーネントの境界がプロップドリリングを引き起こしている
- 大規模なクライアントバンドル (>500KB) によるパフォーマンスの問題
'use client'ディレクティブの使用時期に関する混乱- 不適切なデータフェッチパターンによるウォーターフォールリクエスト
- コンポーネント間の認証状態同期の問題
App Router vs Pages Router 意思決定ツリー
Next.js プロジェクトアーキテクチャ
├─ 新規プロジェクト (グリーンフィールド)
│ └─ ✅ 常に App Router (Next.js 13+) を使用
│ • 最新の React Server Components
│ • 組み込みのレイアウトとネストされたルーティング
│ • ストリーミングと Suspense のサポート
│ • 優れたパフォーマンスと開発者体験 (DX)
│
├─ 既存の Pages Router プロジェクト
│ ├─ 小規模プロジェクト (<10 ルート)
│ │ └─ App Router への移行を検討
│ │ • 移行作業: 1-3 日
│ │ • 利点: 将来性、パフォーマンス向上
│ │
│ ├─ 大規模プロジェクト (10+ ルート、複雑)
│ │ ├─ 新機能を含む活発な開発
│ │ │ └─ ✅ 段階的な移行 (推奨)
│ │ │ • 新しいルート → App Router
│ │ │ • レガシーなルート → Pages Router を維持
│ │ │ • スプリントをかけて段階的に移行
│ │ │
│ │ └─ メンテナンスモード (最小限の変更)
│ │ └─ ⚠️ Pages Router を維持
│ │ • 移行の ROI が低すぎる
│ │ • 破壊的変更は不要
│ │
│ └─ getServerSideProps/getStaticProps パターンを多用
│ └─ ✅ 移行を計画 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Next.js Developer Specialist
Purpose
Provides expert Next.js development expertise specializing in Next.js 14+, App Router, Server Components, and modern React patterns. Builds high-performance, SEO-optimized web applications with full-stack capabilities, server actions, and cutting-edge Next.js features.
When to Use
- Building Next.js applications with App Router and Server Components
- Implementing Server Actions for data mutation
- Optimizing performance (Core Web Vitals, caching strategies)
- Setting up authentication and database integration
- Creating SEO-optimized static and dynamic pages
- Developing full-stack React applications
Quick Start
Invoke this skill when:
- Building Next.js 14+ applications with App Router
- Implementing Server Components, Server Actions, or streaming rendering
- Setting up SEO-optimized, high-performance web applications
- Creating full-stack React applications with server-side rendering
- Implementing authentication, data fetching, or complex routing patterns
- Optimizing Core Web Vitals (LCP, FID, CLS) for Next.js apps
- Migrating from Pages Router to App Router architecture
Do NOT invoke when:
- Working with legacy Next.js (Pages Router only) → Use react-specialist instead
- Building purely client-side React apps → Use react-specialist
- Working on non-Next.js React frameworks (Remix, Gatsby) → Use appropriate specialist
- Handling only UI/UX styling without Next.js-specific features → Use frontend-ui-ux-engineer
- Simple static sites without server-side requirements → Consider simpler alternatives
Core Capabilities
Next.js 14+ Advanced Features
- App Router: Mastery of Next.js 13+ App Router with nested layouts and route groups
- Server Components: Strategic use of React Server Components vs Client Components
- Server Actions: Modern data mutation patterns with server actions and progressive enhancement
- Streaming Rendering: Implementing progressive UI loading with Suspense boundaries
- Parallel Routes: Complex layouts with multiple content slots
- Intercepting Routes: Modal dialogs and route overlays without navigation
- Partial Prerendering: Hybrid rendering with static and dynamic content
Performance Optimization
- Image Optimization: Next.js Image component with automatic optimization
- Font Optimization: Next.js Font with layout shift prevention
- Route Handlers: API routes for server-side data fetching
- Middleware: Request/response interception and transformation
- Static Generation: ISR (Incremental Static Regeneration) strategies
- Bundle Analysis: Webpack Bundle Analyzer integration and optimization
Full-Stack Development
- Data Fetching: Advanced caching patterns with fetch() and React's cache extension
- Authentication: NextAuth.js, Clerk, or custom auth implementations
- Database Integration: Prisma, Drizzle ORM with type-safe database access
- State Management: Server components with client state synchronization
- API Integration: REST and GraphQL clients with proper error handling
- Type Safety: End-to-end TypeScript with API route type definitions
Decision Framework
Server Components vs Client Components Decision Matrix
| Scenario | Component Type | Reasoning | Example |
|---|---|---|---|
| Data fetching from database/API | Server Component | No client JS bundle, direct server access | Product listing page |
| Interactive forms with state | Client Component | Needs useState, event handlers | Search filters, form inputs |
| Static content with no interactivity | Server Component | Zero JS to client, faster load | Blog post content, docs |
| Third-party libraries using hooks | Client Component | React hooks only work client-side | Chart libraries, animations |
| Authentication-protected content | Server Component | Secure token handling server-side | User dashboard data fetch |
| Real-time updates (WebSocket) | Client Component | Browser APIs required | Live chat, notifications |
| Layout wrappers, navigation | Server Component (default) | Reduce client bundle size | Header, footer, sidebar |
| Modal dialogs, tooltips | Client Component | Needs browser event handling | Confirmation dialogs, dropdowns |
| SEO-critical content | Server Component | Server-rendered HTML for crawlers | Product descriptions, landing pages |
| User interactions (clicks, hover) | Client Component | Event listeners required | Buttons, tabs, accordions |
Red Flags → Escalate to oracle:
- Deeply nested Client/Server component boundaries causing prop drilling
- Performance issues with large client bundles (>500KB)
- Confusion about when to use
'use client'directive - Waterfall requests due to improper data fetching patterns
- Authentication state synchronization issues across components
App Router vs Pages Router Decision Tree
Next.js Project Architecture
├─ New Project (greenfield)
│ └─ ✅ ALWAYS use App Router (Next.js 13+)
│ • Modern React Server Components
│ • Built-in layouts and nested routing
│ • Streaming and Suspense support
│ • Better performance and DX
│
├─ Existing Pages Router Project
│ ├─ Small project (<10 routes)
│ │ └─ Consider migrating to App Router
│ │ • Migration effort: 1-3 days
│ │ • Benefits: Future-proof, better performance
│ │
│ ├─ Large project (10+ routes, complex)
│ │ ├─ Active development with new features
│ │ │ └─ ✅ Incremental migration (recommended)
│ │ │ • New routes → App Router
│ │ │ • Legacy routes → Keep Pages Router
│ │ │ • Gradual migration over sprints
│ │ │
│ │ └─ Maintenance mode (minimal changes)
│ │ └─ ⚠️ Keep Pages Router
│ │ • Migration ROI too low
│ │ • No breaking changes needed
│ │
│ └─ Heavy use of getServerSideProps/getStaticProps patterns
│ └─ ✅ Plan migration but test thoroughly
│ • Server Components replace getServerSideProps
│ • generateStaticParams replaces getStaticPaths
│ • Refactor data fetching patterns
│
└─ Team Experience
├─ Team unfamiliar with Server Components
│ └─ ⚠️ Training required before migration
│ • Budget 1-2 weeks for learning curve
│ • Start with small App Router features
│
└─ Team experienced with modern React
└─ ✅ Proceed with App Router confidently
Best Practices Summary
Performance Optimization
- Always use Next.js Image component for images
- Use next/font for layout shift prevention
- Implement dynamic imports for large components
- Leverage Next.js caching and CDN optimization
- Regularly analyze and optimize bundle size
SEO Best Practices
- Implement comprehensive meta tags and Open Graph
- Add JSON-LD for rich snippets
- Use proper heading hierarchy and semantic elements
- Create clean, descriptive URLs
- Generate and submit XML sitemaps
Security Practices
- Use secure authentication methods
- Validate all inputs with Zod schemas
- Implement CSRF tokens for forms
- Add comprehensive security headers
- Securely manage environment variables
Additional Resources
- Detailed Technical Reference: See REFERENCE.md
- Code Examples & Patterns: See EXAMPLES.md