Tooluck logoTooluck
SKILL.md

pattern-detect

Agent skill fromhoangsonww/Claude-Code-Agent-Monitor

Detect 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.

How to install pattern-detect

install pattern-detect
# install the Claude-Code-Agent-Monitor pack with the skills CLI
npx skills add hoangsonww/Claude-Code-Agent-Monitor

# or add only this skill to Claude Code: copy the folder

plugins/ccam-insights/skills/pattern-detect/

# into

~/.claude/skills/pattern-detect/ (all projects)

.claude/skills/pattern-detect/ (one project)

plugins/ccam-insights/skills/pattern-detect/SKILL.md

MITFull file
1# Pattern Detect
2
3Identify recurring patterns using the Agent Monitor's workflow intelligence engine.
4
5## Input
6
7The user provides: **$ARGUMENTS**
8
9Options: "all", "tools", "errors", "workflows", "last N sessions".
10
11## Data Sources
12
13| Endpoint | Returns |
14|----------|---------|
15| `GET /api/sessions?limit=200` | Session list with status, model, cwd, metadata |
16| `GET /api/analytics` | tool_usage top 20, event_types, agent_types |
17| `GET /api/workflows/{sessionId}` | 11 datasets per session (see below) |
18
19### Workflow datasets used for pattern detection
20
21| Dataset | Pattern insight |
22|---------|----------------|
23| `toolFlow` | **Tool transition matrix**: tool A → tool B with counts — reveals sequential habits |
24| `patterns` | **Detected workflow patterns**: recurring sequences with frequency scores |
25| `cooccurrence` | **Agent co-occurrence**: which agents frequently run together |
26| `modelDelegation` | **Model habits**: which models are chosen for which task types |
27| `errorPropagation` | **Error patterns**: where errors start and how they cascade by agent depth |
28| `effectiveness` | **Subagent patterns**: which types succeed most, avg duration per type |
29| `compaction` | **Compaction triggers**: what causes context overflow |
30| `complexity` | **Complexity patterns**: session complexity scores over time |
31
32## Pattern Categories
33
34### 1. Tool Chain Patterns (from `toolFlow`)
35- **Most common sequences**: Top 10 tool transitions (e.g., Read → Edit: 145 times)
36…

Excerpt shown under the repository's MIT license.

More skills in Claude-Code-Agent-Monitor

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates