bullmq-game-queues

bullmq-game-queues is a skill for Claude Code from fcsouza/agent-skills. It costs 84 tokens per session (1,882 once invoked), scanned A, original, MIT.

A guide for using BullMQ to process background jobs in game systems. BullMQ is a tool that puts work into queues so workers can handle it later or in parallel.

In plain words
What is it for?
Use it to build matchmaking, job workers, delayed actions, scheduled tasks, or queued events for a game back end.
Why use it?
It helps keep slow or delayed work separate from the main game process. It also supports scheduled tasks, asynchronous events, and player matchmaking workflows.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the game-dev plugin — 39 skills shipped together

Good fit Use it to build matchmaking, job workers, delayed actions, scheduled tasks, or queued events for a game back end.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fcsouza/agent-skills/bullmq-game-queues
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fcsouza/agent-skills --skill bullmq-game-queues
Clone the repo
git clone --depth 1 https://github.com/fcsouza/agent-skills

Made for: Claude Code.

Or install game-dev, the plugin that ships this one along with the rest of its 39 skills.

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 bullmq-game-queues

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/bullmq-game-queues"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/bullmq-game-queues.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,882 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.00084 $0.01882
Opus 5.5 $0.00034 $0.00753
Sonnet 5.5 $0.00017 $0.00376
Haiku 4.5 $0.00008 $0.00188

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

Security

Grade A, and why

bullmq-game-queues 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 19d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (boilerplate/queues.ts, boilerplate/scheduler.ts, boilerplate/workers.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/bullmq-game-queues/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

BullMQ Game Queues

Working BullMQ 6 code for a game backend. The code in boilerplate/ and templates/ compiles against bullmq 6.7.6. For any API this skill does not cover, read the BullMQ docs at https://docs.bullmq.io.

Setup

bun add bullmq ioredis

BullMQ 6 connects with ioredis by default but lists it only as an optional peer dependency, so install it yourself (https://docs.bullmq.io/guide/connections). redis-game-patterns explains why the bundle uses ioredis.

Then copy the files in the order numbered under Files.

One queue per domain

Queue Holds Why it is separate
matchmaking find-match, cancel Players are waiting on it
game-event match results, action resolution Changes live game state
reward grants, daily login, achievements Must pay exactly once
notification push, in-game mail, email Bound by a provider's send limit
analytics tracking, aggregation Must never slow the others

Separate queues let you scale, pause and drain one domain without touching the rest.

Priority rules

  • Matchmaking stays ahead of analytics because they are separate queues with their own workers: an analytics backlog never sits in front of a matchmaking job. Job priority does not order one queue against another.
  • Use priority only inside one queue, for example to grant purchase rewards before daily-login rewards. A lower number runs first.
  • A job with no priority runs before every prioritized job. In a queue that uses priorities, give every job one.
  • Size each queue's worker concurrency (concurrencySettings in templates/queue-config.ts) to its own load. If analytics workers compete for CPU with matchmaking, run them in other processes.

Idempotent processors

BullMQ retries failed jobs and re-runs stalled ones, so any job can run more than once.

  • Every job that changes player state carries an idempotencyKey. The worker checks it, applies the change and records the key in one database transaction. Checking and marking in two separate writes pays twice if the worker crashes between them.
  • To stop the same job being enqueued twice, give it a custom jobId such as season-end-${seasonId}. A second add with that id is ignored while the first job exists. Ids must not contain colons or be plain integers.
  • Keep each job small: one state change per job. Spawn follow-up jobs (rewards, notifications) instead of doing everything in one processor.
  • Pass ids in job data, not whole records. The worker loads current state from the database.

Read the full file on GitHub · 106 lines

Files

What ships with it

6 files 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.

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. 19d ago Changed · -30 lines · +37 tokens per session facf9c2ad5ef
  2. 3mo ago First seen · 136 lines · 47 tokens per session scan A 439430d0776c

Subscribe to this mod's changes

bullmq-game-queues is a skill published in the GitHub repository fcsouza/agent-skills (29 stars, last pushed today), licensed MIT. It adds 84 tokens to every session and 1,882 once invoked, about $0.0003 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-08-30.

Related

bullmq-game-queues compared with skills from other repositories

bullmq-game-queues next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bullmq-game-queuesfcsouza/agent-skillsSkill29todayMITA84Claude Code
scenario-godot-multiplayerscenario-labs/skillsSkill4.7kyesterdayMITA132Claude Code
league-akari-sgp-data-sourceLeagueAkari/LeagueAkariSkill4.9kyesterdayMITA50Claude Code, Codex
csharp-godotjame581/GodotPrompterSkill1.0k2d agoMITA34Claude Code
web-servicesjame581/GodotPrompterSkill1.0k2d agoMITA64Claude Code
gamedev-multiplayerericrisco/rsc-harnessSkill707yesterdayMITA86Claude Code, Codex
cloudflare-durable-objectssecondsky/claude-skillsSkill2573d agoMITA43Claude Code