gohypergiant avatar

Accelint Nextjs Best Practices

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.

skills.sh installs
386
GitHub stars
25
last updated
Aug 21, 2026

Install

$ npx -y skills add gohypergiant/agent-skills --skill accelint-nextjs-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Next.js Best Practices

Comprehensive performance optimization and best practices for Next.js applications, designed for AI agents and LLMs working with Next.js code.

When to Activate This Skill

Use this skill when the task involves:

Writing Next.js Code

  • Creating Server Components or Client Components
  • Implementing Server Actions with "use server"
  • Writing API route handlers
  • Setting up data fetching in RSC (React Server Components)
  • Implementing Suspense boundaries
  • Using Next.js-specific APIs (headers(), cookies(), after())

Refactoring Next.js Code

  • Optimizing server-side data fetching
  • Reducing RSC serialization overhead
  • Converting sequential to parallel operations
  • Restructuring component composition for better performance
  • Migrating between Server and Client Components

Performance Optimization

  • Eliminating server-side waterfalls
  • Reducing response times in API routes and Server Actions
  • Minimizing data transfer at RSC boundaries
  • Implementing request deduplication with React.cache()
  • Using after() for non-blocking operations

Sponsors

Details

Repository
github.com/gohypergiant/agent-skills
Categories
Frontend Development, Backend & APIs, Security, Documentation, AI & Agent Building, Debugging, Automation & Workflows
First seen
Jun 3, 2026

More from gohypergiant/agent-skills

All 14
1bobmatnyc avatarnextjs-v16bobmatnyc/claude-mpm-skillsNext.js 16 migration guide (async request APIs, "use cache", Turbopack)380skills.sh installs
2secondsky avatarreact-best-practicessecondsky/claude-skillsReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js c380skills.sh installs
3davila7 avatarvercel-react-best-practicesdavila7/claude-code-templatesReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js c376skills.sh installs
4pedronauck avatarvercel-react-best-practicespedronauck/skillsReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js c360skills.sh installs
5jezweb avatarresponsive-imagesjezweb/claude-skillsImplement performant responsive images with srcset, sizes, lazy loading, and modern formats (WebP, AVIF). Covers aspect-ratio for CLS prevention, picture elemen358skills.sh installs
6secondsky avatarbun-nextjssecondsky/claude-skillsThis skill should be used when the user asks about "Next.js with Bun", "Bun and Next", "running Next.js on Bun", "Next.js development with Bun", "create-next-ap358skills.sh installs