add-api-route

Community

Create secure Next.js API routes in minutes.

Authorabdoulayesow
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Scaffolds Next.js API routes with authentication, restaurant access control, validation, and standardized error handling to reduce boilerplate in multi-tenant apps.

Core Features & Use Cases

  • NextAuth session authentication and Prisma-based access verification
  • Role-based access control (Manager/Editor) for write operations
  • Standardized route templates (GET, POST, etc.) with robust error handling
  • TypeScript typings and structured request validation to ensure safety across routes

Quick Start

Invoke the /api-route [path] [methods] to scaffold a new API route following project conventions.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-api-route
Download link: https://github.com/abdoulayesow/restaurant-hub-app-001-2026/archive/main.zip#add-api-route

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.