backend-scheduling-cron

backend-scheduling-cron is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 101 tokens per session (4,846 once invoked), scanned A, original, MIT.

A guide to running recurring or delayed backend jobs on a schedule, including cron jobs. It covers time zones, coordination between multiple servers, and failure recovery.

In plain words
What is it for?
Use it to configure periodic tasks, distributed schedulers, cron expressions, background jobs, retries, and timezone-aware execution.
Why use it?
It prevents duplicate runs, missed jobs, and incorrect timing when the application runs on several instances or crosses daylight-saving changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions Codex.

Good fit Use it to configure periodic tasks, distributed schedulers, cron expressions, background jobs, retries, and timezone-aware execution.

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

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 backend-scheduling-cron

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/scheduling-cron/github.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/scheduling-cron)
Your own site
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/scheduling-cron"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/scheduling-cron/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 backend-scheduling-cron

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/scheduling-cron"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/scheduling-cron.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,846 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.00101 $0.04846
Opus 5 $0.00051 $0.02423
Sonnet 5 $0.00020 $0.00969
Haiku 4.5 $0.00010 $0.00485

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

Security

Grade A, and why

backend-scheduling-cron 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 6d 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/universal/scheduling-cron/SKILL.md · 525 lines

How it starts

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

Backend Scheduling and Cron

Purpose

Implement distributed cron jobs and scheduled tasks with timezone awareness, leader election, and failure recovery so periodic work runs exactly-once across the cluster. Without distributed coordination, cron jobs on multiple instances cause duplicate execution, data corruption, and resource waste.

Agent Protocol

Trigger

Exact user phrases: "cron", "schedule", "scheduled task", "cron job", "job scheduling", "distributed cron", "cron expression", "timezone", "scheduler", "background job", "periodic task", "cron trigger".

Input Context

  • Job definitions and their schedule (cron expressions).
  • Distributed environment (Kubernetes, multi-instance).
  • Existing infrastructure (Redis, PostgreSQL, ZooKeeper).

Output Artifact

Cron job configuration or scheduler code. No file unless requested.

Response Format

Job: {name}
Schedule: {cron expression}
Timezone: {IANA timezone}
Provider: {built-in|distributed-scheduler|external}

Completion Criteria

  • Cron expression validated.
  • Exactly-once execution guaranteed in multi-instance deployment.
  • Timezone handling correct — DST transitions mapped.
  • Error handling and retry configured.
  • Monitoring and alerting for missed executions.

Max Response Length

3 lines per job. 15 lines for full setup.

Architecture Decision Tree

Which Scheduling Approach?

How many instances run the scheduler?
  ├── Single instance → Use built-in cron (OS-level or in-process)
  │   └── Risk: Single point of failure, no failover
  └── Multiple instances → Distributed scheduling required
      ├── Is the job is critical and must always run?
      │   ├── Yes → Use leader election + distributed lock
      │   └── No → Use low-priority scheduler with best-effort
      └── Do you need complex workflows or dependencies?
          ├── Yes → Use dedicated scheduler (Temporal, Airflow, Quartz)
          └── No → Simple distributed cron is sufficient

Read the full file on GitHub · 525 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. 6d ago First seen · 525 lines · 101 tokens per session scan A 027a972e85d4

Subscribe to this mod's changes

backend-scheduling-cron is a skill published in the GitHub repository j4flmao/agent-skills (22 stars, last pushed 3d ago), licensed MIT. It adds 101 tokens to every session and 4,846 once invoked, about $0.0005 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-09-03.

Related

Other skills, from other repositories

async-jobs

Async job processing patterns for background tasks, Celery workflows, task scheduling, retry strategies, and distributed task execution. Use when implementing background job processing, task queues, or scheduled task systems.

yonatangross/orchestkit · 42 tokens

convex-cron-jobs

Scheduled function patterns for background tasks including interval scheduling, cron expressions, job monitoring, retry strategies, and best practices for long-running tasks.

waynesutton/convexskills · 33 tokens

smplkit

Use smplkit when writing application code that needs feature flags, runtime configuration, dynamic log levels, or audit events — and to operate that same platform from your agent. Two halves that compose. (1) AUTHOR with the smplkit SDKs (Python, TypeScript, Go, Java, C#, Ruby): resolve a feature flag, read a config…

smplkit/mcp · 247 tokens

nestjs-scheduling

Implement distributed cron jobs with Redis-based locking and BullMQ offloading in NestJS. Use when adding @Cron scheduled tasks, preventing duplicate runs across pods, or delegating heavy work to queue workers.

FilippoDeSilva/skills · 44 tokens

agent-self-scheduling

Schedule AI agent runs with cron, loops, or external clocks while avoiding unsafe tight autonomous timers.

sickn33/agentic-awesome-skills · 24 tokens

huawei-cloud-functiongraph-trigger-create

Create and configure scheduled TIMER triggers for Huawei Cloud FunctionGraph functions using Quartz Cron expressions. Use this skill when users ask to create triggers, schedule function execution, set up periodic tasks, or configure timers for functions. Triggered by keywords like "create trigger", "set up trigger"…

huaweicloud/huaweicloud-skills · 129 tokens