Loading...
Loading...
Curate Claude Code's auto-memory into durable project knowledge. Analyze MEMORY.md for patterns, promote proven learnings to CLAUDE.md and .claude/rules/, extract recurring solutions into reusable skills. Use when: (1) reviewing what Claude has learned about your project, (2) graduating a pattern from notes to enforced rules, (3) turning a debugging solution into a skill, (4) checking memory health and capacity.
npx skill4agent add alirezarezvani/claude-skills self-improving-agentAuto-memory captures. This plugin curates.
MEMORY.md| Command | What it does |
|---|---|
| Analyze MEMORY.md — find promotion candidates, stale entries, consolidation opportunities |
| Graduate a pattern from MEMORY.md → CLAUDE.md or |
| Turn a proven pattern into a standalone skill |
| Memory health dashboard — line counts, topic files, recommendations |
| Explicitly save important knowledge to auto-memory |
┌─────────────────────────────────────────────────────────┐
│ 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:review │
│ Self-Improving Agent (this plugin) │
│ ↓ /si:extract ↓ /si:remember │
├─────────────────────────────────────────────────────────┤
│ .claude/rules/ │ New Skills │ Error Logs │
│ (scoped rules) │ (extracted) │ (auto-captured)│
└─────────────────────────────────────────────────────────┘/plugin marketplace add alirezarezvani/claude-skills
/plugin install self-improving-agent@claude-code-skillsclawhub install self-improving-agent./scripts/codex-install.sh --skill self-improving-agent| File | Who writes | Scope | Loaded |
|---|---|---|---|
| You (+ | Project rules | Full file, every session |
| You | Global preferences | Full file, every session |
| Claude (auto) | Project learnings | First 200 lines |
| Claude (overflow) | Topic-specific notes | On demand |
| You (+ | Scoped rules | When matching files open |
1. Claude discovers pattern → auto-memory (MEMORY.md)
2. Pattern recurs 2-3x → /si: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.claude/rules/.claude/rules/# .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/plugin installclawhub publish| Platform | Memory System | Plugin Works? |
|---|---|---|
| Claude Code | Auto-memory (MEMORY.md) | ✅ Full support |
| OpenClaw | workspace/MEMORY.md | ✅ Adapted (reads workspace memory) |
| Codex CLI | AGENTS.md | ✅ Adapted (reads AGENTS.md patterns) |
| GitHub Copilot | | ⚠️ Manual promotion only |