微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

AI 错误转化系统规则,实验验证持续进化

OpenClaw Self-Improvement · v0.2.8
AI 增强 安全 B 级 作者 x-rayluan 公开目录收录
下载 2.9k 安装 0 收藏 13.6k 浏览 17
原始页面

简介

将 AI 操作中的失败转化为持久性系统规则,通过结构化日志、实验验证和渐进式推广,构建自我完善的运营知识库。

原始描述

A reusable operator-guided workflow improvement skill for OpenClaw and ClawLite that turns repeated failures into logged learnings, binary eval loops, SOPs,...

中文使用说明 来自收录源

核心用法

OpenClaw 自我改进技能是一套轻量级的运营学习框架,旨在解决 AI 代理重复犯错的常见问题。它通过六个脚本命令将临时修正转化为持久知识:

  • log-learning.mjs:记录用户纠正、工作流优化、工具陷阱和运营教训
  • log-learning.mjs error:捕获命令失败、集成故障和运行时阻塞
  • log-learning.mjs feature:追踪缺失能力和重复出现的功能请求
  • log-learning.mjs experiment:为反复失败设计单变量测试
  • log-experiment.mjs:执行二进制评估循环,验证规则有效性
  • promote-learning.mjs:将验证后的模式提升为 AGENTS.md、TOOLS.md 或 SOUL.md 中的正式规则

显著优点

防止知识流失:将散落在对话历史中的纠正转化为结构化文件,避免"同错再犯"。 实验驱动验证:强制要求对新规则进行 3-5 项二进制评估,避免未经测试的变更进入生产环境。 分层存储策略:.learnings/ 目录用于快速捕获,Obsidian 知识库用于长期运营资产,推广目标文件用于执行层规则。 与严格治理兼容:原生支持 Karen 审计和 Mission Control 的强制执行,可将重复阻塞提升为跟踪的运营知识。

潜在局限

不自动修复问题:明确区分"记录"与"解决",学习条目不能替代缺陷修复。 依赖人工判断:实验的 keep/discard/partial_keep 决策需要操作员介入,未完全自动化。 单变量限制:每次实验只允许一个变更,复杂系统优化可能需要多轮迭代。 推广路径未强制:从学习到正式规则的跃迁需要显式调用 promote 脚本,存在遗忘风险。

适合人群

  • 运营 OpenClaw/ClawLite 代理系统的技术团队
  • 需要建立 AI 代理行为审计轨迹的合规敏感组织
  • 追求"渐进式制度化"而非"大爆炸式重构"的务实工程师
  • 使用 Obsidian 作为第二大脑的知识管理实践者

常规风险

日志膨胀:缺乏归档机制可能导致 .learnings/ 目录无限增长。 评估指标漂移:二进制 evals 的定义若不一致,跨实验比较将失效。 规则冲突:多个独立实验推广的规则可能在 AGENTS.md 中产生矛盾约束。 虚假安全感:团队可能误将"已记录"等同于"已解决",延误实际修复。

技能正文


name: openclaw-self-improvement description: A reusable self-improving AI agent skill for OpenClaw and ClawLite that turns repeated failures into guardrails, binary eval loops, SOPs, checklists, and proof-based operational improvements.

OpenClaw / ClawLite Self-Improvement

Use this skill to turn mistakes, corrections, blockers, and better approaches into durable operating knowledge.

What problem this solves

AI ops often repeat the same failures because mistakes stay in chat history instead of becoming system rules. This skill creates a lightweight improvement loop:

  • log failures and learnings
  • separate errors from feature requests
  • run small eval-driven experiments on repeated failures
  • promote important patterns into AGENTS.md / TOOLS.md / SOUL.md
  • write operator notes into Obsidian vault
  • support stricter acceptance via Karen / Mission Control

When to use

Use this skill when the user asks:

  • "make the agent improve itself"
  • "capture learnings"
  • "log mistakes so we do not repeat them"
  • "record blockers / corrections / feature gaps"
  • "build a self-improving OpenClaw workflow"
  • "operationalize lessons learned"
  • "test whether this new rule actually helps"
  • "run an eval loop on this workflow/skill/SOP"
  • "should we keep this new guardrail or discard it"

Files this skill uses

  • .learnings/LEARNINGS.md
  • .learnings/ERRORS.md
  • .learnings/FEATURE_REQUESTS.md
  • .learnings/EXPERIMENTS.md
  • Obsidian vault note under ClawLite/Operations/Learnings/

Command examples

node {baseDir}/scripts/log-learning.mjs learning "Summary" "Details" "Suggested action"
node {baseDir}/scripts/log-learning.mjs error "Summary" "Error details" "Suggested fix"
node {baseDir}/scripts/log-learning.mjs feature "Capability name" "User context" "Suggested implementation"
node {baseDir}/scripts/log-learning.mjs experiment "Target problem" "Baseline failure" "Single mutation to test"
node {baseDir}/scripts/log-experiment.mjs "Target problem" "Baseline failure" "Single mutation" "eval1|eval2|eval3" "Result summary" "testing"
node {baseDir}/scripts/promote-learning.mjs workflow "Rule text"

Categories

learning

Use for:

  • user corrections
  • better recurring workflows
  • tool gotchas
  • operational lessons

error

Use for:

  • command failures
  • integration failures
  • runtime blockers
  • broken release / deploy behavior

feature

Use for:

  • missing capability requests
  • operator workflow gaps
  • recurring requests that deserve a build item

experiment

Use for:

  • repeated failures that need a tested guardrail
  • checklist/SOP/schema changes that should be validated before broad promotion
  • keep/discard decisions on new operating rules
  • binary eval loops for skills, workflows, receipts, summaries, or deploy closeout rules

Promotion targets

  • AGENTS.md → workflow / delegation / execution rules
  • TOOLS.md → tool gotchas, secrets locations, environment routing rules
  • SOUL.md → behavior / communication / non-negotiable principles
  • Obsidian vault → reusable operator log and content proof asset

Karen / Mission Control compatibility

This skill is designed to work with stricter ops governance:

  • Karen can reference learnings when repeated failures happen
  • Mission Control can treat promoted learnings as new operating rules
  • recurring blockers can be elevated from chat into tracked operational knowledge
  • experiments can test whether a new summary contract, receipt rule, or deploy closeout guardrail actually reduced the failure pattern

Eval loop rule

When a repeated failure is turning into a new rule/SOP/checklist, do not only log it. Also:

  1. define 3-5 binary evals
  2. record the baseline failure state
  3. change one thing at a time
  4. re-check the same evals
  5. classify the change as keep / discard / partial_keep

Use {baseDir}/references/eval-loop.md for the experiment format and examples.

Output goal

A good use of this skill should produce one of:

  • a durable learning entry
  • a durable error entry
  • a durable feature request entry
  • a durable experiment entry with binary evals
  • a promoted rule in AGENTS.md / TOOLS.md / SOUL.md
  • an Obsidian vault operations note

Important limits

  • Logging is not the same as fixing.
  • Do not treat a learning entry as closure for a broken deliverable.
  • Use this skill to reduce repeated mistakes, not to excuse them.

References

  • {baseDir}/references/schema.md

  • {baseDir}/references/promotion-guide.md

  • {baseDir}/references/eval-loop.md

  • {baseDir}/references/examples.md

  • {baseDir}/references/decision-rules.md

  • {baseDir}/references/eval-loop.md

  • {baseDir}/references/examples.md

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

其他来源收录

同一技能在不同目录的原始页面:

标签

self-improvementoperational-knowledgeeval-loopexperimentationcontinuous-learningguardrailssopchecklistsobsidian-integrationmission-controlopenclaw

同类 Skill