bullmq
Skill1 starsChanged 3 months agoMITView on GitHub
Build, review, debug, test, operate, or migrate BullMQ Node.js/TypeScript Redis job queues with current docs. Use for bullmq 5.x, Queue, Worker, QueueEvents, FlowProducer, Job, Redis/ioredis connections, createNodeRedisClient, createBunRedisClient, shared connections, prefixes, Redis Cluster hash tags, JobsOptions, priorities, delay, jobId, attempts, backoff, UnrecoverableError, DelayedError, RateLimitError, WaitingChildrenError, stalled jobs, lockDuration, concurrency, sandboxed processors, worker threads, delayed jobs, upsertJobScheduler, repeatable/cron jobs, rate limiting, deduplication debounce throttle keepLastIfActive, parent-child flows, getChildrenValues, failParentOnFailure, ignoreDependencyOnFailure, removeDependencyOnFailure, continueParentOnFailure, removeOnComplete/removeOnFail, graceful shutdown, NestJS @nestjs/bullmq, Bull Board, BullMQ Pro vs OSS, and production Redis queue ops or worker testing.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Ghost7802/awesome-api-skillstheir own version, first seen Nov 29, 2026
- tejastn10/workbenchtheir own version, first seen Oct 13, 2026
- zhe-qi/clhoria-templatetheir own version, first seen Oct 8, 2026
- emirce/skillstheir own version, first seen May 26, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- zhe-qi/clhoria-template★ 193same name
- Ghost7802/awesome-api-skills★ 13same name
- emirce/skills★ 1same name
- tejastn10/workbench★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository81 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- base-uiSkill
- better-authSkill
- brainstormSkill
- bunSkill
- clickhouseSkill
- clone-to-tempSkill
- compound-uiSkill
- copywritingSkill
- create-durable-planSkill
- d3Skill
- date-fnsSkill
- decimal-jsSkill
- deduplicateSkill
- design-engineerSkill
- designSkill
- drizzle-ormSkill
- effectSkill
- elysia-architectureSkill
- elysiaSkill
- evlogSkill
- feedsmithSkill
- grokSkill
- handoffSkill
- heyapiSkill
- impitSkill
- intlayerSkill
- jsdocSkill
- kafkaSkill
- kill-legacySkill
- legend-stateSkill
- loopSkill
- mantine-hooksSkill
- mobbinSkill
- motionSkill
- oxfmtSkill
- oxlintSkill
- permixSkill
- plain-languageSkill
- playwrightSkill
- react-boundariesSkill
- react-emailSkill
- reactSkill
- reorganizeSkill
- researchSkill
- schema-dtsSkill
- sentrySkill
- seoSkill
- setup-competitors-mdSkill
- setup-copywriting-mdSkill
- setup-icp-mdSkill
- setup-project-mdSkill
- simplify-layoutSkill
- storybookSkill
- subagentsSkill
- tailwindSkill
- tailwind-variantsSkill
- takumiSkill
- tanstack-chartsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when work touches BullMQ Redis queues, workers, flows, retries/scheduling, NestJS BullMQ, or Pro-vs-OSS decisions.
- Distinctive: line 16
Default job options, schedulers, rate limits, dedupe usage, Nest module registration if present.
- Distinctive: line 25
Verify behavior at the narrowest useful boundary (processor unit), then queue/worker integration.
- Very specific: line 29
Treat Redis as shared infrastructure.
- Very specific: line 33
Prefer FlowProducer for parent-child dependency graphs.
- Very specific: line 39
Prefer queue.upsertJobScheduler over legacy repeat / QueueScheduler for cron/interval factories.
- Distinctive: line 40
Do not recommend BullMQ Pro-only APIs (groups, group rate limits, batches, observables) unless the project already uses Pro.
- Very specific: line 41
Keep processors thin and non-blocking on the event loop.
- Distinctive: line 45
Prefer repository-owned commands.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
BullMQ
Use this skill when work touches BullMQ Redis queues, workers, flows, retries/scheduling, NestJS BullMQ, or Pro-vs-OSS decisions.
Workflow
- Inspect the local BullMQ surface before changing code:
- Package versions for
bullmq,@nestjs/bullmqif present, Redis clients (ioredis,redis), Node/Bun, and TypeScript. - Connection shape: options object vs shared client vs adapters (
createNodeRedisClient,createBunRedisClient);prefix; Redis DB index. - Producers (
Queue,FlowProducer) vs consumers (Worker); process isolation (inline vs sandboxed file / worker threads). - Default job options, schedulers, rate limits, dedupe usage, Nest module registration if present.
- Package versions for
- Refresh current official docs when the task depends on latest APIs, version drift, Pro features, adapters, or Nest wrappers. Start from source-map.md.
- Route the work to the focused references:
- Setup, Redis connections, Queue, Worker, QueueEvents: setup-connections.md.
- Job lifecycle and JobsOptions: jobs-options.md.
- Parent-child flows / FlowProducer: flows.md.
- Retries, delays, job schedulers, rate limits, dedupe: retries-scheduling-limits.md.
- Ops, testing, NestJS, Pro vs OSS, polyglot: production-ops-integrations.md.
- Preserve the repository's existing connection factories, Nest modules, and deployment topology unless the user explicitly asks for a migration.
- Verify behavior at the narrowest useful boundary (processor unit), then queue/worker integration.
Core Judgment
- Treat Redis as shared infrastructure. Reuse connection options or factories deliberately; Workers and QueueEvents still duplicate connections for blocking commands, so the client must support
duplicate(). - Attach
errorlisteners onQueue,Worker,QueueEvents, andFlowProducer. Unhandled connection errors crash Node. - Design processors as idempotent. Jobs can retry, stall after lock loss, or run more than once—side effects need safe keys or transactional checks.
- Set
attemptsandbackoffintentionally. ThrowUnrecoverableErrorfor poison/permanent failures; throwErrorobjects (not strings) from processors. - Prefer
FlowProducerfor parent-child dependency graphs. Do not hand-roll “wait for children” with races across queues. Flow job opts omitrepeat,deduplication, anddebounce. Pick child failure opts deliberately (failParentOnFailure,ignoreDependencyOnFailure,removeDependencyOnFailure,continueParentOnFailure). - Rate limiting is global per queue across workers. Do not resurrect removed patterns (
QueueScheduler, pre-v3 groupKey rate limits) on BullMQ 5.x. Group rate limits are Pro-only. - Deduplication needs a stable
deduplication.id. Choose simple vs throttle (ttl) vs debounce (extend/replace+ delay) vskeepLastIfActivefor the product semantics. - Priority: lower number wins among prioritized jobs (
1..2097151); unset/0is unprioritized and is processed before any prioritized job. - Tune
removeOnComplete/removeOnFail(age or count keep policies). Unbounded completed/failed sets grow Redis without bound. Never use iorediskeyPrefix; use BullMQprefix(brace hash tags on Cluster). - Close workers gracefully on shutdown (
worker.close()). Killing processes mid-lock causes stalls and duplicate work unless ops expect that window. - Prefer
queue.upsertJobSchedulerover legacyrepeat/QueueSchedulerfor cron/interval factories. Prefer@nestjs/bullmqover legacy@nestjs/bull. - Do not recommend BullMQ Pro-only APIs (groups, group rate limits, batches, observables) unless the project already uses Pro. Call the boundary out explicitly.
- Keep processors thin and non-blocking on the event loop. Use sandboxed processors /
useWorkerThreadswhen CPU-heavy or crash-isolating work is required. Jobdatais plaintext in Redis — avoid secrets or encrypt fields.
Verification
Prefer repository-owned commands. For meaningful BullMQ changes, cover the relevant subset:
- Typecheck Queue/Worker/FlowProducer options, job
data/returnvaluetypes, and Nest injection tokens if used. - Unit-test processor success, retryable failure,
UnrecoverableError, and progress updates in isolation. - Integration test against Redis: add → process → complete/fail; assert job state transitions.
- Delayed/scheduler tests with short intervals; assert no duplicate schedules after redeploy when that matters (
upsertJobScheduler). - Rate-limit / dedupe tests: assert ignored/replaced/deferred behavior and any
deduplicatedevents. - Flow tests: children complete before parent; parent reads
getChildrenValues; child failure policy (failParentOnFailure/ignoreDependencyOnFailure/removeDependencyOnFailure/continueParentOnFailure) matches product intent. - Stall/lock smoke when changing
lockDuration,stalledInterval,maxStalledCount, or long-running processors. - Graceful-shutdown smoke: SIGTERM/
closepath finishes in-flight work without unexpected orphaned locks beyond the stall window. - NestJS module smoke: queue registration,
WorkerHostprocessors, and FlowProducer injection when Nest is in play. - Redis growth check when changing retention (
removeOnComplete/removeOnFail) or adding high-throughput queues.
Report which checks ran, which did not, and any Pro/OSS or package-version assumptions that remain.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

