redis-key-discipline

Design Redis keys with consistent, slot-sharing token-aware naming conventions.

Updated Jun 15, 2026
One-click install
npx skills add https://github.com/tanghuo/th-skill --skill redis-key-discipline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redis-key-discipline
Source: https://github.com/tanghuo/th-skill/tree/main/skills/redis-key-discipline
Command: npx skills add https://github.com/tanghuo/th-skill --skill redis-key-discipline

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that Redis keys remain readable, consistent, and cluster-aware during design or refactoring, enhancing maintainability and performance.

Core Features & Use Cases

  • Key Design Guidance: Offers principles for naming Redis keys to maintain readability and consistency.
  • Cluster Awareness: Ensures that keys are designed to be slot-sharing token-aware for optimal cluster performance.
  • Use Case: When developing an application that uses Redis for data storage, this Skill helps in designing keys that are both readable and efficient for cluster environments.

Quick Start

Apply the redis-key-discipline skill to refactor the key naming convention in your Redis data store.

Frequently Asked Questions about redis-key-discipline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design Redis keys for a distributed cluster environment?

Designing Redis keys for a cluster requires them to be readable, consistent, and slot-sharing token-aware. Applying key naming conventions ensures optimal performance and maintainability when Redis is used for data storage in distributed systems.

What are the best practices for Redis key naming conventions?

Redis key naming conventions prioritize readability and consistency to enhance maintainability. Following these principles during database design or refactoring ensures that keys remain structured and efficient for application data storage.

Why do I need slot-sharing tokens in Redis key design?

Slot-sharing tokens are needed in Redis key design to make keys cluster-aware. Using hash tags in your naming convention ensures related keys are placed in the same cluster slot, optimizing distributed system performance.

When should I refactor my Redis key naming strategy?

You should refactor your Redis key naming strategy when keys lack readability, consistency, or cluster-awareness. Refactoring with a disciplined approach enhances maintainability and performance optimization in distributed systems.

Can I use standard Redis key patterns in a cluster setup?

Standard Redis key patterns may fail in a cluster setup if they lack slot-sharing token-awareness. Designing keys with cluster-aware naming conventions ensures data is distributed correctly for optimal performance.