hoangsonww/regression-alert
> Compare this period's reliability against the prior period using Agent Monitor data — error rate (APIError/total) and tool-failure rate (PreToolUse→PostToolUse gap) — flag any regression where reliability got worse, and optionally wire a persistent alert rule so the dashboard catches the next regression automatically. Use when checking whether reliability degraded.
npx skills add https://github.com/hoangsonww/Claude-Code-Agent-Monitor --skill regression-alert
Detect whether Claude Code reliability is getting worse period-over-period, and
optionally arm an alert so it never has to be checked by hand again. Scope is
reliability/failures only — for cache/cost/compaction drift, use ccam-insights'
regression-watch instead.
The user provides: $ARGUMENTS
This may be:
POST /api/alerts/rules (only on explicit request)| Endpoint | Returns |
|----------|---------|
| GET /api/analytics | daily_events (365d), daily_sessions (365d), event_types — split into recent vs baseline windows to compute per-window failure rates |
| GET /api/events?session_id=X | Per-session stream — localize a regression to the sessions driving it |
| GET /api/alerts/rules | Existing alert rules — check whether a matching reliability rule already exists before arming a new one |
| POST /api/alerts/rules | Create a new alert rule (only when the user says "arm") |
Split history into a recent window (newer) and a baseline window (the equal-length period just before it). Default: recent = last 7 days, baseline = the prior 7. Use daily_events/daily_sessions to bucket counts by day.
error rate = APIError count / total events.APIError events.tool-failure rate = (PreToolUse − PostToolUse) / PreToolUse.Roll up which rates regressed, rank by relative worsening, and name the most likely driver.
Only if the user passed "arm". First GET /api/alerts/rules to avoid duplicates. Then POST /api/alerts/rules with a rule that fires when the regressed metric crosses a threshold near the recent value (e.g., error rate > recent rate). Echo the created rule back; do not create webhooks or fire alerts.
curl cannot reach http://localhost:4820, tell the user to start the dashboard with npm start from the repo root.Take hoangsonww/regression-alert from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.