backend-background-jobs

backend-background-jobs is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 82 tokens per session (5,848 once invoked), scanned A, original, MIT.

A design for running work outside the main request, using queues and worker processes. It covers retries, delayed or scheduled tasks, duplicate prevention, failure handling, and worker limits.

In plain words
What is it for?
Use it to plan task queues for jobs such as scheduled work, asynchronous processing, chained tasks, or background workers backed by Redis, SQS, or a database.
Why use it?
It keeps long-running or unreliable work from blocking a user request and gives failed jobs a controlled way to retry or be isolated.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to plan task queues for jobs such as scheduled work, asynchronous processing, chained tasks, or background workers backed by Redis, SQS, or a database.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/j4flmao/agent-skills/background-jobs
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 j4flmao/agent-skills --skill background-jobs
Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-skills

Made for: Claude Code, Codex.

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 backend-background-jobs

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/background-jobs/github.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/background-jobs)
Your own site
<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.

agentmods 80×15 button for backend-background-jobs

Your own site · 80×15
<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>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,848 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00082 $0.05848
Opus 5 $0.00041 $0.02924
Sonnet 5 $0.00016 $0.01170
Haiku 4.5 $0.00008 $0.00585

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

Security

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.

skills/backend/universal/background-jobs/SKILL.md · 647 lines

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

Read the full file on GitHub · 647 lines

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. 8d ago First seen · 647 lines · 82 tokens per session scan A b49c73bdf0f4

Subscribe to this mod's changes

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.

Related

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.

yonatangross/orchestkit · 42 tokens

opentelemetry

OpenTelemetry observability patterns: traces, metrics, logs, context propagation, OTLP export, Collector pipelines, and troubleshooting.

bobmatnyc/claude-mpm-skills · 29 tokens

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…

smplkit/mcp · 247 tokens

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…

curiositech/windags-skills · 146 tokens

laravel-queues

Implement robust background job processing with Laravel Queues. Covers job design, Redis queues, Laravel Horizon, retry logic, and job monitoring.

AtulPurohit/Antigravity-Awesome-Skills · 32 tokens

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.

nohunt-bot/fastMCP-example · 44 tokens