API and Interface Design

•
2
•

Architects stable, scalable, and intuitive APIs and module boundaries using industry-standard design principles.

This skill provides specialized guidance for designing robust interfaces, ranging from REST and GraphQL endpoints to internal module contracts and component props. It enforces a 'Contract First' approach and applies critical principles like Hyrum's Law to ensure long-term stability and prevent breaking changes. By emphasizing boundary validation, predictable naming conventions, and backward compatibility, the skill helps developers create systems that are hard to misuse and easy to extend, making it essential for teams managing complex software architectures or public-facing services.

主な機能

01Standardized error handling strategies and HTTP status code mapping
022 GitHub stars
03Advanced TypeScript type patterns including discriminated unions and branded types
04Boundary validation patterns for untrusted external data
05Contract-first design workflows for REST, GraphQL, and TypeScript modules
06Best practices for pagination, filtering, and idempotent operations

ユースケース

01Designing a new public-facing REST or GraphQL API from scratch
02Refactoring internal module boundaries to reduce coupling and technical debt
03Establishing clear type contracts between frontend and backend teams