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.5 | $0.00028 | $0.00275 |
| Sonnet 5.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 2mo 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.
- 2mo 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 6mo ago), licensed Unlicense. It adds 69 tokens to every session and 687 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-08-31.
setup-redis-streams compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setup-redis-streamsarunanksharan/claude-forge | Skill | 2 | 6mo ago | Unlicense | A | 69 | Claude Code |
| using-redis-token-bucketsPostHog/posthog-foss | Skill | 728 | yesterday | MIT | A | 148 | Claude Code, Codex |
| spring-data-redisrrezartprebreza/spring-boot-skills | Skill | 341 | 2d ago | MIT | A | 37 | Claude Code, Codex |
| background-job-orchestratorcuriositech/some_claude_skills | Skill | 263 | yesterday | MIT | A | 95 | Claude Code |
| using-redis-token-bucketsPostHog/posthog | Skill | 41k | yesterday | none | A | 148 | Claude Code, Codex |
| nw-sd-patternsnWave-ai/nWave | Skill | 631 | yesterday | MIT | A | 43 | Claude Code |
| bull-mqTerminalSkills/skills | Skill | 192 | yesterday | Apache-2.0 | A | 100 | Claude Code, Codex |