api-design
Free生产级 API 的 REST API 设计模式,包括资源命名、状态码、分页、过滤、错误响应、版本控制和速率限制。
The English summary is being prepared. Showing the original description.
Automatically extract reusable patterns from Claude Code sessions and save them as learned skills for future use.
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
在会话结束时自动评估 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 获取完整规范。
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
生产级 API 的 REST API 设计模式,包括资源命名、状态码、分页、过滤、错误响应、版本控制和速率限制。
The English summary is being prepared. Showing the original description.
REST API设计模式,包括资源命名、状态码、分页、过滤、错误响应、版本控制和生产API的速率限制。
The English summary is being prepared. Showing the original description.
撰写文章、指南、博客、教程、时事通讯等长篇内容,并根据提供的示例或品牌指南呈现独特的语言风格。当用户需要篇幅超过一段的精炼文字,且重视风格一致性、结构和可信度时,请使用此技能。
The English summary is being prepared. Showing the original description.
根据提供的示例或品牌指导,以独特的语气撰写文章、指南、博客帖子、教程、新闻简报等长篇内容。当用户需要超过一段的精致书面内容时使用,尤其是当语气一致性、结构和可信度至关重要时。
The English summary is being prepared. Showing the original description.
编写文章、指南、博客帖子、教程、新闻通讯(newsletter)以及其他长篇内容。这些内容具有从提供的示例或品牌指南中提取出的独特语气。当用户需要比段落更长的精美文案,且对语气一致性、结构和可信度有要求时,请使用此技能(Skill)。
The English summary is being prepared. Showing the original description.
编写文章、指南、博客、教程、时事通讯(Newsletter)等长内容,支持从示例或品牌指南中提取独特的语感语调。适用于需要撰写超过一个段落的精炼文本,尤其是对语气一致性、结构和可信度有较高要求时。
The English summary is being prepared. Showing the original description.