What problem does it solve?
This Skill standardizes and accelerates the creation and modification of API endpoints in the IdeaForge backend, ensuring adherence to architectural patterns, best practices, and robust error handling.
Core Features & Use Cases
- Architectural Pattern: Implement the
Routes → Controller → Service → Repository pattern for clear separation of concerns.
- Input Validation: Enforce data integrity and prevent errors using
Zod for all input validation.
- Error Handling: Standardized
ApiResponse<T> wrapper and error propagation via middleware, simplifying debugging.
- Use Case: "Create a new API endpoint
/api/users that supports GET to list users and POST to create a new user, including Zod validation for user creation and proper error handling, reducing development time."
Quick Start
Use the api-endpoint skill to create a new GET /api/products endpoint that lists all products from the database.