self-improving-agent
What it does
This plugin lets the agent review what it has learned and keep only the useful parts. It is for people who work with an AI agent over many sessions and want its knowledge to improve over time.
When to use it
- βWhen you want to see what your agent has learned so far.
- βWhen you correct your agent and want that correction to stick across sessions.
- βWhen your agent's memory has old or duplicate notes that need cleaning up.
Skill link
https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/self-improving-agent/skills/self-improving-agent/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βReview what you have learned about this project and move the proven lessons into the project rules.β
5 new skills a week. 1 minute to read.
How it works
The agent reads its auto-memory files and sorts entries into lessons to keep, promote, prune or turn into a skill. The plugin's commands handle each step, from review to promotion to extraction.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Self-Improving Agent
Auto-memory captures. This plugin curates.
Claude Code's auto-memory (v2.1.32+) automatically records project patterns, debugging insights, and your preferences in MEMORY.md. This plugin adds the intelligence layer: it analyzes what Claude has learned, promotes proven patterns into project rules, and extracts recurring solutions into reusable skills.
Quick Reference
| Command | What it does |
|---|---|
/si:memory-review |
Analyze MEMORY.md β find promotion candidates, stale entries, consolidation opportunities |
/si:promote |
Graduate a pattern from MEMORY.md β CLAUDE.md or .claude/rules/ |
/si:extract |
Turn a proven pattern into a standalone skill |
/si:memory-status |
Memory health dashboard β line counts, topic files, recommendations |
/si:remember |
Explicitly save important knowledge to auto-memory |
How It Fits Together
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Claude Code Memory Stack β
βββββββββββββββ¬βββββββββββββββββββ¬βββββββββββββββββββββββββ€
β CLAUDE.md β Auto Memory β Session Memory β
β (you write)β (Claude writes)β (Claude writes) β
β Rules & β MEMORY.md β Conversation logs β
β standards β + topic files β + continuity β
β Full load β First 200 linesβ Contextual load β
βββββββββββββββ΄βββββββββββββββββββ΄βββββββββββββββββββββββββ€
β β /si:promote β /si:memory-review β
β Self-Improving Agent (this plugin) β
β β /si:extract β /si:remember β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β .claude/rules/ β New Skills β Error Logs β
β (scoped rules) β (extracted) β (auto-captured)β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Installation
Claude Code (Plugin)
/plugin marketplace add alirezarezvani/claude-skills
/plugin install self-improving-agent@claude-code-skills
OpenClaw
clawhub install self-improving-agent
Codex CLI
./scripts/codex-install.sh --skill self-improving-agent
Memory Architecture
Where things live
| File | Who writes | Scope | Loaded |
|---|---|---|---|
./CLAUDE.md |
You (+ /si:promote) |
Project rules | Full file, every session |
~/.claude/CLAUDE.md |
You | Global preferences | Full file, every session |
~/.claude/projects/<path>/memory/MEMORY.md |
Claude (auto) | Project learnings | First 200 lines |
~/.claude/projects/<path>/memory/*.md |
Claude (overflow) | Topic-specific notes | On demand |
.claude/rules/*.md |
You (+ /si:promote) |
Scoped rules | When matching files open |
The promotion lifecycle
1. Claude discovers pattern β auto-memory (MEMORY.md)
2. Pattern recurs 2-3x β /si:memory-review flags it as promotion candidate
3. You approve β /si:promote graduates it to CLAUDE.md or rules/
4. Pattern becomes an enforced rule, not just a note
5. MEMORY.md entry removed β frees space for new learnings
Core Concepts
Auto-memory is capture, not curation
Auto-memory is excellent at recording what Claude learns. But it has no judgment about:
- Which learnings are temporary vs. permanent
- Which patterns should become enforced rules
- When the 200-line limit is wasting space on stale entries
- Which solutions are good enough to become reusable skills
That's what this plugin does.
Promotion = graduation
When you promote a learning, it moves from Claude's scratchpad (MEMORY.md) to your project's rule system (CLAUDE.md or .claude/rules/). The difference matters:
- MEMORY.md: "I noticed this project uses pnpm" (background context)
- CLAUDE.md: "Use pnpm, not npm" (enforced instruction)
Promoted rules have higher priority and load in full (not truncated at 200 lines).
Rules directory for scoped knowledge
Not everything belongs in CLAUDE.md. Use .claude/rules/ for patterns that only apply to specific file types:
# .claude/rules/api-testing.md
---
paths:
- "src/api/**/*.test.ts"
- "tests/api/**/*"
---
- Use supertest for API endpoint testing
- Mock external services with msw
- Always test error responses, not just happy paths
This loads only when Claude works with API test files β zero overhead otherwise.
Agents
memory-analyst
Analyzes MEMORY.md and topic files to identify:
- Entries that recur across s
FAQ
How is this different from the agent's normal memory?
Normal memory captures notes automatically. This plugin reviews those notes and turns the good ones into rules or skills.
Which commands does it include?
It has commands to review memory, promote a pattern, extract a skill, check memory status and save something on purpose.
Does it need any setup?
It works with Claude Code's auto-memory, which the skill says is available from version 2.1.32 onward.
Details
Original description by the author
Curate the agent's own memory into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check the health of memory.
Popularity
- GitHub stars
- 29k
- Ranking position
- #9487
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-launcher-orchestrator
29kHelps your agent plan, build, test and schedule a Claude managed agent in your own account, step by step, starting from one clear goal.
grade-iterate
29kLets your agent grade a managed AI agent's work against a rubric and improve it in a fixed number of rounds, so it never loops forever.
interview
29kLets your agent interview you about an AI agent idea and turn your answers into a simple build plan before anything is launched.
run-without-you
29kHelps your agent set up a managed AI agent to run on a schedule or when an event happens, with the cron timing checked before launch.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.