skill
background-job-patterns
14 language-agnostic patterns for background job / queue systems (Sidekiq, BullMQ, Asynq, JobRunr, Laravel Queue, and more) — a Claude Skill
Set up
Skills are installed by placing their folder where your agent loads skills.
The download comes from github.com/gabrielras/background-job-patterns itself, not from our server, so what you get is exactly what its author published.
Install instructions come from the README
README
synced Oct 23, 2026background-job-patterns
A Claude Skill covering the patterns that repeat across every background job / async queue system — Sidekiq, BullMQ, Asynq, River, Faktory, JobRunr, Quartz, Laravel Queue, Symfony Messenger — regardless of language or backend.
Every queue system solves the same problem: deliver work at least once to a worker that might crash, hang, or run twice. The pattern is the reusable unit, not any one library's implementation.
Installation
- npx skills (recommended):
npx skills add gabrielras/background-job-patterns - Manual: clone this repo and copy into
~/.claude/skills/background-job-patterns - Local dev:
claude --plugin-dir ./background-job-patterns
What's Inside
SKILL.md— overview, quick-reference table, symptom-based diagnosis flowreferences/patterns.md— all 14 patterns in full: core principle, when to use, before/after pseudocode, common mistakes
14 Patterns
- At-Least-Once + Idempotency
- Visibility Timeout / Lease
- Dead Letter
- Exponential Backoff With Jitter
- Concurrency Bounded by the Weakest Downstream Resource
- Blast Radius of an Unhandled Failure Follows the Concurrency Unit
- Enqueue in the Same Transaction as the Data (Transactional Outbox)
- Ordering Is Not Guaranteed by Default
- Queue Depth Is the Primary Health Signal
- Reloading Code Requires an Explicit Signal
- Poison Message Containment
- Durable / Checkpointed Execution
- Competing Consumers
- Circuit Breaker
Sources
Stripe (idempotency keys) · AWS SQS docs (visibility timeout, dead-letter queues) · Marc Brooker / AWS Architecture Blog (backoff and jitter) · Mike Perham (Sidekiq, Faktory) · Brandur Leach (River) · Enterprise Integration Patterns (Hohpe & Woolf) · Michael Nygard, Release It!
Design Principle
The pattern is what transfers across stacks — not the implementation. This skill points at the relevant pattern for a given symptom; applying it still requires reading the actual code.
License
MIT — see LICENSE.