
This digs through your Agent Monitor data to find patterns you didn't know existed. It pulls tool transition matrices (which tools follow which), error cascades by agent depth, model delegation habits, and compaction triggers across your last 200 sessions. You get a ranked report of the top 10 patterns with frequency counts and whether they're helpful habits or anti-patterns to fix. Most useful after you've accumulated enough session history to make the statistics meaningful. The toolFlow transitions are probably the most immediately actionable part, showing you which tool chains you repeat constantly and where retry loops happen. Think of it as workflow archaeology for your Claude usage.
$ npx -y skills add hoangsonww/claude-code-agent-monitor --skill pattern-detect --agent claude-codeInstalls into .claude/skills of the current project.
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:
Sponsors