---
name: api-generator
description: Generate REST API endpoints with validation and tests
---

# API Generator Skill

Generate a complete REST API endpoint following the project conventions.

## Steps

1. Define the route handler with proper TypeScript types
2. Add input validation using the project's validation library
3. Write integration tests covering happy path and error cases
4. Update the API documentation

## Guidelines

- Use `async/await` consistently
- Return proper HTTP status codes
- Include error handling for all failure modes
