What problem does it solve?
This Skill provides a robust, production-ready template for building Express.js REST APIs, addressing common challenges like router organization, request validation, and error handling.
Core Features & Use Cases
- Structured Routing: Organizes API endpoints by resource using a clear router-per-resource pattern.
- Controller Pattern: Separates HTTP concerns from business logic using dedicated controller functions.
- Request Validation: Implements request validation using Joi for data integrity.
- Error Handling: Provides a centralized, typed error handling middleware for consistent API responses.
- Security Best Practices: Includes middleware for security headers, CORS, rate limiting, and input sanitization.
- Use Case: When starting a new backend service with Node.js and Express, use this Skill to scaffold a well-structured API with built-in validation and error handling.
Quick Start
Use the express-api skill to generate a new Express.js REST API for managing user profiles.