Self-Improvement Skill for Openclaw

A sophisticated logging and promotion framework that enables AI coding agents to learn from errors, user corrections, and discovered best practices.

smallersoup
v0.1.0
Mar 23, 2026
0
779
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install self-improving-agent-6

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install self-improving-agent-6 using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Self-Improvement Skill?

The Self-Improvement Skill is a specialized framework designed to create a feedback loop for AI coding agents. By capturing learnings, errors, and feature requests in structured markdown files, it ensures that an agent's knowledge evolves alongside the project. It moves beyond simple task execution by allowing agents to recognize their own knowledge gaps and outdated information, effectively turning every interaction into a growth opportunity.

At its core, this Openclaw Skills contribution provides a standardized way to document 'gotchas' and workflow improvements. Instead of repeating the same mistakes across different sessions, the skill allows for the promotion of high-value insights into permanent project memory files like CLAUDE.md or AGENTS.md, ensuring that both human developers and AI agents stay aligned on project-specific conventions.

Self-Improvement Skill Use Cases

  • When a terminal command or operation fails unexpectedly during a coding session.
  • When a user provides a direct correction to an agent's logic or knowledge.
  • Tracking requests for capabilities that do not currently exist in the agent's toolkit.
  • Discovering and documenting a superior architectural approach for a recurring task.
  • Synchronizing learnings across multiple sub-agents in a complex Openclaw Skills workspace.

How Self-Improvement Skill Works

  1. Detection: The agent identifies a trigger event, such as a command error, a user correction, or a non-obvious solution discovery.
  2. Logging: The agent appends a structured entry to the appropriate file in the .learnings/ directory, assigning a unique ID (e.g., LRN-YYYYMMDD-XXX).
  3. Pattern Analysis: The system checks for recurring patterns using keys to link similar issues, increasing the priority of repeating problems.
  4. Review: At natural breakpoints, such as the start of a new task, the agent reviews existing logs to avoid past mistakes.
  5. Promotion: Broadly applicable learnings are distilled and moved to permanent workspace files like SOUL.md or TOOLS.md to influence future behavior.
  6. Extraction: High-value, reusable patterns are identified and can be exported as entirely new Openclaw Skills.

Self-Improvement Skill Setup

To get started with the Self-Improvement Skill, the recommended path is through the Openclaw Skills ecosystem:

# Install via ClawdHub
clawdhub install self-improving-agent

# Or manual installation
git clone https://github.com/peterskoett/self-improving-agent.git ~/.openclaw/skills/self-improving-agent

# Initialize the learning directory
mkdir -p ~/.openclaw/workspace/.learnings

For optional automatic reminders, enable the OpenClaw hook:

cp -r hooks/openclaw ~/.openclaw/hooks/self-improvement
openclaw hooks enable self-improvement

Self-Improvement Skill Data Schema & Taxonomy

The skill organizes data within a .learnings/ directory using three primary log files:

File Purpose Key Metadata
LEARNINGS.md Corrections and best practices Priority, Area, Pattern-Key
ERRORS.md Failures and exceptions Error message, Reproducible status
FEATURE_REQUESTS.md Capability gaps Complexity estimate, Frequency

All entries follow a strict header format [TYPE-YYYYMMDD-XXX] to facilitate easy searching and cross-referencing between sessions.

Self-Improvement Skill Advanced Features

  • Inter-Session Communication: Utilize tools like sessions_send and sessions_history to share learnings across active agent threads.
  • Simplify & Harden Feed: Automate the ingestion of recurring patterns to turn transient fixes into durable prompt guidance.
  • Automatic Skill Extraction: Built-in scripts to transform verified, non-obvious solutions into standalone Openclaw Skills.
  • Multi-Agent Activation: Support for Claude Code hooks, GitHub Copilot instructions, and Codex CLI integration.
  • Promotion Gates: Logic-based rules that trigger the promotion of learnings to project memory only after they meet specific recurrence and frequency thresholds.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*