What problem does it solve?
This Skill ensures that new and modified API endpoints adhere to established design principles, promoting consistency, maintainability, and clarity in API development.
Core Features & Use Cases
- Enforces REST Conventions: Guides the correct use of HTTP verbs and status codes.
- Standardizes Resource Naming: Promotes clear and hierarchical URL structures.
- Manages Endpoint Evolution: Helps decide when to create new endpoints versus extending existing ones.
- Prevents Anti-Patterns: Identifies and rectifies common API design flaws like duplicate endpoints or overlapping semantics.
- Ensures Documentation: Mandates OpenAPI metadata for better discoverability and usability.
- Use Case: Before merging a pull request for a new
/api/users/{id}/profile endpoint, this Skill is invoked to verify it follows plural noun conventions, uses the appropriate HTTP method (e.g., GET), and has complete OpenAPI documentation.
Quick Start
Use the api-design skill to review the proposed new endpoint for user profiles.