nextjs-params

Fix missing await and Promise types for Next.js 15 route params.

2|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/pmarashian/cursor-agent-skills --skill nextjs-params
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-params
Source: https://github.com/pmarashian/cursor-agent-skills/tree/main/nextjs-params
Command: npx skills add https://github.com/pmarashian/cursor-agent-skills --skill nextjs-params

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automatically detects and fixes issues where Next.js 15 dynamic route parameters are used without proper await, preventing runtime errors during migration or development.

Core Features & Use Cases

  • Detects missing await: Identifies instances where params is destructured without await.
  • Corrects type annotations: Ensures params has the Promise<> type when asynchronous.
  • Provides automatic fixes: Offers quick solutions to update code for Next.js 15 compatibility.
  • Use Case: When developing or migrating a Next.js application to version 15, this skill ensures your dynamic route handlers correctly manage asynchronous parameters, preventing common errors.

Quick Start

Use the nextjs-params skill to automatically fix any missing await calls for params in the current route handler file.

Frequently Asked Questions about nextjs-params

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why do my Next.js 15 dynamic route params cause runtime errors?

Next.js 15 dynamic route params cause runtime errors when destructured without being properly awaited. This Skill detects missing await calls on params and automatically applies fixes to ensure asynchronous parameters are handled correctly.

How do I automatically fix missing await on params in Next.js route handlers?

To fix missing await on params in Next.js route handlers, use this Skill to analyze your TypeScript files. It automatically detects asynchronous parameter destructuring and provides quick solutions to add the required await calls.

What type annotations are required for async params in Next.js 15?

Async params in Next.js 15 require Promise<> type annotations. This Skill corrects incorrect type annotations in route handler functions by ensuring params has the proper Promise type when handled asynchronously.

Do I need to manually update TypeScript types when migrating to Next.js 15?

You do not need to manually update TypeScript types for dynamic route segments when migrating to Next.js 15. This Skill automatically corrects incorrect type annotations for params to ensure Next.js 15 compatibility.

Can I use this code fix for all dynamic route segments in my Next.js project?

You can use this code fix for all dynamic route segments in a Next.js project. It analyzes TypeScript and JavaScript files specifically targeting dynamic route segments to detect and fix missing await and incorrect types.