Cloneのロゴ

Clone

組織
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).

概要

公開者onebrain-ai
リポジトリonebrain
スキル名clone
スター
31
フォーク
3
同梱ファイル
1
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    onebrain-aiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルCloneをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/clone
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCloneを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にCloneを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Cloneは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

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

TypingMindでCloneを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Cloneはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCloneをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/cloneを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Cloneを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Cloneは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCloneを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Clone」は無料ですか?

はい。onebrain-aiがGitHubでApache-2.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇