claude-forge: Skill for Claude Code

.claude/skills/setup-bullmq/SKILL.md

setup-bullmq is a skill for Claude Code from arunanksharan/claude-forge. It costs 74 tokens per session (761 once invoked), scanned A, original, Unlicense.

A setup guide for BullMQ, a Node.js system for putting background tasks into Redis, an in-memory data store, and processing them with workers. It covers NestJS and Express applications.

In plain words
What is it for?
Use it to add queues and workers for tasks such as emails, billing, scheduled jobs, or long-running processing in a Node.js app.
Why use it?
It lets slow or scheduled work run outside the web request, while providing guidance for retries, duplicate-safe processing, and administration.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is arunanksharan/claude-forge's own configuration. It tells Claude Code how to work on claude-forge itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-forge configures →

Reuse

Borrowing it

Nothing to install: this file belongs to arunanksharan/claude-forge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/arunanksharan/claude-forge/main/.claude/skills/setup-bullmq/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/arunanksharan/claude-forge

Made for: Claude Code.

Wrote 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.

agentmods badge for setup-bullmq

README.md
[![agentmods](https://agentmods.dev/badge/skills/arunanksharan/claude-forge/setup-bullmq/github.svg)](https://agentmods.dev/skills/arunanksharan/claude-forge/setup-bullmq)
Your own site
<a href="https://agentmods.dev/skills/arunanksharan/claude-forge/setup-bullmq"><img src="https://agentmods.dev/badge/skills/arunanksharan/claude-forge/setup-bullmq/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.

agentmods 80×15 button for setup-bullmq

Your own site · 80×15
<a href="https://agentmods.dev/skills/arunanksharan/claude-forge/setup-bullmq"><img src="https://agentmods.dev/badge/skills/arunanksharan/claude-forge/setup-bullmq.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 761 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.00761
Opus 5 $0.00037 $0.00380
Sonnet 5 $0.00015 $0.00152
Haiku 4.5 $0.00007 $0.00076

Measured 10d ago against content hash 5fdf80a0ba3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

setup-bullmq 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 10d ago.

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.

.claude/skills/setup-bullmq/SKILL.md · 41 lines

What it actually says

Set Up BullMQ for Background Jobs (claudeforge)

Follow async-and-queues/bullmq.md and backend/nestjs/05-bullmq-queues.md (Nest-specific) or backend/nodejs-express/05-bullmq-workers.md (Express). Steps:

  1. Confirm with user:
    • Stack: Nest or plain Express?
    • Already have Redis? If not, set up via Docker compose.
    • Use cases: emails, billing, scheduled, long-running?
  2. Install + configure:
    • Nest: pnpm add @nestjs/bullmq bullmq ioredis
    • Express: pnpm add bullmq ioredis
    • Create queue/connection.ts with the IORedis instance (maxRetriesPerRequest: null is required by BullMQ)
  3. Define queues (queue/queues.ts):
    • One Queue per SLA group (emails, billing, long)
    • defaultJobOptions: { removeOnComplete: { age, count }, removeOnFail: { age }, attempts: 3, backoff: { type: 'exponential', delay: 5000 } }
  4. Define processors / workers:
    • Nest: @Processor('emails') class EmailProcessor extends WorkerHost { async process(job) { ... } }
    • Express: new Worker('emails', async (job) => {...}, { connection, concurrency }) in a separate file
    • Idempotency: every job handler checks state before mutating (DB flag, idempotency key, or natural)
    • Use jobId on add() for idempotent enqueueing
  5. Wire into the app:
    • Inject @InjectQueue('emails') private q: Queue (Nest) or import the queue (Express)
    • await q.add('welcome', { userId }, { jobId: \welcome:${userId}` })`
  6. Run workers:
    • Run as separate Node processes (not inside the API process). For PM2: separate apps in ecosystem.config.cjs. For Docker Compose: separate worker-* service.
  7. Monitoring with Bull Board:
    • Install @bull-board/api + @bull-board/express (or @bull-board/nestjs)
    • Mount under /admin/queues BEHIND auth + IP allowlist
  8. Repeatable jobs: at boot, register cron-like jobs with repeat: { pattern: '0 9 * * *' } and jobId: 'unique-id' so they don't duplicate on restart.
  9. Observability:
    • Sentry: worker.on('failed', (job, err) => Sentry.captureException(err, { tags: { queue, job_name } }))
    • OpenTelemetry: auto-instrumentation for ioredis covers most; add manual spans for the job body
  10. Verify: enqueue a job from a route, observe it process, see it in Bull Board.

Workers as separate processes, not in the API. Always make handlers idempotent.

Changes

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.

  1. 10d ago First seen · 41 lines · 74 tokens per session scan A 5fdf80a0ba3d

Subscribe to this mod's changes

setup-bullmq is a skill published in the GitHub repository arunanksharan/claude-forge (2 stars, last pushed 4mo ago), licensed Unlicense. It adds 74 tokens to every session and 761 once invoked, about $0.0004 per session on Opus 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-08-31.

Related

Other skills, from other repositories

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.

rrezartprebreza/spring-boot-skills · 37 tokens

background-job-orchestrator

Expert in background job processing with Bull/BullMQ (Redis), Celery, and cloud queues. Implements retries, scheduling, priority queues, and worker management. Use for async task processing, email campaigns, report generation, batch operations. Activate on "background job", "async task", "queue", "worker", "BullMQ"…

curiositech/some_claude_skills · 95 tokens

nw-sd-patterns

Core distributed systems patterns - load balancing, caching, sharding, consistent hashing, message queues, rate limiting, CDN, Bloom filters, ID generation, replication, conflict resolution, CAP theorem.

nWave-ai/nWave · 43 tokens

cache-strategy

Design and implement caching layers for APIs and web applications using Redis or Memcached. Use when you need to reduce database load, improve response times, or handle traffic spikes. Covers cache-aside, write-through, and write-behind patterns, TTL strategies, cache invalidation, and stampede prevention. Trigger…

TerminalSkills/skills · 88 tokens

bull-mq

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…

TerminalSkills/skills · 76 tokens

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.

jiushiwon/wg-skills · 109 tokens