Covers Next.js 16's environment variable system with the file precedence rules, NEXT_PUBLIC_ prefixing for client-side exposure, and deployment patterns for Vercel. You'll reach for this when setting up a new Next.js project or debugging why your API keys work locally but not in production. The source walks through the seven different .env file types and their load order, which is genuinely helpful since Next.js's precedence chain trips people up constantly. Includes validation scripts and a practical checklist for catching the classic mistake of putting secrets in NEXT_PUBLIC_ variables where they'll get baked into your browser bundle.

skills.sh installs
380
GitHub stars
79
last updated
Aug 21, 2026

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill nextjs-v16 --agent claude-code

Installs into .claude/skills of the current project.

Files

Next.js 16

  • Async params/cookies/headers; opt-in caching via "use cache"; Turbopack default.

Anti-patterns:

  • ❌ Sync request APIs; ✅ await params, cookies(), and headers().
  • ❌ Keep middleware.ts; ✅ use proxy.ts and export function proxy.
  • ❌ revalidateTag("posts"); ✅ revalidateTag("posts", "max") or { expire: ... }.

References: references/migration-checklist.md, references/cache-components.md, references/turbopack.md

Sponsors

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Categories
Frontend Development, Documentation
First seen
Jun 3, 2026

More from bobmatnyc/claude-mpm-skills

All 158
1secondsky 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
2davila7 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
3pedronauck 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
4jezweb 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
5secondsky 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
6gentleman-programming avatarangular-performancegentleman-programming/gentleman-skillsAngular performance: NgOptimizedImage, @defer, lazy loading, SSR. Trigger: When optimizing Angular app performance, images, or lazy loading.353skills.sh installs