Nxt API Route — Development skill for Claude Code
Generates a Next.js App Router API route handler (route.ts) with proper TypeScript types, request validation, and error handling.
How to install Nxt API Route
Installs to ~/.claude/skills/mertjane-awesome-claude-commands-nxt-api-route/SKILL.md
mkdir -p ~/.claude/skills/mertjane-awesome-claude-commands-nxt-api-route && curl -fsSL https://raw.githubusercontent.com/mertjane/awesome-claude-commands/HEAD/commands/nxt-api-route.md -o ~/.claude/skills/mertjane-awesome-claude-commands-nxt-api-route/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Nxt API Route does
description: Generates a Next.js App Router API route handler (route.ts) with proper TypeScript types, request validation, and error handling. Auto-detects auth patterns from the project. argument-hint: [GET,POST,PUT,DELETE] allowed-tools: [Read, Glob, Write]
Generate Next.js API Route Handler
Create a Next.js App Router `route.ts` file for the path provided in $ARGUMENTS.
Parse $ARGUMENTS:
- First word → route path (e.g.
users,auth/login,posts/[id]) - Second wo
Alternatives in Development
- Correction Handler — Correction 处理 Prompt 24k ★
- Om Dump — Freeform capture mode 4.6k ★
- n8n Validation Expert — Fix n8n validation errors with error catalog 3.6k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
API New
Create a new Next.js API route with validation, error handling, and TypeScript
Create API
Scaffold a new API endpoint — route, handler, types, tests — wired into the server
Minimalism
Use in any coding session when writing or changing code — enforces the laziest solution that actually works (Y
API Gen
Generate REST API endpoints with routes, validation, error handling, and tests
Add Route
Use when adding or changing a Next.js page, route handler, public marketing document, sitemap entry, or crawl-
Endpoint
Add an OpenAPI-first endpoint — schema, route definition, handler, verification
Related Agents
TypeScript Purist
The last defender of TypeScript's type system. Use this agent to review TypeScript code for type safety violat
TypeScript Implementer
TypeScript implementation specialist that writes type-safe, modern TypeScript code with strict mode. Emphasize
Auth Route Tester
Use this agent when you need to test routes after implementing or modifying them. This agent focuses on verify