continuous-learning

Extract reusable patterns from Claude Code session transcripts via a Stop hook.

Updated Dec 18, 2025
One-click install
npx skills add https://github.com/JahanzaibTayyab/hackathon-2 --skill continuous-learning-jahanzaibtayyab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: continuous-learning
Source: https://github.com/JahanzaibTayyab/hackathon-2/tree/main/.claude/skills/continuous-learning
Command: npx skills add https://github.com/JahanzaibTayyab/hackathon-2 --skill continuous-learning-jahanzaibtayyab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically extract reusable patterns from Claude Code sessions and save them as learned skills for future use.

Core Features & Use Cases

  • End-of-session pattern extraction via a Stop hook to capture insights.
  • Pattern types detection (e.g., error_resolution, user_corrections, debugging_techniques, workarounds, project_specific) and automatic saving to a learned-skills store.
  • Configurable thresholds and paths (min_session_length, learned_skills_path, patterns_to_detect) to tailor behavior for different projects.

Quick Start

Configure Claude to run the Stop hook at session end and point it at the evaluation script to begin extracting and saving learned skills.

Frequently Asked Questions about continuous-learning

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

FAQPage Schema
How do I extract reusable patterns from Claude Code sessions automatically?

You can extract reusable patterns by configuring a Stop hook that evaluates Claude Code session transcripts at session end. This automatically detects and saves insights like error resolution and debugging techniques as learned skills.

What types of debugging patterns can I capture from Claude transcripts?

Capturing debugging patterns from Claude transcripts supports detecting error resolutions, user corrections, debugging techniques, workarounds, and project-specific patterns. These pattern types are saved directly to a learned-skills store.

How do I configure pattern extraction thresholds for Claude Code sessions?

Configuring pattern extraction thresholds involves editing a config.json file. You can adjust parameters like min_session_length, learned_skills_path, and patterns_to_detect to tailor the evaluation behavior for your specific projects.

Do I need a specific directory structure to save learned skills from Claude?

Yes, saving learned skills requires a designated learned-skills directory located at ~/.claude/skills/learned/. This path stores the extracted patterns and can be customized via the config.json file.

Why are my Claude Code session patterns not being saved at the end of a session?

Patterns not being saved usually indicates a missing or misconfigured Stop hook. The session-end evaluation requires this hook to trigger transcript analysis and extract patterns based on your configured thresholds.