Borrowing it
Nothing to install: this file belongs to arunanksharan/claude-forge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/arunanksharan/claude-forge/main/.claude/skills/setup-redis-streams/SKILL.mdgit clone --depth 1 https://github.com/arunanksharan/claude-forgeWrote 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/arunanksharan/claude-forge/setup-redis-streams)<a href="https://agentmods.dev/skills/arunanksharan/claude-forge/setup-redis-streams"><img src="https://agentmods.dev/badge/skills/arunanksharan/claude-forge/setup-redis-streams/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.
<a href="https://agentmods.dev/skills/arunanksharan/claude-forge/setup-redis-streams"><img src="https://agentmods.dev/badge/skills/arunanksharan/claude-forge/setup-redis-streams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00069 | $0.00687 |
| Opus 5 | $0.00034 | $0.00344 |
| Sonnet 5 | $0.00014 | $0.00137 |
| Haiku 4.5 | $0.00007 | $0.00069 |
Grade A, and why
setup-redis-streams 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 9d 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.
What it actually says
Set Up Redis Streams (claudeforge)
Follow async-and-queues/redis-streams.md. Use this when you need cross-service eventing (multiple consumers each at different lag) but don't want to operate Kafka.
Steps:
- Confirm with user:
- Use case: which service produces events, which consume? (Sketch out one stream + 1-3 consumer groups.)
- Stack: Python and/or Node?
- Already have Redis? Need persistence (AOF) for the events.
- Producer side:
- Python:
await r.xadd("events:user", {"type": "signed_up", "user_id": str(uid)}, maxlen=100_000, approximate=True) - Node:
await redis.xadd('events:user', '*', 'type', 'signed_up', 'user_id', uid) - Schema discipline: include
type,v(version), anddataJSON for non-trivial events
- Python:
- Consumer side:
- Create the group once (idempotent, catch BUSYGROUP):
try: await r.xgroup_create("events:user", "service-a", id="0", mkstream=True) except redis.exceptions.ResponseError as e: if "BUSYGROUP" not in str(e): raise - Loop reading new entries:
XREADGROUP GROUP service-a consumer-1 COUNT 10 BLOCK 5000 STREAMS events:user > - Process each entry, then
XACK events:user service-a <msg_id>on success - Don't ack on failure → entry stays pending → retried via XCLAIM
- Create the group once (idempotent, catch BUSYGROUP):
- Reclaim stuck pending entries (separate periodic task):
- List pending:
XPENDING events:user service-a - + 100 - For entries with
time_since_delivered > 60s:XCLAIM events:user service-a consumer-1 60000 <msg_ids> - Then process + ack
- List pending:
- Trim periodically (every hour or so):
XTRIM events:user MAXLEN ~ 100000(the~is approximate, much faster) - Idempotency: handlers must be idempotent (XCLAIM may double-deliver)
- Replay: for backfill, set start to
0instead of>and read from the beginning - Observability:
- Track
XLEN events:user(stream depth) - Track pending count per group (
XPENDING ... | length) - Add traces around producer + consumer for end-to-end latency
- Track
- Verify: produce a test event in service A, consume in service B, ack it, confirm pending list is empty.
If you outgrow Streams: switch to Kafka (real ops cost) when you need multi-day retention, schema registry, or compaction.
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.
- 9d ago First seen · 44 lines · 69 tokens per session scan A 3acc59138f69
setup-redis-streams is a skill published in the GitHub repository arunanksharan/claude-forge (2 stars, last pushed 4mo ago), licensed Unlicense. It adds 69 tokens to every session and 687 once invoked, about $0.0003 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-31.
Other skills, from other repositories
spring-data-redis
Use when implementing caching, session storage, rate limiting, or any Redis integration. Covers cache-aside pattern, key naming, TTL strategy, and serialization config.
background-job-orchestrator
Expert in background job processing with Bull/BullMQ (Redis), Celery, and cloud queues. Implements retries, scheduling, priority queues, and worker management. Use for async task processing, email campaigns, report generation, batch operations. Activate on "background job", "async task", "queue", "worker", "BullMQ"…
nw-sd-patterns
Core distributed systems patterns - load balancing, caching, sharding, consistent hashing, message queues, rate limiting, CDN, Bloom filters, ID generation, replication, conflict resolution, CAP theorem.
cache-strategy
Design and implement caching layers for APIs and web applications using Redis or Memcached. Use when you need to reduce database load, improve response times, or handle traffic spikes. Covers cache-aside, write-through, and write-behind patterns, TTL strategies, cache invalidation, and stampede prevention. Trigger…
bull-mq
You are an expert in BullMQ, the high-performance job queue for Node.js built on Redis. You help developers build reliable background processing systems with delayed jobs, rate limiting, prioritization, repeatable cron jobs, job dependencies, concurrency control, and dead-letter handling — powering email sending…
python-redis-module-skill
A Python integration guide for adding Redis to an existing FastAPI project. Redis is a fast shared data store commonly used for temporary data, sessions, locks, counters, and messages.