← 返回
未分类 中文

Skill Experience Layer

Pre-call experience checking + error-driven learning + layered experience storage. Avoid repeating mistakes, get smarter every time. Pre-integrated with self...
通话前经验检查 + 错误驱动学习 + 分层存储。避免重复犯错,日益智能。预集成自...
jilanfang jilanfang 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 495
下载
💾 1
安装
1
版本
#latest

概述

Skill Experience Layer - 技能经验分层机制

What it does

Give your agent permanent, per-skill experience memory that:

  1. Pre-call checking: Before you call any skill, automatically read the common mistakes and best practices so you avoid repeating the same pitfalls
  2. Error-driven learning: When you make a mistake, immediately record it to the corresponding skill's experience file
  3. Automatic evolution: Integrates with capability-evolver to automatically improve experience when mistakes repeat
  4. Fits existing memory architecture: Works with your existing (instant → hot → short-term → long-term) memory hierarchy

Why this is different

ApproachTraditionalskill-experience-layer
-----------------------------------------------
When lessons are appliedAfter mistake (retrospective)Before next call (preventive)
Experience storageGlobal reflectionPer-skill JSON files, easy to evolve
IntegrationSelf-contained, requires manual integrationDesigned to fit your existing memory hierarchy
Automatic evolutionNo built-in supportFirst-class integration with capability-evolver

Workflow

1. For every skill you use

When you install a new skill:

  • Create memory/experiences/{skill-name}.json
  • Define commonMistakes[] and bestPractices[]
  • Before every invocation, read it and remind yourself what to avoid

2. When you make a mistake

  1. Stop immediately, don't keep retrying
  2. Record the mistake in self-improving/corrections.md
  3. Update the skill's experience JSON:
    • Add new entry to experiences[] with context, lesson, prevention
    • Update commonMistakes[] if it's a new pattern
    • Increment failureCount
  4. If the same mistake repeats 2+ times, trigger capability-evolver to automatically improve the experience and best practices
  5. Retry after updating

3. Regular maintenance

  • Daily: End-of-day review mistakes, update experiences
  • Weekly: Promote key lessons to long-term memory in MEMORY.md
  • Automatic: capability-evolver can continuously improve stale experiences

Example experience file

{
  "type": "skill",
  "name": "my-skill",
  "lastUpdated": "2026-03-17T19:00:00+08:00",
  "totalExecutions": 10,
  "successCount": 8,
  "failureCount": 2,
  "experiences": [
    {
      "id": "exp-my-skill-001",
      "timestamp": "2026-03-10T20:00:00+08:00",
      "context": "What you were doing when the mistake happened",
      "lesson": "What you learned",
      "severity": "medium",
      "timesRepeated": 1,
      "prevention": "What to do differently next time"
    }
  ],
  "patterns": {
    "commonMistakes": [
      "First common mistake to avoid",
      "Second common mistake"
    ],
    "bestPractices": [
      "First best practice",
      "Second best practice"
    ]
  }
}

Integration with existing systems

Works great with:

  • self-improving: Uses the correction/reflection workflow
  • capability-evolver: Automatic experience improvement when mistakes repeat
  • Your existing memory hierarchy: Experiences live in memory/experiences/, fits alongside your daily/weekly memory

Safety Boundaries

  • ✅ Only modifies experience files in memory/experiences/ and skill-owned files
  • ✅ Never touches core root files (MEMORY.md, SOUL.md, IDENTITY.md, USER.md, .env) — reads but does not write
  • ✅ Never accesses sensitive directories (~/.ssh, ~/.aws, /etc)
  • ✅ All automatic changes are backed up before applying, can roll back
  • ✅ High-risk changes require human approval

Author

Created from practical experience integrating self-improvement into a working agent. This is the missing glue between general self-improving frameworks and your actual daily usage.

Get smarter with every mistake, don't repeat the same pit twice.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-02 09:32 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,471 📥 535,349
ai-agent

Self-Improving + Proactive Agent

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

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,107 📥 830,557