Agent skill

Continuous Learning

by affaan-m in affaan-m/ECC

自动从Claude Code会话中提取可重复使用的模式,并将其保存为学习到的技能以供将来使用. An agent skill from affaan-m/ECC.

MITAuto-check passed

Install Continuous Learning

skills CLI
$ npx skills add affaan-m/ECC --skill continuous-learning -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install affaan-m/ECC continuous-learning --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/zh-CN/skills/continuous-learning .claude/skills/continuous-learning && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
continuous-learning
GitHub stars
276k
Used in
3 other repos
Token cost
~559 tokens
SKILL.md length
125 words
Files
1
Skills in repo
673
Repo updated
First seen
Licence
MIT

At a glance

自动从Claude Code会话中提取可重复使用的模式,并将其保存为学习到的技能以供将来使用. An agent skill from affaan-m/ECC.

  • Works in 3 steps: 会话评估:检查会话是否包含足够多的消息(默认:10 条以上) → 模式检测:从会话中识别可提取的模式 → 技能提取:将有用的模式保存到 ~/.claude/skills/learned/
  • SKILL.md covers 何时激活, 工作原理, 配置 and 模式类型, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Continuous Learning is an agent skill from affaan-m/ECC. 自动从Claude Code会话中提取可重复使用的模式,并将其保存为学习到的技能以供将来使用。

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond. The licence is MIT.

Example prompts

  • “/continuous-learning”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

Read from SKILL.md and the folder at commit ef648e0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • x.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Continuous Learning loads about 559 tokens when it runs. Until then it costs about 17 tokens; SKILL.md has 125 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~17
When it runs · the whole SKILL.md, loaded when a task matches
~559

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from affaan-m/ECC at commit ef648e0, republished under its MIT licence (© affaan-m). 125 words, ~559 tokens.

Download SKILL.mdSave it as .claude/skills/continuous-learning/SKILL.md (or your agent's skills folder).
name
continuous-learning
description
自动从Claude Code会话中提取可重复使用的模式,并将其保存为学习到的技能以供将来使用。
origin
ECC

持续学习技能

自动评估 Claude Code 会话的结尾,以提取可重用的模式,这些模式可以保存为学习到的技能。

何时激活

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

工作原理

此技能作为 停止钩子 在每个会话结束时运行:

  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项目特定的约定

钩子设置

添加到你的 ~/.claude/settings.json 中:

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

为什么使用停止钩子?

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

相关

  • 长篇指南 - 关于持续学习的章节
  • /learn 命令 - 在会话中手动提取模式

对比说明(研究:2025年1月)

与 Homunculus 的对比

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

功能我们的方法Homunculus v2
观察停止钩子(会话结束时)PreToolUse/PostToolUse 钩子(100% 可靠)
分析主上下文后台代理 (Haiku)
粒度完整技能原子化的“本能”
置信度无0.3-0.9 加权
演进直接到技能本能 → 集群 → 技能/命令/代理
共享无导出/导入本能

来自 homunculus 的关键见解:

"v1 依赖技能来观察。技能是概率性的——它们触发的概率约为 50-80%。v2 使用钩子进行观察(100% 可靠),并以本能作为学习行为的原子单元。"

潜在的 v2 增强功能
  1. 基于本能的学习 - 更小、原子化的行为,附带置信度评分
  2. 后台观察者 - Haiku 代理并行分析
  3. 置信度衰减 - 如果被反驳,本能会降低置信度
  4. 领域标记 - 代码风格、测试、git、调试等
  5. 演进路径 - 将相关本能聚类为技能/命令

参见:docs/continuous-learning-v2-spec.md 以获取完整规范。

© affaan-m, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/zh-CN/skills/continuous-learning of affaan-m/ECC.

Open the folder on GitHubat commit ef648e0

Used in 3 other repositories

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 3 other GitHub owners. This page covers the copy in affaan-m/ECC, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Continuous Learning next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Continuous Learning compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Continuous Learning this skillaffaan-m/ECC276k3 repos~559Automated safety check: PassMIT
Continuousaiblueprinthq/ai-blueprint463—~4.7kAutomated safety check: PassMIT
Continuetelegramdesktop/tdesktop33k2 repos~9.4kAutomated safety check: PassGPL-3.0
Continuityparcadei/Continuous-Claude-v33.9k1 repos~292Automated safety check: NotesMIT
Continueudecode/plate17k—~2.6kAutomated safety check: PassCustom licence
Continue PRClickHouse/ClickHouse50k—~5.5kAutomated safety check: NotesApache-2.0

Similar skills

  • Continuous

    aiblueprinthq/ai-blueprint

    Build every remaining planned feature serially in explicit Continuous Mode, with one local branch, verification cycle, commit, archive, and local merge per feature.

    463 GitHub stars~4.7k tokensUpdated today
    Auto-check passed
  • Continue

    telegramdesktop/tdesktop

    Continue autonomous Telegram Desktop development from the shared ai-tdesktop repository.

    33k GitHub starsUsed in 2 repos~9.4k tokens
    Productivity & AutomationAuto-check passed
  • Continuity

    parcadei/Continuous-Claude-v3

    Problem-solving strategies for continuity in real analysis. An agent skill from parcadei/Continuous-Claude-v3.

    3.9k GitHub starsUsed in 1 repo~292 tokens
    Research & ScienceAuto-check: notes
  • Continue

    udecode/plate

    Use after an execution slice to reassess whether the current tactic still serves the user's north star, then keep course, pivot, replan, or stop.

    17k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Continue PR

    ClickHouse/ClickHouse

    Continue work on an existing PR - resolve conflicts, fix CI failures, address reviewer feedback, and push updates.

    50k GitHub stars~5.5k tokensUpdated today
    DevelopmentAuto-check: notes
  • Continue PR Auto

    ClickHouse/ClickHouse

    Unattended variant of continue-pr for automation (driven by utils/continue-all-prs.sh).

    50k GitHub stars~8.6k tokensUpdated today
    DatabasesAuto-check: notes

More from affaan-m/ECC

All 673 skills in this repo
  • Skill Stocktake

    affaan-m/ECC

    Audits your installed Claude skills and commands for quality, with a quick mode for recently changed skills and a full mode that evaluates all of them through subagents.

    276k GitHub starsUsed in 5 repos~1.9k tokens
    Auto-check passed
  • Ingests, indexes, searches, edits and monitors video, audio and live streams through the VideoDB Python SDK, returning stream links, clips and timestamps.

    276k GitHub starsUsed in 3 repos~3.5k tokens
    Auto-check: notes
  • Rules Distillation

    affaan-m/ECC

    Scans installed skills for principles that recur across them and proposes rule-file changes: append, revise, add a section, create a file or leave as covered.

    276k GitHub starsUsed in 2 repos~2.3k tokens
    Auto-check passed
  • Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.

    276k GitHub stars~2.9k tokensUpdated 4 days ago
    Auto-check passed
  • Measures whether agents actually follow a skill, rule or agent definition by generating scenarios at three strictness levels and scoring tool-call traces.

    276k GitHub starsUsed in 1 repo~623 tokens
    Auto-check passed
  • Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.

    276k GitHub stars~3.5k tokensUpdated 4 days ago
    Auto-check passed

Questions about Continuous Learning

What does Continuous Learning do?

自动从Claude Code会话中提取可重复使用的模式,并将其保存为学习到的技能以供将来使用. An agent skill from affaan-m/ECC. Continuous Learning is an agent skill from affaan-m/ECC.

How do I install Continuous Learning in Claude Code?

Run `npx skills add affaan-m/ECC --skill continuous-learning -a claude-code`. Or copy the skill folder (docs/zh-CN/skills/continuous-learning in affaan-m/ECC) into .claude/skills/continuous-learning in your project. Claude Code loads it when a task matches its description.

How do I install Continuous Learning in Codex?

Run `npx skills add affaan-m/ECC --skill continuous-learning -a codex`. Or copy the skill folder (docs/zh-CN/skills/continuous-learning in affaan-m/ECC) into .agents/skills/continuous-learning in your project. Codex loads it when a task matches its description.

Can I use Continuous Learning in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add affaan-m/ECC --skill continuous-learning -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/continuous-learning, .gemini/skills/continuous-learning, .github/skills/continuous-learning and .opencode/skills/continuous-learning in your project.

What does Continuous Learning need to run?

SKILL.md names no scripts, command-line tools or credentials: Continuous Learning is instructions for the agent only.

Does Continuous Learning access the network?

SKILL.md names 1 domain. As links in the text: x.com. This is read from the text; nothing was executed.

Is Continuous Learning safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Continuous Learning use?

Continuous Learning is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Continuous Learning use?

About 559 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Continuous Learning?

Skills that share tags, products or a category with Continuous Learning: Continuous (aiblueprinthq/ai-blueprint, 463 stars), Continue (telegramdesktop/tdesktop, 33k stars), Continuity (parcadei/Continuous-Claude-v3, 3.9k stars) and Continue (udecode/plate, 17k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Continuous Learning?

affaan-m (a GitHub user) maintains it in affaan-m/ECC, which has 275,546 GitHub stars. The repository holds 673 skills in this directory. The repository was last updated on October 5, 2026.

Source: affaan-m/ECC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.