api-generator · git:20260509.5c37a2c · 2026-05-09 · sha256 87cab9e903eab18f

api-generator git:20260509.5c37a2cA

Immutable. This exact content never changes and is served at /api/v1/blob/87cab9e903eab18f.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_rqfa3cxhz57m6rwn/87cab9e903eab18f25785f8262744b53620da51a11568573c092210c0fe67e3c.json

Then /plugin install api-generator@markdownregistry-rqfa3cxhz57m6rwn in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: api-generator
description: Generate RESTful API endpoints with validation, error handling, and OpenAPI documentation
---

# API Generator Skill

Use this skill to scaffold complete REST API endpoints following the project's established patterns.

## When to Use

Apply this skill when:
- Adding new resource endpoints (GET, POST, PUT, DELETE)
- Generating CRUD operations for a new data model
- Creating webhook handlers with signature validation

## Process

1. Review the data model or schema in `src/models/`
2. Check existing endpoint patterns in `src/api/`
3. Generate the route handler using the template
4. Add Zod validation schemas for request/response
5. Write unit and integration tests
6. Update OpenAPI spec in `docs/api/`

## References

See [route checklist](references/route-checklist.md) for required fields on each endpoint type.