clonelisted
Install: claude install-skill onebrain-ai/onebrain
# Clone
Package your agent's full context for transfer to a new vault.
**What gets cloned:** Everything in the agent folder : `MEMORY.md`, `MEMORY-INDEX.md`, `memory/`, and `CLONE.md` once generated. Also includes `onebrain.yml` and the OneBrain plugin.
**What does NOT get cloned:** your notes, projects, areas, knowledge, resources, archive, and logs.
Usage: `/clone`
---
## Files Included in Clone Package
- `05-agent/MEMORY.md`
- `05-agent/MEMORY-INDEX.md` ← include MEMORY-INDEX
- `05-agent/memory/` ← all memory files (was: context/ + memory/ separately; now merged)
- `onebrain.yml` ← include onebrain.yml (has recap config)
- `.claude/plugins/onebrain/`
---
## Session Log Handling
When cloning, preserve `recapped:` and `topics:` fields on all session logs.
Do NOT strip these fields — the new vault should not reprocess already-recapped logs.
---
## Archive Folder Option
AskUserQuestion: "Include `[archive_folder]/[agent_folder]/memory/` (deleted memory files)?"
Options: `include / skip`
- `include`: copy `06-archive/05-agent/memory/` into clone package (full history)
- `skip`: omit archive folder (clean fresh-feeling vault)
---
## Step 1: Regenerate CLONE.md
Write `[agent_folder]/CLONE.md` (overwrite if it exists):
```markdown
---
tags: [agent-clone]
updated: YYYY-MM-DD
---
# Agent Clone Manifest
## Identity
- Source: [agent_folder]/MEMORY.md
- Agent name: [read from [agent_folder]/MEMORY.md `## Identity & Personality` sect