API Idempotency Handling
Implements resilient idempotency patterns using Redis caching and database constraints to prevent duplicate processing and race conditions.
The API Idempotency Handling skill equips Claude Code with production-ready architectural patterns for building strictly idempotent operations across distributed systems. It provides robust implementations for Redis-cached response middleware, database-backed atomic key locking with SHA-256 request hashing, and lifecycle state management (processing, completed, failed). Ideal for payment gateways, webhook ingestion endpoints, and transactional email systems, this skill helps developers eliminate duplicate charges, handle network retries safely, and maintain clean database storage via automated TTL cleanup strategies.