What problem does it solve? Public interfaces become hard to change once consumers depend on them, and inconsistent error handling, missing pagination, or unsafe retries create breaking changes and duplicate side effects. This Skill guides the design of stable APIs and module boundaries so contracts are defined before implementation and extended without breaking consumers. ## Core Features & Use Cases - Contract-First Design: Define typed input/output schemas, discriminated unions, and branded ID types before writing implementation code. - Consistent Error Semantics: Apply a single structured error format with correct HTTP status codes across all endpoints. - Idempotency Key Handling: Implement atomic key claiming via unique constraints, payload guards, and retention policies that outlive retry chains. - Use Case: When adding a new payments endpoint, use this Skill to define the request/response contract, choose PATCH semantics for partial updates, add pagination to list endpoints, and honour Idempotency-Key headers so client retries never double-charge. ## Quick Start Ask the AI to design a REST API for a new resource following the api-and-interface-design guidelines, including typed contracts, error format, pagination, and idempotency handling.