Nxt Api Route banner
mertjane mertjane

Nxt Api Route

Development community

Description

--- 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: <route/path> [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

Installation

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.

Full documentation available on GitHub

View Source Repository