/onebrain:clonefrom onebrain
Clones an agent's portable context including MEMORY.md, memory files, and OneBrain plugin for transfer to another vault. Use when explicitly migrating agent memory to a new vault.
Ships in onebrain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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
05-agent/MEMORY.md05-agent/MEMORY-INDEX.md ← include MEMORY-INDEX05-agent/memory/ ← all memory files (was: context/ + memory/ separately; now merged)onebrain.yml ← include onebrain.yml (has recap config).claude/plugins/onebrain/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.
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)Write [agent_folder]/CLONE.md (overwrite if it exists):
---
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` section — value of **Agent:** field]
- Last updated: [TODAY'S DATE]
## Index
[If [agent_folder]/MEMORY-INDEX.md exists, include a note that MEMORY-INDEX.md is present. Otherwise write: (none)]
## Memory Notes
[For each .md file in agent_folder/memory/ (skip .gitkeep and non-.md files), list: - filename : first line of file body (after frontmatter). If no .md files exist, write: (none yet)]
Show the user what will be cloned:
──────────────────────────────────────────────────────────────
📦 Ready to Clone
──────────────────────────────────────────────────────────────
✅ [agent_folder]/MEMORY.md identity and personality
✅ [agent_folder]/MEMORY-INDEX.md memory index
✅ [agent_folder]/CLONE.md this manifest
✅ [agent_folder]/memory/ {N} files
✅ onebrain.yml vault configuration
✅ .claude/plugins/onebrain/ OneBrain plugin
❌ notes, projects, areas, knowledge, resources, archive, logs
Ask:
How would you like to clone?
- Folder copy : I'll create
agent-clone-YYYY-MM-DD/in your vault root with all files ready to copy- Display paths : I'll list the file paths so you can copy them manually
If the user chose option 1:
agent-clone-YYYY-MM-DD/agent-clone-YYYY-MM-DD-02/, -03/, etc. Keep incrementing until you find a name that does not exist.[agent_folder]/ to [output_folder]/[agent_folder]/ (including CLONE.md, MEMORY.md, MEMORY-INDEX.md, memory/)onebrain.yml to [output_folder]/onebrain.yml.claude/plugins/onebrain/ to [output_folder]/.claude/plugins/onebrain/[archive_folder]/[agent_folder]/memory/ to [output_folder]/[archive_folder]/[agent_folder]/memory/{output_folder}/.
Copy its contents to your new vault root to restore context.
Prerequisite: new vault must have OneBrain installed before importing.
→ To import: place [agent_folder]/ at the vault root — MEMORY.md is inside.If the user chose option 2:
Print a markdown code block listing every file's relative path:
[agent_folder]/MEMORY.md
[agent_folder]/MEMORY-INDEX.md
[agent_folder]/CLONE.md
[agent_folder]/memory/[each file]
onebrain.yml
.claude/plugins/onebrain/
Then say:
Copy the listed files/folders to your new vault root. Your new vault needs to have OneBrain installed for the agent to work.
Follow ../_shared/audit-log-format.md (canonical frontmatter, append-per-day algorithm, run-section heading, failure mode) with:
YYYY-MM-DD-clone.md — one file per day. Applies to both Step 4a (Folder Copy) and Step 4b (Display Paths).[audit-log, clone]/clonemethod: folder-copy | display-paths, include_archive: true | falsePer-skill body template (canonical ## Run HH:MM heading; metadata in first bullet):
## Run HH:MM
- Method: folder-copy
- Source vault: /path/to/source/vault
- Destination: /path/to/destination/
- Files copied: N
- Memory bundle: included (12 files)
For Step 4b (Display Paths), set Method: to display-paths, Destination: to (paths displayed only — no copy performed), and Files copied: to 0.
search.collection in onebrain.yml is vault-specific. When cloning to a new vault, the search.collection value (or a legacy top-level qmd_collection) will point to the old vault's collection. The user must set up the search index for the new vault (via the onebrain CLI or the web service) to create a collection for the new vault and update onebrain.yml accordingly.
Cloned memory/ files reference project paths from the old vault. Project-type memory files may contain file paths (e.g., repo locations) that differ in the new environment. Run /memory-review after cloning to audit and update any path-specific facts.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
clone, agent-memory, vault-migration, onebrain, context-transfer
npx claudepluginhub onebrain-ai/onebrain --plugin onebrain32 skills in this plugin
/bookmarkQuick URL bookmark capture : paste a link, AI generates name and description, suggests category, saves to Bookmarks.md in awesome-list format. Invoke when user wants to save a URL for later — bare URL with no other context defaults to this. Do NOT use for: deeply processing or summarizing the URL content now (use summarize), saving a note that is not a URL (use capture), or researching a topic from scratch (use research)./braindumpCapture a stream of raw thoughts : classify them and file to inbox with action items extracted. Use when the user signals a free-form, stream-of-consciousness dump with multiple unrelated threads — 'let me dump everything on my mind'. Do NOT use for: a single titled idea (use capture), saving a URL (use bookmark), or anything structured and focused./captureQuick note capture with automatic wikilink suggestions to related existing notes. Use when the user wants to save a single, specific, titled idea, insight, or piece of information to the vault. Do NOT use for: unstructured multi-thread thought dumps (use braindump), saving a URL for later (use bookmark), deeply summarizing an article or URL (use summarize), processing a book (use reading-notes), or teaching the agent a preference (use learn)./connectFind connections between notes and suggest wikilinks to strengthen the knowledge graph. Use when the user wants to discover how existing notes relate to each other — 'find connections', 'what links to this note', 'strengthen my graph'. Do NOT use for: creating new notes (use capture), processing inbox (use consolidate), or searching for specific content (search directly)./consolidateReview inbox and recent notes, synthesize and merge into the knowledge base. Use when the user wants to process, organize, or clear the inbox regardless of topic — 'clean up my inbox', 'process my notes'. Do NOT use for: capturing new information now (use capture or braindump), synthesizing already-vaulted notes on a specific topic (use distill — consolidate works on the inbox), or finding note connections (use connect)./dailyDaily briefing: surfaces tasks due today and open items from the last session. Use when the user wants a snapshot of today's obligations — 'what's on today', 'daily briefing', 'what do I have today'. Do NOT use for: full weekly review (use weekly), vault health check (use doctor), or listing all tasks across future dates.Other plugins' skills for the same job