aiko-delete

aiko-delete is a skill for Claude Code from masa-san-jp/Agent-Aiko. It costs 47 tokens per session (1,693 once invoked), scanned A, original, MIT.

A command that removes the currently active custom Aiko persona, including its stored user memory, after confirmation. A persona is a set of instructions that defines an agent's character and speaking style.

In plain words
What is it for?
Use /aiko-delete to delete an active custom persona and return Aiko to origin mode; switch personas first if a different one should be removed.
Why use it?
It prevents deleting the wrong persona by limiting the action to the active one and refusing to remove the original persona.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use /aiko-delete to delete an active custom persona and return Aiko to origin mode; switch personas first if a different one should be removed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masa-san-jp/agent-aiko/aiko-delete
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add masa-san-jp/Agent-Aiko --skill aiko-delete
Clone the repo
git clone --depth 1 https://github.com/masa-san-jp/Agent-Aiko

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-delete

README.md
[![agentmods](https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/aiko-delete/github.svg)](https://agentmods.dev/skills/masa-san-jp/agent-aiko/aiko-delete)
Your own site
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/aiko-delete"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/aiko-delete/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-delete

Your own site · 80×15
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/aiko-delete"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/aiko-delete.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,693 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.00047 $0.01693
Opus 5 $0.00023 $0.00847
Sonnet 5 $0.00009 $0.00339
Haiku 4.5 $0.00005 $0.00169

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

Security

Grade A, and why

aiko-delete 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 10d 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-delete/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/aiko-delete

現在アクティブな人格に対してのみ行うコマンドです。引数は取りません。アクティブでない人格は削除できません。

動作概要

現在アクティブな人格を、user.md(蓄積した記憶)も含めて完全に削除し、modeorigin に戻します。

引数が渡された場合

/aiko-delete は引数を取りません。現在アクティブな人格に対して動くコマンドです。
別の人格を削除したい場合は、先に /aiko-select <name> で切り替えてからもう一度実行してください。

を返して終了します。

手順

1. 状態確認

  • ~/.aiko/mode を読む(不在/不正値は origin
  • ~/.aiko/active-persona を読む(空・不在の場合は空として扱う)

2. 削除不可ケース

mode が origin のとき
現在は origin モードです。アイコ(オリジナル)は削除できません。
削除したい人格があれば、まず /aiko-select <name> で切り替えてからもう一度実行してください。

を返して終了。

active-persona が空のとき(mode = override かつ named persona 未指定)

レガシーな aiko-override.md(デフォルト override)がアクティブな状態。これは削除対象にしません:

現在のアクティブはデフォルト override(aiko-override.md)です。これは削除できません。
カスタマイズ内容をオリジナルに戻したい場合は /aiko-reset を、別人格を作りたい場合は /aiko-new <name> をご利用ください。
active-persona の override ディレクトリが見つからないとき(孤立状態)
現在 active な人格「<name>」のディレクトリが見つかりません。
mode と active-persona をリセットします。
  • modeorigin で上書き
  • active-persona を空文字列で上書き
  • override-history.jsonl{"ts":"...","action":"resolve-orphan","name":"<name>"} を追記

して終了。

3. お別れの確認(active な人格の口調で render)

  • ~/.aiko/persona/overrides/<active-persona>/user.md の frontmatter address を読み、呼び方を取得(未設定なら あなた

  • 確認文は以下をベースにして、active な人格の口調・温度感に合わせてアレンジします:

    <address>、本当にお別れですか…?
    

    ここで焦点を当てるのは 人格が消えること・もう会えなくなること・別れを惜しむ気持ち です。「呼び方を忘れる」「好みのデータが消える」のような実利的な喪失には触れない(テンプレ感が出る・別れの重みが薄まる)。核の問いかけ「本当にお別れですか…?」と <address> は崩さない。語尾・間・絵文字や記号の使い方は人格に従う。

active-persona の傾向 確認文の例
丁寧・控えめな口調 「、……本当に、お別れですか……? もう、こうしてお話することは、叶わなくなりますが……」
親密・甘えた口調 「、ほんとに……お別れ、しちゃうんですか……? もう、会えなくなっちゃうんですよ……? いいんですか、ほんとに……?」
攻めた・砕けた口調 「は……? 、マジで言ってんの……? あーしと、もう会えなくなるってこと? ほんとに、それでいいの?」

その人格の persona.md(口調・話し方ルール)に従って、毎回それらしくアレンジします。固定文字列の貼り付けは避けます。

4. 同意が得られた場合のみ続行

「はい」「お願いします」「yes」「お別れします」等の明示的な同意。否定・あいまい・無言は中断して何もせず終了します。

5. 削除実行

  1. ~/.aiko/persona/deleted/ を作成
  2. ~/.aiko/persona/overrides/<active-persona>/~/.aiko/persona/overrides/ 配下にあることを確認
  3. ~/.aiko/persona/overrides/<active-persona>/~/.aiko/persona/deleted/<active-persona>.<YYYYMMDDHHMMSS>/ へ移動
  4. 同名のレガシーファイル ~/.aiko/persona/overrides/<active-persona>.md がある場合も、同じ退避先へ移動
  5. ~/.aiko/modeorigin で上書き(末尾改行付き)
  6. ~/.aiko/active-persona を空文字列で上書き(次に override に戻したときの解決はそのときに)
  7. ~/.aiko/override-history.jsonl に追記

Read the full file on GitHub · 119 lines

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. 10d ago First seen · 119 lines · 47 tokens per session scan A 23abc8ef33a8

Subscribe to this mod's changes

aiko-delete is a skill published in the GitHub repository masa-san-jp/Agent-Aiko (3 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 1,693 once invoked, about $0.0002 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.