⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

v0.1.0

redis-core

redis@redis⭐ 176 stars· last commit 25d ago· 6 open issues

Core Redis modeling guidance — choose the right data structure (String, Hash, List, Set, Sorted Set, JSON, Stream, Vector Set) and use consistent colon-separated key names. Use when designing a Redis data model, caching objects, deciding between Hash and JSON, building counters, leaderboards, membership sets, or session stores, or when reviewing/cleaning up Redis key naming.

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

—/10

// RATINGS

⭐GitHub Stars
⭐⭐⭐ 176 on GitHubGitHub ↗

Popular

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

Redis Agent Skills

A collection of skills for AI coding agents working with Redis. Skills are packaged instructions and resources that extend agent capabilities.

Skills follow the Agent Skills format.

Available Skills

SkillDescription
redis-coreData structures, key naming, memory and TTL, atomic primitives, JSON vs Hash, Streams vs Pub/Sub.
redis-connectionsPooling, multiplexing, pipelining, client-side caching, timeouts, slow commands.
redis-searchFT.CREATE schema, FT.SEARCH / FT.AGGREGATE / FT.HYBRID, DIALECT 2, vector similarity (HNSW / FLAT), hybrid retrieval, RAG pipelines, zero-downtime index updates.
redis-semantic-cacheLangCache — cache-aside flow for LLM responses, similarity threshold tuning, per-task cache separation.
redis-clusteringHash tags for multi-key operations, avoiding CROSSSLOT, reading from replicas.
redis-securityAuthentication and TLS, ACL-based least privilege, network bind, firewall, command renaming.
redis-observabilityKey metrics (INFO), debugging commands (SLOWLOG, MEMORY DOCTOR, FT.PROFILE), Redis Insight.
redis-docs-mcpReading what the bundled redis.io docs MCP server returns: section-scoped ids, metadata.version, corpus coverage, ask rate limits.
add-redis-irisRedis Iris: detect the agent's framework and route to the right Iris product skill. Start here.
add-agent-memoryRedis Iris Agent Memory: provision with the iris CLI, wire recall and write-back so the agent remembers users across sessions.
add-agent-playbooksRedis Iris Agent Playbooks: publish procedures (Skills) and approved answers (FAQs), answer from published content only.
add-context-gatewayRedis Iris Context Gateway: put the agent's MCP servers behind one endpoint and one key, with tool caching and result handles.
add-intent-routerRedis Iris Intent Router: replace hand-written routing with example phrasings and a score threshold.
add-lensRedis Iris Lens: trace every agent turn (LLM calls, tokens, tools, retrievals) in the Lens UI.

Installation

Agent Skills CLI

npx skills add redis/agent-skills

Claude Code Plugin

You can also install the skills as a Claude Code plugin:

/plugin install redis-development@claude-plugins-official

ChatGPT and Codex Plugin

The distributable plugin package for ChatGPT and Codex lives at plugins/redis-development/. It includes the required .codex-plugin/plugin.json manifest and real copies of every skill. Archive that directory—not the repository root—when preparing a submission to the OpenAI plugin submission portal. The archive includes the shared .mcp.json, so it carries the Redis Docs MCP server as well as the skills.

Cursor Plugin

This repository also includes Cursor plugin packaging. Run this command in chat:

/add-plugin redis

The top-level skills/ directory remains the source of truth. plugins/redis-development/skills/ holds generated real copies used by the ChatGPT, Codex, and Claude Code plugin package (not symlinks, which plugin installation flows may drop); npm run sync:plugins regenerates them and the pre-commit hook keeps them current. See AGENTS.md.

Redis Docs MCP server

The Claude Code, ChatGPT and Codex, and Cursor plugins bundle the official Redis documentation MCP server at https://redis.io/mcp, so an agent can look up authoritative docs instead of relying on stale training data. It needs no credentials, no local Redis, and no configuration — a public, read-only, hosted endpoint that connects automatically once the plugin is enabled.

Three read-only tools: search (query the docs index), fetch (retrieve a page or a section by its id), and ask (a grounded answer with citations).

Each tool call sends the agent's query text to redis.io. If that conflicts with your data policy, disable the redis-docs server in your client's MCP settings (in Claude Code, /mcp).

ChannelCarries the MCP server?
Claude Code pluginYes
ChatGPT / Codex pluginYes
Cursor pluginYes
Agent Skills CLI (npx skills add)No — the Agent Skills format has no MCP component

All three manifests point at one shared plugins/redis-development/.mcp.json. To add the server to Claude Code without the plugin:

claude mcp add --transport http redis-docs https://redis.io/mcp

Usage

Skills are automatically available once installed. The agent will use them when relevant tasks are detected.

Examples:

Help me optimize this Redis query
What data structure should I use for a leaderboard?
Review my Redis connection handling

Skill Structure

Each skill follows the agentskills.io specification:

  • SKILL.md - Instructions for the agent (required)
  • references/ - Long-form content loaded on demand (optional)
  • scripts/ - Helper scripts (optional)
  • assets/ - Static resources (optional)

See AGENTS.md for the full layout, conventions, and the "Adding a New Skill" walkthrough.

License

MIT

// HOW IT'S BUILT

// FILES

4 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.

  • skills/redis-core/SKILL.md3.0 KBa62be86377adupstream ↗
    ---
    name: redis-core
    description: Core Redis modeling guidance — choose the right data structure (String, Hash, List, Set, Sorted Set, JSON, Stream, Vector Set) and use consistent colon-separated key names. Use when designing a Redis data model, caching objects, deciding between Hash and JSON, building counters, leaderboards, membership sets, or session stores, or when reviewing/cleaning up Redis key naming.
    license: MIT
    metadata:
      author: Redis, Inc.
      version: "0.1.0"
    ---
    
    # Redis Core
    
    Foundational guidance for modeling data in Redis. Covers data-type selection and key-name conventions — the two decisions that most directly drive memory, performance, and maintainability.
    
    ## When to apply
    
    - Caching objects, sessions, or per-user state.
    - Counters, leaderboards, recent-items lists, unique-membership sets.
    - Reviewing or refactoring Redis key names.
    - Deciding between a Redis Hash and a JSON document for an entity.
    
    ## 1. Choose the right data structure
    
    Pick the type that matches the *access pattern*, not just the shape of the data.
    
    | Use case | Recommended type | Why |
    |---|---|---|
    | Simple values, counters | String | Atomic `INCR`/`DECR`, `SET`/`GET` |
    | Object with independently updated fields | Hash | Per-field reads/writes, no whole-object rewrite |
    | Queue, recent-N items | List | O(1) push/pop at ends |
    | Unique items, membership checks | Set | O(1) `SADD`/`SISMEMBER`/`SCARD` |
    | Rankings, score-based ranges | Sorted Set | Score-ordered; `ZADD`/`ZRANGE`/`ZRANK` |
    | Nested / hierarchical data | JSON | Path-level updates, nested arrays, RQE indexing |
    | Event log, fan-out messaging | Stream | Persistent, consumer groups |
    | Vector similarity | Vector Set | Native vector storage with HNSW |
    
    **Common anti-pattern:** stuffing a flat object into a serialized string. Updating one field means fetch + parse + mutate + rewrite. Use a Hash instead.
    
    See [references/choose-data-structure.md](references/choose-data-structure.md) for full rationale and Python/Java examples.
    
    ## 2. Use consistent key names
    
    Use `colon-separated` segments with a stable hierarchy:
    
    ```
    {entity}:{id}:{attribute}
    user:1001:profile
    user:1001:settings
    order:2024:items
    session:abc123
    article:987:likes
    game:space-invaders:leaderboard
    ```
    
    Rules of thumb:
    
    - **Lowercase, colon-separated.** No spaces, no mixed casing (`User_1001_Profile` is bad).
    - **Keep keys short but readable** — keys live in memory and appear in every command.
    - **Don't use full URLs or long strings as keys.** Extract a short identifier, or use a hash digest of the URL.
    - **Prefix for multi-tenancy** (`tenant:42:user:7:cart`) so scans and ACLs can target a tenant cleanly.
    - **Be consistent.** Pick one convention per service and apply it across all keys.
    
    See [references/key-naming.md](references/key-naming.md) for cleanup examples and edge cases.
    
    ## References
    
    - [Redis: Choosing the right data type](https://redis.io/docs/latest/develop/data-types/compare-data-types/)
    - [Redis: Keys](https://redis.io/docs/latest/develop/use/keyspace/)
    
  • skills/redis-core/references/choose-data-structure.md2.3 KB44eb22f80552upstream ↗
    # Choose the Right Data Structure
    
    Selecting the appropriate Redis data type for your use case is fundamental to performance and memory efficiency.
    
    | Use Case | Recommended Type | Why |
    |----------|------------------|-----|
    | Simple values, counters | String | Fast, atomic operations |
    | Object with fields | Hash | Memory efficient, partial updates, field-level expiration |
    | Queue, recent items | List | O(1) push/pop at ends |
    | Unique items, membership | Set | O(1) add/remove/check |
    | Rankings, ranges | Sorted Set | Score-based ordering |
    | Nested/hierarchical data | JSON | Path queries, nested structures, geospatial indexing with RQE |
    | Event logs, messaging | Stream | Persistent, consumer groups |
    | Similarity search | Vector Set | Native vector storage with built-in HNSW indexing |
    
    **Incorrect:** Using strings for everything.
    
    **Python** (redis-py):
    ```python
    # Storing object as JSON string loses atomic field updates
    redis.set("user:1001", json.dumps({"name": "Alice", "email": "[email protected]"}))
    
    # To update email, must fetch, parse, modify, and rewrite entire object
    user = json.loads(redis.get("user:1001"))
    user["email"] = "[email protected]"
    redis.set("user:1001", json.dumps(user))
    ```
    
    **Java** (Jedis):
    ```java
    // Bad: Storing as delimited string requires manual parsing
    jedis.set("bicycle", "Deimos;Ergonom;Enduro bikes;4972");
    String bike = jedis.get("bicycle");
    String[] fields = bike.split(";");
    String model = fields[0];  // Fragile and error-prone
    ```
    
    **Correct:** Use Hash for objects with fields.
    
    **Python** (redis-py):
    ```python
    # Hash allows atomic field updates
    redis.hset("user:1001", mapping={"name": "Alice", "email": "[email protected]"})
    
    # Update single field without touching others
    redis.hset("user:1001", "email", "[email protected]")
    ```
    
    **Java** (Jedis):
    ```java
    import java.util.Map;
    import java.util.HashMap;
    
    // Good: Hash models properties naturally
    Map<String, String> hashFields = new HashMap<>();
    hashFields.put("model", "Deimos");
    hashFields.put("brand", "Ergonom");
    hashFields.put("type", "Enduro bikes");
    hashFields.put("price", "4972");
    
    jedis.hset("bicycle", hashFields);
    
    // Read individual field
    String model = jedis.hget("bicycle", "model");
    ```
    
    Reference: [Choosing the Right Data Type](https://redis.io/docs/latest/develop/data-types/compare-data-types/)
    
  • skills/redis-core/references/key-naming.md1.5 KBb57dd73070eeupstream ↗
    # Use Consistent Key Naming Conventions
    
    Well-structured key names improve code maintainability, debugging, and enable efficient key scanning.
    
    **Correct:** Use colons as separators with a consistent hierarchy.
    
    ```
    # Pattern: service:entity:id:attribute
    user:1001:profile
    user:1001:settings
    order:2024:items
    cache:api:users:list
    session:abc123
    ```
    
    **Python** (redis-py):
    ```python
    # Good: Short, meaningful key
    redis.set("product:8361", cached_html)
    page = redis.get("product:8361")
    ```
    
    **Java** (Jedis):
    ```java
    // Good: Short, meaningful key derived from URL
    jedis.set("product:8361", "<some cached HTML>");
    String page = jedis.get("product:8361");
    ```
    
    **Incorrect:** Inconsistent naming, spaces, or very long keys.
    
    ```
    # These cause confusion and waste memory
    User_1001_Profile
    my key with spaces
    com.mycompany.myapp.production.users.profile.data.1001
    ```
    
    **Java** (Jedis):
    ```java
    // Bad: Using full URL as key wastes memory and slows comparisons
    jedis.set("http://www.verylongurlkey.com/store/products/product.html?id=8361",
              "<some cached HTML>");
    ```
    
    **Key naming tips:**
    - Keep keys short but readable—they consume memory
    - Consider key prefixes for multi-tenant applications
    - Extract short identifiers from URLs or long strings rather than using the whole thing
    - For large binary values, consider using a hash digest as the key instead of the value itself
    - Use consistent separators (colons are conventional)
    
    Reference: [Redis Keys](https://redis.io/docs/latest/develop/use/keyspace/)
    
  • README.mdupstream ↗

    Contents are not inlined in the catalog. Open the upstream file.

Plain-text copy, no login: /skill-bundles/redis-agent-skills-skills-redis-core.md

// REPO STATS

176 stars
6 open issues
Last commit: 25d ago