api-builder

Generate Next.js 16 REST API endpoints with Zod validation and tests.

3|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/human-centric-engineering/sunrise --skill api-builder-human-centric-engineering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-builder
Source: https://github.com/human-centric-engineering/sunrise/tree/main/.claude/skills/api-builder
Command: npx skills add https://github.com/human-centric-engineering/sunrise --skill api-builder-human-centric-engineering

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of robust, type-safe REST API endpoints for the Sunrise project, ensuring consistency and reducing development time.

Core Features & Use Cases

  • Automated Endpoint Generation: Creates Next.js 16 API routes with Zod validation, authentication, and standardized responses.
  • Test Generation: Automatically generates integration tests for new endpoints.
  • Use Case: When you need to add a new resource like /api/v1/products, this Skill will generate the route handler, validation schemas, and tests following best practices.

Quick Start

Use the api-builder skill to create a new POST endpoint for the 'orders' resource.

Frequently Asked Questions about api-builder

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

FAQPage Schema
How do I build type-safe REST API endpoints with Next.js App Router?

To build type-safe REST API endpoints with Next.js App Router, this Skill generates production-ready route handlers enforced with Zod validation schemas, integrating authentication and standardized responses.

Can I automatically generate integration tests for my REST API routes?

Yes, you can automatically generate integration tests for REST API routes. The Skill creates comprehensive test suites alongside new endpoints to ensure robust validation and execution.

Does this approach support nested resources, pagination, and filtering for CRUD operations?

Yes, this approach supports nested resources, pagination, and filtering for CRUD operations. It generates endpoints handling complex data retrieval patterns while maintaining strict Zod type-safety.

Do I need TypeScript and Zod to enforce API endpoint validation?

You need TypeScript and Zod to enforce API endpoint validation. The Skill leverages both to generate strictly typed request and response schemas, preventing runtime data errors.

What is the best way to add authentication and authorization to Next.js 16 API routes?

The best way to add authentication and authorization to Next.js 16 API routes is using this Skill, which integrates access controls directly into generated route handlers with standardized responses.