API and Interface Design
Guides the creation of stable, predictable, and well-documented APIs and module boundaries to prevent misuse and breaking changes.
This skill provides Claude with comprehensive guidance on designing robust interfaces, covering RESTful endpoints, GraphQL schemas, and internal module contracts. It focuses on critical industry principles like Hyrum’s Law, the One-Version Rule, and contract-first development. By emphasizing consistent error semantics, boundary validation, and predictable naming conventions, it ensures that your APIs are easy to use, hard to break, and maintainable over the long term, whether you are building public-facing services or internal microservices.
Key Features
01TypeScript-specific patterns like Discriminated Unions and Branded Types
02Validation strategies for system boundaries and third-party data
03Contract-first API design patterns for REST and GraphQL
04Standardized error handling and HTTP status code mapping
051 GitHub stars
06Hyrum's Law compliance to ensure long-term interface stability
Use Cases
01Defining type-safe contracts between frontend and backend modules
02Refactoring legacy interfaces while maintaining backward compatibility
03Designing new REST or GraphQL API endpoints from scratch