/major-ai-skills:redis-streamsfrom major-ai-skills
Build Redis Streams consumers with groups, acknowledgements, pending-entry recovery, and trimming policies.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Redis Streams are an append-only log data type with consumer groups for competing consumers. Producers XADD; consumers in a group XREADGROUP, then XACK processed IDs. Pending entries (XPENDING/XCLAIM) handle crashes. Agents design idempotent consumers, explicit ACK policies, and trimming (MAXLEN/MINID) so streams do not grow forever. Use @redis for cache/TTL patterns; this skill focuses on stream processing.
Producers --XADD--> Stream key
|
Consumer group
/ | \
consumer consumer consumer
\ | /
XACK after success
XGROUP CREATE).XACK; crash before ACK => message stays pending (at-least-once).MAXLEN ~) or expire by ID policy; monitor length.XGROUP CREATE mystream mygroup $ MKSTREAM
XADD mystream * type order.created orderId 123
XREADGROUP GROUP mygroup worker1 COUNT 10 BLOCK 2000 STREAMS mystream >
XACK mystream mygroup 1680000000000-0
XPENDING mystream mygroup
XCLAIM mystream mygroup worker2 60000 1680000000000-0
XTRIM mystream MAXLEN ~ 10000
entries = XREADGROUP GROUP g c COUNT 10 BLOCK 2000 STREAMS s >
for each entry:
try:
handle(entry) # idempotent
XACK s g entry.id
catch:
log; leave pending for retry/claim
| Pitfall | Result | Fix |
|---|---|---|
| Never ACK | Pending grows; redelivery storms | ACK after success; alert on PEL size |
| ACK before side effects commit | Lost work on crash | ACK after durable success |
| Unbounded stream | OOM | MAXLEN / MINID trim |
| One consumer name reused across pods | Confusing PEL ownership | Unique consumer IDs per instance |
XPENDING counts.XAUTOCLAIM (newer Redis) to simplify reclaim loops when available.orders:events) rather than one global firehose.@redis - caching, TTLs, general data structures@kafka - heavier durable streaming when Redis is insufficient@incident-runbooks - consumer lag / PEL incident responseWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job