API and Interface Design

0•

Guides the creation of stable, well-documented, and robust API endpoints and module boundaries to prevent breaking changes.

The API and Interface Design skill provides architectural guidance for building resilient public interfaces, ranging from REST and GraphQL endpoints to internal TypeScript module contracts. It focuses on the philosophy of making the right thing easy and the wrong thing hard by enforcing principles like Hyrum's Law, contract-first development, and strict validation at system boundaries. This skill is essential for developers who need to establish clear, predictable communication patterns between frontend and backend systems or across microservices while ensuring long-term maintainability and backward compatibility.

主要功能

01Contract-first API design patterns for REST and GraphQL
02Validation strategies for system boundaries and third-party data
03Advanced TypeScript patterns including branded types and discriminated unions
04Standardized error semantics and HTTP status code mapping
050 GitHub stars
06Backward compatibility guidance via the One-Version Rule

使用场景

01Defining stable type contracts between frontend and backend teams
02Designing new RESTful or GraphQL API endpoints for web applications
03Refactoring internal module boundaries to reduce coupling in large codebases