API and Interface Design

0•

Standardizes the creation of robust, stable, and well-documented APIs and module boundaries using proven design patterns.

This skill provides comprehensive guidance for designing resilient public interfaces, including RESTful endpoints, GraphQL schemas, and internal module contracts. It enforces best practices such as Contract-First design, consistent error semantics, and boundary validation while adhering to fundamental principles like Hyrum’s Law and the One-Version Rule. By prioritizing predictability, naming conventions, and backward compatibility, it helps developers build interfaces that are easy to use correctly and difficult to break or misuse during evolution.

主な機能

01Contract-First design methodology for REST and GraphQL
02Hyrum’s Law application to prevent accidental breaking changes
030 GitHub stars
04Standardized HTTP status codes and structured error response patterns
05Type-safe TypeScript patterns including Discriminated Unions and Branded Types
06System boundary validation for user input and third-party data

ユースケース

01Architecting new microservices or public-facing API endpoints
02Refactoring internal module boundaries to reduce tight coupling between teams
03Establishing consistent pagination, filtering, and error handling across a codebase