# Self-Improving Agent Pack

> Your AI assistant learns from your edits and corrections, tracks which of its rules actually work, and keeps its instructions short and free of contradictions.

Self-Improving Agent Pack is a paid AI agent skill pack (several skills in one listing) on Agensi by Alejandro Berdonces, in Prompt & Skill Engineering. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Alejandro Berdonces](https://www.agensi.io/creators/alejandro-berdonces)
- Category: [Prompt & Skill Engineering](https://www.agensi.io/skills/prompt-skill-engineering)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/self-improving-agent-pack
- Tags: prompt-engineering, productivity, ai-agents, memory, claude-md

## What it does

- Turns the edits you make to its drafts into the smallest rule change, or explains why an existing rule did
- At the end of a good session, proposes what to save, correct or discard, each rule with a one-line test
- Checks which saved rules worked or were missed today, using a shared lessons ledger with dates
- Audits your instructions and memory files for length, contradictions, duplicates, stale facts and orphaned
- Finds rules that keep failing or never come up, and proposes the exact new wording
- Writes nothing without your yes, and backs up every file before changing it

## Who it's for

- **People who work with an AI assistant every day:** An assistant that stops repeating the same mistakes, without a memory full of clashing rules. Try: "Close the session and save what we learned today."
- **Anyone who edits the assistant's drafts before sending them:** Your edits become rules with the right scope, so the next draft needs fewer changes. Try: "Reconcile: this is the email I actually sent."
- **Developers and teams with a long CLAUDE.md or AGENTS.md:** A clear report of what to keep, fix, move or remove in your instruction files, with the new text ready. Try: "Audit my CLAUDE.md and tell me why my rules are being ignored."

## About this skill

If you work with an AI assistant every day, you correct it all the time. Some corrections get saved, most are lost, and the ones that are saved pile up: after a few months the instructions file is long, repeats itself, contradicts itself, and the assistant follows it worse. This pack turns that into a loop that keeps improving.

### What is inside
- **reconcile**: you edited a draft before sending it. It compares the assistant's draft with your final version, groups your edits into patterns and proposes the smallest rule change. If the rule already existed, it explains why it did not fire and fixes that instead of adding a duplicate.
- **close-session-pro**: at the end of a good session it proposes what to save, correct or discard. Every rule gets a one-line test ("next time X, expect Y"), and it checks which saved rules worked or were missed today.
- **memory-audit**: reviews your instructions and memory files for length, contradictions, duplicates, stale facts, notes nothing points to, unsafe rules and rules that keep failing. It reports first and changes only what you approve.

All three share a lessons ledger: one Markdown file that records every rule, where it lives, its test, and the dates it worked or was missed. That is how the pack can tell which rules are working.

### How it works
1. You say "reconcile", "close the session" or "audit my memory".
2. The skill reads what it needs: the draft and your final version, today's session, or your instruction files.
3. You get a short table of proposals with the exact text, the reason and where it goes.
4. Nothing is written until you say yes. Every file is backed up first.

### Known limitations
It works from what your assistant can read: the current session, files in your project, and its built-in memory if it has one. It never searches your mail without asking. It does not save lessons from sessions that went badly. Without a lessons ledger it still works, but cannot tell which rules are failing; it offers to create one.

## Requires

Nothing beyond your AI agent.

## Technical details

Plain-Markdown skill pack with three skills (reconcile, close-session-pro, memory-audit) and a shared file (shared/lessons-ledger.md) that defines the ledger format; each skill also carries a short copy of that format, so it works when loaded on its own. No scripts and no network access. Reads and writes the project's instruction and memory files (CLAUDE.md, AGENTS.md, GEMINI.md, Cursor rules, MEMORY.md, notes) and lessons-ledger.md, only after the user approves, with backups in .memory-backups/<date>/. Written for and tested with Claude.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Self-Improving Agent Pack skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this help my AI agent get better over time?

Every rule it saves comes with a one-line test. Each time you close a session, it checks which saved rules were followed or missed that day and records it in a lessons ledger. Rules that keep failing get a proposed fix, and the monthly audit finds rules that never come up.

### What files does my agent need to manage these rules?

Your project's instructions file (for example CLAUDE.md or AGENTS.md), and optionally a lessons ledger (lessons-ledger.md) that the pack offers to create. If your assistant has no files but has a built-in memory, it works with that instead.

### Can I use this even if a work session went badly?

No. It only saves lessons from sessions that went well, because saving lessons from a bad session would save the mistake. It says so in one line and can note the open problem as a status line for next time.

### What happens if I manually edit an email or post the agent wrote?

Reconcile compares the assistant's draft with the version you sent, groups your edits into a few patterns and proposes at most three rule changes, each with its scope (type of text, recipient, channel). If a rule for it already existed, it explains why it did not fire and fixes that instead of adding a duplicate.

### How do I clean up instructions that have become messy and confusing?

Run memory-audit. It lists every instruction and notes file, then reports contradictions, duplicates, files that are too long, stale facts, notes nothing points to and rules that keep failing, with the exact replacement text. It changes only what you approve, after backing up each file.

### What should I say to the agent to start these tasks?

Plain phrases work: "reconcile, this is what I sent", "close the session", "save what we learned", "audit my memory" or "why does the assistant ignore my rules".

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
