Catalogue / api-endpoint
api-endpoint
MITSignedBuilds new API endpoints end-to-end. Use when adding routes, handlers/controllers, validation, service/action logic, response schemas/resources, and endpoint tests.--- name: api-endpoint description: >- Builds new API endpoints end-to-end. Use when adding routes, handlers/controllers, validation, service/action logic, response schemas/resources, and endpoint tests. ---
API Endpoint Skill
When to Apply
- User asks to add a new API endpoint or CRUD route.
- Existing API contract needs extension.
- Backend changes require request validation and response contract updates.
Workflow
- Read project specs first:
specs/specs.md, then role-specific specs as needed. - Detect backend conventions from the repo (routing, controller/service patterns, validation style).
- Define endpoint contract before implementation:
- Path + method
- Auth requirements
- Request validation
- Response shape and error shape
- Implement with thin transport layer and business logic in domain/service/action classes.
- Add focused tests for success path, validation failure, and authorization failure.
Quality Bar
- Keep endpoint behavior idempotent where required.
- Avoid N+1 queries and over-fetching.
- Return consistent JSON payloads.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 1.1 kB | a8633c499890 |
| SKILVAULT_SOURCE.json | 1.1 kB | 9ebb59d6110c |
| THIRD_PARTY_NOTICES.md | 1.1 kB | a8fbaddd4955 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | eb19c08cbc24 | 28 Nov 2026 |
Locking a skill to one version needs Pro.