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

Read the full SKILL.md on GitHub →

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

Codex

npx degit pskoett/self-improving-agent/self-improving-agent#master ~/.codex/skills/self-improving-agent

Claude.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.

Related productivity skills

  1. Handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    mattpocock/skills★ 327k
  2. Notebooklm

    Use for anything in Google NotebookLM: querying notebooks, adding sources, generating Audio or Video Overviews, reports, flashcards or…

    alirezarezvani/claude-skills★ 30k
  3. Teach

    Teach the user a new skill or concept, within this workspace.

    mattpocock/skills★ 327k
  4. Obsidian Cli

    Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more.

    obsidianmd/obsidian-skills★ 53k
  5. Obsidian Markdown

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    obsidianmd/obsidian-skills★ 53k
  6. Notion Cli

    Use the Notion CLI (`ntn`) to interact with the Notion API, manage workers, and upload files.

    makenotion/skills★ 184
  7. File Organizer

    Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better…

    ComposioHQ/awesome-claude-skills★ 80k
  8. Obsidian Cli

    Use this skill whenever the user wants Claude to directly interact with their Obsidian vault — reading a note or daily note, writing or…

    pablo-mano/Obsidian-CLI-skill★ 464
  9. Obsidian Bases

    Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries.

    obsidianmd/obsidian-skills★ 53k

See all productivity skills →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.