Install
openclaw skills install self-iteration-engineSelf-iteration and feedback learning engine for AI agent skills. Tracks usage logs, detects performance patterns, triggers skill updates, and proposes new skill creation based on repeated request patterns. Use when: any skill needs to improve over time, detect failure patterns, learn from user corrections, or decide when to create new skills. Triggers: "learn from this", "improve yourself", periodic review cycles, or any skill declaring dependency for self-improvement.
openclaw skills install self-iteration-engineSelf-iteration and feedback learning engine for AI agent skills. Tracks usage logs, detects performance patterns, triggers skill updates, and proposes new skill creation based on repeated request patterns.
This is a shared component skill — other skills reference it for self-improvement. When updating, ensure backward compatibility with all dependent skills. Users may install this skill standalone for its capabilities.
Maintain a usage log file for each skill that declares dependency:
# Usage Log: <skill-name>
## [YYYY-MM-DD]
- Request: <brief description>
- Outcome: success | partial | fail
- User corrected: yes | no
- Correction detail: <if yes, what was corrected>
- Lesson: <what to do differently next time>
File location: memory/usage-logs/<skill-name>.md
Evaluate these conditions during each periodic review (default daily, configurable):
| Condition | Action |
|---|---|
| 3+ consecutive successful invocations | Mark skill as "stable" — reduce context allocation |
| 2+ failures for the same scenario | Flag for SKILL.md reassessment |
| Same request type appears 3+ times | Evaluate creating a new dedicated skill |
| User corrected output | Log correction, adjust future behavior for that scenario |
| Skill hasn't been reviewed in 30+ days | Trigger review: check if dependencies changed, update examples |
| External tech change detected | Compare against skill's core technology stack, update if needed |
# memory/feedback-loop/<skill-name>.yaml
feedback_loop:
last_review: "2026-05-19"
next_review: "2026-05-26"
status: "stable" | "needs-attention" | "monitoring"
patterns_observed:
- pattern: "user asks for financial data on weekends"
current_response: "check if markets are open"
improvement: "pre-fill with last trading day data"
status: "resolved" | "pending" | "in-progress"
skill_performance:
total_calls: 47
success_rate: 0.96
issues:
- "data freshness on weekends"
| Signal | Decision |
|---|---|
| 80%+ success rate, no user corrections | No update needed |
| 60-80% success rate | Minor update: clarify instructions, add edge cases |
| <60% success rate | Major update: redesign workflow, check data sources |
| User corrects same thing 3+ times | Fix that specific guidance in SKILL.md |
| External API / tool changed | Update immediately |
| New competing technology available | Evaluate migration; update if 2x+ better |
Create a new skill when:
Document in memory/skill-ideas/:
proposal:
name: <suggested-slug>
rationale: "Pattern X appeared N times. Existing skill Y handles it poorly because..."
scope: "<bounded description>"
priority: high | medium | low
created: <date>
Other skills declare dependency:
metadata:
openclaw:
requires:
skills:
- self-iteration-engine
Usage logs are prefixed with the source skill name:
memory/usage-logs/skill-a.mdmemory/feedback-loop/skill-a.yamlWhen this skill updates log format, check ALL dependent skills' parsing logic.
面向AI Agent技能的自迭代与反馈学习引擎。追踪使用日志、检测性能模式、触发技能更新,并基于重复请求模式提出新技能创建建议。
这是一个共享组件技能——其他技能通过它实现自我改进。更新时需保证向后兼容。用户也可能独立安装此技能使用其能力。
每个声明依赖的技能维护一份使用日志:
# 使用日志:<skill名称>
## [YYYY-MM-DD]
- 请求:<简述>
- 结果:成功 | 部分成功 | 失败
- 用户修正:是 | 否
- 修正详情:<如果是,修正了什么>
- 经验:<下次应该怎么做>
文件位置:memory/usage-logs/<skill名称>.md
定期审查时评估以下条件(默认每天,可配置):
| 条件 | 行动 |
|---|---|
| 连续成功3次以上 | 标记为"稳定"——减少上下文分配 |
| 同一场景失败2次以上 | 标记SKILL.md需重新评估 |
| 同类请求出现3次以上 | 评估创建新专用skill |
| 用户修正了输出 | 记录修正,调整后续该场景的行为 |
| 技能超过30天未审查 | 触发审查:检查依赖是否变更、更新示例 |
| 检测到外部技术变化 | 与技能核心技术栈对比,需要时更新 |
# memory/feedback-loop/<skill名称>.yaml
feedback_loop:
last_review: "2026-05-19"
next_review: "2026-05-26"
status: "stable" | "needs-attention" | "monitoring"
patterns_observed:
- pattern: "用户在周末查询金融数据"
current_response: "检查市场是否开盘"
improvement: "自动填充最近交易日数据"
status: "resolved" | "pending" | "in-progress"
skill_performance:
total_calls: 47
success_rate: 0.96
issues:
- "周末数据新鲜度"
| 信号 | 决策 |
|---|---|
| 成功率>80%,无用户修正 | 无需更新 |
| 成功率60-80% | 小幅更新:澄清说明、补充边界情况 |
| 成功率<60% | 重大更新:重新设计工作流、检查数据源 |
| 用户修正同一内容3次以上 | 在SKILL.md中修复该指导 |
| 外部API/工具变更 | 立即更新 |
| 出现新的竞争技术 | 评估迁移;若2倍以上优于现有则更新 |
以下情况创建新技能:
记录在 memory/skill-ideas/:
proposal:
name: <建议的slug>
rationale: "模式X出现了N次。现有技能Y处理不佳因为..."
scope: "<有边界的描述>"
priority: high | medium | low
created: <日期>
其他技能声明依赖的方式:
metadata:
openclaw:
requires:
skills:
- self-iteration-engine
使用日志以源技能名称为前缀:
memory/usage-logs/skill-a.mdmemory/feedback-loop/skill-a.yaml本技能更新日志格式时,需检查所有依赖技能的解析逻辑。