skill-health
Fleet skill observability with two views - health audits per-skill metrics and files/resolves issues in memory/issues/; analytics ranks the fleet by 7d runs…
от aeonfun★ 801 звезда на GitHub
Установить skill-health в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
${var} — View selector.
- empty → health check across all scheduled skills (default).
- a skill slug (e.g.
token-movers) → health check for that one skill.analyticsormetrics(optionallyanalytics:HOURS, e.g.metrics:72) → fleet metrics view over the last HOURS (default 168 = 7d, cap 720).- a bare integer (e.g.
168) → metrics view with that window in hours (legacy shorthand).
Overview
This skill provides two views over the same GitHub-Actions skill-run data. They share a preamble but branch into distinct logic:
- health (default): per-skill classification, issue filing/resolution against
memory/issues/, and a state-change-gated notification. This is the load-bearing self-healing view — its issue contract,memory/skill-health/scoring, and### skill-healthlog shape are depended on by the health loop and other skills. Do not weaken it. - analytics (metrics): a fleet-wide ranked view — top runners, failure rates, exit-taxonomy distribution, silent-scheduled detection, and anomaly flags — with a significance-gated notification plus an article and a dashboard JSON spec.
heartbeatgives binary ok/not-ok per run and the health view audits skills one degradation-band at a time; the analytics view is the only place the operator sees the entire fleet ranked side-by-side.
Shared preamble (run for either view)
- Read
memory/MEMORY.mdfor high-level context and scan the last ~3 days ofmemory/logs/for recent activity — drop anything already reported so you don't re-report the same signal. - Compute
${today}(UTC date,YYYY-MM-DD). - Parse
${var}→ selector (trim whitespace first):- empty →
VIEW=health,TARGET=all(all scheduled skills). - lowercase first token is
analyticsormetrics→VIEW=analytics. Parse an optional window argument after a:or a space (analytics:72,metrics 336): if it is a positive integer,WINDOW_HOURS = min(that, 720); otherwiseWINDOW_HOURS = 168. - a bare positive integer (e.g.
168) →VIEW=analytics,WINDOW_HOURS = min(that, 720)(legacy skill-analytics shorthand). - anything else (a non-keyword, non-integer slug) →
VIEW=health,TARGET=<that slug>(single-skill health check).
- empty →
- Dispatch: if
VIEW=health, run Health view; ifVIEW=analytics, run Analytics view.
Health view
VIEW=health. Audit skill quality metrics, detect API degradation, file issues for new failures and resolve them when skills recover, and notify only when fleet health state actually changes. If TARGET is a single skill slug, only check that skill.
Data sources
memory/cron-state.json— Per-skill quality metrics (as before).memory/skill-health/*.json— Per-skill quality analysis (Haiku post-run).memory/skill-health/last-report.json— Last run's classification snapshot (this skill writes it). Used to dedup notifications and detect flapping.aeon.yml— Enabled skills and schedules.memory/issues/INDEX.mdandmemory/issues/ISS-*.md— Open issues tracker. Check before filing, update on recovery../scripts/skill-runs --hours 168 --failures --json— Fallback source for failures that never wrote to cron-state (runs that crashed before writing, etc.). Run once, parse JSON.memory/logs/YYYY-MM-DD.md(last 3 days) — Grep forSKILL_*_ERRORorEMPTYsignatures keyed to skills missing from skill-health/*.json.
Steps
1. Gather state
- Parse
aeon.yml→ list of enabled skills with schedules. IfTARGETis a single skill, filter to just that skill. - Load
memory/cron-state.json(if missing or unparseable, treat as empty — first run, not failure). - Load every
memory/skill-health/*.json(exceptlast-report.json). - Load
memory/skill-health/last-report.jsonif present →prev_report. If missing,prev_report = {}. - Run
./scripts/skill-runs --hours 168 --failures --json 2>/dev/null || echo '{}'→ extract any skill with failures in the last 7d that isn't in cron-state (runs that failed before writing state). - Parse
memory/issues/INDEX.md→ extract open issues withdetected_by: skill-healthand their affected skills. If missing, treat as empty.
2. Classify each enabled skill
For each enabled skill, assign one status using the first matching rule:
| Status | Trigger |
|---|---|
| CRITICAL | consecutive_failures >= 3 OR (status==failed AND days_since_last_success >= 3) |
| DEGRADED | success_rate < 0.6 OR (latest skill-health/*.json avg_score < 2.5 over ≥3 runs) |
| FLAPPING |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл skill-health?
Fleet skill observability with two views - health audits per-skill metrics and files/resolves issues in memory/issues/; analytics ranks the fleet by 7d runs, success rates, and anomaly flags.
Как установить скилл skill-health?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл skill-health запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate 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…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…