background-jobs

background-jobs is a skill for Claude Code, Codex from nimadorostkar/Claude-Skills-collection. It costs 41 tokens per session (1,039 once invoked), scanned A, original, MIT.

Guidance for moving slow or retryable work out of a web request and into background jobs. It covers queues, workers, retries, scheduling, duplicate runs, and monitoring.

In plain words
What is it for?
Use it to design email sending, exports, webhooks, media processing, and scheduled tasks. It also helps define retry rules, dead-letter handling, and queue alerts.
Why use it?
It helps prevent work from being lost when a request times out and reduces problems such as duplicate effects, stuck queues, and failed jobs that go unnoticed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design email sending, exports, webhooks, media processing, and scheduled tasks. It also helps define retry rules, dead-letter handling, and queue alerts.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/background-jobs"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/background-jobs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,039 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.00041 $0.01039
Opus 5 $0.00020 $0.00519
Sonnet 5 $0.00008 $0.00208
Haiku 4.5 $0.00004 $0.00104

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

Security

Grade A, and why

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 12d 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/background-jobs/SKILL.md · 99 lines

How it starts

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

Background Jobs

Purpose

Move work out of the request path without losing it. A job system is a distributed system with a friendly interface; the failure modes are the same, and they are hidden until they are not.

When to Use

  • Work that is slow, retriable, or must survive a request timeout: emails, exports, webhooks, media processing.
  • Scheduled and recurring work.
  • Diagnosing duplicate side effects, stuck queues, or jobs that silently disappear.

Capabilities

  • Queue and worker design, including priority and isolation.
  • Idempotency and exactly-once effects.
  • Retry policy: backoff, jitter, attempt limits, dead-letter handling.
  • Scheduling: cron jobs, delayed jobs, and deduplicating them across instances.
  • Observability: queue depth, age, failure rate.

Inputs

  • The work to be done and whether it can safely run twice.
  • Latency expectations: seconds, minutes, or overnight.
  • Volume, and how bursty it is.

Outputs

  • Job handlers that are idempotent by construction.
  • Explicit retry and DLQ policies per job type.
  • Alerts on queue depth and oldest-message age.

Workflow

  1. Make it idempotent first — Before anything else. A job will run twice; design so that this is harmless. Key the side effect, not the invocation.
  2. Pass identifiers, not objects — Enqueue {"order_id": "..."}, not a serialized order. By the time the job runs, the object may be stale.
  3. Set the retry policy per job — A transient network failure deserves exponential backoff and ten attempts. A validation failure deserves zero retries and a DLQ.
  4. Isolate the queues — A flood of low-priority image resizes must not delay password-reset emails. Separate queues, separate workers.
  5. Deduplicate scheduled work — With multiple instances, every instance's scheduler fires. Use a lock keyed on the job name and window.
  6. Alert on age, not just depth — A queue with 10 messages that are 3 hours old is a worse signal than a queue with 10,000 that are 5 seconds old.

Read the full file on GitHub · 99 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. 12d ago First seen · 99 lines · 41 tokens per session scan A 33a8c8a808e9

Subscribe to this mod's changes

background-jobs is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (26 stars, last pushed 24d ago), licensed MIT. It adds 41 tokens to every session and 1,039 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories