Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

cron-doctor

bởi suryast

Coding Agents & IDEs
678Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Diagnose and triage cron job failures.

Mô tả

Kỹ năng này làm gì

Diagnoses and triages cron job failures across Linux and macOS systems. Checks job states, identifies error patterns in system logs, prioritizes failures by criticality, and writes a structured health report.

Combines log inspection, error pattern matching, and priority triage into a single workflow instead of manually grepping logs and tracking failures across separate files.

Khi nào nên dùng

  • Finding why a nightly backup job stopped running
  • Debugging a scheduled script that produces no output
  • Triaging multiple failing jobs after a server incident
  • Auditing cron health before a production deployment
  • Fixing PATH or permission errors in crontab entries

Quy trình ví dụ

ĐẦU VÀO

User asks: My backup cron job hasn't run in two days — what's wrong?

AGENT
  1. 1

    Lists all user and system crontab entries

  2. 2

    Searches cron logs for recent execution attempts and error messages

  3. 3

    Identifies the error pattern, such as 'command not found' due to a missing PATH

  4. 4

    Assigns a criticality priority to the backup job

  5. 5

    Writes a health report with the error, last successful run date, and a suggested fix

ĐẦU RA

A markdown report at ~/workspace/reports/cron-health-YYYY-MM-DD.md listing the failed backup job, its error message, priority level, and the recommended fix (use full executable path in crontab)

Cài đặt

clawhub install suryast/cron-doctor

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết