/ccam-quality:regression-alertfrom ccam-quality
Compares Claude Code reliability (error rate, tool-failure rate) between two time periods to detect regression, with optional persistent alert rule creation.
Ships in ccam-quality. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hoangsonww/claude-code-agent-monitor --plugin ccam-quality5 skills in this plugin
/api-error-reportProduce a detailed report on APIError events from Agent Monitor data — counts over time, which sessions and models are affected, and the likely root cause (rate limits, overload/529, or context-window pressure) inferred from each event's summary and data payload. Use when API errors spike or when you need to explain why requests are failing.
/error-scanScan recent Claude Code activity for errors and failure signals across all sessions using Agent Monitor data — APIError events and PreToolUse→PostToolUse gaps (tools that started but never completed) — then group failures by tool and model and rank them by frequency. Use when checking for errors or asking "what's failing right now".
/hook-failure-auditAudit hook delivery health from Agent Monitor data — balance PreToolUse vs PostToolUse (a gap means tools that started but never reported back), detect missing Stop/SubagentStop terminators (sessions/subagents that never closed), and check for stale ingestion (no recent events). Use when hooks look unreliable or events seem to be dropping.
/slo-checkDefine and check simple service-level objectives for Claude Code from Agent Monitor data — session completion rate, tool success rate (PostToolUse/PreToolUse), and error rate (APIError/total) — then compare each to its target and report the error budget remaining. Use when reporting reliability or when someone asks "are we meeting our SLOs?".
4 plugins ship this exact skill · first indexed Aug 10, 2026
Other plugins' skills for the same job