/ccam-insights:anomaly-alertfrom ccam-insights
Analyzes Claude Code Agent Monitor data to detect anomalous sessions based on cost, duration, error rates, behavior, and token usage, using statistical baselines and severity classification.
Ships in ccam-insights. 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 anomalous sessions in Claude Code Agent Monitor data.
The user provides: $ARGUMENTS
This may be:
Fetch baseline data from http://localhost:4820:
GET /api/sessions?limit=500 — historical sessions for baselineGET /api/analytics — aggregated metricsGET /api/pricing/cost — cost data per sessionCompute baselines for each metric:
Detect anomalies using statistical thresholds:
Classify each anomaly:
Present as an Anomaly Report:
═══════════════════════════════════════════════
ANOMALY DETECTION REPORT
Analyzed: N sessions | Baseline: last 30 days
Anomalies found: N (🔴 N critical, 🟡 N warn, 🔵 N info)
═══════════════════════════════════════════════
For each anomaly:
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/benchmarkBenchmark one session (or a small recent set) against the rolling average using Agent Monitor data — cost, total tokens, tool count, and workflow complexity score — and report where each metric lands as a percentile of the population. Tells you whether a session was normal, cheap, or an outlier. Use when judging whether a session was typical or out of band.
/optimization-suggestSuggest concrete optimizations for Claude Code usage based on historical session data. Covers cost reduction, speed improvement, error prevention, and workflow efficiency. Use for data-driven optimization planning.
/pattern-detectDetect recurring patterns using the Agent Monitor's workflow intelligence — toolFlow transitions (tool A → B frequency matrices), recurring workflow patterns, agent co-occurrence pairs, model delegation habits, error propagation paths by agent depth, and compaction triggers. Use to discover habitual usage patterns and anti-patterns.
npx claudepluginhub hoangsonww/claude-code-agent-monitor --plugin ccam-insights4 plugins ship this exact skill · first indexed Aug 10, 2026
Other plugins' skills for the same job