scaffold-api

Scaffold Next.js App Router API routes with zod validation, NextAuth, and Drizzle ORM.

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/manhthien2005/FixNow --skill scaffold-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-api
Source: https://github.com/manhthien2005/FixNow/tree/main/.claude/skills/scaffold-api
Command: npx skills add https://github.com/manhthien2005/FixNow --skill scaffold-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you create new FixNow API endpoints consistently, with the right validation, authentication, database access, and error handling already patterned in place.

Core Features & Use Cases

  • Route scaffolding: Generates Next.js App Router route handlers for common API methods like GET, POST, PATCH, and DELETE.
  • Validation and auth: Applies zod input validation and NextAuth-based permission checks for customer, admin, or owner-only access.
  • Database integration: Uses Drizzle ORM patterns for reading and writing data safely, including explicit column selection and transaction guidance.
  • Use case: Add a new booking-related endpoint, such as a status update route or a parts lookup API, while keeping the code aligned with FixNow conventions.

Quick Start

Ask for a FixNow API route scaffold for your desired path, HTTP method, authentication level, and input schema.

Frequently Asked Questions about scaffold-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold Next.js App Router API routes with validation and auth?

Scaffolding Next.js App Router API routes requires generating route handlers that integrate zod input validation, NextAuth session checks, and standardized error handling. This Skill automates creating those boilerplate structures for GET, POST, PATCH, and DELETE methods.

What is the best way to add Drizzle ORM database access to a Next.js route handler?

Adding Drizzle ORM database access to a Next.js route handler involves applying explicit column selection and transaction guidance patterns. This Skill scaffolds the route with safe Drizzle ORM queries for reading and writing data already configured.

Can I use zod schemas for input validation in Next.js API routes?

You can use zod schemas for input validation in Next.js API routes to ensure data integrity before processing. This Skill applies zod validation directly within the generated App Router route handlers to check incoming request payloads.

Does this API route scaffolding tool support NextAuth permission checks?

This API route scaffolding tool supports NextAuth permission checks for customer, admin, or owner-only access. It generates code that verifies NextAuth sessions before executing the core route handler logic.

How do I standardize error handling and status codes in Next.js route handlers?

Standardizing error handling and status codes in Next.js route handlers requires explicit response and status-code patterns applied consistently. This Skill scaffolds endpoints with these standardized error handling structures built into the generated code.

When do I need a scaffolded API route for my Next.js application?

You need a scaffolded API route when creating new endpoints for bookings, parts, pricing, or admin management. It ensures your Next.js App Router code aligns with project conventions for validation, auth, and database access.