Continuous Learning logo

Continuous Learning

Community
virgo777
continuous-learning

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

Overview

Publishervirgo777
Repositorybuddyme
Skill namecontinuous-learning
Stars
62
Forks
8
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by virgo777 on GitHub. Read the source before you install it.

Installation

Install the Continuous Learning AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/virgo777/buddyme/tree/master/buddyMe/skill_library/skills/continuous-learning
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/virgo777/buddyme.git /tmp/buddyme
mkdir -p .claude/skills
cp -r /tmp/buddyme/buddyMe/skill_library/skills/continuous-learning .claude/skills/continuous-learning
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Continuous Learning in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Continuous Learning on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Continuous Learning is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

持续学习技能(Continuous Learning Skill)

在会话结束时自动评估 Claude Code 会话,提取可保存为已学习技能(Learned Skills)的可复用模式。

何时激活

  • 设置从 Claude Code 会话中自动提取模式
  • 为会话评估配置 Stop 钩子(Hook)
  • 查看或整理 ~/.claude/skills/learned/ 中的已学习技能
  • 调整提取阈值或模式类别
  • 比较 v1(当前)与 v2(基于直觉/Instinct)的方法

工作原理

此技能在每个会话结束时作为 Stop 钩子(Hook) 运行:

  1. 会话评估:检查会话是否有足够的消息(默认:10 条以上)
  2. 模式检测:从会话中识别可提取的模式
  3. 技能提取:将有用的模式保存到 ~/.claude/skills/learned/

配置

编辑 config.json 进行自定义:

json
{
  "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"
  ]
}

模式类型

模式描述
error_resolution特定错误的解决方法
user_corrections来自用户纠偏的模式
workarounds针对框架/库缺陷的解决方案
debugging_techniques有效的调试方法
project_specific项目特定的约定

钩子设置(Hook Setup)

添加到您的 ~/.claude/settings.json:

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

为什么使用 Stop 钩子?

  • 轻量化:仅在会话结束时运行一次
  • 非阻塞:不会给每条消息增加延迟
  • 完整上下文:可以访问完整的会话记录

相关内容


比较笔记(调研:2025年1月)

与 Homunculus 对比

Homunculus v2 采用了更复杂的方法:

特性我们的方法Homunculus v2
观察机制(Observation)Stop 钩子(会话结束)PreToolUse/PostToolUse 钩子(100% 可靠)
分析方式(Analysis)主上下文(Main context)后台智能体(Haiku agent)
粒度(Granularity)完整技能(Full skills)原子化“直觉”(Atomic "instincts")
置信度(Confidence)无0.3-0.9 权重
演进路径(Evolution)直接生成技能直觉 → 聚类 → 技能/命令/智能体
共享方式(Sharing)无导出/导入直觉

来自 Homunculus 的关键见解:

“v1 依赖技能(Skills)进行观察。技能是概率性的——它们的触发频率约为 50-80%。v2 使用钩子(Hooks)进行观察(100% 可靠),并将‘直觉(Instincts)’作为学习行为的原子单位。”

潜在的 v2 增强功能

  1. 基于直觉的学习 - 带有置信度评分的更小、原子化的行为
  2. 后台观察者 - 并行分析的 Haiku 智能体
  3. 置信度衰减 - 如果发生冲突,直觉的置信度会降低
  4. 领域标签 - 代码风格、测试、Git、调试等
  5. 演进路径 - 将相关的直觉聚类为技能/命令

参见:/Users/affoon/Documents/tasks/12-continuous-learning-v2.md 获取完整规范。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Continuous Learning AI skill do?

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

Why use Continuous Learning on TypingMind?

Because you install it once and use it with any model. Continuous Learning is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Continuous Learning in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/virgo777/buddyme/tree/master/buddyMe/skill_library/skills/continuous-learning. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Continuous Learning?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Continuous Learning?

As many as you like. As long as a model supports skills, you can use Continuous Learning with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Continuous Learning AI skill free?

It is published on GitHub by virgo777. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇