Self-Improving Agent Skill
Build agents that learn from corrections and get better over time.
by amdf01-debug · published 2026-04-01
$ claw add gh:amdf01-debug/amdf01-debug-sw-self-improving-agent# Self-Improving Agent Skill
Trigger
Build agents that learn from corrections and get better over time.
**Trigger phrases:** "self-improving agent", "agent learns", "correction loop", "agent keeps making mistakes", "teach my agent"
The Correction Loop
User corrects agent → Agent logs correction to RULES.md →
Next session, agent reads RULES.md → Agent avoids the mistake →
Over time, RULES.md becomes a refined operating manualImplementation
RULES.md Structure
# RULES.md — Self-Improving Operating Rules
## Communication
- [2026-03-15] Never use "I hope this helps" — just end the message
- [2026-03-18] When drafting emails, provide ONLY the email text — no commentary
## Operations
- [2026-03-16] Check calendar BEFORE suggesting meeting times
- [2026-03-20] When referencing a project, include status from projects/ folder
## People
- [2026-03-17] Client X prefers formal communication
- [2026-03-19] Always CC studio manager on client emails unless told otherwiseRules for Rules
AGENTS.md Integration
Add to your AGENTS.md:
## Self-Improvement
After ANY correction from the user:
1. Log the correction pattern to RULES.md with date
2. Identify the general rule (not just the specific instance)
3. Check if a similar rule already exists — update rather than duplicate
4. Silently scan RULES.md every ~10 interactions for contradictionsMetrics
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...