mertjane

Nxt API Route — Development skill for Claude Code

Development community

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

Terminal
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

Full documentation available on GitHub

View Source Repository