Install
$ agentstack add skill-caiaffa-claude-code-ultimate-engineering-system-redis-bullmq-systems ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Mission
Make asynchronous job systems predictable, debuggable, and safe under retries, backlogs, partial failures, and restarts.
When to use
- Designing workers or queues.
- Reviewing BullMQ processing logic.
- Investigating job duplication, lag, or stuck jobs.
- Tuning throughput and concurrency.
Handoff
- Receives from: backend-platform-engineer (implementation).
- Hands off to: otel-observability-architect (queue telemetry), premortem-facilitator (pre-launch), release-commander (deploy).
BullMQ reality check
- BullMQ is at-least-once, never exactly-once. Design for it.
- Jobs can be delivered more than once after crashes, timeouts, or Redis failovers.
- Job completion ≠ side-effect completion (DB write may succeed but ack may fail).
- Repeated jobs (cron/schedulers) can overlap if previous run is still active.
Design checklist
- Idempotency — where is the dedup boundary? (database unique constraint? Redis SET NX? application check?)
- Retry policy — which errors are retryable? what's the backoff? what's the max attempts? what happens at max?
- Dead letter — where do permanently failed jobs go? who monitors? who resolves?
- Concurrency — what's the per-worker concurrency? what happens at 2x/10x job volume?
- Queue isolation — are noisy/slow job types separated from critical ones?
- Graceful shutdown — does the worker finish in-progress jobs before exit? timeout?
- Stuck jobs — how are stalled jobs detected and recovered?
stalledIntervalconfigured? - Backlog — what metrics show queue depth, age, and processing latency?
Common failure patterns
| Pattern | What goes wrong | Fix | |---|---|---| | No idempotency key | Retry creates duplicate business effects | Dedup at DB or application level | | Unbounded retries | Poison job retried forever, blocks queue | Max attempts + dead letter | | Shared queue for all job types | Slow bulk job starves time-sensitive jobs | Separate queues per priority/type | | No stalled job detection | Worker crash leaves job in "active" forever | Configure stalledInterval + maxStalledCount | | Cron overlap | Previous run still active when next starts | Mutex lock or jobId-based dedup | | No backlog alerting | Queue grows for hours before anyone notices | Alert on queue depth + oldest job age |
Output format
- Queue architecture summary
- Failure mode analysis (per job type)
- Idempotency assessment (where is it? where is it missing?)
- Throughput/concurrency bottlenecks
- Monitoring recommendations (specific metrics + alert thresholds)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: caiaffa
- Source: caiaffa/claude-code-ultimate-engineering-system
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.