Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Cron to systemd Timers Converter

    by Saizul Amin

    1

    This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.

    Free

    Security scanned
    Cron to systemd Timers Converter

    Cron to systemd Timers Converter

    Example session with this skill installed

    Run the Cron to systemd Timers Converter skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the cron to systemd

    Here is what the Cron to systemd Timers Converter skill produced.

    Demo: real, unedited output of the skill's bundled script on the test fixture that ships with its source repo.

    Output

    
    # ---- sync-feeds: cron '*/15 * * * *' ----
    # warning: MAILTO has no systemd equivalent; use OnFailure= with a notify unit
    # /etc/systemd/system/sync-feeds.service
    [Unit]
    Description=sync-feeds (converted from cron: */15 * * * *)
    
    [Service]
    Type=oneshot
    Environment="PATH=/usr/local/bin:/usr/bin:/bin"
    ExecStart=/usr/local/bin/sync-feeds --quiet
    Nice=10
    
    # /etc/systemd/system/sync-feeds.timer
    [Unit]
    Description=Timer for sync-feeds
    
    [Timer]
    OnCalendar=*-*-* *:00/15:00
    AccuracySec=1min
    
    [Install]
    WantedBy=timers.target
    
    # ---- report: cron '30 2 * * 1-5' ----
    # warning: output redirection is no longer needed: stdout/stderr go to the journal
    # warning: MAILTO has no systemd equivalent; use OnFailure= with a notify unit
    # /etc/systemd/system/report.service
    [Unit]
    Description=report (converted from cron: 30 2 * * 1-5)
    
    [Service]
    Type=oneshot
    Environment="PATH=/usr/local/bin:/usr/bin:/bin"
    ExecStart=/bin/sh -c "/home/deploy/bin/report.sh > /dev/null 2>&1"
    Nice=10
    
    # /etc/systemd/system/report.timer
    [Unit]
    Description=Timer for report
    
    [Timer]
    OnCalendar=Mon..Fri *-*-* 02:30:00
    AccuracySec=1min
    
    [Install]
    WantedBy=timers.target
    
    # ---- rotate: cron '0 4 1,15 * 0' ----
    # warning: cron runs this job when day-of-month OR day-of-week matches; emitted two OnCalendar= lines (systemd ORs them)
    # warning: MAILTO has no systemd equivalent; use OnFailure= with a notify unit
    # /etc/systemd/system/rotate.service
    [Unit]
    Description=rotate (converted from cron: 0 4 1,15 * 0)
    
    [Service]
    Type=oneshot
    Environment="PATH=/usr/local/bin:/usr/bin:/bin"
    ExecStart=/usr/local/bin/rotate
    Nice=10
    
    # /etc/systemd/system/rotate.timer
    [Unit]
    Description=Timer for rotate
    
    [Timer]
    OnCalendar=*-*-01,15 04:00:00
    OnCalendar=Sun *-*-* 04:00:00
    AccuracySec=1min
    
    [Install]
    WantedBy=timers.target
    
    # ---- cleanup: cron '@weekly' ----
    # warning: MAILTO has no systemd equivalent; use OnFailure= with a notify unit
    # /etc/systemd/system/cleanup.service
    [Unit]
    Description=cleanup (converted from cron: @weekly)
    
    [Service]
    Type=oneshot
    Environment="PATH=/usr/local/bin:/usr/bin:/bin"
    ExecStart=/usr/local/bin/cleanup
    Nice=10
    
    # /etc/systemd/system/cleanup.timer
    [Unit]
    Description=Timer for cleanup
    
    [Timer]
    OnCalendar=Sun *-*-* 00:00:00
    AccuracySec=1min
    
    [Install]
    WantedBy=timers.target
    
    # ---- warm-cache: cron '@reboot' ----
    # warning: @reboot became OnBootSec=1min; consider a normal service with WantedBy=multi-user.target
    # warning: MAILTO has no systemd equivalent; use OnFailure= with a notify unit
    # /etc/systemd/system/warm-cache.service
    [Unit]
    Description=warm-cache (converted from cron: @reboot)
    
    [Service]
    Type=oneshot
    Environment="PATH=/usr/local/bin:/usr/bin:/bin"
    ExecStart=/usr/local/bin/warm-cache
    Nice=10
    
    # /etc/systemd/system/warm-cache.timer
    [Unit]
    Description=Timer for warm-cache
    
    [Timer]
    OnBootSec=1min
    AccuracySec=1min
    
    [Install]
    WantedBy=timers.target
    
    # ---- date: cron '5 0 * * *' ----
    # warning: MAILTO has no systemd equivalent; use OnFailure= with a notify unit
    # /etc/systemd/system/date.service
    [Unit]
    Description=date (converted from cron: 5 0 * * *)
    
    [Service]
    Type=oneshot
    Environment="PATH=/usr/local/bin:/usr/bin:/bin"
    ExecStart=/bin/sh -c "date +%%F >> /var/log/stamp.log"
    Nice=10
    
    # /etc/systemd/system/date.timer
    [Unit]
    Description=Timer for date
    
    [Timer]
    OnCalendar=*-*-* 00:05:00
    AccuracySec=1min
    
    [Install]
    WantedBy=timers.target
    
    Check, then install (you run these):
      systemd-analyze calendar --iterations=3 '*-*-* *:00/15:00'
      systemd-analyze calendar --iterations=3 'Mon..Fri *-*-* 02:30:00'
      systemd-analyze calendar --iterations=3 '*-*-01,15 04:00:00'
      systemd-analyze calendar --iterations=3 'Sun *-*-* 04:00:00'
      systemd-analyze calendar --iterations=3 'Sun *-*-* 00:00:00'
      systemd-analyze calendar --iterations=3 '*-*-* 00:05:00'
      sudo cp *.service *.timer /etc/systemd/system/ && sudo systemctl daemon-reload
      sudo systemctl enable --now sync-feeds.timer report.timer rotate.timer cleanup.timer warm-cache.timer date.timer
    
      # then remove the old cron line so the job does not run twice
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Convert crontab entries to systemd timers and services (OnCalendar expressions, Persistent catch-up, RandomizedDelaySec, User=, Environment=, OnFailure alerts, journal logging), explain cron and OnCalendar schedules, and debug jobs that do not run. Handles cron's day-of-month OR day-of-week rule, @reboot/@daily specials, % escaping and /etc/cron.d user columns.

    Who it's for

    Use when the user wants to migrate cron jobs to systemd timers, write or explain an OnCalendar or cron expression, asks why a cron job or timer did not run, or needs logging, retries or missed-run handling for scheduled jobs.

    What's inside

    • Tested, offline Python script(s): cron_to_timer.py (deterministic results, standard library only unless noted)
    • Reference guides: timers.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow; Cheat sheet

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/vps-devops-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    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

    Free to use

    No account required to browse

    Frequently Asked Questions

    Convert crontab entries to systemd timers and services (OnCalendar expressions, Persistent catch-up, RandomizedDelaySec, User=, Environment=, OnFailure alerts, journal logging), explain cron and OnCalendar schedules, and debug jobs that do not run. Handles cron's day-of-month OR day-of-week rule,...

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Cron to systemd Timers Converter on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    Free