Cron Schedule Conflict Checker & Planner

    by Yutaka Ichibangase

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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

    1. Review the diff to ensure the scheduleExpression changes align with your maintenance windows.
    2. Run the scripts/test_batch_schedule.pl script to verify no secondary conflicts were introduced.
    3. Deploy the updated ecschedule.yaml to your AWS environment.
    I analyzed the ecschedule.yaml

    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

    1. Fact extraction: Converts existing schedule files into Prolog facts using provided awk scripts or direct parsing.
    2. Conflict analysis: Runs print_conflicts to identify daily, monthly, or occasional overlaps between specific job groups.
    3. Model definition: Defines placement constraints such as runs, avoid, allow, and interval in a CLP(Z) scratchpad.
    4. Constraint solving: Executes the model via Scryer Prolog to find a valid distribution of start times.
    5. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Write Files
    Read Files
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    The skill automates the detection and resolution of job collisions by converting schedule files into Prolog facts and using CLP(Z) constraint logic to mathematically prove the optimal placement of tasks within your maintenance windows.

    It supports standard Linux crontab, Ansible cron modules, and AWS ecschedule (EventBridge) YAML formats, and it includes logic to normalize timezones between local and UTC schedules.

    You will need a local installation of Scryer Prolog with the clpz library, as the agent utilizes this engine to perform the rigorous mathematical modeling required for collision-free scheduling.

    The package includes the core Scryer Prolog logic files, fact-extraction scripts (awk/parsing tools), a CLP(Z) model scratchpad for defining custom constraints, and documentation on rendering optimized schedules.

    While it handles complex day-of-month and weekday logic, it currently does not support the 'W' (nearest weekday), '#' (nth weekday of the month), or specific year fields.

    Unlike LLMs that may hallucinate time overlaps, this skill uses a formal constraint solver to provide a mathematical guarantee that the generated schedule strictly adheres to your 'avoid' and 'allow' rules.

    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.