API Route Generator Skill
OfficialGenerate secure, consistent API routes with tests.
Authoralldigitalrewards
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Manually creating new API routes that adhere to strict security, consistency, and multi-tenant isolation patterns can be repetitive and prone to errors. This skill automates the generation of API routes and their corresponding tests, ensuring adherence to Changemaker's architecture.
Core Features & Use Cases
- Pattern-Based Generation: Creates API routes following established Next.js App Router patterns for CRUD operations and custom actions.
- Built-in Security: Automatically includes authentication, workspace isolation, and role-based access control.
- Type-Safe & Validated: Integrates Zod schemas for input validation and ensures TypeScript type safety.
- Use Case: When you need to add CRUD (Create, Read, Update, Delete) endpoints for a new
Submissiondatabase model, this skill will generate the necessary route files, populate them with boilerplate code including auth and workspace filtering, and create a corresponding test file, saving significant development time.
Quick Start
Generate API endpoints for a new Submission model, including list, create, read, update, and delete operations. Ensure they enforce workspace isolation and include basic validation.
Dependency Matrix
Required Modules
zod
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: API Route Generator Skill Download link: https://github.com/alldigitalrewards/changemaker-minimal/archive/main.zip#api-route-generator-skill Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.