mining-session-patterns

Extract error-to-fix sequences, tool failure rates, and cost signals from Claude Code session transcripts.

2|1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/qte77/claude-code-plugins --skill mining-session-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mining-session-patterns
Source: https://github.com/qte77/claude-code-plugins/tree/main/plugins/cc-meta/skills/mining-session-patterns
Command: npx skills add https://github.com/qte77/claude-code-plugins --skill mining-session-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mines Claude Code session transcripts to surface recurring patterns that drive process improvements and learning.

Core Features & Use Cases

  • Error→fix sequences: identify tool errors followed by fixes or alternate approaches to accelerate learning.
  • Tool failure rates: quantify per-tool failures across sessions to guide reliability improvements.
  • Cost signals: estimate token usage to assess session complexity and cost.

Quick Start

Analyze the latest 7d of session transcripts and write the findings to docs/patterns/session-patterns.md

Frequently Asked Questions about mining-session-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract recurring error and fix patterns from session transcripts?

You can mine Claude Code session transcripts to surface recurring error→fix sequences, tool failure rates, and cost signals. This Skill samples the most recent transcript files and extracts actionable learning patterns to support process improvements.

What is session mining for learning patterns in Claude Code?

Session mining is the process of analyzing Claude Code transcripts to surface recurring tool errors and fixes. It identifies sequences where tool failures occur, quantifies per-tool failure rates, and estimates token cost signals to drive reliability improvements and learning.

How do I quantify tool failure rates across recent transcript files?

You quantify tool failure rates by applying a sampling strategy to the most recent transcript files, then calculating the frequency of per-tool failures. This Skill processes the latest session logs to generate reliability metrics and writes the findings to a user-specified path.

Can I analyze session transcripts without external dependencies?

Yes, you can analyze session transcripts without external dependencies. This Skill operates independently with no required dependencies, directly parsing transcript files to extract tool failure rates and cost signals before writing the results to your specified output path.

How do I estimate token usage cost signals from session logs?

You estimate token usage cost signals by mining session transcripts for token consumption data. This Skill analyzes recent Claude Code logs to assess session complexity and calculate cost signals, writing the extracted patterns to a user-specified output path like a markdown file.

What are the limitations of transcript pattern analysis for process improvements?

Limitations of transcript pattern analysis include its enforced sampling strategy, which restricts mining to only the most recent transcript files. This ensures manageable processing but means older historical sessions outside the sample window are excluded from the pattern extraction.