api-generator · git:20260502.c4fb261 · 2026-05-02 · sha256 57e8be0a7a2375d2

api-generator git:20260502.c4fb261A

Immutable. This exact content never changes and is served at /api/v1/blob/57e8be0a7a2375d2.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_oowpfjtnnfyatisd/57e8be0a7a2375d2d6437ce154478cdc6308cd5ec6512f2b59a991da0ae263d8.json

Then /plugin install api-generator@markdownregistry-oowpfjtnnfyatisd 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 REST API endpoints following project conventions
---

# API Generator

Use this skill when the user asks for a new REST endpoint or to scaffold a
controller for an existing resource.

## When to use

- New CRUD endpoint on an existing collection.
- Greenfield resource that needs full controller + route wiring.
- Adding a query parameter or pagination wrapper to an existing endpoint.

## Steps

1. Read `references/route-checklist.md` for the per-endpoint contract.
2. Generate the controller stub from `template.ts`.
3. Wire the new route into the router and update the OpenAPI spec.

## Outputs

- Controller file under `src/api/<resource>/`.
- Test stub under `tests/api/<resource>.test.ts`.
- Updated OpenAPI document with the new endpoint.