← 返回
开发者工具 中文

Metaskill

Teaches AI agents how to learn better by enforcing deep correction, transfer learning, and proactive pattern recognition. Use when an error occurs and needs...
通过强制深度纠错、迁移学习和主动模式识别,教导AI代理更有效地学习。适用于发生错误并需要...
fahrulalwan fahrulalwan 来源
开发者工具 clawhub v1.3.0 1 版本 99880.8 Key: 无需
★ 1
Stars
📥 818
下载
💾 9
安装
1
版本
#latest

概述

Metaskill

3 Core Components

  1. Deep Self-Correction (deep-correct.sh) — 3-level breakdown on errors:
    • Surface: What specifically failed
    • Principle: The underlying rule/constraint violated
    • Habit: Concrete behavioral change to prevent recurrence
  1. Transfer Learning (transfer-check.sh) — Before a task, search past learnings for analogous patterns. Maps domains (e.g., "auth" → "security") to prevent siloed learning.
  1. Proactive Pattern Recognition (success-capture.sh) — Log what worked and why, building a repository of successful patterns.

Usage

# When an error occurs
bash skills/metaskill/scripts/deep-correct.sh "description of the error"

# Before starting a complex task
bash skills/metaskill/scripts/transfer-check.sh "description of the new task"

# After successful execution
bash skills/metaskill/scripts/success-capture.sh "what worked" "why it worked"

# Monthly health eval
bash skills/metaskill/scripts/eval.sh --save

Configuration (LLM Provider)

Metaskill uses two provider tiers — fast (extraction) and deep (transfer/eval). Edit config.yaml to match your setup:

# config.yaml
providers:
  fast: anthropic   # change to: openai | ollama | gemini
  deep: anthropic
ProviderEnv VarNotes
---------
anthropicANTHROPIC_API_KEYDefault
openaiOPENAI_API_KEY
ollama(none needed)Local, free
geminiGOOGLE_API_KEY

Ollama example (fully local, no API key):

providers:
  fast: ollama
  deep: ollama
models:
  ollama:
    fast: llama3.2
    deep: llama3.1:70b

If no provider is available, metaskill falls back to manual/heuristic mode (still works, but less precise extraction).

Integration with Self-Improving-Agent

Writes to skills/self-improving-agent/.learnings/ if present, otherwise falls back to its own .learnings/ directory. No extra setup needed.

AGENTS.md Wiring (Mandatory)

Add to pre-task checklist:

  1. Run transfer-check.sh before any major task
  2. Run deep-correct.sh immediately after any error (not just LEARNINGS.md append)
  3. Run success-capture.sh after complex task completes successfully

版本历史

共 1 个版本

  • v1.3.0 当前
    2026-03-29 21:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。适用于以下场景:创建/查询实体(人物、项目、任务、事件、文档)、关联相关对象、强制执行约束、将多步操作规划为图谱变换,或当技能需要共享状态时。触发关键词包括"记住""我知道关于什么""将X链
★ 722 📥 245,160
ai-agent

self-improving agent

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

Self-Improving + Proactive Agent

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