continuous-learning

Extract reusable patterns from Claude Code sessions and save them as learned skills.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill continuous-learning-erwinv2k-tkg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: continuous-learning
Source: https://github.com/erwinv2k-TKG/AgentesVSC/tree/main/packs/everything-claude-code/docs/zh-TW/skills/continuous-learning
Command: npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill continuous-learning-erwinv2k-tkg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Valuable problem-solving patterns discovered during Claude Code sessions are lost when the session ends, forcing users to repeatedly rediscover the same fixes, workarounds, and debugging techniques. ## Core Features & Use Cases - Automatic Session Evaluation: Runs as a Stop hook at the end of each session, checking whether the session has enough messages (default 10+) to be worth analyzing. - Pattern Detection and Extraction: Identifies reusable patterns such as error resolutions, user corrections, workarounds, debugging techniques, and project-specific conventions, then saves them to ~/.claude/skills/learned/. - Configurable Behavior: A config.json file controls minimum session length, extraction threshold, auto-approval, and which pattern types to detect or ignore. - Use Case: After a long debugging session where you fixed a tricky framework quirk, the Stop hook automatically captures that workaround as a learned skill so future sessions can reuse it without re-deriving the solution. ## Quick Start Add the Stop hook entry pointing to evaluate-session.sh in your ~/.claude/settings.json file and adjust config.json to choose which pattern types should be extracted.

Frequently Asked Questions about continuous-learning

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

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

Register a Stop hook in ~/.claude/settings.json that runs the evaluate-session.sh script when each session ends. The hook evaluates the session transcript and saves detected reusable patterns to ~/.claude/skills/learned/.

What types of patterns can be extracted from a coding session?

The skill detects five pattern types: error_resolution, user_corrections, workarounds, debugging_techniques, and project_specific conventions. You can enable or disable each type in the patterns_to_detect list in config.json.

Why use a Stop hook instead of running extraction on every message?

A Stop hook runs once at session end, so it adds no per-message latency and has access to the complete session transcript. This makes evaluation lightweight and non-blocking compared to per-message hooks.

Can I prevent one-time fixes from being saved as learned skills?

Yes, the ignore_patterns setting in config.json excludes categories like simple_typos, one_time_fixes, and external_api_issues. You can also raise min_session_length or the extraction_threshold to filter out low-value sessions.

How does this approach compare to Homunculus v2 for learning behaviors?

This skill uses a Stop hook and extracts full skills, while Homunculus v2 uses PreToolUse/PostToolUse hooks with a background agent to record atomic instincts with confidence scores. Homunculus also supports instinct clustering and export/import, which this skill does not.