affaan-m/ECC/docs/zh-CN/skills/continuous-learning/SKILL.md
continuous-learning
Use it for engineering tasks; the detail page covers purpose, installation, and practical steps.
- Source repository stars
- 234,327
- Declared platforms
- 1
- Static risk flags
- 0
- Last source update
- 2026-07-27
- Source checked
- 2026-07-28
Decision brief
What it does—and where it fits
自动评估 Claude Code 会话的结尾,以提取可重用的模式,这些模式可以保存为学习到的技能。
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Declared | Source record | Install path and trigger |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/continuous-learning"Inspect the Agent Skill "continuous-learning" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/docs/zh-CN/skills/continuous-learning/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
何时激活
设置从 Claude Code 会话中自动提取模式 为会话评估配置停止钩子 在 /.claude/skills/learned/ 中审查或整理已学习的技能 调整提取阈值或模式类别 比较 v1(本方法)与 v2(基于本能的方法)
设置从 Claude Code 会话中自动提取模式为会话评估配置停止钩子在 /.claude/skills/learned/ 中审查或整理已学习的技能 - 02
工作原理
1. 会话评估:检查会话是否包含足够多的消息(默认:10 条以上) 2. 模式检测:从会话中识别可提取的模式 3. 技能提取:将有用的模式保存到 /.claude/skills/learned/
会话评估:检查会话是否包含足够多的消息(默认:10 条以上)模式检测:从会话中识别可提取的模式技能提取:将有用的模式保存到 /.claude/skills/learned/ - 03
配置
Review the “配置” section in the pinned source before continuing.
Review and apply the “配置” source section.
Permission review
Static risk signals and limitations
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 69/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 234,327 | Source | Repository attention, not individual Skill quality |
| Compatibility | 1 platforms | Source | Declared in the catalog source record |
| Usage guide | catalog record | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- affaan-m/ECC
- Skill path
- docs/zh-CN/skills/continuous-learning/SKILL.md
- Commit
- 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
- License
- MIT
- Collected
- 2026-07-28
- Default branch
- main
View the original SKILL.md
持续学习技能
自动评估 Claude Code 会话的结尾,以提取可重用的模式,这些模式可以保存为学习到的技能。
何时激活
- 设置从 Claude Code 会话中自动提取模式
- 为会话评估配置停止钩子
- 在
~/.claude/skills/learned/中审查或整理已学习的技能 - 调整提取阈值或模式类别
- 比较 v1(本方法)与 v2(基于本能的方法)
工作原理
此技能作为 停止钩子 在每个会话结束时运行:
- 会话评估:检查会话是否包含足够多的消息(默认:10 条以上)
- 模式检测:从会话中识别可提取的模式
- 技能提取:将有用的模式保存到
~/.claude/skills/learned/
配置
编辑 config.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 中:
{
"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 增强功能
- 基于本能的学习 - 更小、原子化的行为,附带置信度评分
- 后台观察者 - Haiku 代理并行分析
- 置信度衰减 - 如果被反驳,本能会降低置信度
- 领域标记 - 代码风格、测试、git、调试等
- 演进路径 - 将相关本能聚类为技能/命令
参见:docs/continuous-learning-v2-spec.md 以获取完整规范。
Alternatives
Compare before choosing
affaan-m/ECC
continuous-learning
Claude Code oturumlarından yeniden kullanılabilir kalıpları otomatik olarak çıkarın ve gelecekte kullanmak üzere öğrenilmiş skill'ler olarak kaydedin.
affaan-m/ECC
continuous-learning
Use it for engineering tasks; the detail page covers purpose, installation, and practical steps.
affaan-m/ECC
continuous-learning
Automatically extract reusable patterns from Claude Code sessions and save them as learned skills for future use.
affaan-m/ECC
continuous-learning
Use it for engineering tasks; the detail page covers purpose, installation, and practical steps.