# Cron Health

> Check all registered cron jobs and report healthy vs failing/overdue status.

- Skill: `matrixx0070/cron-health` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add matrixx0070/cron-health`
- Raw SKILL.md: https://api.skillmd.com/api/skills/matrixx0070/cron-health/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- License: MIT
- Author: Matrixx0070 (https://skillmd.com/u/matrixx0070)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/matrixx0070/cron-health

---


## Description

Checks all registered cron jobs from `data/cron/jobs.json` and `mind.db cron_runs` table,
reporting which jobs are healthy and which are failing or overdue.

A job is **healthy** if its last run status is `ok` and it is not past `3×` its scheduled
interval. A job is **failing** if its last run status is `failed` or it is overdue.

## Input Schema

```json
{
  "type": "object",
  "properties": {},
  "required": []
}
```

(No input parameters required.)

## Output Schema

```json
{
  "type": "object",
  "properties": {
    "healthy":  { "type": "array", "items": { "type": "string" }, "description": "Job names running without issues" },
    "failing":  { "type": "array", "items": { "type": "string" }, "description": "Job names that errored or are overdue" },
    "lastRun":  { "type": "string", "description": "ISO timestamp of the most recent cron run" },
    "details":  { "type": "array", "description": "Per-job detail objects with status, lastRan, lastError, overdue" }
  }
}
```

## Example

```ts
const result = await registry.execute('automation.cron-health', {});
// result.data.healthy  → ['system.heartbeat']
// result.data.failing  → ['daily.brief']
// result.data.lastRun  → '2026-03-29T22:37:54.777Z'
```

## Notes

- Reads `data/cron/jobs.json` for job definitions.
- Reads `mind.db` cron_runs table for execution history.
- No network calls — fully local.
- Overdue threshold: `3 × schedule.ms`.

