# Self maintenance

> Self maintenance is an open-source agent skill for knowledge and memory. Guides an agent to record durable lessons in its soul docs, decisions, memory and skills. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/awebai/aweb/tree/main/naapp/folio/.agents/skills/self-maintenance
- **Repository:** https://github.com/awebai/aweb
- **GitHub stars:** 132
- **License:** MIT
- **Skill name:** self-maintenance
- **Collection:** https://github.com/awebai/aweb
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/awebai/aweb/tree/HEAD/naapp/folio/.agents/skills/self-maintenance)
- [License: MIT](https://github.com/awebai/aweb/tree/HEAD/naapp/folio/.agents/skills/self-maintenance)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/self-maintenance` to use it in all your projects:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/self-maintenance` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/self-maintenance` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/awebai/aweb.git --path naapp/folio/.agents/skills/self-maintenance
```

Or copy the folder to `~/.gemini/skills/self-maintenance` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/self-maintenance`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/awebai/aweb.git
```

Then 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.

## 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.

## Alternatives

- [Vibe reflect and compound](https://ai-powered.com/skills/vibe-reflect-and-compound): Vibe reflect and compound is an open-source agent skill for knowledge and memory.
- [Persistent memory](https://ai-powered.com/skills/persistent-memory-aws-solutions): Persistent memory is an open-source agent skill for knowledge and memory.
- [Continual learn](https://ai-powered.com/skills/continual-learn): Continual learn is an open-source agent skill for knowledge and memory.
- [Memory](https://ai-powered.com/skills/memory-chachamaru127-2): Memory is an open-source agent skill for knowledge and memory.
- [Nemo rl session memory](https://ai-powered.com/skills/nemo-rl-session-memory): Nemo rl session memory is an open-source agent skill for knowledge and memory.
- [Learn](https://ai-powered.com/skills/learn): Learn is an open-source agent skill for knowledge and memory.
- [Memory review](https://ai-powered.com/skills/memory-review): Memory review is an open-source agent skill for knowledge and memory.
- [Remember](https://ai-powered.com/skills/remember-ajyadav013-2): Remember is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/self-maintenance
