Skip to content
Skillpedia
Agents29k Β· #9487

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

Copy 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

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/self-improving-agent/skills/self-improving-agent/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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.

repo: alirezarezvani/claude-skills

Popularity

GitHub stars
29k
Ranking position
#9487
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills