
Self maintenance
Guides an agent to record durable lessons in its soul docs, decisions, memory and skills
Self maintenance is an open-source agent skill for knowledge and memory. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 132
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Self maintenance
This skill tells an agent how to grow its persistent "soul" folder in a repository as it works, so later sessions can pick up what earlier ones learned. It defines four places to write: reference docs, durable decisions, single-fact memory entries indexed from a MEMORY.md file, and reusable procedures stored as skills.
The skill sets a strict bar for what gets recorded. An entry should be both durable and something that would change a future agent's behavior; routine work, duplicates of code or git history, and stale notes should be left out or pruned. It also forbids storing secrets, tokens, keys, local state, identifiers and certificates in the soul, and it blocks edits to the agent's AGENTS.md and role definition, which stay under human or review control.
It also carves out an exception for a reviewer role, which keeps no memory or decisions and only maintains a file of generalized failure patterns. Changes to the soul are committed and go through the team's normal review path. The skill has no scripts and needs only the agent's file-editing ability.
When your agent uses it
How any agent grows its soul as it works — adding to its docs, decisions, memory, and skills (but never its AGENTS.md or role). Use whenever you learn something durable mid-work that a future instance of you should keep.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (2 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/self-maintenance to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/self-maintenance &&
cp -R "$tmp/naapp/folio/.agents/skills/self-maintenance" ~/.claude/skills/self-maintenance &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/self-maintenance inside it instead.
Copy the skill folder to ~/.agents/skills/self-maintenance to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/self-maintenance &&
cp -R "$tmp/naapp/folio/.agents/skills/self-maintenance" ~/.agents/skills/self-maintenance &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/self-maintenance inside it instead.
Copy the skill folder to ~/.cursor/skills/self-maintenance to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/self-maintenance &&
cp -R "$tmp/naapp/folio/.agents/skills/self-maintenance" ~/.cursor/skills/self-maintenance &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/self-maintenance inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/awebai/aweb.git --path naapp/folio/.agents/skills/self-maintenanceOr copy the folder to ~/.gemini/skills/self-maintenance yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/self-maintenance:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/self-maintenance &&
cp -R "$tmp/naapp/folio/.agents/skills/self-maintenance" ~/.copilot/skills/self-maintenance &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/self-maintenance inside it instead.
Get the folder:
git clone --depth 1 https://github.com/awebai/aweb.gitThen copy aweb/naapp/folio/.agents/skills/self-maintenance into your agent's skills folder as self-maintenance. Agents that support SKILL.md read one folder per skill.
What it does
- Four knowledge locations
- Defines where durable notes belong: docs, decisions, indexed memory entries and skills.
- Strict recording bar
- Only saves items that are durable and would change a future agent's actions.
- Identity protection
- Keeps AGENTS.md and the agent's role out of automated edits.
- Secret handling rules
- Prohibits storing credentials, tokens, keys and identifiers in the soul.
- Reviewer exception
- Limits a reviewer agent to a single file of generalized failure patterns.
- Review-based changes
- Soul updates are committed and merged through the normal review path.
Good for
- Save a durable architectural decision so future sessions follow it
- Record a reference note on how a module actually works
- Write a reusable procedure as a new skill after a recurring task
- Add a single fact to memory and update its index
- Prune stale notes from the agent's soul folder
Self maintenance FAQ
When does Self maintenance trigger?
It applies whenever the agent learns something durable mid-work that a future instance should keep.
What can the agent not change?
It must never edit its AGENTS.md or its role, and it must not store secrets, tokens, private keys, local state, identifiers or certificates in the soul.
How do soul changes take effect?
They are ordinary commits that reach the main branch through the team's normal review path.
Does the reviewer keep memory?
No. The reviewer keeps no memory or decisions and only maintains a file of generalized common failure patterns.
How do I install Self maintenance in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/self-maintenance to use it in all your projects, or to .claude/skills/self-maintenance in one project.
Does Self maintenance run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Self maintenance?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Self maintenance?
The closest alternatives to Self maintenance are Vibe reflect and compound, Persistent memory, Continual learn, Memory and Nemo rl session memory.
Where this comes from
- Description: from the skill's own SKILL.md.
More from awebai/aweb

Guides coordinated changes across the aweb OSS repo and the hosted ac repo safely
- Open source
- 132 GitHub stars
- Developer tools

Removes a finished one-shot agent instance: its aweb identity, workspace, worktree
- Open source
- 132 GitHub stars
- Developer tools

Creates a new aweb teammate from a soul, with its own identity, home and worktree
- Open source
- 132 GitHub stars
- Developer tools

Guides building apps where AI agents are the users, using team-certificate auth
- Open source
- 132 GitHub stars
- Developer tools

Guides end-to-end tests of BYOT/AWID team-certificate auth with real keys and signatures
- Open source
- 132 GitHub stars
- Developer tools

Creates folio documents from built-in pitch, memo, or metrics templates via API
- Open source
- 132 GitHub stars
- Files and documents







