self-improvement
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.
Why use this skill?
Master the OpenClaw self-improvement skill to turn agent errors into long-term learnings. Improve your workflow with automated logs and persistent memory.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/healersss/self-improving-agent-localWhat This Skill Does
The self-improvement skill for OpenClaw is a systematic framework designed to bridge the gap between ephemeral AI sessions and persistent, long-term intelligence. It acts as an internal feedback loop for the OpenClaw agent, allowing it to capture learnings, errors, and user-driven corrections in a structured markdown-based knowledge base. By logging interactions into the .learnings/ directory, the agent essentially 'learns' from its failures and successes, ensuring that recurring problems are solved once and for all rather than repeated.
Installation
To begin using the self-improvement skill, you must ensure your workspace is prepared for log tracking. You can install it via ClawdHub using the command clawdhub install self-improving-agent. If you prefer a manual setup, clone the repository into your ~/.openclaw/skills/ directory. Once installed, initialize your workspace directory by running mkdir -p ~/.openclaw/workspace/.learnings and ensuring the LEARNINGS.md, ERRORS.md, and FEATURE_REQUESTS.md files exist. This creates the foundation for the agent's persistent memory.
Use Cases
This skill is indispensable in environments where precision and reliability are critical. Use it when:
- A command or shell operation returns an unexpected error (log to
ERRORS.md). - The user corrects the agent's logic or factual output, providing a 'teachable moment' (log to
LEARNINGS.mdwith categorycorrection). - You identify a 'best practice' that improves efficiency for a recurring task (log to
LEARNINGS.mdwith categorybest_practice). - You encounter an outdated API or tool limitation (log to
LEARNINGS.mdwith categoryknowledge_gap). - The user requests a feature that falls outside current capability (log to
FEATURE_REQUESTS.md).
Example Prompts
- 'The previous command failed because the API syntax changed; please document this error in the logs so we avoid it next time.'
- 'Actually, that is not the preferred way to format the JSON response. Please log this as a best practice update to our standards.'
- 'I realize we've hit this roadblock three times this week. Can you consolidate our findings from the error logs into a strategy for the next attempt?'
Tips & Limitations
To get the most out of this skill, prioritize 'promoting' entries. If a specific learning in LEARNINGS.md proves to be a recurring pattern or a fundamental shift in behavior, move that insight into SOUL.md (for behavior), TOOLS.md (for integration tips), or AGENTS.md (for workflow logic). Do not let the logs become stale; review them before starting major tasks to ensure the agent is operating on the most current 'knowledge' available in its local environment. Note that while this builds a powerful personal memory, it remains local to your workspace; ensure you back up your .learnings folder frequently.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-healersss-self-improving-agent-local": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read