/ccam-quality:api-error-reportfrom ccam-quality
Produces a detailed report on APIError events from Agent Monitor data, including counts over time, affected sessions/models, and root cause classification (rate limits, overload/529, context-window pressure). Use when API errors spike or to explain why requests are failing.
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.
Drill into APIError events: how many, when, where, and most likely why.
The user provides: $ARGUMENTS
This may be:
| Endpoint | Returns |
|---|---|
GET /api/analytics | event_types (total APIError count), daily_events (365d) — APIError volume and trend over time |
GET /api/events?session_id=X | Per-session event stream — each APIError carries summary, data, and timestamp used to classify the cause |
GET /api/sessions?limit=N | Sessions with id, model, started_at — attribute each error to a model and place it on the timeline |
From GET /api/analytics: total APIError count and its share of total_events. Use daily_events to chart APIErrors over the requested window and flag any day that spikes above the window mean.
For each session in scope, pull GET /api/events?session_id=X and collect APIError events. Group by session_id and, via GET /api/sessions, by model. Report the top affected sessions and which model accounts for the most errors.
Inspect each error's summary/data and bucket it:
Compaction events).summary.
Report the count and percentage in each bucket.List the most recent APIErrors with timestamp, session_id, model, classified cause, and a one-line summary excerpt.
session_id, model, timestamp, and summary values — never invent a cause not supported by the payload; bucket as "Other" when unclear.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
Three short reads, in order
api-error, agent-monitor, error-reporting, root-cause-analysis
npx claudepluginhub hoangsonww/claude-code-agent-monitor --plugin ccam-quality5 skills in this plugin
/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.
/regression-alertCompare 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.
/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?".
5 plugins ship this exact skill · first indexed Aug 10, 2026
Other plugins' skills for the same job