# Close Session: Save What Your AI Learned

> At the end of a good working session, turns what happened into a few short, checkable rules for your assistant's memory and project instructions. Fixes old rules instead of piling up contradictions, and writes nothing until you approve.

Close Session: Save What Your AI Learned is a free AI agent skill on Agensi by Alejandro Berdonces, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Alejandro Berdonces](https://www.agensi.io/creators/alejandro-berdonces)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/close-session-save-what-your-ai-learned
- Tags: productivity, agents-orchestration, workflow-automation

## About this skill

Your assistant learns a lot in a good working session: how you want things done, decisions you made, facts you checked. Most of it is lost when the session ends, or piles up in memory as duplicated and contradictory notes. This skill closes the session properly.

**How it works**

1. Runs only after sessions that went well. Saving lessons from a bad session would save the mistake.
2. Re-reads the whole session and notes your corrections, **what went right and you confirmed**, your decisions and the facts that were checked.
3. Discards one-off details, anything already saved and anything you never confirmed.
4. Compares with your existing instructions and memory. If a new lesson contradicts an old rule, it proposes **correcting the old rule** instead of adding a clashing one.
5. Writes each note as *rule · why it is true · when it applies*, and says where it should go (instructions file, memory file or topic notes).
6. Shows you a table (save / correct / discard) and writes nothing until you say yes, backing up every file it touches.

**Where it stops:** it never writes without your approval and never saves secrets, keys or other people's personal data.

## Requires

Nothing beyond your AI agent.

## Known limitations

It works from what happened in the current session; it cannot review past sessions it has no access to. Where the notes go depends on the files and memory your agent can read and write. It only proposes changes; you approve each one.

## 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 Close Session: Save What Your AI Learned skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does it write to my files automatically?

No. It shows a table of proposed changes and writes nothing until you say yes, backing up every file first.

### Why only after good sessions?

Lessons from a session that went badly usually capture the mistake, not the fix. The skill says so in one line and saves nothing.

### What if a new lesson contradicts an old rule?

It proposes replacing the old rule instead of adding a second one, because two clashing rules make the assistant pick one at random.

### Do I need a CLAUDE.md file?

No. If the project has no instructions or memory files, it proposes the smallest structure that works.

---

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.
