redis-design

redis-design is a skill for Claude Code from parisgroup-ai/imersao-ia-setup. It costs 71 tokens per session (1,645 once invoked), scanned A, original, MIT.

A set of rules for designing Redis storage, including key names, data structures, caching, rate limits, and failure handling. Redis is a fast in-memory data store often used for temporary data, caching, queues, and shared state.

In plain words
What is it for?
Use it when choosing Redis hashes, sets, sorted sets, or streams; defining key formats and expiration; designing clustered keys; adding rate limiting; or planning cache failure handling.
Why use it?
It reduces unclear key names, collisions between environments, inefficient data choices, and errors when related data must be handled together in a Redis cluster.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the imersao plugin — 74 skills, 7 commands shipped together

Good fit Use it when choosing Redis hashes, sets, sorted sets, or streams; defining key formats and expiration; designing clustered keys; adding rate limiting; or planning cache failure handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/parisgroup-ai/imersao-ia-setup/redis-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add parisgroup-ai/imersao-ia-setup --skill redis-design
Clone the repo
git clone --depth 1 https://github.com/parisgroup-ai/imersao-ia-setup

Made for: Claude Code.

Or install imersao, the plugin that ships this one along with the rest of its 74 skills, 7 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for redis-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/redis-design/github.svg)](https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/redis-design)
Your own site
<a href="https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/redis-design"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/redis-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for redis-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/redis-design"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/redis-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,645 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.01645
Opus 5.5 $0.00028 $0.00658
Sonnet 5.5 $0.00014 $0.00329
Haiku 4.5 $0.00007 $0.00164

Measured 19d ago against content hash 9cf82e48c7ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

redis-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/imersao/skills/redis-design/SKILL.md · 217 lines

How it starts

The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Redis Design Skill

Key Naming Convention

MANDATORY FORMAT: {env}:{app}:{entity}:{id}[:suffix]

Component Example Purpose
env prod, stg, dev Environment isolation
app api, worker, web Application namespace
entity user, session, cache Data type
id usr_123, abc456 Unique identifier
suffix :v1, :meta Versioning/subkey
# Good
prod:api:session:sess_abc123
prod:api:cache:user:usr_789:v1
prod:api:ratelimit:usr_789:28381681

# Bad - no namespace, collision risk
session:abc123
user:789

Hash Tags for Clustering

CRITICAL: Related keys MUST share hash tag for atomic operations.

# Keys on SAME slot (required for MULTI/EXEC)
{user:123}:profile
{user:123}:sessions
{user:123}:preferences

# WRONG - different slots, MULTI fails
user:123:profile
user:123:sessions

Data Structure Selection

Use Case Structure Why NOT alternatives
Object with fields Hash String+JSON = full deserialize
Unique collection Set List allows duplicates
Ranked data Sorted Set Manual sorting = O(n log n)
Queue Stream List = no consumer groups
Counter String+INCR Hash HINCRBY if grouped
Time-series Stream Sorted Set = manual cleanup
Events (fire-forget) Pub/Sub Stream = unnecessary persistence
Events (guaranteed) Stream Pub/Sub = no replay/ACK

Cache Patterns

Pattern When to Use Implementation
Cache-Aside Read-heavy, tolerates stale App reads cache, misses hit DB
Write-Through Consistency critical Write DB + cache atomically
Write-Behind Write-heavy, eventual OK Queue writes, batch to DB

Stampede Prevention:

# Probabilistic early refresh: refresh at TTL * 0.8 randomly
SET key value EX 300
# When TTL < 60 AND random() < 0.1 → background refresh

Read the full file on GitHub · 217 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago First seen · 217 lines · 71 tokens per session scan A 9cf82e48c7ea

Subscribe to this mod's changes

redis-design is a skill published in the GitHub repository parisgroup-ai/imersao-ia-setup (1 stars, last pushed 18d ago), licensed MIT. It adds 71 tokens to every session and 1,645 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-06.

Related

Other skills, from other repositories

cache-design

Design a caching strategy for an application — pattern selection, key design, TTL, and eviction policy. Use when asked to "add caching to this", "design a cache strategy", or "what should we cache".

tonone-ai/tonone · 46 tokens

ecommerce-caching

Improve store performance with a layered caching strategy — CDN edge caching, Redis application cache, and smart cart-aware invalidation.

finsilabs/awesome-ecommerce-skills · 28 tokens

cache-recon

Audit existing caching implementation — find cache misses, stampedes, and key design issues. Use when asked to "audit our caching", "why is our hit rate low", or "find cache stampedes".

tonone-ai/tonone · 45 tokens

woocommerce-performance

Fix slow WooCommerce stores by optimizing database queries, clearing transients, enabling Redis object caching, and configuring page caching.

finsilabs/awesome-ecommerce-skills · 26 tokens

caching-strategies

Design multi-tier caching architectures for web applications — cache-aside vs write-through vs write-behind, TTL design, cache invalidation, Redis patterns, CDN configuration, browser caching, and stampede prevention. Use when choosing a caching pattern, designing cache invalidation strategies, implementing Redis…

curiositech/windags-skills · 137 tokens

cache-strategy-invalidation-expert

Redis caching patterns, cache-aside, write-through, TTL strategies, and invalidation. Activate on: caching, Redis, cache invalidation, cache-aside, write-through, TTL, CDN cache, stale-while-revalidate. NOT for: CDN/reverse proxy setup (use api-gateway-reverse-proxy-expert), database query optimization (use…

curiositech/windags-skills · 86 tokens