API and Interface Design

•
2
•

Guides the creation of stable, well-documented APIs and module boundaries using industry-standard architectural patterns.

This skill provides specialized guidance for designing robust interfaces across REST APIs, GraphQL schemas, and internal module boundaries. It helps developers implement critical principles like Hyrum's Law and the One-Version Rule to ensure backward compatibility, consistent error handling, and strict validation at system edges. By focusing on contract-first design and predictable naming conventions, it enables teams to build scalable systems where the right implementation is easy to achieve and common mistakes are hard to make.

主な機能

01Standardized error semantics and HTTP status code mapping
02Backward-compatible interface evolution and extension
032 GitHub stars
04Contract-first API design for REST and GraphQL
05Boundary validation patterns for untrusted external data
06Advanced TypeScript patterns including branded types and discriminated unions

ユースケース

01Designing new RESTful endpoints with pagination and filtering
02Defining type-safe contracts between frontend and backend modules
03Refactoring legacy interfaces to prevent breaking changes