AI Agent Hub
Back to skills
Redis Design and Usage Assistant icon

Redis Design and Usage Assistant

Development Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Follow https://skillhub.cn/install/skillhub.md to install @user_3651d062/redis-design.

About this skill

Problem

Cache, lock, rate-limit, and queue designs often start with commands first and constraints later, causing inconsistent key names, missing TTLs, big keys, unsafe use of KEYS *, and cluster slot mismatches. This skill turns Redis design into a checkable engineering path.

How it works

It identifies intent first, such as cache design, data structure selection, key naming, TTL, locks, rate limiting, or queues, then works through a path:

  • Selection: compares String, Hash, List, Set, ZSet, Stream, Bitmap, and HyperLogLog for fit.
  • Naming and TTL: checks business:entity:id style names, colon separators, abbreviations, unsafe characters, and TTL requirements.
  • Patterns: maps Cache-Aside, Write-Through, and Write-Behind, then separates penetration, breakdown, and avalanche fixes.
  • Hard limits: prefers SCAN over KEYS *, requires lock timeout and atomic release, and keeps Pipeline batches to 500 commands or fewer.

It can also load files under references/ for design details, usage guidance, best practices, and version notes.

Boundaries

This is a design and usage guardrail, not a substitute for environment validation, capacity planning, or operations strategy. For 7.0 or 8.0 features, it checks loaded version references for deprecations and new capabilities; production use still needs validation against consistency, QPS, data scale, and business context.

Use Cases

  • Design order cache keys, TTL, and penetration guards.
  • Pick ZSet or Stream for login rate-limit commands.
  • Review ZSet ranking updates and bigkey risks.
  • Use Stream groups and ACK for reliable queues.

Best For

  • Backend engineers standardizing cache keys and TTL.
  • Reviewers checking ZSet or Stream ranking choices.
  • Engineers specifying login rate-limit rules.
  • Leads auditing bigkey, KEYS, and lock release risks.