API & Interface Design

0•

Architects stable, predictable APIs and interface contracts that prevent breaking changes and minimize integration errors.

The API & Interface Design skill provides architectural guidance and best practices for creating robust, maintainable interfaces across REST endpoints, GraphQL schemas, and internal module boundaries. Built around core principles such as Hyrum's Law and contract-first development, it equips AI agents to enforce boundary validation, plan safe non-breaking schema evolutions, and reliably design idempotent mutations. Whether establishing resource hierarchies, implementing atomic idempotency key mechanisms, or authoring type-safe TypeScript contracts, this skill ensures clean boundaries and long-term interface stability across your stack.

주요 기능

01Type-safe interface patterns using discriminated unions and branded types
020 GitHub stars
03Non-breaking interface evolution guided by Hyrum's Law and the One-Version Rule
04Contract-first API and schema modeling for REST and GraphQL
05Atomic idempotency key handling to prevent race conditions and duplicate actions
06Boundary validation separating untrusted external data from trusted internal code

사용 사례

01Implementing safe, idempotent transactional operations such as payments and order processing
02Designing new REST or GraphQL endpoints with predictable error handling and pagination
03Establishing strict TypeScript contracts between frontend and backend services