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 that are expensive to fix later. ## Core Features & Use Cases - Contract-First Design: Define typed input/output schemas, discriminated unions, and branded ID types before implementation so the contract acts as the spec. - Consistent Error Semantics: Enforce a single error shape with machine-readable codes and correct HTTP status mapping across all endpoints. - Idempotency Key Handling: Implement atomic key claiming via unique constraints, payload hash guards, in-flight duplicate strategies, and retention aligned with retry windows. - Use Case: When adding a new payments endpoint, use this Skill to design the REST resource layout, define the TypeScript request/response types, and implement idempotency-key handling so client retries never double-charge. ## Quick Start Use the api-and-interface-design skill to design a versioned REST endpoint for creating tasks with typed contracts and idempotency-key support.