The cc-redis-safety skill provides a specialized framework for developers working with Redis, ensuring that common pitfalls like blocking O(N) operations and memory leaks are avoided. It automatically guides Claude to replace dangerous commands like 'KEYS' with 'SCAN' cursor iterations, enforces Time-To-Live (TTL) policies for all keys, monitors 'Big Key' risks, and promotes the use of Pipelines for batch operations. This skill is essential for maintaining high-performance, stable production environments when using popular clients like go-redis, Jedis, redis-py, and ioredis.
主要功能
01Automated replacement of blocking 'KEYS' commands with 'SCAN' iterations
02Mandatory TTL enforcement for all keys to prevent memory leaks
03Cross-language support for Go, Java, Python, and Node.js Redis clients
04Performance optimization via Pipeline and batching implementation
05777 GitHub stars
06Big Key detection and architectural guidance for splitting large data structures
使用场景
01Designing new caching layers with built-in performance and security guardrails
02Auditing Redis client implementations for scalability and resource management risks
03Refactoring legacy code to meet modern production stability standards