learning
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseClaude Learner - Self-Improvement Skill
Claude Learner - 自我提升技能
You have access to claude-learner, a system that turns corrections into permanent rules.
你可以使用claude-learner系统,它能将修正建议转化为永久规则。
When to Use
使用场景
- User corrects you ("No, don't do X, do Y instead")
- You make a repeated mistake
- User expresses a preference
- A better pattern is discovered
- 用户对你进行修正(例如:“不对,不要做X,应该做Y”)
- 你重复犯同一错误
- 用户表达了偏好
- 发现了更优的模式
Available Commands
可用命令
| Command | What It Does |
|---|---|
| Check daemon and rules status |
| List all rules |
| Approve a pending rule |
| Reject a pending rule |
| Start the learning daemon |
| Stop the learning daemon |
| 命令 | 功能 |
|---|---|
| 检查守护进程和规则状态 |
| 列出所有规则 |
| 批准待审核规则 |
| 拒绝待审核规则 |
| 启动学习守护进程 |
| 停止学习守护进程 |
MCP Tools
MCP工具
If MCP is connected, you have these tools:
- - Log a correction event
log_correction - - Propose a new rule
propose_rule - - Get active rules
get_rules - - Get rules awaiting approval
get_pending_rules - - Approve a rule
approve_rule - - Reject a rule
reject_rule - - Get learning statistics
get_stats
如果已连接MCP,你可以使用以下工具:
- - 记录修正事件
log_correction - - 提出新规则
propose_rule - - 获取生效规则
get_rules - - 获取待审核规则
get_pending_rules - - 批准规则
approve_rule - - 拒绝规则
reject_rule - - 获取学习统计数据
get_stats
Best Practices
最佳实践
- Detect corrections automatically - When user says "actually...", "no, use...", "don't do X", log it
- Propose rules for patterns - If you see repeated corrections, propose a rule
- Check rules periodically - Use to remind yourself of learned behaviors
get_rules - Don't over-rule - Not every correction needs a permanent rule
- 自动检测修正建议 - 当用户说“实际上...”、“不对,应该用...”、“不要做X”时,记录该事件
- 针对模式提出规则 - 如果发现重复的修正建议,提出规则
- 定期检查规则 - 使用来提醒自己已习得的行为
get_rules - 避免过度创建规则 - 并非每个修正建议都需要转化为永久规则
Example Flow
示例流程
User: "Don't use rm, use trash instead"
1. Log correction: log_correction({
pattern: "using rm command",
correction: "use trash instead of rm",
context: "file deletion"
})
2. If pattern repeats, propose rule: propose_rule({
content: "Always use `trash` instead of `rm` for file deletion",
trigger: "rm command usage"
})
3. Rule goes to pending → user approves → permanently activeUser: "Don't use rm, use trash instead"
1. Log correction: log_correction({
pattern: "using rm command",
correction: "use trash instead of rm",
context: "file deletion"
})
2. If pattern repeats, propose rule: propose_rule({
content: "Always use `trash` instead of `rm` for file deletion",
trigger: "rm command usage"
})
3. Rule goes to pending → user approves → permanently active