Self Improving Agent skill for Claude
The self improving agent skill by pskoett: Captures and maintains learnings, errors, and corrections.
When Claude uses it
Use when a command fails, the user corrects an assumption, a capability is missing, knowledge is outdated, or a better approach is found. Review relevant saved guidance before major tasks, reuse, and promotion; revalidate it according to what could change and how quickly.
Self Improving Agent SKILL.md
A preview of the skill file from pskoett/self-improving-agent.
Self-Improvement Skill
Log learnings and errors to markdown files for continuous improvement. Agents can later process these into fixes, and important learnings get promoted to workspace memory. This version of the skill is built for OpenClaw only — for other agents, see the original multi-agent version at https://github.com/pskoett/pskoett-ai-skills.
Capture, review, reuse, promotion, and maintenance are self-contained here: no companion skill, service, plugin, memory backend, or OpenClaw core change is required. The optional hook only reminds and captures possible errors; it does not enforce this workflow or revalidate claims.
First-Use Initialisation
Before logging anything, ensure the .learnings/ directory and files exist in the project or workspace root. If any are missing, create them:
mkdir -p .learnings
[ -f .learnings/LEARNINGS.md ] || printf "# Learnings\n\nCorrections, insights, and knowledge gaps captured during development.\n\n**Categories**: correction | insight | knowledge_gap | best_practice\n\n---\n" > .learnings/LEARNINGS.md
[ -f .learnings/ERRORS.md ] || printf "# Errors\n\nCommand failures and integration errors.\n\n---\n" > .learnings/ERRORS.md
[ -f .learnings/FEATURE_REQUESTS.md ] || printf "# Feature Requests\n\nCapabilities requested by the user.\n\n---\n" > .learnings/FEATURE_REQUESTS.md
Never overwrite existing files. This is a no-op if .learnings/ is already initialised.
Do not log secrets, tokens, private keys, environment variables, or full source/config files unless the user explicitly asks for that level of detail. Prefer short summaries or redacted excerpts over raw command output or full transcripts.
If you want automatic reminders and session-end error detection, enable the opt-in hook described in Optional: Enable Hook.
Quick Reference
How to install the self improving agent skill
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit pskoett/self-improving-agent/self-improving-agent#master ~/.claude/skills/self-improving-agentCodex
npx degit pskoett/self-improving-agent/self-improving-agent#master ~/.codex/skills/self-improving-agentClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What is the self improving agent skill?
Captures and maintains learnings, errors, and corrections. Use when a command fails, the user corrects an assumption, a capability is missing, knowledge is outdated, or a better approach is found. Review relevant saved guidance before major tasks, reuse, and promotion; revalidate it according to what could change and how quickly.
+How do I install the self-improving agent skill?
Copy the skill folder into ~/.claude/skills/self-improving-agent, for example with "npx degit pskoett/self-improving-agent/self-improving-agent#master ~/.claude/skills/self-improving-agent". Claude Code loads it automatically and uses it when a task matches.
+Does Self Improving Agent work with ChatGPT or Codex?
Yes. Self Improving Agent uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/self-improving-agent. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is Self Improving Agent free?
Self Improving Agent is published on GitHub by pskoett. The repository does not declare a license, so check with the author before reusing it.