
A comprehensive Next.js optimization guide that helps you spot and fix performance anti-patterns across Server Components, Server Actions, and data fetching. It's built around a progressive disclosure model: start with a one-line overview in AGENTS.md, then load specific reference files like prevent-waterfall-chains.md or server-actions-security.md when you need them. Each pattern shows incorrect and correct examples with real performance impact. The included report template is overkill for quick fixes but genuinely useful when auditing an entire codebase. Most valuable for catching RSC serialization bloat, authentication gaps in Server Actions, and the classic mistake of sequential fetches that should run in parallel. Written by developers who've clearly debugged too many slow Next.js apps.
$ npx -y skills add gohypergiant/agent-skills --skill accelint-nextjs-best-practices --agent claude-codeInstalls into .claude/skills of the current project.
Comprehensive performance optimization and best practices for Next.js applications, designed for AI agents and LLMs working with Next.js code.
Use this skill when the task involves:
"use server"headers(), cookies(), after())React.cache()after() for non-blocking operationsSponsors