What problem does it solve? Poorly designed APIs and module boundaries create breaking changes, inconsistent error handling, and hidden dependencies on undocumented behavior that break consumers. This Skill provides a structured methodology for designing interfaces that are hard to misuse and safe to evolve. ## Core Features & Use Cases - Contract-First Design: Define typed interfaces, input/output schemas, and discriminated unions before implementation. - Consistent Error Semantics: Standardize error shapes, HTTP status code mapping, and boundary-only validation across all endpoints. - Idempotency Implementation: Correctly honor Idempotency-Key headers with atomic claims, payload guards, and retention policies. - Use Case: When building a new REST endpoint for task management, apply this Skill to define the TaskAPI contract, paginated list responses, PATCH semantics, and idempotent create operations before writing any handler code. ## Quick Start Use the api-and-interface-design skill to review my planned REST endpoints for the tasks service and define the TypeScript contracts before I implement them.