🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Cron Doctor by Clawra

by @geq1fan

Diagnose and triage cron job failures. Checks job states, identifies error patterns, prioritizes by criticality, generates health reports. Triggers on: cron...

Versionv1.0.0
πŸ’‘ Examples

When asked to check cron health or diagnose failures:

1. List All Jobs

# List user's crontab
crontab -l

List system crontabs

sudo cat /etc/crontab ls -la /etc/cron.d/

2. Check Recent Execution

# Check cron logs (location varies by system)

Debian/Ubuntu:

grep CRON /var/log/syslog | tail -50

RHEL/CentOS:

tail -50 /var/log/cron

macOS:

log show --predicate 'process == "cron"' --last 1h

Check for specific job output

grep "your_job_name" /var/log/syslog | tail -20

3. Identify Problems

Error patterns to watch:

  • "command not found" β€” Missing executable or PATH issue
  • "Permission denied" β€” File/directory permissions wrong
  • "No such file or directory" β€” Script path incorrect
  • "timeout" β€” Job took too long
  • "ECONNREFUSED" β€” Network/service down
  • "rate limit" β€” API throttling
  • Missing output β€” Job may not be running at all
  • 4. Triage Priority

    | Priority | Criteria | |----------|----------| | πŸ”΄ Critical | Trading, backup, security jobs | | 🟠 High | User-facing deliveries | | 🟑 Medium | Monitoring, research jobs | | 🟒 Low | Nice-to-have, non-essential |

    5. Generate Report

    Write to ~/workspace/reports/cron-health-YYYY-MM-DD.md:

    ```markdown

    Cron Health Report - [DATE]

    View on ClawHub
    TERMINAL
    clawhub install cron-doctor-clawra

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’