nextjs-16-async-apis

Enforces asynchronous patterns for Next.js 16 APIs like cookies, headers, params, and searchParams.

5|Updated Dec 22, 2025
Ready to run
npx skills add https://github.com/MuhammedSuhaib/LevelUpSpeckit-Plus --skill nextjs-16-async-apis
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: nextjs-16-async-apis
Source: https://github.com/MuhammedSuhaib/LevelUpSpeckit-Plus/tree/main/Skill+SubAgents/skills/claude-nextjs-skills/nextjs-16-async-apis
Command: npx skills add https://github.com/MuhammedSuhaib/LevelUpSpeckit-Plus --skill nextjs-16-async-apis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces fully asynchronous patterns for Next.js 16 APIs (cookies, headers, params, and searchParams), ensuring correct server-side context handling.

Core Features & Use Cases

  • Async cookies/headers: Awaited in server components and route handlers.
  • Async params: Awaited in layout/page/route contexts.
  • use()) patterns: Unwraps promises in client components via React's use.

Quick Start

  1. Update server routes to await cookies() and headers().
  2. Wrap client parameters via use() where needed.
  3. Ensure searchParams are read with await or use() in the client.