Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/TerminalSkills/skillsnpx agentmods add skills/terminalskills/skills/bull-mqWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/terminalskills/skills/bull-mq)<a href="https://agentmods.dev/skills/terminalskills/skills/bull-mq"><img src="https://agentmods.dev/badge/skills/terminalskills/skills/bull-mq/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/terminalskills/skills/bull-mq"><img src="https://agentmods.dev/badge/skills/terminalskills/skills/bull-mq.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00100 | $0.02694 |
| Opus 5.5 | $0.00040 | $0.01078 |
| Sonnet 5.5 | $0.00020 | $0.00539 |
| Haiku 4.5 | $0.00010 | $0.00269 |
Grade A, and why
bull-mq scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.
BullMQ — Redis-Based Job Queue for Node.js
Overview
BullMQ moves slow or unreliable work out of the request path. A Queue adds jobs, one or more Workers (usually separate processes) take them, and QueueEvents observes what happened. Jobs survive restarts because they live in Redis. Features: delays, priorities, retries with backoff, global rate limits, deduplication, job schedulers for recurring work, and FlowProducer for trees of dependent jobs.
Version notes (checked October 2026, bullmq 6.3.x):
- BullMQ 6 (July 2026) adds pluggable backends: Redis stays the default, PostgreSQL is optional via
createPostgresBackend. ioredisis no longer a dependency. Install it yourself:npm install bullmq ioredis. Theredispackage (node-redis) and Bun's built-in Redis client also work through adapters, but ioredis is what BullMQ creates by default.- Legacy repeatable jobs are gone.
add(name, data, { repeat }),getRepeatableJobs()andremoveRepeatable()were replaced by job schedulers (upsertJobScheduler). In a test against 6.3.11 a leftoverrepeatoption was accepted without error but created no schedule; the job simply ran once. QueueSchedulerwas removed in BullMQ 2; delayed jobs, retries and stalled-job recovery work without it. Old code that imports it will not compile.Queue#client,Worker#blockingClientand thedebounceoption are removed (usededuplication), andqueue.resume()must be awaited.
Instructions
Queue, worker and retries
import { Queue, Worker } from "bullmq";
import IORedis from "ioredis";
// Workers need maxRetriesPerRequest: null so Redis hiccups do not crash blocking commands
const connection = new IORedis(process.env.REDIS_URL ?? "redis://127.0.0.1:6379", { maxRetriesPerRequest: null });
export const emailQueue = new Queue("email", { connection });
await emailQueue.add(
"welcome",
{ to: "[email protected]", template: "welcome" },
{
priority: 1, // lower number = higher priority
attempts: 5, // total tries, including the first
backoff: { type: "exponential", delay: 2000 },
removeOnComplete: { count: 1000 }, // keep the last 1000 finished jobs
removeOnFail: { age: 7 * 24 * 3600 }, // keep failures for 7 days
},
);
await emailQueue.add("reminder", { userId: 42 }, { delay: 24 * 60 * 60 * 1000 }); // run in 24 h
const worker = new Worker(
"email",
async (job) => {
if (job.name === "welcome") await sendEmail(job.data.to, job.data.template);
if (job.name === "reminder") await sendReminder(job.data.userId);
await job.updateProgress(100);
return { sent: true }; // stored as job.returnvalue
},
{ connection, concurrency: 5, limiter: { max: 100, duration: 60_000 } }, // 100 jobs/min across all workers
);
worker.on("completed", (job) => console.log(`${job.name} ${job.id} done`));
worker.on("failed", (job, err) => console.error(`${job?.name} ${job?.id} failed: ${err.message}`));
worker.on("error", (err) => console.error("worker error", err)); // without a listener errors only reach stderr
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · -5 lines 9351746f68c1
- 22d ago Changed · +59 lines · +24 tokens per session 32fd911e7912
- 1mo ago First seen · 127 lines · 76 tokens per session scan A c8a635ced88b
bull-mq is a skill published in the GitHub repository TerminalSkills/skills (179 stars, last pushed today), licensed Apache-2.0. It adds 100 tokens to every session and 2,694 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.
Other skills, from other repositories
using-redis-token-buckets
Use when adding a bucket-like rate limit backed by Redis: a per-caller budget with burst capacity and continuous refill, a refund path for requests that did no work, or a limit whose Retry-After must be a real wait rather than a window edge. posthog/tokenbucket.py provides an atomic Lua token bucket (consume, refund…
spring-data-redis
Use when implementing caching, session storage, rate limiting, or any Redis integration. Covers cache-aside pattern, key naming, TTL strategy, and serialization config.
using-redis-token-buckets
Use when adding a bucket-like rate limit backed by Redis: a per-caller budget with burst capacity and continuous refill, a refund path for requests that did no work, or a limit whose Retry-After must be a real wait rather than a window edge. posthog/tokenbucket.py provides an atomic Lua token bucket (consume, refund…
python-redis-module-skill
A Python integration guide for adding Redis to an existing FastAPI project. Redis is a fast shared data store commonly used for temporary data, sessions, locks, counters, and messages.
springboot-redis-module-skill
A Spring Boot integration module for Redis, a fast data store often used for temporary data, shared login sessions, coordination between servers, request limits, and message streams. It is intended for an existing Spring Boot project.
spring-boot-cache
Provides patterns for implementing Spring Boot caching: configures Redis/Caffeine/EhCache providers with TTL and eviction policies, applies @Cacheable/@CacheEvict/@CachePut annotations, validates cache hit/miss behavior, and exposes metrics via Actuator. Use when adding caching to Spring Boot services, configuring…