Clone logo

Clone

Organization
onebrain-ai
clone

Clone your agent's portable context (agent folder including MEMORY.md) to a folder for transfer to another vault. Use only when the user explicitly wants to migrate or copy agent memory to a new vault. Do NOT use for: backing up the whole vault, updating OneBrain (use update), or reviewing memory (use memory-review).

Overview

Publisheronebrain-ai
Repositoryonebrain
Skill nameclone
Stars
31
Forks
3
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by onebrain-ai on GitHub. Read the source before you install it.

Installation

Install the Clone AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/clone
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/onebrain-ai/onebrain.git /tmp/onebrain
mkdir -p .claude/skills
cp -r /tmp/onebrain/.claude/plugins/onebrain/skills/clone .claude/skills/clone
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Clone in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Clone on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Clone is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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` 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)]

Step 2: Display Clone Summary

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


Step 3: Ask Clone Method

Ask:

How would you like to clone?

  1. Folder copy : I'll create agent-clone-YYYY-MM-DD/ in your vault root with all files ready to copy
  2. Display paths : I'll list the file paths so you can copy them manually

Step 4a: Folder Copy

If the user chose option 1:

  1. Determine output folder: agent-clone-YYYY-MM-DD/
  2. If that folder already exists, append a counter: agent-clone-YYYY-MM-DD-02/, -03/, etc. Keep incrementing until you find a name that does not exist.
  3. Create the output folder
  4. Copy the following into the output folder, preserving all subfolders and files:
    • Entire [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/
    • If archive included: [archive_folder]/[agent_folder]/memory/ to [output_folder]/[archive_folder]/[agent_folder]/memory/
  5. Confirm: ✅ Agent context ready at {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.

Step 4b: Display Paths

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.


Step 5: Write Log Entry

Follow ../_shared/audit-log-format.md (canonical frontmatter, append-per-day algorithm, run-section heading, failure mode) with:

  • Filename: YYYY-MM-DD-clone.md — one file per day. Applies to both Step 4a (Folder Copy) and Step 4b (Display Paths).
  • Tags: [audit-log, clone]
  • Skill: /clone
  • Per-skill discriminators in frontmatter: method: folder-copy | display-paths, include_archive: true | false

Per-skill body template (canonical ## Run HH:MM heading; metadata in first bullet):

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


Known Gotchas

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Clone AI skill do?

Clone your agent's portable context (agent folder including MEMORY.md) to a folder for transfer to another vault. Use only when the user explicitly wants to migrate or copy agent memory to a new vault. Do NOT use for: backing up the whole vault, updating OneBrain (use update), or reviewing memory (use memory-review).

Why use Clone on TypingMind?

Because you install it once and use it with any model. Clone is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Clone in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/clone. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Clone?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Clone?

As many as you like. As long as a model supports skills, you can use Clone with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Clone AI skill free?

Yes. It is published on GitHub by onebrain-ai under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇