api-endpoint-create

cpa03's avatarfrom cpa03

Standard procedure for creating robust API endpoints

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 9, 2026

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.
nameapi-endpoint-create
descriptionStandard procedure for creating robust API endpoints

Procedure

  1. Define the Request/Response schema (Zod/OpenAPI).
  2. Create the route handler/controller.
  3. Implement business logic in a service layer.
  4. Add authentication/authorization middleware.
  5. Write an integration test for the endpoint.