搜索

PythonReactSEOPDF
OpenClaw

cron-doctor

Diagnose and triage cron job failures. Checks job states, identifies error patterns, prioritizes by criticality, generates health reports. Triggers on: cron failures, job health check, scheduled task errors, cron diagnosis, job not running, backup failed.

geq1fan0 来源安装数☆ 0 仓库 Starsv1.1.0

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install geq1fan/cron-doctor-clawra

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Compatible with Claude Code, Codex CLI, Cursor, Windsurf, and any SKILL.md-compatible agent.

Cron Doctor

Diagnose and triage cron job failures.

Usage

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:

# Cron Health Report - [DATE]

## Summary
- ✅ Healthy: X jobs
- ⚠️ Warning: X jobs  
- ❌ Failed: X jobs

## Failed Jobs

### [Job Name]
- **Error:** [message]
- **Last Success:** [date]
- **Priority:** [level]
- **Fix:** [suggested action]

## Recommendations
1. [Action item]
2. [Action item]
6. Common Fixes
Error Fix
Command not found Use full path to executable, or set PATH in crontab
Permission denied Check file permissions, run chmod +x script.sh
No output Add >> /tmp/job.log 2>&1 to capture output
Wrong timezone Set TZ= in...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/geq1fan/cron-doctor-clawra
Version
1.1.0
Commit
aba6b0756b725beefe68b93ce041d4b840b7ed11
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Cron Doctor

Diagnose and triage your cron jobs like a pro.

When scheduled tasks fail, Cron Doctor quickly identifies the problem, categorizes by severity, and suggests fixes. It generates clean health reports so you always know the state of your automation.

Perfect for anyone running background jobs, scheduled backups, or automated workflows.

Platform Support

Works on: Claude Code, Codex CLI, Cursor, Windsurf, and any SKILL.md-compatible agent.

Enhanced features available on some platforms:

  • Managed cron system with built-in state tracking
  • Execution history without log parsing
  • Sub-agent auto-escalation for critical failures

Premium Skills

Want more? Check out our premium skills at skillpacks.dev:

  • 🛡️ Security Suite — PII scanning, secrets detection, prompt injection defense — $9.90
  • 🧠 Structured Memory — Three-tier memory replacing flat MEMORY.md — $9.90
  • 📋 Planning & Execution — Systematic task plans with batch execution — $9.90
  • 💎 Bundle — all 3 for $24.90

来源内容

SKILL.md
> **Compatible with Claude Code, Codex CLI, Cursor, Windsurf, and any SKILL.md-compatible agent.**

# Cron Doctor

Diagnose and triage cron job failures.

## Usage

When asked to check cron health or diagnose failures:

### 1. List All Jobs

```bash
# List user's crontab
crontab -l

# List system crontabs
sudo cat /etc/crontab
ls -la /etc/cron.d/
```

### 2. Check Recent Execution

```bash
# 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]

## Summary
- ✅ Healthy: X jobs
- ⚠️ Warning: X jobs  
- ❌ Failed: X jobs

## Failed Jobs

### [Job Name]
- **Error:** [message]
- **Last Success:** [date]
- **Priority:** [level]
- **Fix:** [suggested action]

## Recommendations
1. [Action item]
2. [Action item]
```

### 6. Common Fixes

| Error | Fix |
|-------|-----|
| Command not found | Use full path to executable, or set PATH in crontab |
| Permission denied | Check file permissions, run `chmod +x script.sh` |
| No output | Add `>> /tmp/job.log 2>&1` to capture output |
| Wrong timezone | Set `TZ=` in...
README
# Cron Doctor

**Diagnose and triage your cron jobs like a pro.**

When scheduled tasks fail, Cron Doctor quickly identifies the problem, categorizes by severity, and suggests fixes. It generates clean health reports so you always know the state of your automation.

Perfect for anyone running background jobs, scheduled backups, or automated workflows.

## Platform Support

**Works on:** Claude Code, Codex CLI, Cursor, Windsurf, and any SKILL.md-compatible agent.

**Enhanced features available on some platforms:**
- Managed cron system with built-in state tracking
- Execution history without log parsing
- Sub-agent auto-escalation for critical failures

---

## Premium Skills

Want more? Check out our premium skills at **[skillpacks.dev](https://skillpacks.dev)**:

- 🛡️ **Security Suite** — PII scanning, secrets detection, prompt injection defense — [$9.90](https://polycatai.gumroad.com/l/bsrugo)
- 🧠 **Structured Memory** — Three-tier memory replacing flat MEMORY.md — [$9.90](https://polycatai.gumroad.com/l/goawrg)
- 📋 **Planning & Execution** — Systematic task plans with batch execution — [$9.90](https://polycatai.gumroad.com/l/uydfto)
- 💎 **[Bundle — all 3 for $24.90](https://polycatai.gumroad.com/l/atsrl)**

相关技能

OpenClaw

xint

0xnyk

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

flightclaw

jackculpan

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.

OpenClaw

openclaw-trading-assistant

openclaw-trade

openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime...