error-handling-contracts
Installation
SKILL.md
Error Handling Contracts
Core Workflow
- Identify clients, failure modes, transport, user-facing surfaces, and logging or observability needs.
- Define an error envelope with code, message, details, correlation ID, retry guidance, and documentation link where useful.
- Map domain failures to status codes or exception types.
- Separate client-safe messages from internal diagnostics.
- Specify retryability, idempotency, rate-limit behavior, and partial failure handling.
- Add tests and examples for expected error cases.