API and Interface Design

0•

Guides the creation of stable, predictable, and well-documented APIs and system boundaries.

This skill provides Claude with comprehensive guidelines for designing robust public interfaces, ranging from REST and GraphQL endpoints to internal module contracts and component props. It enforces core engineering principles like Hyrum's Law, contract-first development, and the one-version rule to ensure systems remain maintainable and backward-compatible. By prioritizing predictable naming, consistent error semantics, and strict validation at system boundaries, it helps developers build interfaces that are easy to use correctly and difficult to misuse.

主要功能

01Standardized error handling and HTTP status code mapping
020 GitHub stars
03Advanced TypeScript patterns including branded types and unions
04Strict boundary validation for untrusted external data
05Contract-first design workflow for REST and GraphQL
06Best practices for API versioning and backward compatibility

使用场景

01Architecting new REST or GraphQL API endpoints
02Defining type-safe contracts between frontend and backend modules
03Refactoring legacy interfaces without breaking existing consumers