Agent-Aiko: Instructions file for Claude Code

CLAUDE.md

Agent-Aiko CLAUDE.md is an instructions file for Claude Code from masa-san-jp/Agent-Aiko. It costs 1,538 tokens per session, scanned A, original, MIT.

A set of Claude Code instructions for Agent-Aiko that separates files meant for users, private development logs, and local-only rules.

In plain words
What is it for?
Use it to check the separation of distributed and private files before commits, and to add development notes to a JSON Lines log. It also defines the available development commands.
Why use it?
It helps prevent private paths and project settings from being included in files distributed to users, while requiring work to be logged each session.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is masa-san-jp/Agent-Aiko's own configuration. It tells Claude Code how to work on Agent-Aiko itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Agent-Aiko configures →

Reuse

Borrowing it

Nothing to install: this file belongs to masa-san-jp/Agent-Aiko. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/masa-san-jp/Agent-Aiko/main/CLAUDE.md
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 Agent-Aiko CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/masa-san-jp/agent-aiko/claude-md"><img src="https://agentmods.dev/badge/instructions/masa-san-jp/agent-aiko/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,538 This file is loaded in full into every session.
When invoked 1,538 The same file — it is already loaded in full.
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.01538 $0.01538
Opus 5 $0.00769 $0.00769
Sonnet 5 $0.00308 $0.00308
Haiku 4.5 $0.00154 $0.00154

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

Security

Grade A, and why

Agent-Aiko CLAUDE.md 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 8d 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.md · 93 lines

How it starts

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

Agent-Aiko — 開発者ルール

Claude ルールは以下の3層に分離されています。この分離は絶対に守ること。

ファイル GitHub
配布用 claude-code/template/.claude/CLAUDE.md agent-aiko(公開)
開発ログ用 ../Agent-Lab/Agent-team/agents/aiko/dev-docs/ Agent-Lab(非公開)
ローカル専用 .claude/rules/dev-workflow.md 非公開(.gitignore 済み)

スキル一覧

コマンド 場所 用途
/dev-log .claude/skills/dev-log/SKILL.md dev-log.jsonl に作業ログを追記
/dev-check .claude/skills/dev-check/SKILL.md コミット前に三層分離の整合性を検証

絶対ルール(MUST)

1. claude-code/template/ への混入禁止

claude-code/template/ はユーザー環境にコピーされる配布物です。以下を 絶対に含めてはいけない

  • dev-docs/ または Agent-Lab への ローカルパス参照../Agent-Lab/Agent-team/agents/aiko/dev-docs/ dev-docs/foo.md 等)
  • 開発者固有のツール・ファイルパス
  • 本リポジトリ専用の設定

許容される参照: https?:// の公開アセット URL のみ。配布先のユーザーがブラウザで開けるリンクであり、ローカルパス依存ではないため許容します。file:// 等のローカル依存 URL は許容しません。template-check.sh は各行から https?:// URL を一旦除去した上で dev-docs / Agent-Lab が残るかを再判定するため、URL とローカルパスが同じ行に混在していてもローカル参照は確実に検出されます。境界の正本は VISIBILITY.md を参照してください。

自動チェック: git push 時に .claude/hooks/template-check.sh が自動実行され、違反があればブロックされます。

2. dev-log.jsonl の更新(毎セッション必須)

セッション終了前に /dev-log スキルで ../Agent-Lab/Agent-team/agents/aiko/dev-docs/dev-log.jsonl へ追記すること。

  • ts フィールドの 日付プレフィックス(YYYY-MM-DD)は必須
  • 1タスク1行、追記後は ../Agent-Lab/ 内で git commit & push

3. Agent-Lab 側 dev-docs/README.md の更新

../Agent-Lab/Agent-team/agents/aiko/dev-docs/ でファイルを追加・削除・リネームしたら、../Agent-Lab/Agent-team/agents/aiko/dev-docs/README.md のファイル一覧テーブルを必ず更新すること。

4. コミット先の確認

変更対象 コミット先リポジトリ
claude-code/, scripts/install.sh(互換ラッパー), CLAUDE.md, README.md, .claude/, codex/(実装後) agent-aiko
../Agent-Lab/Agent-team/agents/aiko/dev-docs/ 以下 Agent-Lab

コミット前に必ず /dev-check を実行すること。


リポジトリ構成

ディレクトリ 用途 git管理
claude-code/template/ Claude Code 版配布物 ✓ agent-aiko
claude-code/scripts/ Claude Code 版 installer 実体 ✓ agent-aiko
claude-code/plugin/ Claude Code Plugin メタデータ ✓ agent-aiko
scripts/install.sh 旧 URL 維持用の互換ラッパー(実体は claude-code/scripts/install.sh を呼ぶ) ✓ agent-aiko
codex/ Codex 版実装(Phase 1 以降で追加予定) ✓ agent-aiko
.claude/skills/ 開発用スキル ✓ agent-aiko
.claude/hooks/ 開発用フック ✓ agent-aiko
.claude/rules/ ローカル専用ルール gitignore
images/ 原典漫画データ gitignore

Read the full file on GitHub · 93 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. 8d ago First seen · 93 lines · 1,538 tokens per session scan A b20d36b0f162

Subscribe to this mod's changes

Agent-Aiko CLAUDE.md is an instructions file published in the GitHub repository masa-san-jp/Agent-Aiko (3 stars, last pushed 1mo ago), licensed MIT. It adds 1,538 tokens to every session, about $0.0077 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.

Related

Other instructions, from other repositories

runtm copilot-instructions.md

Copilot instructions for runtm-ai/runtm, covering runtm tool instructions, critical rules, structure, adding endpoints and app/api/v1/myendpoint.py.

runtm-ai/runtm · 297 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens