param087/saas-starter-skills/background-jobs
Claude Code and agent skill by param087/saas-starter-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when work shouldn't run in the request path — offload emails, webhooks, exports, and scheduled tasks to a queue or job runner with retries, idempotency, and dead-letter handling instead of blocking the user.
Install
npx vskill@latest install param087/saas-starter-skills/background-jobsSKILL.md
The same SKILL.md was published earlier as param087/saas-starter-skills/background-jobs.
Background Jobs
Overview
Anything slow, flaky, or scheduled belongs off the request path: sending email, processing uploads, calling third-party APIs, nightly rollups. Use a job system — Inngest or Trigger.dev (serverless-friendly), or BullMQ + Redis (self-hosted) — that gives you retries, backoff, and observability. The request just enqueues and returns; the worker does the work with idempotency so retries are safe.
When to use
- A task takes more than ~1s or calls an external API that can fail.
- Scheduled/recurring work (digests, cleanup, syncing).
- Fan-out work (notify every member of an org).
The pattern (Inngest-style)
Reliability rules
- Idempotent handlers. Key on a stable id so a retry doesn't double-send or double-charge.
- Retries with backoff, then a dead-letter path for poison jobs you can inspect and replay.
- Scope every job to its tenant — pass
orgIdin the payload and re-resolve, never assume. - Schedule with cron triggers for recurring work instead of a hand-rolled timer.
- Keep payloads small — pass ids, fetch fresh data in the worker (avoids stale/oversized events).
Pitfalls
- `await`-ing slow work in the action — blocks the user and couples success to a third party being up.
- Non-idempotent workers — retries duplicate emails/charges. Always key the side effect.
- Fire-and-forget with no retries — transient failures silently drop work; use a real queue.
- Putting secrets/large blobs in the event — reference them; fetch in the worker.
- No visibility — without job logs/metrics you can't tell a stuck queue from an empty one.
Hand-off
Durable async work with retries. transactional-email and file-uploads-and-storage run here; observability-and-errors watches failures and dead-letters.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/background-jobs/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/param087/saas-starter-skills/background-jobs)