API generator
Use this skill when a task asks for a new endpoint on the orders service.
Steps
- Read
references/route-checklist.mdand confirm every item applies. - Add the zod request schema next to the handler in
src/routes. - Add the query builder in
src/db, never inline SQL in a handler. - Write the failing route test first, then implement until it passes.
- Update
AGENTS.mdonly if the layout convention changed.