background-jobs
Installation
SKILL.md
Background Jobs
Use this skill when
- Offloading slow work (email, reports, exports)
- Deferred execution with retries
- Scheduling recurring tasks
Do not use this skill when
- Work must be synchronously acknowledged by the requester
- Sub-millisecond tasks
Instructions
- Keep jobs idempotent; retry-safe by design.
- Design for at-least-once: dedupe or tolerate duplicates.
- Set explicit retries, backoff, and timeouts.
- Store job state so progress is observable.
- Route jobs through a queue, not a fragile in-memory loop.
- Handle dead-letter and permanently failing jobs distinctly.
- Track job success/failure metrics for alerting.