.claude/skills/ts-bull-mq/SKILL.md
You are an expert in BullMQ, the high-performance job queue for Node.js built on Redis. You help developers build reliable background processing systems with delayed jobs, rate limiting, prioritization, repeatable cron jobs, job dependencies, concurrency control, and dead-letter handling — powering email sending, image processing, webhook delivery, report generation, and any async workload.
npx skillsauth add eliferjunior/Claude bull-mqInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are an expert in BullMQ, the high-performance job queue for Node.js built on Redis. You help developers build reliable background processing systems with delayed jobs, rate limiting, prioritization, repeatable cron jobs, job dependencies, concurrency control, and dead-letter handling — powering email sending, image processing, webhook delivery, report generation, and any async workload.
import { Queue, Worker, QueueScheduler, FlowProducer } from "bullmq";
import IORedis from "ioredis";
const connection = new IORedis({ host: "localhost", port: 6379, maxRetriesPerRequest: null });
// Define queue
const emailQueue = new Queue("email", { connection });
// Add jobs
await emailQueue.add("welcome", {
to: "[email protected]",
template: "welcome",
data: { name: "Alice" },
}, {
priority: 1, // Lower = higher priority
attempts: 3, // Retry up to 3 times
backoff: { type: "exponential", delay: 2000 },
removeOnComplete: { count: 1000 }, // Keep last 1000 completed
removeOnFail: { age: 7 * 24 * 3600 }, // Keep failed for 7 days
});
// Delayed job
await emailQueue.add("reminder", { userId: 42 }, {
delay: 24 * 60 * 60 * 1000, // 24 hours from now
});
// Repeatable (cron)
await emailQueue.add("digest", {}, {
repeat: { pattern: "0 9 * * 1" }, // Every Monday at 9 AM
});
// Worker
const worker = new Worker("email", async (job) => {
switch (job.name) {
case "welcome":
await sendEmail(job.data.to, job.data.template, job.data.data);
break;
case "reminder":
await sendReminderEmail(job.data.userId);
break;
case "digest":
await sendWeeklyDigest();
break;
}
// Progress reporting
await job.updateProgress(100);
return { sent: true, timestamp: Date.now() };
}, {
connection,
concurrency: 5, // Process 5 jobs simultaneously
limiter: { max: 100, duration: 60000 }, // Rate limit: 100 jobs/min
});
worker.on("completed", (job, result) => console.log(`Job ${job.id} completed`));
worker.on("failed", (job, err) => console.error(`Job ${job?.id} failed: ${err.message}`));
const flow = new FlowProducer({ connection });
await flow.add({
name: "generate-report",
queueName: "reports",
data: { reportId: "monthly-2026-03" },
children: [
{ name: "fetch-sales", queueName: "data", data: { source: "sales" } },
{ name: "fetch-users", queueName: "data", data: { source: "users" } },
{ name: "fetch-metrics", queueName: "data", data: { source: "metrics" } },
],
// Parent job runs only after ALL children complete
});
npm install bullmq ioredis
limiter to respect API rate limits (email providers, webhooks, external APIs)job.updateProgress() for long-running jobs; clients can poll progressworker.close() on SIGTERM; finishes current jobs before exiting@bull-board/express for a web UI showing queue status, job data, and failuresdevelopment
Expert guidance for Fireworks AI, the platform for running open-source LLMs (Llama, Mixtral, Qwen, etc.) with enterprise-grade speed and reliability. Helps developers integrate Fireworks' inference API, fine-tune models, and deploy custom model endpoints with function calling and structured output support.
development
Convert any website into clean, structured data with Firecrawl — API-first web scraping service. Use when someone asks to "turn a website into markdown", "scrape website for LLM", "Firecrawl", "extract website content as clean text", "crawl and convert to structured data", or "scrape website for RAG". Covers single-page scraping, full-site crawling, structured extraction, and LLM-ready output.
tools
Expert guidance for Firebase, Google's platform for building and scaling web and mobile applications. Helps developers set up authentication, Firestore/Realtime Database, Cloud Functions, hosting, storage, and analytics using Firebase's SDK and CLI.
development
When the user needs to build file upload functionality for a web application. Use when the user mentions "file upload," "image upload," "upload endpoint," "multipart upload," "presigned URL," "S3 upload," "file validation," "upload to cloud storage," or "accept user files." Handles upload endpoints, file validation (type, size, magic bytes), cloud storage integration, and upload status tracking. For image/video processing after upload, see media-transcoder.