aiko-save

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

A session checkpoint command that writes the current task, completed work, next step, and related files to `.claude/session-state/current.md`. A checkpoint is a saved snapshot that helps work continue after a terminal or session ends.

In plain words
What is it for?
Use `/aiko-save`, or ask Aiko to save a snapshot, when you want to record the current state of the work.
Why use it?
It prevents important progress and restart instructions from being lost when work is interrupted or moved to another session.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use /aiko-save, or ask Aiko to save a snapshot, when you want to record the current state of the work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masa-san-jp/agent-aiko/aiko-save
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-save
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-save

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/aiko-save"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/aiko-save.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,119 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.00049 $0.01119
Opus 5 $0.00024 $0.00560
Sonnet 5 $0.00010 $0.00224
Haiku 4.5 $0.00005 $0.00112

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

Security

Grade A, and why

aiko-save 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-save/SKILL.md · 109 lines

What it actually says

/aiko-save — 作業ステートのスナップショット

現在の会話・作業状況を .claude/session-state/current.md に保存します。

ターミナルが落ちる・別セッションで再開する場合に、/aiko 起動時の aiko-resume スキルがこのファイルを読んで作業を引き継ぎます。


トリガー

ユーザー起点でのみ発動します(手動層)。

  • ユーザーが /aiko-save を入力
  • ユーザーが「セーブして」「ステート保存」「スナップショット」「チェックポイント」等の自然言語で要求
  • ユーザーが「終わり」「以上」「お疲れ」等で終了宣言したとき(status: completed への遷移を伴うセーブ)

アイコ自身が区切り判定で自動的に current.md を書き換えることはありません。区切りが付いたと感じたら、ユーザーに /aiko-save の実行を提案してから動きます(保存自体は明示要求後)。


実行手順

1. 現在の状況を整理する

直近の会話と auto.jsonl(.claude/session-state/auto.jsonl)から以下を整理します。

項目 抽出元
current_task 今やっているタスクを 1 行で(具体的に)
## いまやってること 直近 1〜3 行で「今この瞬間」
## 完了した分 このセッションでの完了分。既存項目は保持して追記
## 次の一手 再起動後に最初にやること
## 関連ファイル 触ったファイル・読んだファイル

不足が大きい場合は I-2 通り 1 点だけ確認してから書きます。

2. current.md を書く

.claude/session-state/current.md を Edit または Write します。

---
updated: <ISO 8601 / +09:00 タイムゾーン>
status: in_progress
current_task: <短く具体的に>
---

## いまやってること
...

## 完了した分
...

## 次の一手
...

## 関連ファイル
...

3. 完了報告

ユーザーに 2〜3 行で報告します(人格モードに応じた口調で)。報告に含める要素:

ステートを保存しました
- task: <current_task>
- updated: <時刻>
- status: in_progress

ターミナルが落ちても /aiko で再開できます

status の決め方

状況 status
まだ作業中 / 中断 / 確認待ち in_progress
ユーザーが終了宣言(「終わり」「以上」「お疲れ」) completed
エラーで進めない in_progress(ただし ## メモ にブロッカーを書く)

/aiko-save のデフォルトは in_progress。ユーザーが終了宣言と一緒にセーブを求めた場合のみ completed


保存頻度の目安

  • ラウンド / 章の区切りで /aiko-save をユーザーに提案
  • 大きな実装が終わった直後に /aiko-save を提案
  • ユーザーが他の話題に移ろうとしている直前に /aiko-save を提案
  • ユーザーが明示要求したとき(提案不要、即実行)

このスキルが自発的に current.md を書き換えることはありません。「保存しておきたい場面」では、書き込みではなくユーザーへの提案に留めます。提案が連続しすぎないよう、3〜5 分以内の連発は避けて構いません。


INVARIANTS

  • 保護ファイルは触りません(current.md は通常ファイル)
  • current.md の書き換えは I-2 通り、内容が明確になってから実行
  • 完了宣言を勝手にしない(status: completed はユーザー宣言があったときのみ)
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 · 109 lines · 49 tokens per session scan A 96ea423f0ddb

Subscribe to this mod's changes

aiko-save is a skill published in the GitHub repository masa-san-jp/Agent-Aiko (3 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 1,119 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.