New to Claude Skills? Learn how to install them →

affaan-m on GitHub

Continuous Learning

Free

Automate skill extraction from Claude Code sessions.

by affaan-m239.3k stars on affaan-m/ecc
2 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Continuous Learning does

The Continuous Learning skill is designed to enhance the learning capabilities of Claude Code by automatically evaluating sessions and extracting reusable patterns. This skill operates as a hook at the end of each session, ensuring that valuable insights are captured without interrupting the flow of interaction. Users can configure the skill to set thresholds for session length and pattern extraction, allowing for tailored learning experiences based on their specific needs.

When activated, the skill assesses whether a session has sufficient messages (defaulting to 10 or more) and identifies patterns that can be extracted. These patterns include techniques for error resolution, user corrections, workarounds, debugging methods, and project-specific conventions. The extracted skills are stored in a designated directory for easy access and review, enabling users to refine their learning over time.

This skill is particularly useful for developers and designers who frequently interact with Claude Code and want to build a repository of learned skills. By automating the extraction process, users can focus on their work while still benefiting from the insights gathered during their sessions. It serves as a foundational tool for those looking to improve their coding practices and project outcomes through continuous learning.

However, it is important to note that this version of the skill is now considered obsolete, with the recommendation to transition to continuous-learning-v2, which offers a more advanced framework for learning based on instincts and reliable hooks. Users who require compatibility with older workflows may still find value in this skill, but for new installations, v2 is the preferred choice.

When to use it

Use this skill when you want to automatically capture and store useful insights from your sessions with Claude Code.

When not to use it

Avoid using this skill for new installations; opt for continuous-learning-v2 instead, which offers enhanced capabilities.

What you can build with it

Automated Skill Capture

Set up the skill to automatically extract patterns from your sessions, saving time and effort.

Session Evaluation

Use the skill to evaluate your sessions and identify areas for improvement based on extracted patterns.

Pattern Review

Review and curate learned skills stored in your Claude Code directory to refine your coding practices.

How to install Continuous Learning

View source

1. Install with the skills CLI

npx skills add affaan-m/ecc/continuous-learning --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by affaan-m

Skill de Aprendizaje Continuo - OBSOLETO

OBSOLETO el 2026-04-28. Usar continuous-learning-v2 en su lugar. v2 es un superconjunto estricto: la observación por hook Stop se convierte en observación PreToolUse/PostToolUse, los skills completos se convierten en instintos atómicos con puntuación de confianza, y el almacenamiento solo global se convierte en almacenamiento con alcance de proyecto más promoción global.

Este archivo se mantiene como referencia de archivo y compatibilidad retroactiva con instalaciones existentes.


Documentación Original v1 (archivo)

Evalúa automáticamente las sesiones de Claude Code al terminar para extraer patrones reutilizables que pueden guardarse como skills aprendidos.

Cuándo Activar

  • Configurar extracción automática de patrones desde sesiones de Claude Code
  • Configurar el hook Stop para evaluación de sesiones
  • Revisar o curar skills aprendidos en ~/.claude/skills/learned/
  • Ajustar umbrales de extracción o categorías de patrones
  • Comparar enfoques v1 (este) vs v2 (basado en instintos)

Estado

Este skill v1 sigue siendo compatible, pero continuous-learning-v2 es la ruta preferida para nuevas instalaciones. Mantener v1 cuando explícitamente quieras el flujo de extracción por hook Stop más simple o necesites compatibilidad con flujos de trabajo de skills aprendidos más antiguos.

Cómo Funciona

Este skill se ejecuta como un hook Stop al final de cada sesión:

  1. Evaluación de Sesión: Verifica si la sesión tiene suficientes mensajes (por defecto: 10+)
  2. Detección de Patrones: Identifica patrones extraíbles de la sesión
  3. Extracción de Skills: Guarda patrones útiles en ~/.claude/skills/learned/

Configuración

Editar config.json para personalizar:

{
  "min_session_length": 10,
  "extraction_threshold": "medium",
  "auto_approve": false,
  "learned_skills_path": "~/.claude/skills/learned/",
  "patterns_to_detect": [
    "error_resolution",
    "user_corrections",
    "workarounds",
    "debugging_techniques",
    "project_specific"
  ],
  "ignore_patterns": [
    "simple_typos",
    "one_time_fixes",
    "external_api_issues"
  ]
}

Tipos de Patrones

PatrónDescripción
error_resolutionCómo se resolvieron errores específicos
user_correctionsPatrones de correcciones del usuario
workaroundsSoluciones a peculiaridades de frameworks/librerías
debugging_techniquesEnfoques efectivos de depuración
project_specificConvenciones específicas del proyecto

Configuración del Hook

Agregar a tu ~/.claude/settings.json:

{
  "hooks": {
    "Stop": [{
      "matcher": "*",
      "hooks": [{
        "type": "command",
        "command": "~/.claude/skills/continuous-learning/evaluate-session.sh"
      }]
    }]
  }
}

Por Qué Hook Stop?

  • Ligero: Se ejecuta una vez al final de la sesión
  • No bloqueante: No agrega latencia a cada mensaje
  • Contexto completo: Tiene acceso a la transcripción completa de la sesión

Relacionado

  • /learn — Extracción manual de patrones a mitad de sesión

Notas de Comparación (Investigación: Ene 2025)

vs Homunculus

Homunculus v2 adopta un enfoque más sofisticado:

CaracterísticaNuestro EnfoqueHomunculus v2
ObservaciónHook Stop (fin de sesión)Hooks PreToolUse/PostToolUse (100% confiable)
AnálisisContexto principalAgente en segundo plano (Haiku)
GranularidadSkills completos"Instintos" atómicos
ConfianzaNingunaPonderada 0.3-0.9
EvoluciónDirectamente a skillInstintos → cluster → skill/comando/agente
CompartirNingunoExportar/importar instintos

Insight clave de homunculus:

"v1 dependía de skills para observar. Los skills son probabilísticos — se activan ~50-80% del tiempo. v2 usa hooks para la observación (100% confiable) e instintos como unidad atómica de comportamiento aprendido."

Mejoras Potenciales v2

  1. Aprendizaje basado en instintos — Comportamientos más pequeños y atómicos con puntuación de confianza
  2. Observador en segundo plano — Agente Haiku analizando en paralelo
  3. Decaimiento de confianza — Los instintos pierden confianza si son contradichos
  4. Etiquetado de dominio — code-style, testing, git, debugging, etc.
  5. Ruta de evolución — Agrupar instintos relacionados en skills/comandos

Ver: docs/continuous-learning-v2-spec.md para la especificación completa.

Frequently asked questions about Continuous Learning

Similar skills