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.
npx skills add j4flmao/agent-skills --skill background-jobsgit clone --depth 1 https://github.com/j4flmao/agent-skillsWrote 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/j4flmao/agent-skills/background-jobs)<a href="https://agentmods.dev/skills/j4flmao/agent-skills/background-jobs"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/background-jobs/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/j4flmao/agent-skills/background-jobs"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/background-jobs.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.00082 | $0.05848 |
| Opus 5 | $0.00041 | $0.02924 |
| Sonnet 5 | $0.00016 | $0.01170 |
| Haiku 4.5 | $0.00008 | $0.00585 |
Grade A, and why
backend-background-jobs 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 647 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Backend Background Jobs
Purpose
Design reliable background job processing with queue topology, retry, concurrency, and monitoring. Every job must be idempotent, retryable, observable, and gracefully handled on failure.
Agent Protocol
Trigger
Exact user phrases: "background job", "task queue", "worker", "job processing", "cron job", "scheduled task", "async task", "job retry", "queue worker", "Sidekiq", "Celery", "Bull", "delayed job", "job priority", "job scheduling".
Input Context
- Job types (fire-and-forget, delayed, scheduled, chained).
- Queue backend (Redis, SQS, database table, RabbitMQ).
- Job duration (affects concurrency and timeout).
- Retry requirements (max retries, retry interval, irrecoverable failure definition).
Output Artifact
Job and worker design as formatted text.
Response Format
// Job contract (interface/type)
// Worker implementation outline
# Queue topology config
# Retry policy
# Concurrency rules
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output.
Completion Criteria
- Job defined with idempotency key and full payload schema
- Retry strategy with exponential backoff and jitter configured
- Queue topology defined (default, priority, dead letter, scheduling queues)
- Worker concurrency and graceful shutdown configured
- Monitoring hooks for success/failure/metrics
- Scheduled/cron jobs defined with timezone and error notification
Architecture Decision Trees
Queue Backend Selection
What infrastructure do you already have?
├── Redis already in stack?
│ ├── Jobs < 100KB, sub-minute duration?
│ │ ├── Yes → Bull/BullMQ (built-in priority, delay, DLQ)
│ │ └── No → Consider RabbitMQ for complex routing
│ └── Need persistence and high throughput?
│ └── Bull with Redis Cluster or SQS
├── AWS-native?
│ ├── Jobs fit in 256KB? → SQS (fully managed, unlimited throughput)
│ ├── Need FIFO ordering? → SQS FIFO (exactly-once, 300 TPS)
│ └── Need long-running jobs? → SQS + Step Functions
├── Need transactional consistency with DB?
│ └── Database-backed queue (simplest setup, no infra)
└── Need complex routing (topic exchanges, headers)?
└── RabbitMQ
What ships with it
9 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.
- references/background-jobs-advanced.md 5.1 KB
- references/background-jobs-chaining.md 3.8 KB
- references/background-jobs-fundamentals.md 3.4 KB
- references/job-monitoring.md 3.4 KB
- references/job-patterns.md 4.9 KB
- references/job-scheduling.md 7.4 KB
- references/job-testing.md 6.8 KB
- references/job-types.md 7.0 KB
- references/queue-setup.md 7.8 KB
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.
- 8d ago First seen · 647 lines · 82 tokens per session scan A b49c73bdf0f4
backend-background-jobs is a skill published in the GitHub repository j4flmao/agent-skills (23 stars, last pushed 5d ago), licensed MIT. It adds 82 tokens to every session and 5,848 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-09-03.
Other skills, from other repositories
async-jobs
Async job processing patterns for background tasks, Celery workflows, task scheduling, retry strategies, and distributed task execution. Use when implementing background job processing, task queues, or scheduled task systems.
opentelemetry
OpenTelemetry observability patterns: traces, metrics, logs, context propagation, OTLP export, Collector pipelines, and troubleshooting.
smplkit
Use smplkit when writing application code that needs feature flags, runtime configuration, dynamic log levels, or audit events — and to operate that same platform from your agent. Two halves that compose. (1) AUTHOR with the smplkit SDKs (Python, TypeScript, Go, Java, C#, Ruby): resolve a feature flag, read a config…
background-job-queue-design
Use when designing a background-job system, choosing between BullMQ / Sidekiq / RQ / Temporal / SQS, deciding queue-vs-workflow, sizing concurrency vs rate limits, building dead-letter queues, or making handlers idempotent. Triggers: jobs running twice on retry, lost jobs after worker crash, DLQ filling up, Redis OOM…
laravel-queues
Implement robust background job processing with Laravel Queues. Covers job design, Redis queues, Laravel Horizon, retry logic, and job monitoring.
async-job
Fire off a long-running API job that returns a key immediately and writes its result to a database, then collect that result later by key. Use for work that must not occupy the model while it runs.