Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cronalytics

БесплатноБез исполняемых скриптовНе проверен

Analyze, diagnose, and optimize Hermes cron jobs via the cronalytics CLI. Terminal-based health checks, cost attribution, failure analysis, trend detection…

lza6от lza6★ 19 звёзд на GitHub

Об этом скилле

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 cron commands, 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 0 for full history
  • --outcome all|success|failure — outcome filter (default: all)
  • --mode all|agent|no_agent — agent vs. script-only jobs (default: all)
    • --mode agent or --mode no_agent drops jobs with mixed modes in the window
    • Use --mode all unless 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

Полный SKILL.md на GitHub

Установить cronalytics в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/data-model.mdreferences/direct-sqlite-workarounds.mdreferences/jq-diagnostic-patterns.mdreferences/silent-failure-detection.mdreferences/time-window-blind-spot.md

FAQ

Что делает скилл cronalytics?

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.

Как установить скилл cronalytics?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cronalytics запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cronalytics с