api-error-handling

Installation
SKILL.md

API Error Handling

Scope Boundaries

  • Use when API error taxonomy, response schemas, and status mapping are being created or changed.
  • Use proactively when failure handling is implicit, inconsistent, or incident learning needs to be codified in the contract.
  • Use proactively when error payload or status-mapping diffs are detected without explicit retry/backoff policy.
  • Use when retry/backoff behavior affects client correctness or operational stability.
  • Do not use for transport-independent incident handling policy; use incident-postmortem or runbook skills.
  • Do not use for storage internals; use db-*.

Goal

Deliver machine-actionable error contracts that are stable across versions.

Shared API Contract (Canonical)

  • Use ../api-design-rest/references/api-governance-contract.md as the canonical contract.
  • Optional consistency checks (only if your repository enforces manifest validation):
    • python3 ../api-design-rest/scripts/validate_api_contract.py --manifest <path/to/manifest.json>
  • Reuse valid API error templates in ../api-design-rest/assets/.
  • Use threshold derivation reference:
Related skills

More from kentoshimizu/sw-agent-skills

Installs
6
GitHub Stars
5
First Seen
Feb 28, 2026