aj-self-improving-agents
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aceundefeated/aj-self-improving-agentWhat This Skill Does
The aj-self-improving-agents skill provides a structured framework for continuous learning and adaptation within your OpenClaw environment. It transforms every session into a feedback loop by systematically logging errors, user corrections, knowledge gaps, and process improvements into a dedicated .learnings directory. This mechanism allows the AI agent to move beyond transient interactions, building a persistent repository of institutional knowledge. By tracking failures, recording successful resolutions, and promoting recurring patterns into core documentation files like CLAUDE.md or SOUL.md, this skill ensures the agent becomes more efficient, accurate, and aligned with user preferences over time. It essentially creates a long-term memory buffer for behavioral and technical refinements.
Installation
To integrate this skill into your workflow, you can use the OpenClaw management tool:
- Via ClawdHub (Recommended): Run
clawdhub install self-improving-agentin your terminal. - Manual Installation: Clone the repository manually into your local skills directory using
git clone https://github.com/peterskoett/self-improving-agent.git ~/.openclaw/skills/self-improving-agent. Ensure that your workspace structure includes the required.learnings/directory to facilitate log tracking.
Use Cases
- Error Resolution: Automatically capture stack traces or command failures in ERRORS.md to analyze patterns and prevent recurrence.
- Knowledge Refinement: When a user corrects the agent, use LEARNINGS.md to document the specific correction, ensuring the mistake is not repeated.
- Feature Gap Analysis: Track missing capabilities in FEATURE_REQUESTS.md to help prioritize future development.
- Process Hardening: Identify better approaches to recurring tasks and formalize these into standard operating procedures by promoting them to AGENTS.md or TOOLS.md.
Example Prompts
- "I corrected your previous output because the syntax was invalid; please log this as a learning under category correction in the .learnings folder."
- "The last API call failed with a timeout; capture these integration details in ERRORS.md so we can debug the connection pattern later."
- "I've discovered a much faster way to deploy these containers. Please log this as a best_practice in LEARNINGS.md and update our AGENTS.md workflow."
Tips & Limitations
- Review Cycles: The skill is most effective when the agent is prompted to review its logs before starting a major task.
- Maintenance: Periodically audit your .learnings files to prune stale entries and promote high-value insights to permanent documentation (SOUL.md or CLAUDE.md).
- Scope: This skill is focused on text-based documentation and reflection; it does not automatically execute fixes to code unless paired with a secondary execution agent.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aceundefeated-aj-self-improving-agent": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read
Related Skills
aj-obsidian
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
aj-gog
Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
aj-github
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
aj-openai-whisper
Local speech-to-text with the Whisper CLI (no API key).