skills/continuous-learning/SKILL.md
Automatically extract reusable patterns from Claude Code sessions and save them as learned skills for future use.
npx skillsauth add xu-xiang/everything-claude-code-zh continuous-learningInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
在会话结束时自动评估 Claude Code 会话,提取可保存为已学习技能(Learned Skills)的可复用模式。
Stop 钩子(Hook)~/.claude/skills/learned/ 中的已学习技能此技能在每个会话结束时作为 Stop 钩子(Hook) 运行:
~/.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 命令 - 会话中途手动提取模式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)’作为学习行为的原子单位。”
参见:/Users/affoon/Documents/tasks/12-continuous-learning-v2.md 获取完整规范。
documentation
将签证申请文件(图像)翻译成英文,并创建包含原文和译文的双语 PDF。
development
Claude Code 会话的全方位验证系统。
tools
在编写新功能、修复 Bug 或重构代码时使用此技能。强制执行测试驱动开发(TDD),包括单元测试、集成测试和 E2E 测试,且覆盖率需达到 80% 以上。
tools
SwiftUI 架构模式,使用 @Observable 进行状态管理,视图组合、导航、性能优化以及现代 iOS/macOS UI 最佳实践。