aiko-migrate-to-shared

aiko-migrate-to-shared is a skill for Claude Code from masa-san-jp/Agent-Aiko. It costs 84 tokens per session (968 once invoked), scanned A, original, MIT.

A migration tool that moves an older project-specific .claude/aiko/ data store into the shared ~/.aiko/ location. It then replaces the old folder with a symbolic link, which is a filesystem pointer to another location.

In plain words
What is it for?
Use it to preview or perform the migration, optionally overwrite an existing shared store, and view the script's help for other arguments.
Why use it?
It helps older installations use the shared store expected by newer installers. A dry run shows the planned changes first, and backups are created before the actual move.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code; mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash .claude/scripts/migrate-to-shared.sh --dry-run.

Good fit Use it to preview or perform the migration, optionally overwrite an existing shared store, and view the script's help for other arguments.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/masa-san-jp/Agent-Aiko
agentmods
npx agentmods add skills/masa-san-jp/agent-aiko/aiko-migrate-to-shared

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aiko-migrate-to-shared

README.md
[![agentmods](https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/aiko-migrate-to-shared/github.svg)](https://agentmods.dev/skills/masa-san-jp/agent-aiko/aiko-migrate-to-shared)
Your own site
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/aiko-migrate-to-shared"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/aiko-migrate-to-shared/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aiko-migrate-to-shared

Your own site · 80×15
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/aiko-migrate-to-shared"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/aiko-migrate-to-shared.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 968 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.00968
Opus 5 $0.00042 $0.00484
Sonnet 5 $0.00017 $0.00194
Haiku 4.5 $0.00008 $0.00097

Measured 11d ago against content hash f6b94f94d507, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

aiko-migrate-to-shared scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-code/template/.claude/skills/aiko-migrate-to-shared/SKILL.md · 64 lines

What it actually says

/aiko-migrate-to-shared

旧導入環境向けに、このプロジェクトの ${PWD}/.claude/aiko/ を共通ストア ~/.aiko/ に移行し、移行後は ${PWD}/.claude/aiko/~/.aiko/ への symlink に置き換えます。現在の installer は最初から ~/.aiko/ を使うため、新規導入では通常不要です。

設計仕様書 §9.2 に対応する実装で、本体は .claude/scripts/migrate-to-shared.sh(installer 経由でユーザー環境に配布されます)。

引数なし — 確認モード(推奨ファーストステップ)

最初は必ず dry-run で何が起きるかを確認します。実行はせず、ユーザーに以下のコマンドを案内してください

bash .claude/scripts/migrate-to-shared.sh --dry-run

実際にスクリプトを実行する前に、ユーザーに以下を必ず確認してください:

  • ~/.aiko/ が既に存在するか(存在する場合は --overwrite が必要なことを案内)
  • 進行中のセッションを閉じたか(symlink 置換中にファイルを開いていると壊れる可能性)
  • バックアップ(${PWD}/.claude/aiko.backup-<timestamp>/ と必要なら ~/.aiko.backup-<timestamp>/)が作られることを理解しているか

引数 --dry-run

bash .claude/scripts/migrate-to-shared.sh --dry-run

を案内します。スクリプトが「[dry-run]」プレフィックス付きで実行内容を表示します。

引数 --overwrite

~/.aiko/ が既に存在する場合に上書きする際のオプション。既存の ~/.aiko/~/.aiko.backup-<timestamp>/ にバックアップされてから上書きされます。

bash .claude/scripts/migrate-to-shared.sh --overwrite

それ以外の引数

スクリプトが --help を出すので、

bash .claude/scripts/migrate-to-shared.sh --help

の実行を案内してください。

実行後の振る舞い

  1. ~/.aiko/ に人格データがコピーされる
  2. ${PWD}/.claude/aiko.backup-<timestamp>/ に旧データが backup として保持される(不要になったら手動削除)
  3. ${PWD}/.claude/aiko/~/.aiko/ への symlink になる
  4. 以降は Claude Code 版・Codex 版のどちらから編集しても同じ人格データに反映される

注意

  • このスキル自体は破壊的操作を実行しません。常にユーザーにスクリプト実行を案内する形を取ります。Claude Code 内から bash を直接実行する場合も、必ず dry-run から始めて結果をユーザーに見せ、明示の確認を得てから本実行に進んでください
  • スクリプトは冪等性ガードを持ち、${PWD}/.claude/aiko/ が既に symlink になっている場合は exit 1 で abort します
  • 移行後に元に戻したい場合は、symlink を削除して ${PWD}/.claude/aiko.backup-<timestamp>/${PWD}/.claude/aiko/ にリネームしてください
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 64 lines · 84 tokens per session scan A f6b94f94d507

Subscribe to this mod's changes

aiko-migrate-to-shared is a skill published in the GitHub repository masa-san-jp/Agent-Aiko (3 stars, last pushed 1mo ago), licensed MIT. It adds 84 tokens to every session and 968 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.