scheduled-jobs

scheduled-jobs is a skill for Claude Code from arjunprabhulal/devops-skills. It costs 121 tokens per session (1,457 once invoked), scanned A, original, MIT.

Guidance for running automatic tasks on a schedule, such as cron or Kubernetes CronJob tasks. It covers duplicate runs, missed runs, failures, alerts, time zones, and daylight-saving changes.

In plain words
What is it for?
Use it to design reliable scheduled jobs, prevent overlapping executions, handle retries safely, and monitor whether runs happened.
Why use it?
Scheduled tasks run without anyone watching them, so failures, duplicate runs, or incorrect times can go unnoticed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the devops-skills plugin — 56 skills shipped together

Good fit Use it to design reliable scheduled jobs, prevent overlapping executions, handle retries safely, and monitor whether runs happened.

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

Made for: Claude Code.

Or install devops-skills, the plugin that ships this one along with the rest of its 56 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/arjunprabhulal/devops-skills/scheduled-jobs"><img src="https://agentmods.dev/badge/skills/arjunprabhulal/devops-skills/scheduled-jobs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,457 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.
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.00121 $0.01457
Opus 5 $0.00060 $0.00728
Sonnet 5 $0.00024 $0.00291
Haiku 4.5 $0.00012 $0.00146

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

Security

Grade A, and why

scheduled-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 11d 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/automation/scheduled-jobs/SKILL.md · 113 lines

How it starts

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

Scheduled Jobs

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.

1. Make the job idempotent, not just retry-friendly

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.

  • Key the job's effect on the scheduled time or a run ID, not on "whatever the current time is when it happens to execute" — a job that computes "yesterday" from now() breaks if it runs late.
  • Make writes upserts, not appends — a job that inserts a daily summary row should overwrite today's row if it runs twice, not create two.
  • Verify against the last successful run's output, not just "did the command exit zero" — exit zero with half the work done is a false success.

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.

2. Prevent overlapping runs explicitly

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.

  • Use a lock with a TTL — a file lock, a database row, a distributed lock — so a second scheduled fire while one is still running skips or queues instead of racing.
  • Set the TTL longer than the worst-case run time, or the lock expires mid-run and a second instance starts anyway.
  • Log and alert on a skipped-due-to-overlap event — it's not a failure, but a pattern of skips means the job's interval no longer fits its actual runtime.

Read the full file on GitHub · 113 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 113 lines · 121 tokens per session scan A 441581bcd6cc

Subscribe to this mod's changes

scheduled-jobs is a skill published in the GitHub repository arjunprabhulal/devops-skills (4 stars, last pushed 16d ago), licensed MIT. It adds 121 tokens to every session and 1,457 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

google-cloud-solution-guided-gke-ai-migration

Guides the migration of existing AI workloads (Cloud Run, Gemini API, Gemini Enterprise Agent Platform) to self-hosted GKE inference using gcloud and kubectl. Use when the user has an existing AI inference workload (on Cloud Run, the Gemini API, Gemini Enterprise Agent Platform, or a custom VM) and wants to move it to…

google/skills · 157 tokens

agent-platform-deploy

Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resources by undeploying models and deleting endpoints. Use when asked to actively deploy a model, list the Model Garden CATALOG of available models, check if a…

google/skills · 193 tokens

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 tokens

gke-alert-configuration

Configures alerting policies in Terraform for Google Kubernetes Engine (GKE) clusters, workloads, and services using PromQL and Google Cloud Managed Service for Prometheus. Use when writing, analyzing, validating, or deploying Terraform alerting policies to monitor GKE service latency, traffic, error rates using…

google/skills · 120 tokens

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

google-cloud-solution-n-tier-serverless-web-app

Assists in designing and implementing secure n-tier serverless web applications and microservices on Google Cloud. Use when users need architecture designs, security checklists, Terraform code, or deployment guidance for multi-tier serverless apps, regional data residency / European sovereignty compliance, zero-trust…

google/skills · 91 tokens