When to Use
Use this skill when:
- Adding or changing HTTP routes
- Updating handler request/response schemas
- Modifying status code behavior
Contract Rules
- Every new/changed endpoint must have tests.
- Cover both success and error paths.
- Keep scripts and docs aligned with real handlers.
- Do not reference non-existent endpoints in plugins/hooks.
Required Validation
- Handler-level tests for parsing/validation errors
- E2E tests for route behavior and response body
- Regression test for every bugfix related to API contracts
Docs Rules
If payload or route changes, update docs in the same PR.