mcpField
R
redis-development

redis-development

github.com/redisData & databases1713.1k installsUpdated 7w ago
Repository

About redis-development

redis-development is a Redis performance and implementation guide for developers working with data models, queries, caching, and real-time systems. Its rules cover 11 areas, including Redis Query Engine, vector search, security, and observability.

Key features

  1. 0129 rules across 11 categories
  2. 02Data structures and memory guidance
  3. 03Redis Query Engine practices
  4. 04Vector search and RAG guidance
  5. 05Security and observability practices

Use cases

  1. 01Optimizing Redis memory and performance
  2. 02Building vector search or RAG applications
  3. 03Implementing semantic caching
  4. 04Reviewing Redis security and monitoring

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/redis/agent-skills --skill redis-development

After installing, type/redis-developmentin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
AGENTS.md
metadata.json
.cursor-plugin/
plugin.json
evals/
README.md
evals/data-structures-key-naming/
evals.json
model-matrix.json
evals/data-structures-key-naming/baselines/
baseline.json
aggregate-benchmark.md
README.md
aggregate-benchmark.json
model-matrix.json
rules/
_contributing.md
cluster-hash-tags.md
_sections.md
_template.md
conn-timeouts.md
conn-client-cache.md
conn-pooling.md
data-choose-structure.md
cluster-read-replicas.md
conn-blocking.md
conn-pipelining.md
data-hash-field-expiry.md
data-incr.md
observe-commands.md
ram-limits.md
ram-ttl.md
json-partial-updates.md
data-key-naming.md

Details

From the project README

Redis Best Practices

Comprehensive performance optimization guide for Redis, including Redis Query Engine, vector search, and semantic caching. Contains 29 rules across 11 categories, prioritized by impact to guide automated optimization and code generation.

When to Apply

Reference these guidelines when:

  • Designing Redis data models and key structures
  • Implementing caching, sessions, or real-time features
  • Using Redis Query Engine (FT.CREATE, FT.SEARCH, FT.AGGREGATE)
  • Building vector search or RAG applications with RedisVL
  • Implementing semantic caching with LangCache
  • Optimizing Redis performance and memory usage

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Data Structures & KeysHIGHdata-
2Memory & ExpirationHIGHram-
3Connection & PerformanceHIGHconn-
4JSON DocumentsMEDIUMjson-
5Redis Query EngineHIGHrqe-
6Vector Search & RedisVLHIGHvector-
7Semantic CachingMEDIUMsemantic-cache-
8Streams & Pub/SubMEDIUMstream-
9Clustering & ReplicationMEDIUMcluster-
10SecurityHIGHsecurity-
11ObservabilityMEDIUMobserve-

Quick Reference

1. Data Structures & Keys (HIGH)
  • data-choose-structure - Choose the Right Data Structure
  • data-key-naming - Use Consistent Key Naming Conventions
2. Memory & Expiration (HIGH)
  • ram-limits - Configure Memory Limits and Eviction Policies
  • ram-ttl - Set TTL on Cache Keys
3. Connection & Performance (HIGH)
  • conn-blocking - Avoid Slow Commands in Production
  • conn-pipelining - Use Pipelining for Bulk Operations
  • conn-pooling - Use Connection Pooling or Multiplexing
  • conn-timeouts - Configure Connection Timeouts
4. JSON Documents (MEDIUM)
  • json-partial-updates - Use JSON Paths for Partial Updates
  • json-vs-hash - Choose JSON vs Hash Appropriately
5. Redis Query Engine (HIGH)
  • rqe-dialect - Use DIALECT 2 for Query Syntax
  • rqe-field-types - Choose the Correct Field Type
  • rqe-index-creation - Index Only Fields You Query
  • rqe-index-management - Manage Indexes for Zero-Downtime Updates
  • rqe-query-optimization - Write Efficient Queries
6. Vector Search & RedisVL (HIGH)
  • vector-algorithm-choice - Choose HNSW vs FLAT Based on Requirements
  • vector-hybrid-search - Use Hybrid Search for Better Results
  • vector-index-creation - Configure Vector Indexes Properly
  • vector-rag-pattern - Implement RAG Pattern Correctly
7. Semantic Caching (MEDIUM)
  • semantic-cache-best-practices - Configure Semantic Cache Properly
  • semantic-cache-langcache-usage - Use LangCache for LLM Response Caching
8. Streams & Pub/Sub (MEDIUM)
  • stream-choosing-pattern - Choose Streams vs Pub/Sub Appropriately
9. Clustering & Replication (MEDIUM)
  • cluster-hash-tags - Use Hash Tags for Multi-Key Operations
  • cluster-read-replicas - Use Read Replicas for Read-Heavy Workloads
10. Security (HIGH)
  • security-acls - Use ACLs for Fine-Grained Access Control
  • security-auth - Always Use Authentication in Production
  • security-network - Secure Network Access
11. Observability (MEDIUM)
  • observe-commands - Use Observability Commands for Debugging
  • observe-metrics - Monitor Key Redis Metrics

How to Use

Read individual rule files for detailed explanations and code examples:

rules/rqe-index-creation.md
rules/vector-rag-pattern.md

Each rule file contains:

  • Brief explanation of why it matters
  • Correct example(s) with explanation
  • Either an "Incorrect" example (for anti-patterns that cause real harm) or "When to use / When NOT needed" guidance (for optional features)
  • Additional context and references

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Comments

Markdown supported