
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-codeInstalls 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- Accelint Readme Writer386
- Accelint Ts Testing350
- Accelint Ts Performance347
- Accelint React Best Practices335
- Accelint Ts Best Practices334
- Accelint Security Best Practices323
- Accelint React Testing282
- Accelint Tanstack Query Best Practices279
- Accelint Ts Documentation263
- Accelint Skill Manager230
- Humanizer140
- Skill Judge134
- Ask Questions If Underspecified132