What problem does it solve? Poorly designed interfaces create breaking changes, inconsistent error handling, and hidden dependencies that break consumers. This Skill guides the design of stable, hard-to-misuse APIs and module boundaries before implementation begins. ## Core Features & Use Cases - Contract-First Design: Define typed input/output schemas, discriminated unions, and branded ID types before writing implementation code. - REST API Patterns: Apply conventions for resource naming, pagination, filtering, partial updates (PATCH), and consistent structured error responses. - Idempotency Implementation: Correctly honour Idempotency-Key headers with atomic claims via unique constraints, payload guards, and deliberate in-flight duplicate handling. - Use Case: When creating a new payments endpoint, use this Skill to define the contract first, design idempotent retry semantics, and ensure every error response follows one consistent shape. ## Quick Start Use the api-and-interface-design skill to review my new REST endpoint design for breaking changes and missing idempotency handling.