api-endpoint
Scaffold a new REST API endpoint with route, validation, service, and tests. Use when asked to add a new API endpoint.
SKILL.md.claude/skills/api-endpoint/SKILL.md
GitHubAPI Endpoint Scaffold
Create a new REST endpoint following our standards.
Steps
- Read route-template.ts for structure
- Define Zod schema for request/response
- Create route handler in
backend/src/routes/ - Create service method in
backend/src/services/ - Add repository method if DB access needed
- Write integration tests
- Update OpenAPI spec
Arguments: $ARGUMENTS — HTTP method and path, e.g. POST /users/:id/invite