self-improving-agent: Logs errors, corrections and learnings for OpenClaw agents
This skill gives an OpenClaw agent a set of markdown logs for failures, user corrections, missing features and better approaches. It helps the agent reuse these notes later, check whether they still hold, and promote the useful ones into workspace guidance files.
What problem this skill solves
Agents repeat the same mistakes across sessions. A failed command, a corrected assumption or an outdated fact is lost when the session ends, so the same problem comes back.
With this skill, each event is written to a log file with a stable Pattern-Key. Repeats add to a count on the existing entry instead of creating duplicates. Useful rules are moved into AGENTS.md, TOOLS.md or SOUL.md, where later sessions load them.
Good for
- Projects where the same command or tool keeps failing in the same way
- Workflows where users often correct the agent's assumptions
- Teams that want reusable tool gotchas stored in workspace files
Not for
- Agents other than OpenClaw, which the skill does not target
- Tasks where nothing needs to persist between sessions
Install this skill
self-improving-agent only
openclaw skills install @pskoett/self-improving-agentTrend
Growing steadily- Daily downloads, last 30 days
- 218
- Daily downloads, last 30 days vs the 30 days before
- -14.2%
How this skill works
- 1On first use, it creates the `.learnings/` folder with LEARNINGS.md, ERRORS.md and FEATURE_REQUESTS.md if they are missing, and never overwrites existing files.
- 2When a command fails, a correction comes up, a capability is missing or a better approach is found, it appends an entry with an ID, a Pattern-Key and a suggested action.
- 3Before logging, it searches existing entries by Pattern-Key so that a true repeat increases Recurrence-Count instead of creating a duplicate.
- 4Before a major task or before reusing saved knowledge, it reviews relevant entries and revalidates each claim based on its type and how often it should be checked.
- 5When a learning applies broadly, it adds a short prevention rule to AGENTS.md, TOOLS.md or SOUL.md with a source link back to the log entry.
- 6An optional hook can remind the agent at session start and scan ended sessions for error patterns into ERRORS.md; it does not enforce the workflow.
Are you the author of this skill? Add its rank to your GitHub repo
The badge updates every day and links back to this page.
[](https://linkly.ai/skills/s/clawhub/self-improving-agent)