new-api-route

Scaffold Next.js App Router API routes with templated GET and POST handlers.

Updated Dec 27, 2025
One-click install
npx skills add https://github.com/AppleLamps/nick-shirley --skill new-api-route
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-api-route
Source: https://github.com/AppleLamps/nick-shirley/tree/main/.claude/skills/new-api-route
Command: npx skills add https://github.com/AppleLamps/nick-shirley --skill new-api-route

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill scaffolds Next.js App Router API routes with standard patterns, ensuring consistent structure and safe handling of requests.

Core Features & Use Cases

  • Route scaffolding: Creates src/app/api/<path>/route.ts with templated GET and POST handlers.
  • Best practices: Force-dynamic export, parameterized queries, and robust error handling pattern.
  • Admin patterns: Clear guidance for admin routes and documentation.

Quick Start

Create route at src/app/api/<path>/route.ts using the provided template. Ensure dynamic routing is consistent with existing app.