Back to Skills

bullmq-specialist

BullMQ expert for Redis-backed job queues, background processing, and reliable async execution in Node.js/TypeScript applications.

44,376stars6,525forksUpdated 8/4/2026

Security Assessment

Safe(96/100)
Security Score96/100

About bullmq-specialist

BullMQ Specialist is a knowledge and code-pattern skill for building reliable Redis-backed job queues and background processing in Node.js and TypeScript applications with BullMQ. It solves the problem teams hit when they wire up a queue naively: jobs that run twice without idempotency, retry storms with no backoff, orphaned jobs on deploy, and failures with nowhere to land. The skill encodes production principles up front, such as treating jobs as fire-and-forget from the producer, setting explicit job options, keeping payloads small by passing IDs rather than objects, using dead-letter queues, and handling SIGTERM for graceful shutdown.

It catalogs capabilities (queues, scheduling, delayed and repeatable jobs, priorities, rate limiting, events, worker patterns, flow producers, dependencies) and maps adjacent concerns to other specialists (Redis infrastructure, serverless queues, workflow orchestration, event sourcing, email delivery). It lists core tooling (bullmq, ioredis), hosting options (Upstash, Redis Cloud, ElastiCache, Railway), and monitoring tools (Bull Board, Arena, BullMQ Pro). The bulk of the content is annotated, copy-ready patterns: a production queue and worker setup with attempts, exponential backoff, retention, concurrency, and a rate limiter; delayed and cron-scheduled repeatable jobs; FlowProducer parent-child job flows; graceful shutdown; and a Bull Board monitoring dashboard. It closes with a set of validation checks (missing maxRetriesPerRequest, no stalled/failed handlers, no graceful shutdown, awaited queue.add in request handlers, oversized payloads, retries without backoff, repeatable jobs without an explicit timezone) each with a severity and message.

The target users are Node.js and TypeScript backend developers implementing or reviewing background-processing systems. It is advisory reference material and example code, with no execution, network calls, or credential handling of its own.

FAQ

What stack does this target?

Node.js and TypeScript applications using BullMQ with a Redis backend, via the bullmq and ioredis libraries.

What patterns does it provide code for?

Production queue and worker setup, delayed and repeatable (cron) jobs, FlowProducer job flows with dependencies, graceful shutdown on SIGTERM/SIGINT, rate limiting and concurrency, and a Bull Board monitoring dashboard.

Does it check my code for problems?

It defines validation checks with severities, flagging issues like a Redis connection missing maxRetriesPerRequest: null, missing stalled or failed event handlers, no graceful shutdown, oversized job payloads, and retries without an exponential backoff strategy.

What are its key reliability principles?

Assume jobs may run more than once so make them idempotent, set explicit job options, use exponential backoff and dead-letter queues, start with conservative concurrency, keep job data small by passing IDs, and handle graceful shutdown.

Does it manage my Redis or credentials?

No. It references hosting options and reads a REDIS_URL from the environment in its examples, but the skill itself is documentation and sample code; it does not connect to Redis or handle secrets.

Install bullmq-specialist

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill