- Home
- Skills
- Agents & Orchestration
- Cron Schedule Conflict Checker & Planner
Cron Schedule Conflict Checker & Planner
Find cron jobs that start in the same minute, and place new runs that avoid other jobs and maintenance windows, using Scryer Prolog + CLP(Z).
$9.99
Cron Schedule Conflict Checker & Planner
Example session with this skill installed
Find conflicts between all jobs containing 'backup' in this ecschedule.yaml and move them to start after 02:00 UTC with at least 10 minutes between runs.
- Read your context and instructions
- Compiled the cron schedule conflict
I analyzed the ecschedule.yaml and found 3 backup jobs with daily conflicts at 00:00. I have generated a new schedule that places these jobs after 02:00 UTC with a 10-minute minimum interval.
Optimized Schedule
- name: backup-db-primary
scheduleExpression: cron(0 2 * * ? *)
description: "Primary database backup"
- name: backup-db-replica
scheduleExpression: cron(10 2 * * ? *)
description: "Replica database backup"
- name: backup-assets-s3
scheduleExpression: cron(20 2 * * ? *)
description: "S3 asset sync"
Next steps
- Review the diff to ensure the
scheduleExpressionchanges align with your maintenance windows. - Run the
scripts/test_batch_schedule.plscript to verify no secondary conflicts were introduced. - Deploy the updated
ecschedule.yamlto your AWS environment.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual management of batch job schedules leads to resource spikes, maintenance window violations, and silent job collisions. This skill automates the detection and resolution of scheduling conflicts using Scryer Prolog and CLP(Z) constraint solving.
What it does
- Detects collisions by identifying jobs sharing start minutes across crontabs, Ansible configs, or ecschedule YAML.
- Validates day logic by comparing complex fields like
L(last day of month), weekdays, and specific day-of-month sets. - Automates placement by generating new run times that respect maintenance windows and allowed hour ranges.
- Spreads workloads using mathematical constraints to ensure even distribution of runs and minimum intervals between tasks.
- Normalizes timezones between UTC-based EventBridge cron expressions and local host crontabs to find hidden overlaps.
How it works
- Fact extraction: Converts existing schedule files into Prolog facts using provided
awkscripts or direct parsing. - Conflict analysis: Runs
print_conflictsto identify daily, monthly, or occasional overlaps between specific job groups. - Model definition: Defines placement constraints such as
runs,avoid,allow, andintervalin a CLP(Z) scratchpad. - Constraint solving: Executes the model via Scryer Prolog to find a valid distribution of start times.
- Format rendering: Writes the optimized schedule back to the original source format, merging hours and preserving metadata.
Frameworks & tools
This skill requires Scryer Prolog with library(clpz). It works with standard Linux crontab, Ansible cron modules, and AWS ecschedule YAML formats.
Why this beats prompting it yourself
Generic LLMs struggle with the modular arithmetic of cron overlap, especially when combining day-of-week and day-of-month restrictions. This tool uses a formal constraint solver to prove satisfiability and guarantee that suggested times never violate your specified maintenance windows.
Use cases
- De-conflict sync jobs that hit the same database and cause locking issues.
- Spread high-frequency tasks across a 24-hour window to flatten CPU spikes.
- Migrate schedules from local server time to UTC for cloud migration without shifting effective run times.
- Audit complex crontabs to find redundant rules or jobs that overlap with known system maintenance.
Known limitations
Does not support cron W, #, or year fields. Every-minute rules are skipped during placement because they collide with all other tasks. Requires a local Scryer Prolog installation.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.