api-endpoint-create
Standard procedure for creating robust API endpoints
When & Why to Use This Skill
This Claude skill provides a standardized, step-by-step workflow for developing secure and reliable API endpoints. It ensures best practices are followed, including schema validation with Zod or OpenAPI, separation of concerns through service layers, robust authentication, and automated integration testing to maintain high code quality and system stability.
Use Cases
- Rapid Prototyping: Quickly scaffold new backend features while ensuring all security and validation layers are consistently implemented.
- Legacy System Modernization: Standardizing existing ad-hoc API routes into a structured, testable, and documented architecture.
- Onboarding and Compliance: Providing developers with a clear checklist to ensure every new endpoint meets technical standards and security requirements.
| name | api-endpoint-create |
|---|---|
| description | Standard procedure for creating robust API endpoints |
Procedure
- Define the Request/Response schema (Zod/OpenAPI).
- Create the route handler/controller.
- Implement business logic in a service layer.
- Add authentication/authorization middleware.
- Write an integration test for the endpoint.