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.
npx skills add sawrus/agent-guides --skill redis-operationsgit clone --depth 1 https://github.com/sawrus/agent-guidesWrote 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.
[](https://agentmods.dev/skills/sawrus/agent-guides/redis-operations)<a href="https://agentmods.dev/skills/sawrus/agent-guides/redis-operations"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/redis-operations.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00030 | $0.01469 |
| Opus 5 | $0.00015 | $0.00734 |
| Sonnet 5 | $0.00006 | $0.00294 |
| Haiku 4.5 | $0.00003 | $0.00147 |
Grade A, and why
redis-operations 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: Redis Operations
Expertise: Redis memory management, eviction, persistence (RDB+AOF), Redis Sentinel, Redis Cluster, K8s Redis (Bitnami/Spotahome operator).
When to load
When investigating Redis memory pressure, configuring persistence, debugging eviction, or setting up Redis HA.
Health Check Commands
# Connect to Redis
redis-cli -h redis-master -p 6379 -a $REDIS_PASSWORD
# Server info overview
redis-cli INFO server | grep -E "redis_version|uptime|tcp_port"
redis-cli INFO memory | grep -E "used_memory_human|used_memory_peak_human|mem_fragmentation_ratio|maxmemory"
redis-cli INFO stats | grep -E "total_commands_processed|rejected_connections|evicted_keys"
redis-cli INFO keyspace # databases with key counts + expires
# Real-time monitoring (ops/sec per command)
redis-cli --stat # 1-second interval stats
redis-cli MONITOR # log every command (NEVER in production for long — high overhead)
# Slow log (commands over threshold)
redis-cli CONFIG SET slowlog-log-slower-than 10000 # 10ms threshold
redis-cli SLOWLOG GET 20 # last 20 slow commands
redis-cli SLOWLOG LEN
redis-cli SLOWLOG RESET
Memory Management
# Check memory usage breakdown
redis-cli MEMORY DOCTOR # health analysis + recommendations
redis-cli MEMORY STATS # detailed breakdown
redis-cli MEMORY USAGE <key> # bytes used by a specific key
# Find big keys (scan, not KEYS — non-blocking)
redis-cli --bigkeys # sample-based big key finder
redis-cli --memkeys # memory usage per key (sample)
# Memory fragmentation: ratio > 1.5 = fragmentation, < 1.0 = swap
redis-cli INFO memory | grep mem_fragmentation_ratio
# Defragment memory online (Redis 4+)
redis-cli CONFIG SET activedefrag yes
redis-cli CONFIG SET active-defrag-threshold-lower 10 # start at 10% frag
Eviction Policy
# View current policy
redis-cli CONFIG GET maxmemory-policy
# Set eviction policy
# allkeys-lru — evict any key by LRU (general-purpose cache)
# volatile-lru — evict only keys with TTL by LRU (mixed TTL/no-TTL use)
# allkeys-lfu — evict by LFU (access frequency, Redis 4+) — best for skewed access
# noeviction — return OOM error when full (use for session store / queue — no silent data loss)
redis-cli CONFIG SET maxmemory-policy allkeys-lru
# Set memory limit
redis-cli CONFIG SET maxmemory 4gb
# Persist config to redis.conf
redis-cli CONFIG REWRITE
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.
- 8d ago First seen · 175 lines · 30 tokens per session scan A 092500735655
redis-operations is a skill published in the GitHub repository sawrus/agent-guides (17 stars, last pushed 7d ago), licensed MIT. It adds 30 tokens to every session and 1,469 once invoked, about $0.0002 per session on Opus 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-08-30.
Other skills, from other repositories
redis-caching-and-pubsub
Architecting high-performance caching strategies, Cache-Aside/Write-Through/Write-Behind patterns, Redis Pub/Sub, Streams, eviction policies, distributed locking (Redlock), and memory optimization. Use when implementing Redis caching, real-time messaging, rate limiting, or session management.
redis
Redis in-memory cache, pub/sub, streams, and data structures. Use for caching and real-time data.
couchbase
Couchbase distributed NoSQL database. Use for mobile and edge.
memcached
Memcached distributed memory caching. Use for simple caching.
redis-master
Leverage Redis for caching, sessions, pub/sub, queues, rate limiting, and real-time features. Design Redis data structures for optimal performance.
redis-cache-master
Configure, monitor, and optimize Redis caches for caching patterns, session storage, and pub/sub queues.