/ccam-insights:pattern-detectfrom ccam-insights
Detects recurring patterns in Claude Code sessions using Agent Monitor data — tool transitions, workflow sequences, error cascades, and agent co-occurrence.
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.
Identify recurring patterns using the Agent Monitor's workflow intelligence engine.
The user provides: $ARGUMENTS
Options: "all", "tools", "errors", "workflows", "last N sessions".
| Endpoint | Returns |
|---|---|
GET /api/sessions?limit=200 | Session list with status, model, cwd, metadata |
GET /api/analytics | tool_usage top 20, event_types, agent_types |
GET /api/workflows/{sessionId} | 11 datasets per session (see below) |
| Dataset | Pattern insight |
|---|---|
toolFlow | Tool transition matrix: tool A → tool B with counts — reveals sequential habits |
patterns | Detected workflow patterns: recurring sequences with frequency scores |
cooccurrence | Agent co-occurrence: which agents frequently run together |
modelDelegation | Model habits: which models are chosen for which task types |
errorPropagation | Error patterns: where errors start and how they cascade by agent depth |
effectiveness | Subagent patterns: which types succeed most, avg duration per type |
compaction | Compaction triggers: what causes context overflow |
complexity | Complexity patterns: session complexity scores over time |
toolFlow)patterns)errorPropagation + event_types)cooccurrence + effectiveness)daily_sessions)Pattern Report with top 10 patterns ranked by frequency × impact:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hoangsonww/claude-code-agent-monitor --plugin ccam-insights5 plugins ship this exact skill · first indexed Aug 10, 2026
6 skills in this plugin
/anomaly-alertIdentify anomalous sessions using Agent Monitor data — cost outliers from the pricing engine, token anomalies (cache miss spikes, compaction baseline surges), unusual event type ratios (PreToolUse/PostToolUse gaps, APIError clusters), behavioral deviations from workflow intelligence (complexity score outliers, error propagation anomalies), and sessions with abnormal metadata (extreme turn_count, high thinking_blocks, zero turn_duration).
/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-suggestOther plugins' skills for the same job