๐ Self-Iteration Engine
/install self-iteration-engine
๐ Self-Iteration Engine
Self-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.
Usage Log Format
Maintain a usage log file for each skill that declares dependency:
# Usage Log: \x3Cskill-name>
## [YYYY-MM-DD]
- Request: \x3Cbrief description>
- Outcome: success | partial | fail
- User corrected: yes | no
- Correction detail: \x3Cif yes, what was corrected>
- Lesson: \x3Cwhat to do differently next time>
File location: memory/usage-logs/\x3Cskill-name>.md
Self-Iteration Triggers
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 |
Feedback Loop Implementation
# memory/feedback-loop/\x3Cskill-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"
Review Cycle
Daily (lightweight)
- Scan today's usage log entries
- Check for failure patterns
- Log any user corrections
Weekly (moderate)
- Aggregate performance stats
- Check iteration triggers (listed above)
- If any trigger fires โ update SKILL.md or create new skill
- Archive usage logs older than 7 days
Monthly (deep)
- Full performance review across all skills
- Compare success rates, identify declining trends
- Check if any external technology replaced the skill's core stack
- Propose new skill ideas based on accumulated pattern data
- Run memory cleanup (delegate to complex-memory-manager)
Update Decision Matrix
| Signal | Decision |
|---|---|
| 80%+ success rate, no user corrections | No update needed |
| 60-80% success rate | Minor update: clarify instructions, add edge cases |
| \x3C60% 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 |
New Skill Creation Criteria
Create a new skill when:
- Same request pattern appears 3+ times across different users
- The pattern cannot be handled well by existing skills
- The pattern has a clear, bounded scope
- A distinct tool/API would improve the result
Document in memory/skill-ideas/:
proposal:
name: \x3Csuggested-slug>
rationale: "Pattern X appeared N times. Existing skill Y handles it poorly because..."
scope: "\x3Cbounded description>"
priority: high | medium | low
created: \x3Cdate>
Cross-Skill Usage
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.yaml
When this skill updates log format, check ALL dependent skills' parsing logic.
๐ ่ช่ฟญไปฃๅผๆ
้ขๅAI Agentๆ่ฝ็่ช่ฟญไปฃไธๅ้ฆๅญฆไน ๅผๆใ่ฟฝ่ธชไฝฟ็จๆฅๅฟใๆฃๆตๆง่ฝๆจกๅผใ่งฆๅๆ่ฝๆดๆฐ๏ผๅนถๅบไบ้ๅค่ฏทๆฑๆจกๅผๆๅบๆฐๆ่ฝๅๅปบๅปบ่ฎฎใ
่ฟๆฏไธไธชๅ ฑไบซ็ปไปถๆ่ฝโโๅ ถไปๆ่ฝ้่ฟๅฎๅฎ็ฐ่ชๆๆน่ฟใๆดๆฐๆถ้ไฟ่ฏๅๅๅ ผๅฎนใ็จๆทไนๅฏ่ฝ็ฌ็ซๅฎ่ฃ ๆญคๆ่ฝไฝฟ็จๅ ถ่ฝๅใ
ไฝฟ็จๆฅๅฟๆ ผๅผ
ๆฏไธชๅฃฐๆไพ่ต็ๆ่ฝ็ปดๆคไธไปฝไฝฟ็จๆฅๅฟ๏ผ
# ไฝฟ็จๆฅๅฟ๏ผ\x3Cskillๅ็งฐ>
## [YYYY-MM-DD]
- ่ฏทๆฑ๏ผ\x3C็ฎ่ฟฐ>
- ็ปๆ๏ผๆๅ | ้จๅๆๅ | ๅคฑ่ดฅ
- ็จๆทไฟฎๆญฃ๏ผๆฏ | ๅฆ
- ไฟฎๆญฃ่ฏฆๆ
๏ผ\x3Cๅฆๆๆฏ๏ผไฟฎๆญฃไบไปไน>
- ็ป้ช๏ผ\x3Cไธๆฌกๅบ่ฏฅๆไนๅ>
ๆไปถไฝ็ฝฎ๏ผmemory/usage-logs/\x3Cskillๅ็งฐ>.md
่ช่ฟญไปฃ่งฆๅๆกไปถ
ๅฎๆๅฎกๆฅๆถ่ฏไผฐไปฅไธๆกไปถ๏ผ้ป่ฎคๆฏๅคฉ๏ผๅฏ้ ็ฝฎ๏ผ๏ผ
| ๆกไปถ | ่กๅจ |
|---|---|
| ่ฟ็ปญๆๅ3ๆฌกไปฅไธ | ๆ ่ฎฐไธบ"็จณๅฎ"โโๅๅฐไธไธๆๅ้ |
| ๅไธๅบๆฏๅคฑ่ดฅ2ๆฌกไปฅไธ | ๆ ่ฎฐSKILL.md้้ๆฐ่ฏไผฐ |
| ๅ็ฑป่ฏทๆฑๅบ็ฐ3ๆฌกไปฅไธ | ่ฏไผฐๅๅปบๆฐไธ็จskill |
| ็จๆทไฟฎๆญฃไบ่พๅบ | ่ฎฐๅฝไฟฎๆญฃ๏ผ่ฐๆดๅ็ปญ่ฏฅๅบๆฏ็่กไธบ |
| ๆ่ฝ่ถ ่ฟ30ๅคฉๆชๅฎกๆฅ | ่งฆๅๅฎกๆฅ๏ผๆฃๆฅไพ่ตๆฏๅฆๅๆดใๆดๆฐ็คบไพ |
| ๆฃๆตๅฐๅค้จๆๆฏๅๅ | ไธๆ่ฝๆ ธๅฟๆๆฏๆ ๅฏนๆฏ๏ผ้่ฆๆถๆดๆฐ |
ๅ้ฆๅพช็ฏๅฎ็ฐ
# memory/feedback-loop/\x3Cskillๅ็งฐ>.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:
- "ๅจๆซๆฐๆฎๆฐ้ฒๅบฆ"
ๅฎกๆฅๅจๆ
ๆฏๆฅ๏ผ่ฝป้๏ผ
- ๆซๆไปๅคฉ็ๆฅๅฟๆก็ฎ
- ๆฃๆฅๅคฑ่ดฅๆจกๅผ
- ่ฎฐๅฝ็จๆทไฟฎๆญฃ
ๆฏๅจ๏ผไธญ็ญ๏ผ
- ๆฑๆปๆง่ฝ็ป่ฎก
- ๆฃๆฅ่งฆๅๆกไปถ
- ่งฆๅๆดๆฐๆๅๅปบๆฐๆ่ฝ
- ๅฝๆกฃ่ถ ่ฟ7ๅคฉ็ๆฅๅฟ
ๆฏๆ๏ผๆทฑๅบฆ๏ผ
- ๅ จๆ่ฝๆง่ฝๅฎกๆฅ
- ๅฏนๆฏๆๅ็๏ผ่ฏๅซไธ้่ถๅฟ
- ๆฃๆฅๅค้จๆๆฏๆฏๅฆๅไปฃไบๆ่ฝๆ ธๅฟ
- ๅบไบ็งฏ็ดฏ็ๆจกๅผๆฐๆฎๆๅบๆฐๆ่ฝๆณๆณ
- ๆง่ก่ฎฐๅฟๆธ ็๏ผๅงๆ็ปcomplex-memory-manager๏ผ
ๆดๆฐๅณ็ญ็ฉ้ต
| ไฟกๅท | ๅณ็ญ |
|---|---|
| ๆๅ็>80%๏ผๆ ็จๆทไฟฎๆญฃ | ๆ ้ๆดๆฐ |
| ๆๅ็60-80% | ๅฐๅน ๆดๆฐ๏ผๆพๆธ ่ฏดๆใ่กฅๅ ่พน็ๆ ๅต |
| ๆๅ็\x3C60% | ้ๅคงๆดๆฐ๏ผ้ๆฐ่ฎพ่ฎกๅทฅไฝๆตใๆฃๆฅๆฐๆฎๆบ |
| ็จๆทไฟฎๆญฃๅไธๅ ๅฎน3ๆฌกไปฅไธ | ๅจSKILL.mdไธญไฟฎๅค่ฏฅๆๅฏผ |
| ๅค้จAPI/ๅทฅๅ ทๅๆด | ็ซๅณๆดๆฐ |
| ๅบ็ฐๆฐ็็ซไบๆๆฏ | ่ฏไผฐ่ฟ็งป๏ผ่ฅ2ๅไปฅไธไผไบ็ฐๆๅๆดๆฐ |
ๆฐๆ่ฝๅๅปบๆ ๅ
ไปฅไธๆ ๅตๅๅปบๆฐๆ่ฝ๏ผ
- ็ธๅ่ฏทๆฑๆจกๅผๅจไธๅ็จๆทๅบ็ฐ3ๆฌกไปฅไธ
- ็ฐๆๆ่ฝๆ ๆณ่ฏๅฅฝๅค็่ฏฅๆจกๅผ
- ่ฏฅๆจกๅผๆๆธ ๆฐใๆ่พน็็่ๅด
- ๆ็ฌ็นๅทฅๅ ท/APIๅฏๆๅ็ปๆ
่ฎฐๅฝๅจ memory/skill-ideas/๏ผ
proposal:
name: \x3Cๅปบ่ฎฎ็slug>
rationale: "ๆจกๅผXๅบ็ฐไบNๆฌกใ็ฐๆๆ่ฝYๅค็ไธไฝณๅ ไธบ..."
scope: "\x3Cๆ่พน็็ๆ่ฟฐ>"
priority: high | medium | low
created: \x3Cๆฅๆ>
่ทจๆ่ฝไฝฟ็จ
ๅ ถไปๆ่ฝๅฃฐๆไพ่ต็ๆนๅผ๏ผ
metadata:
openclaw:
requires:
skills:
- self-iteration-engine
ไฝฟ็จๆฅๅฟไปฅๆบๆ่ฝๅ็งฐไธบๅ็ผ๏ผ
memory/usage-logs/skill-a.mdmemory/feedback-loop/skill-a.yaml
ๆฌๆ่ฝๆดๆฐๆฅๅฟๆ ผๅผๆถ๏ผ้ๆฃๆฅๆๆไพ่ตๆ่ฝ็่งฃๆ้ป่พใ
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install self-iteration-engine - After installation, invoke the skill by name or use
/self-iteration-engine - Provide required inputs per the skill's parameter spec and get structured output
What is ๐ Self-Iteration Engine?
Self-iteration and feedback learning engine for AI agent skills. Tracks usage logs, detects performance patterns, triggers skill updates, and proposes new sk... It is an AI Agent Skill for Claude Code / OpenClaw, with 74 downloads so far.
How do I install ๐ Self-Iteration Engine?
Run "/install self-iteration-engine" in the OpenClaw or Claude Code chat to install it in one step โ no extra setup required.
Is ๐ Self-Iteration Engine free?
Yes, ๐ Self-Iteration Engine is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does ๐ Self-Iteration Engine support?
๐ Self-Iteration Engine is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created ๐ Self-Iteration Engine?
It is built and maintained by shake27 (@bustes01); the current version is v1.0.0.