- Home
- Skills
- Agents & Orchestration
- Self-Learning Agent: Sessions to Tested Skills & Memory
More screenshots
Works with the AI Agents you already use
Self-Learning Agent: Sessions to Tested Skills & Memory
by Leandro Maia
Turn the work your agent keeps repeating into skills that are proven on real sessions, and keep its memory true, automatically.
$45
Self-Learning Agent: Sessions to Tested Skills & Memory
Example session with this skill installed
Learn from our last month of sessions. Create skills only for what we really repeat, and fix anything in memory I corrected.
- Read your context and instructions
- Compiled the self-learning agent
Illustrative run on a sample history: numbers will vary with yours.
Summary
Read 64 finished sessions and noted 11 skill candidates. Created 1 skill, kept 1 under observation, and fixed 1 corrected fact in 5 places.
| Step | Result |
|---|---|
| Sessions read | 64 (12 short or automated ones skipped) |
| Candidates noted | 11 |
| New skills created | 1 |
| Skills improved | 1 (release-notes: added the missing changelog step) |
| Memory facts fixed | 1 fact in 4 notes + 1 skill |
| Needs you | 1 contradiction |
Created: deploy-with-migrations
- Evidence: 4 sessions in 3 different weeks.
- Draft written from 2 older sessions, then tested on 3 real sessions,
including the newest one, which it never saw:
solved 3 of 3.
---
name: deploy-with-migrations
description: Deploy the API when the release includes database migrations...
---
## When to use
## Steps
1. Run pending migrations against staging first and check the migration log.
2. Deploy, then hit /health and the one endpoint that touches the new columns.
## Traps
- The ORM caches the schema: restart workers after the migration, not before.
## How to verify
- /health returns ok and the new column shows up in the response.
Watching: rotate-api-token
- Solved 2 of 3 real cases. Missing step: "revoke the old token after the swap". It stays in observation until more sessions show the full procedure.
Memory
- You said on Tuesday that the API now runs on port 4000. Updated 4 notes and 1 skill; each keeps "(until 2026-11-18 it was 3100)" as history.
Needs you
staging.mdanddeploy-notes.mddisagree on the staging URL. Which one is right?
Next: run it weekly (learn.js curate) and every 15 minutes (learn.js observe), or add the SessionEnd hook.
Connects securely to your tools. The creator never sees your data.
About this skill
Turn the work your agent keeps repeating into skills that are proven on real sessions, and keep its memory true, automatically.
The problem
Agents forget. You explain the same deploy trap every few weeks. A skill you wrote last month still names a path that changed. Memory notes pile up as duplicates that contradict each other. Most skill tools only help you write a skill you already know you need. They never tell you which skills should exist, prove that a skill works, or keep it correct afterwards.
What it does
- Finds what deserves a skill. It reads your finished Claude Code (and Codex) sessions and notes repeated tasks, traps that led to the right path, and your corrections about how to do things.
- Sets a real bar. A skill is created only after 3+ sessions across 2+ different weeks, and only when no existing skill already covers it.
- Tests on held-out work. The draft is written from older sessions, then tested on real ones, including the newest session, which it never saw. It ships only if it solves every case.
- Maintains what it built. Skills that fail in use get minimal fixes, overlapping skills are merged, and skills unused for 60 days are archived.
- Keeps memory true. Correct a fact once and every memory note and skill that still says the old thing is fixed, with the old value kept as dated history. Duplicate notes are merged weekly, and contradictions come to you instead of being guessed.
- Is safe by design. It never deletes anything (backups plus
_archive/). Secrets are redacted and new text is scanned for prompt injection before anything is written. The model gets no tools, edits only touch files under review, and--drywrites nothing.
Why this beats prompting it yourself
Asking an agent to "make skills from my history" gives you a snapshot: whatever stood out in one pass, with no proof it works and nobody looking after it next month. This is a loop. It waits for evidence across weeks, tests every draft against sessions it did not learn from, and keeps working after install: it tracks uses and failures, fixes and merges skills, and retires what goes stale. You end up with fewer skills, and each one has solved real past cases.
Use cases
- Build a personal skill library from the work you actually repeat, not from what you remember.
- Stop re-explaining corrections: one correction updates every note and skill.
- Keep a team's shared skills folder from rotting as tools, paths and versions change.
- Run it on a schedule (cron, Task Scheduler or a SessionEnd hook) and read a weekly report: created, improved, merged, retired, plus "Needs you".
How to use
node scripts/learn.js all --dry: see what it would do, with nothing written.node scripts/learn.js all: real run. Or just ask your agent to "learn from our sessions".node scripts/learn.js status: candidates being watched, skill usage, last runs.
Known limitations
- It needs history. Expect the first skills after 2 to 3 weeks of regular use; the bar is deliberate.
- Model calls use your Claude Code subscription. A first run over a large backlog is read in chunks (
--limit). - The secret and injection scan is a regex safety net, not a guarantee. Read the weekly report.
- It learns only from history saved on local disk.
Built and run in production at Veriddan AI Studio since October 2026.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 9 days ago
- Software
Node.js 18+Claude Code CLI (logged in)
Permissions
File Scopes
Terminal/Shell: runs node and the claude CLI headless; the model itself gets no tools. Read Files: session transcripts (~/.claude/projects, ~/.codex/sessions), skills and memory notes. Write Files: only skills in ~/.claude/skills, memory notes and its own folder ~/.self-learning-agent; every change is backed up, nothing is deleted. Network: only the model calls your Claude Code CLI already makes. Environment variables: optional SLA_HOME and CLAUDE_BIN.
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.