analyze-patterns

analyze-patterns is a skill for Claude Code, Codex from denenis-lab/my-claude-skills. It costs 21 tokens per session (891 once invoked), scanned A, original, MIT.

A tool that examines Claude Code session transcripts to find repeated patterns in how work is requested or corrected. It can create GitHub Issues containing suggestions based on those patterns.

In plain words
What is it for?
Use it to analyse session history, find repeated corrections or other behavioural patterns, and record improvement suggestions as GitHub Issues.
Why use it?
It helps reveal recurring problems across sessions that may be hard to notice in individual conversations. It can scan only new sessions or perform a full rescan.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to analyse session history, find repeated corrections or other behavioural patterns, and record improvement suggestions as GitHub Issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/denenis-lab/my-claude-skills/analyze-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add denenis-lab/my-claude-skills --skill analyze-patterns
Clone the repo
git clone --depth 1 https://github.com/denenis-lab/my-claude-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/denenis-lab/my-claude-skills/analyze-patterns/github.svg)](https://agentmods.dev/skills/denenis-lab/my-claude-skills/analyze-patterns)
Your own site
<a href="https://agentmods.dev/skills/denenis-lab/my-claude-skills/analyze-patterns"><img src="https://agentmods.dev/badge/skills/denenis-lab/my-claude-skills/analyze-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyze-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/denenis-lab/my-claude-skills/analyze-patterns"><img src="https://agentmods.dev/badge/skills/denenis-lab/my-claude-skills/analyze-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 891 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00891
Opus 5 $0.00010 $0.00445
Sonnet 5 $0.00004 $0.00178
Haiku 4.5 $0.00002 $0.00089

Measured 11d ago against content hash bd509f077061, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

analyze-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/pattern-detector.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

analyze-patterns/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Analyze Patterns

When the user invokes /analyze-patterns or says "analyze sessions" / "find patterns":

Step 1: Extract messages from sessions

Run the extractor script, save to a temp file:

# Incremental (only new sessions since last run):
python3 ~/.claude/skills/analyze-patterns/scripts/pattern-detector.py --user-only --stats > /tmp/pattern-extract.json

# Or full rescan (all sessions):
python3 ~/.claude/skills/analyze-patterns/scripts/pattern-detector.py --full --user-only --stats > /tmp/pattern-extract.json

Use --full if the user says "all sessions" / "full" / "--full". Default is incremental. The --user-only flag extracts only user messages (smaller output).

Read /tmp/pattern-extract.json — it contains JSON with this structure:

{
  "session_count": 124,
  "projects": {
    "ProjectName": {
      "message_count": 25,
      "user_count": 25,
      "messages": [{"role": "user", "text": "..."}]
    }
  }
}

IMPORTANT: The file can be large (~400-500 KB). Read project by project, analyzing the largest ones first.

Step 2: Analyze patterns

Read the script output and find 4 types of patterns:

1. REPEATED_CORRECTION

User corrects Claude the same way in 2+ different sessions. Examples: "write shorter", "don't ask for confirmation", "use bun". → Suggestion: add to CLAUDE.md or create a rule file

2. FREQUENT_TOOL

The same workflow/skill/tool is used frequently. Examples: constantly calls /browser, always runs the same test command. → Suggestion: create an auto-trigger or shortcut

3. ABANDONED_TASK

Work started but not finished, errors left unfixed. Examples: config change started — session ended, bug found — not fixed. → Suggestion: create an issue to complete the work

4. CLAUDE_RESISTANCE

Claude didn't understand or the user had to explain again. Examples: Claude asks permission when told not to, writes in the wrong language. → Suggestion: improve the prompt/rule

Step 3: Show results to the user

For each pattern found, show:

  • Type (REPEATED_CORRECTION / FREQUENT_TOOL / ABANDONED_TASK / CLAUDE_RESISTANCE)
  • Short title
  • Evidence quotes from user messages
  • Specific action suggestion
  • Priority (high / medium / low)

Read the full file on GitHub · 126 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 126 lines · 21 tokens per session scan A bd509f077061

Subscribe to this mod's changes

analyze-patterns is a skill published in the GitHub repository denenis-lab/my-claude-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 21 tokens to every session and 891 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pipefy-process-intelligence

Use this skill when the user wants to analyze an existing pipe for improvement opportunities — automation gaps, manual bottlenecks, missing AI agents, field conditions, or adjacent processes. Acts as a process analyst: investigates, diagnoses, and improves the pipe in progressive rounds — each round delivers visible…

pipefy/ai-toolkit · 65 tokens

lark-workflow-meeting-summary

A workflow for collecting Feishu meeting notes from a chosen time range and turning them into a structured report. Feishu meeting notes are records created from workplace meetings.

davidtoby/agent-skills · 55 tokens

communications-productivity-integrations

Class-level workflow for messaging, email, calendars, notes, boards, workspaces, and collaboration integrations via CLIs/APIs: Discord, Slack, Gmail/IMAP, Google Workspace, CalDAV, Trello, Notion, Obsidian, Apple Notes/Reminders, iMessage/SMS, and Clawk. Use when asked to send/read/manage messages, email, calendar…

davidtoby/agent-skills · 98 tokens

fsi-product-management

Product management companion tuned for financial services (banking, payments, insurance, capital markets). Activate for FS product work: writing a vision/PRFAQ, creating requirements/BRD/PRD, prioritizing backlogs, mapping roadmap to strategy, scaffolding a prototype spec, or planning sprints. Trigger on: 'FSI PM…

Amazon-Quick/Amazon-Quick-official-catalog · 108 tokens

onboarding-orchestrator

Designs and manages end-to-end employee onboarding programs with structured 30/60/90 day plans, buddy assignments, meeting schedules, tool access checklists, and milestone tracking. Adapts plans by role type and seniority. Use when asked to 'set up onboarding', 'create onboarding plan', 'new hire checklist', '30-60-90…

Amazon-Quick/Amazon-Quick-official-catalog · 95 tokens

goal-tracker-reporter

Creates, tracks, and reports on team and organizational goals across multiple frameworks: Objectives and Key Results (OKRs), Key Performance Indicators (KPIs), V2MOMs, balanced scorecards, or custom goal structures. Generates goal drafts from strategy documents, scores progress check-ins, produces executive…

Amazon-Quick/Amazon-Quick-official-catalog · 125 tokens