What problem does it solve?
Redis misuse in production code—such as blocking KEYS commands, missing TTLs, oversized values, and chatty per-item calls—causes outages, memory leaks, and latency spikes that are hard to debug after deployment.
Core Features & Use Cases
- Blocking Command Prevention: Flags KEYS, FLUSHDB, and FLUSHALL usage and provides SCAN-based replacements in Go (go-redis), Java (Jedis), and Python (redis-py).
- Big Key and TTL Guardrails: Enforces limits of 10KB per value and 5000 elements per collection, and requires TTL on every key to prevent memory leaks.
- Pipeline Batching Guidance: Converts loops of single Redis calls into Pipeline batch operations to reduce network round trips.
- Use Case: While writing a Go service that iterates over user session keys, the skill intercepts a
KEYS user:* call and rewrites it as a cursor-based SCAN loop with a 24-hour TTL on each SET.
Quick Start
Review my Redis code for unsafe commands like KEYS or missing TTLs and rewrite them using SCAN and Pipeline patterns.