What problem does it solve? Poorly designed APIs and interfaces create breaking changes, inconsistent error handling, and hidden dependencies that frustrate consumers and multiply maintenance cost. This Skill provides concrete principles and patterns for designing interfaces 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: Standardize HTTP status codes and structured error bodies across all endpoints. - Idempotency Key Handling: Implement atomic key claiming, payload guards, and retention policies for safe retries on state-changing endpoints. - Use Case: When creating a new REST endpoint for task management, use this Skill to define the TaskAPI contract, pagination scheme, PATCH semantics, and idempotency strategy before writing any handler code. ## Quick Start Use the API design skill to review my planned REST endpoints for a task management service and define the TypeScript contracts, error format, and pagination scheme.