What problem does it solve? Poorly designed interfaces create breaking changes, inconsistent error handling, and duplicate side effects that erode consumer trust. This Skill guides the design of stable APIs and module boundaries that are hard to misuse and safe to evolve. ## Core Features & Use Cases - Contract-First Design: Define typed input/output schemas, discriminated unions, and branded ID types before implementation. - Consistent Error Semantics: Enforce a single structured error format with correct HTTP status code mapping across all endpoints. - Idempotency Implementation: Honour Idempotency-Key headers with atomic key claims, payload guards, and correct handling of in-flight duplicates. - Use Case: When adding a payments endpoint, use this Skill to design the endpoint contract, derive a stable idempotency key from the order ID, claim it atomically via a unique constraint, and reject reused keys with mismatched payloads. ## Quick Start Ask the AI to design a REST API for a new resource following the api-and-interface-design guidelines, including pagination, error format, and idempotency handling.