What problem does it solve? Public interfaces become de facto contracts the moment consumers depend on them, and inconsistent error handling, breaking changes, or unsafe retries silently erode API stability. This Skill guides the design of 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 claims via unique constraints, payload guards, and deliberate in-flight duplicate handling. - Use Case: When adding a payments endpoint, use this Skill to design the endpoint contract, derive a stable idempotency key from the order ID, and ensure concurrent retries cannot double-charge a customer. ## Quick Start Ask the agent to design a REST API for a new resource following the api-and-interface-design skill, including typed contracts, pagination, and idempotent writes.