/devops-skills:scheduled-jobsfrom devops-skills
Covers cron and scheduled job best practices: idempotency, preventing overlapping runs, monitoring for missed/failed runs, alerting on silence, and handling time zones and DST transitions. Use when writing cron jobs or Kubernetes CronJobs, debugging duplicate/missed runs, or investigating DST-related issues.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A scheduled job is unattended by design — nobody watches it fire, which means nobody notices when it stops firing, fires twice, or fires at the wrong time until the downstream effect shows up days later as a data gap or a stale report. Every property that makes cron convenient (fire-and-forget) is also what makes it dangerous without deliberate guardrails.
Design a scheduled job assuming nobody is watching it run — because nobody is, until it breaks.
For cron syntax, DST pitfalls, locking, and Kubernetes CronJob settings, read
references/cron-patterns.md.
A scheduler that fires a job that's already running, or re-fires after a timeout that wasn't
actually a hang, needs the job itself to tolerate a duplicate execution. This is the same
idempotency discipline from scripting-automation, but scheduled jobs need it more: nobody is
present to notice a duplicate run happened.
now() breaks if it runs
late.Done when: manually re-triggering the job for a time slot that already ran produces the same result as the original run, not a duplicate or a corruption.
A job that takes longer than its interval will eventually have two instances running at once — both writing, both reading, both assuming they're the only one. This is one of the most common causes of scheduled-job data corruption, and it's entirely preventable with an explicit lock.
Done when: two overlapping scheduled fires cannot both execute the job body at the same time, and a skip due to overlap is visible, not silent.
The failure mode that hurts most is silence — a job that used to run nightly stops running, and nothing alerts because there's no failed run to alert on, just an absent one. Monitoring "did the job fail" is not the same as monitoring "did the job run."
# dead man's switch: job must check in within its expected window, or this pages
- alert: NightlyJobMissed
expr: time() - job_last_success_timestamp{job="nightly-rollup"} > 26 * 3600
labels: {severity: page}
alerting for the tuning discipline behind that threshold.Done when: every scheduled job has a heartbeat-based check that pages when the job hasn't succeeded within its expected window, independent of the scheduler's own health.
A job scheduled in local time silently shifts by an hour twice a year, and "silently" is the operative word — nothing errors, the job just runs at the wrong wall-clock time relative to whatever business process it's supporting. This is one of the few scheduling bugs that's invisible in testing and only shows up on the transition date, months after deployment.
Done when: the job's schedule is either UTC-based or explicitly DST-aware, and both spring- forward and fall-back transitions have been checked against the intended fire time.
A cron job failing silently into /dev/null is the default in a lot of legacy setups, and it means
the first sign of trouble is the downstream consumer of the job's output noticing something's
stale or missing — far later than the job's own exit code would have told you.
alerting for severity
routing — not to an email nobody reads.Done when: a failed scheduled run pages or tickets through the same path as any other production failure, with enough context to start triage immediately.
State the job's idempotency guarantee, the overlap-prevention mechanism, and whether a dead man's switch monitors for missed runs independent of the scheduler.
Name the honest gap — usually a missed-run monitor that hasn't been added yet, or a schedule that's never been checked against a DST transition — rather than claiming the job is fully unattended-safe.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`.npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills