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?
Enhance your OpenClaw agent with continuous learning. Automatically log errors, user corrections, and best practices to build a smarter, more reliable workflow.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/roman181/hiWhat This Skill Does
The self-improvement skill for OpenClaw is a systematic framework designed to bridge the gap between ephemeral AI interactions and long-term intelligence. It enables the agent to act as a reflective practitioner by capturing, documenting, and eventually promoting critical data points—such as failed command executions, user-led corrections, and discovered best practices—into persistent workspace files. By maintaining a structured directory in .learnings/, the agent creates a recursive feedback loop. This skill transforms the agent from a stateless assistant into an evolving entity that learns from its environment, reducing repetitive errors and streamlining workflows over time. It effectively forces the agent to acknowledge its own limitations and adapt its behavioral patterns based on actual performance metrics.
Installation
Installation can be handled automatically or manually. For automated setups, use the command clawdhub install self-improving-agent to pull the skill into your OpenClaw environment. For manual installation, clone the repository directly into your skills directory: git clone https://github.com/peterskoett/self-improving-agent.git ~/.openclaw/skills/self-improving-agent. Ensure that the .learnings/ directory exists in your workspace root, containing the mandatory LEARNINGS.md, ERRORS.md, and FEATURE_REQUESTS.md files to begin logging immediately.
Use Cases
This skill is essential for complex development environments where recurring tasks are common. Use it when an API endpoint returns unexpected results, allowing the agent to record the specific failure for future diagnostics. It is also critical when you correct the agent's logic; documenting these corrections prevents the same hallucination or reasoning error from recurring in subsequent sessions. Furthermore, use this when you identify a more efficient way to execute a task, allowing the agent to codify this new best practice into its operational knowledge base.
Example Prompts
- "The last
git pushcommand failed because of an SSH configuration issue. Please log this error and the resolution inERRORS.mdso we remember the fix." - "Actually, you should use
npxinstead ofnpmfor this package. Please document this as abest_practicein the learnings file." - "I realize you're having trouble with this API's rate limits. Create a feature request for a retry-logic wrapper and log the current limitation in the error file."
Tips & Limitations
To maximize the utility of this skill, perform regular reviews of your .learnings/ directory. Not every entry needs promotion; prioritize entries that represent frequent bottlenecks. A limitation of this skill is its reliance on the user to occasionally prompt the logging; while the agent is capable of autonomous logging, human verification ensures that the most relevant information is captured. Ensure that your SOUL.md and AGENTS.md are kept clean, as they serve as the ultimate 'brain' that the agent references to prevent past mistakes.
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-roman181-hi": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read