continuous-learning by affaan-m/everything-claude-code
npx skills add https://github.com/affaan-m/everything-claude-code --skill continuous-learning自动评估 Claude Code 会话的结尾,提取可重复使用的模式,并将其保存为已学习的技能。
~/.claude/skills/learned/ 中查看或管理已学习的技能时此技能作为 Stop 钩子 在每个会话结束时运行:
~/.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"
]
}
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 模式 | 描述 |
|---|---|
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 命令 - 在会话中手动提取模式Homunculus v2 采用了更复杂的方法:
| 特性 | 我们的方法 | Homunculus v2 |
|---|---|---|
| 观察方式 | Stop 钩子(会话结束时) | PreToolUse/PostToolUse 钩子(100% 可靠) |
| 分析方式 | 主上下文 | 后台代理(Haiku) |
| 粒度 | 完整技能 | 原子化的“本能” |
| 置信度 | 无 | 0.3-0.9 加权 |
| 演化路径 | 直接成为技能 | 本能 → 聚类 → 技能/命令/代理 |
| 共享 | 无 | 导出/导入本能 |
来自 homunculus 的关键见解:
"v1 依赖技能进行观察。技能是概率性的——它们触发的概率约为 50-80%。v2 使用钩子进行观察(100% 可靠),并使用本能作为学习行为的原子单位。"
完整规范请参见:docs/continuous-learning-v2-spec.md。
每周安装量
1.0K
代码仓库
GitHub 星标数
70.6K
首次出现
Jan 22, 2026
安全审计
安装于
opencode838
codex812
gemini-cli796
claude-code785
github-copilot712
cursor701
Automatically evaluates Claude Code sessions on end to extract reusable patterns that can be saved as learned skills.
~/.claude/skills/learned/This skill runs as a Stop hook at the end of each session:
~/.claude/skills/learned/Edit config.json to customize:
{
"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"
]
}
| Pattern | Description |
|---|---|
error_resolution | How specific errors were resolved |
user_corrections | Patterns from user corrections |
workarounds | Solutions to framework/library quirks |
debugging_techniques | Effective debugging approaches |
project_specific | Project-specific conventions |
Add to your ~/.claude/settings.json:
{
"hooks": {
"Stop": [{
"matcher": "*",
"hooks": [{
"type": "command",
"command": "~/.claude/skills/continuous-learning/evaluate-session.sh"
}]
}]
}
}
/learn command - Manual pattern extraction mid-sessionHomunculus v2 takes a more sophisticated approach:
| Feature | Our Approach | Homunculus v2 |
|---|---|---|
| Observation | Stop hook (end of session) | PreToolUse/PostToolUse hooks (100% reliable) |
| Analysis | Main context | Background agent (Haiku) |
| Granularity | Full skills | Atomic "instincts" |
| Confidence | None | 0.3-0.9 weighted |
| Evolution | Direct to skill | Instincts → cluster → skill/command/agent |
| Sharing | None | Export/import instincts |
Key insight from homunculus:
"v1 relied on skills to observe. Skills are probabilistic—they fire ~50-80% of the time. v2 uses hooks for observation (100% reliable) and instincts as the atomic unit of learned behavior."
See: docs/continuous-learning-v2-spec.md for full spec.
Weekly Installs
1.0K
Repository
GitHub Stars
70.6K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode838
codex812
gemini-cli796
claude-code785
github-copilot712
cursor701
97,600 周安装