/ccam-quality:error-scanfrom ccam-quality
Scans recent Claude Code activity for errors and failure signals using Agent Monitor data. Activate by asking 'what's failing right now' or checking for errors.
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.
Sweep recent events across sessions for error and failure signals, then rank them by how often they occur and which tool or model produced them.
The user provides: $ARGUMENTS
This may be:
| Endpoint | Returns |
|---|---|
GET /api/analytics | event_types (counts per type incl. PreToolUse, PostToolUse, APIError), tool_usage (top 20), daily_events (365d) — fleet-wide failure baseline |
GET /api/events?session_id=X | Per-session event stream: event_type, tool_name, summary, data, timestamp — locate APIError and unmatched PreToolUse |
GET /api/sessions?limit=N | Sessions with id, status, model, started_at — pick the recent window and attribute failures to a model |
Resolve $ARGUMENTS to a session set: pull GET /api/sessions?limit=N (default 50, ordered by started_at). Report how many sessions and what time span are covered.
From GET /api/analytics event_types, report total APIError count and the PreToolUse→PostToolUse gap: gap = PreToolUse − PostToolUse (unmatched tool starts = likely failures). State both as raw counts and as a share of total_events.
For each session in scope, pull GET /api/events?session_id=X. Match each PreToolUse to its following PostToolUse by tool_name; unmatched starts are failures. Aggregate failures and APIError events per tool_name. Rank tools by failure frequency (descending).
Join failures to the owning session's model (from GET /api/sessions). Rank models by APIError count and tool-failure count.
List the single most failure-prone tool, the most error-prone model, and the session with the most failures, each with its exact count and one-line summary excerpt from a representative event.
event_type, tool_name, and session_id values — never fabricate counts.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.
/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.
/5 plugins ship this exact skill · first indexed Aug 10, 2026
Other plugins' skills for the same job