Project analysis nextjs

From event4u-app/agent-config · View interactive version

Project analysis nextjs is an AI agent skill from the GitHub repository event4u-app/agent-config. Use for deep Next.js analysis: server vs client boundaries, routing, data fetching, caching, rendering modes, and hydration/runtime issues.

How to use this skill

Skill file

project-analysis-nextjs

When to use

Use this skill when:

Do NOT use when:

Core principles

Procedure

1. Identify Next.js setup

Check: Next.js version, App Router vs Pages Router, deployment target (Node vs Edge), TypeScript or JavaScript, config files.

Validate: routing system is clear, runtime environment is known.

2. Determine rendering model

Identify: SSR, SSG, ISR, client-side rendering.

Check: which pages/components use which mode, unexpected rendering mode switches, static vs dynamic boundaries.

3. Analyze server vs client boundaries

Inspect: server components, client components ("use client"), shared components.

Check:

4. Trace data fetching

Inspect: fetch, getServerSideProps/getStaticProps (Pages Router), server actions, API routes.

Check:

5. Analyze caching behavior

Check: fetch caching options, revalidation settings, route segment config, browser vs server cache differences.

Validate: stale data issues, unexpected cache hits, missing invalidation logic.

6. Analyze routing and navigation

Inspect: route structure, dynamic routes, layouts, navigation patterns.

Check: incorrect routing assumptions, layout reuse issues, navigation inconsistencies.

7. Detect hydration and runtime issues

Check: server vs client output mismatch, conditional rendering differences, browser-only APIs used on server, timezone/randomness differences.

Validate: hydration warnings, inconsistent UI between server and client.

8. Detect common Next.js anti-patterns

9. Validate Next.js analysis quality

Check:

Output format

  1. Next.js setup summary
  2. Rendering model overview
  3. Server vs client boundary analysis
  4. Data fetching findings
  5. Caching behavior findings
  6. Routing findings
  7. Hydration/runtime issues
  8. Key risks and fixes

Gotcha

Do NOT

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.