self-improving-agent: Logs errors, corrections and learnings for OpenClaw agents

By pskoettClawHub

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.

AI agentsClawHub
Total downloads
495.7K
ClawHub
Last 7 days
1.5K
▼ 8.2% vs the week before
Best 100 rank
#11
▲ 62 #73 7 days ago
Days in Best 100
102
out of 104 days tracked

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-agent

Trend

Growing steadily
01K2K3K1.5K08/2809/2510/3011/27
Daily downloads, last 30 days
218
Daily downloads, last 30 days vs the 30 days before
-14.2%

How this skill works

  1. 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.
  2. 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.
  3. 3Before logging, it searches existing entries by Pattern-Key so that a true repeat increases Recurrence-Count instead of creating a duplicate.
  4. 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.
  5. 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.
  6. 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

Best Skills #11

The badge updates every day and links back to this page.

[![Best Skills](https://linkly.ai/skills/badge/clawhub/self-improving-agent.svg)](https://linkly.ai/skills/s/clawhub/self-improving-agent)
Linkly AI

Maintained by Linkly AI

Linkly AI is the knowledge brain for AI agents. It automatically parses the notes, study materials, bookmarks, knowledge bases, voice memos, meetings, videos and ideas on your computer, so your agent can search and read everything you have.

Download Linkly AI
Or send this line to your agent and it will help you install and connect.

Set up https://linkly.ai/docs/en/agent-setup.md