← 返回
AI智能 中文

Self-Learn

Continuous self-improvement through learning from corrections and task self-evaluation. Use when: (1) User corrects the agent (No that is wrong, Actually, I...
通过从纠正和任务自评中学习实现持续自我改进。使用时机:(1)用户纠正智能体(如“不对,那是错的”,“其实,我……)。
tonylnng
AI智能 clawhub v1.0.0 1 版本 99894.2 Key: 无需
★ 0
Stars
📥 944
下载
💾 50
安装
1
版本
#latest

概述

Self-Learn Skill

Two-part continuous improvement loop: learn from corrections, learn from self-evaluation.

On Every Task Completion

After finishing any task, briefly self-evaluate (1–3 sentences internally):

  • Did the output meet the intent?
  • What could be better next time?
  • Is this a repeatable pattern worth storing?

If yes → log it. If it was routine with no issues → skip logging (don't over-log).

Log format:

CONTEXT: [task type]
REFLECTION: [what I noticed]
LESSON: [what to do differently / keep doing]

Append to memory/corrections.md under today's date. Also call memory_store with:

  • category: decision
  • importance: 0.75
  • text: [LESSON] + relevant keywords

On User Corrections

Trigger phrases (detect these):

  • "No, that's wrong / not right"
  • "Actually..." / "I prefer..." / "Remember that I..."
  • "Stop doing X" / "Why do you keep..."
  • "I told you before..." / "Always do X"

When triggered:

  1. Acknowledge the correction briefly
  2. Append to memory/corrections.md under ## Corrections with today's date
  3. Call memory_store with:
    • category: preference (style/tone) or decision (behaviour/approach)
    • importance: 0.85
    • text: [CORRECTION] + keywords
  4. Recall to verify it stored correctly

Log format:

[YYYY-MM-DD] CORRECTION: <what was wrong> → <correct behaviour>

memory/corrections.md Structure

# Corrections & Learnings Log

## Corrections
[YYYY-MM-DD] CORRECTION: ...

## Self-Evaluations
[YYYY-MM-DD] CONTEXT: ... | LESSON: ...

Create the file if it doesn't exist.

On "What have you learned?" / "Show my patterns"

Read memory/corrections.md and show last 10 entries. Also memory_recall with query "CORRECTION OR LESSON" for LanceDB results.

Installation on a New OpenClaw

  1. Copy skills/self-learn/ into your workspace skills/ folder — skill activates automatically
  2. Create memory/corrections.md (copy from references/corrections-template.md)
  3. Optionally update AGENTS.md skill table for easy reference

Rules

  • Don't over-log — skip routine tasks with no notable outcome
  • Atomic entries — one lesson per entry, under 100 words
  • Keywords matter — include domain keywords in memory_store text for good recall
  • No secrets — never log credentials, personal data, or sensitive info
  • Corrections always log — user corrections are always worth storing (importance ≥ 0.85)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 04:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,061 📥 799,135
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 714 📥 244,075
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,362 📥 318,921