cronalytics
FreeNo executable scriptsNot checkedAnalyze, diagnose, and optimize Hermes cron jobs via the cronalytics CLI. Terminal-based health checks, cost attribution, failure analysis, trend detection…
by lza6★ 19 GitHub starsAbout this skill
Cronalytics — Agent Diagnostic Toolkit
Overview
Cronalytics is a cron observability plugin for Hermes Agent. It persists cron
job metadata, costs, outcomes, and model usage into a local SQLite fact DB
(facts.db), then surfaces it through both a web dashboard and a terminal CLI.
This skill teaches the CLI interface — the canonical machine-readable surface.
Every data subcommand except all supports --json for structured output. All
share the same filter grammar (--days, --outcome, --mode). The dashboard is a fallback for visual exploration. The CLI is the primary diagnostic interface because it
is scriptable, pipeable, and works inside any terminal session without a browser.
Pitfall — Skill text is historical, not oracular. The cronalytics codebase
changes. Before repeating any claim about CLI defaults, accepted values, or flag
behaviors, verify against the live source (cronalytics/cli.py for argument
parsing, cronalytics/facts.py for query semantics, dashboard/plugin_api.py for
API regex patterns). This skill was written at a point in time; code drift is
real. Never tell the user a behavior is "correct" because the skill says so —
check the code.
When to Use
- User asks "how are my cron jobs doing?", "what's burning tokens?", or "why is my bill high?", or similar
- User suspects a cron job is failing silently or running too frequently
- User wants a periodic health report on scheduled tasks (cron jobs)
- User asks for anomalies, impact assessment, or remediations for their cron setup
- User wants to compare model usage or cost across cron jobs over time
Do not use for:
- Live log streaming (Cronalytics stores summaries, not session outputs)
- Real-time alerting (no push notification system)
- Editing cron schedules (use
hermes croncommands, not cronalytics)
CLI Reference
Invocation
If the user installed via pip or created a shell alias use:
cronalytics --help
The cronalytics command is available after the plugin is installed. If it is
not on $PATH, run via the plugin path:
python ~/.hermes/plugins/cronalytics/cronalytics/cli.py --help
Subcommands
| Command | What it returns | Key flags |
|---|---|---|
all |
Health + summary + jobs + models + trends in one scroll | --days, --outcome, --mode |
summary |
Headline aggregates: total runs, cost, tokens, success/failure split | --days, --outcome, --mode, --json |
jobs |
Per-job table: runs, cost, pace, avg duration, mode | --days, --outcome, --mode, --json |
models |
Per-model cost and token attribution | --days, --outcome, --mode, --json |
trends |
Daily run-count / cost sparkline | --days, --outcome, --mode, --json |
runs |
Individual run rows for a specific job ID | --job <id> (required), --days, --outcome, --mode, --limit, --json |
health |
Fact DB row counts, last sync watermark, schema version | --db, --json |
sync |
Backfill cron sessions from state.db → facts.db |
--db, --json |
Universal Filters
All data subcommands accept these shared flags:
--days N— look-back window (default:30,0= all time)- When user is vague about time window, detect dataset span first via
health --json - If span < 60 days, default to
--days 0for full history
- When user is vague about time window, detect dataset span first via
--outcome all|success|failure— outcome filter (default:all)--mode all|agent|no_agent— agent vs. script-only jobs (default:all)--mode agentor--mode no_agentdrops jobs with mixed modes in the window- Use
--mode allunless the user explicitly wants script-only or agent-only
--json— raw JSON envelope instead of formatted tables
JSON Envelope
When --json is used, every response is wrapped:
{
"period": "Last 7 days",
"start_date": "2026-05-09",
"end_date": "2026-05-15",
"outcome": "all",
"mode": "all",
"data": [ ... ]
}
Pipe into jq '.data[]' for downstream processing.
Pitfall: The all subcommand does not support --json. It emits a
human-readable scroll with headers, ASCII tables, and section breaks. If you
need structured output from the full diagnostic suite, call the individual
subcommands (health --json, summary --json, jobs --json, etc.) and
aggregate client-side. Never claim --json works with all.
Pitfall: Rendered table headers (Name, Fail, Cost, [N]) differ from
JSON keys. Always inspect data[0].keys() from a live --json call before
writing aggregation scripts. The canonical keys in cronalytics jobs --json
are: job_id, job_name, job_mode, runs, success_runs, failure_runs,
tot_estimated_cost, avg_estimated_cost, total_tokens, total_input_tokens,
total_output_tokens, total_cache_*_tokens, total_duration, avg_duration,
last_run, first_run, last_model, schedule_display, pace, drift_ratio.
Diagnostic Workflow
Step 0: Time Win
Install cronalytics in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the cronalytics skill do?
Analyze, diagnose, and optimize Hermes cron jobs via the cronalytics CLI. Terminal-based health checks, cost attribution, failure analysis, trend detection, and schedule drift. Also references the Cronalytics dashboard plugin for visual exploration.
How do I install the cronalytics skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the cronalytics skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic