
Description
Redis Clustering is an agent skill from Redis's agent-skills repository that teaches a coding agent how to design keys and route reads for a sharded Redis Cluster or a standalone primary/replica setup. It targets the two problems that most often catch new cluster users: CROSSSLOT errors when one command touches several keys, and primaries overloaded by read traffic. The skill explains that Redis Cluster hashes key names into 16,384 slots, so multi-key commands such as MGET, SDIFF, SUNIONSTORE, transactions, pipelines and multi-key Lua scripts need every key on the same slot. It shows how hash tags (the part of the key inside braces) keep related keys together, and how reading from replicas can scale reads without adding shards. Use it when designing keys for a cluster or debugging a CROSSSLOT error.…
Highlights
- Key design guidance for sharded Redis Cluster deployments
- Explains CROSSSLOT errors on MGET, SDIFF, transactions and pipelines
- Hash tag patterns to keep related keys on one slot
- Advice for multi-key transactions and Lua scripts
- Reading from replicas to scale read-heavy workloads
Ratings & Reviews
No ratings yet
Be the first to rate redis-clustering.
People also visit

redis-connections
Redis client and connection guidance covering connection pooling, multiplexing
redis-clustering FAQ
What does the redis-clustering skill do?
It gives an AI coding agent guidance on designing keys and routing reads in Redis Cluster and in primary/replica replication, with a focus on avoiding CROSSSLOT errors and spreading read load to replicas.
When should the agent apply this skill?
When designing keys for a Redis Cluster, debugging a CROSSSLOT error on MGET, SDIFF, transactions or pipelines, writing transactions or Lua scripts that touch several keys, or scaling reads without adding shards.
How do I install it?
Run: npx skills add https://github.com/redis/agent-skills --skill redis-clustering
What are hash tags and why does the skill cover them?
Redis Cluster hashes only the part of a key between { and } when a hash tag is present, so keys sharing a tag land on the same slot. The skill uses this to make multi-key commands work in a cluster.
What security audit results are shown for this skill?
On skills.sh the listed audits are: Gen Agent Trust Hub: Pass, Socket: Pass, Snyk: Pass.
What are the best redis-clustering alternatives?
Popular alternatives to redis-clustering include redis-patterns, redis/redis-core and redis-connections. See all redis-clustering alternatives





