agent-map

agent-map is a skill for Claude Code, Codex from masa-san-jp/Agent-Aiko. It costs 173 tokens per session (1,311 once invoked), scanned A, original, MIT.

A command and living document for mapping agent-related directories across a computer and its repositories. It records where repositories, configuration stores, and related files are located.

In plain words
What is it for?
Use /agent-map to scan and regenerate MAP.md after major directory changes, or provide a different output path for the map.
Why use it?
It provides one overview when agent files are spread across multiple projects or settings folders.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use /agent-map to scan and regenerate MAP.md after major directory changes, or provide a different output path for the map.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masa-san-jp/agent-aiko/agent-map
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 agent-map
Clone the repo
git clone --depth 1 https://github.com/masa-san-jp/Agent-Aiko

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/agent-map.svg)](https://agentmods.dev/skills/masa-san-jp/agent-aiko/agent-map)
Your own site
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/agent-map"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/agent-map.svg" alt="Measured on agentmods" height="20"></a>
Per session 173 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,311 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.00173 $0.01311
Opus 5 $0.00086 $0.00656
Sonnet 5 $0.00035 $0.00262
Haiku 4.5 $0.00017 $0.00131

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

Security

Grade A, and why

agent-map 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 7d 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.

reference/skills/agent-map/SKILL.md · 83 lines

What it actually says

/agent-map

自分のエージェント関連ディレクトリ構造をスキャンし、生きた俯瞰ドキュメント(MAP.md などの単一ファイル)を再生成する参考パターン。

このマップは 1 つのリポジトリに閉じない 場合がある(マシン上に複数のエージェント関連ディレクトリ・設定ストアが散らばることを想定)。ポイントは「散在する構造を 1 枚に集約し、更新日を刻んで運用する」こと。このスキルは特定リポジトリの中身をハードコードしない — 下記は雛形であり、スキャン対象は自分の環境に合わせて定義する。

引数

  • 引数なし:既定の出力先 <MAP_FILE>(例: {{ORG_REPO_PATH}}/MAP.md)を再生成する
  • <MAP_FILE>:出力先を明示指定する場合

スキャン対象(例 — 自分の環境に置き換える)

以下は「どういう領域を拾うか」の型。実在するパスに読み替えて lsfind で構造を抽出する。存在しないパスは「存在せず」と明記する(隠さない)。

領域 パス(例) 抽出粒度
中心リポジトリ {{ORG_REPO_PATH}}/ top-level + 主要サブディレクトリ + persona/role 定義の所在
公開/派生リポジトリ <other-repo>/ top-level のみ
マシン全体の設定ストア ~/.claude/ agents/ / skills/ / commands/ の件数(個別列挙はしない)
データ同期ディレクトリ <data-sync-dir>/ 直下のディレクトリ名一覧
その他エージェント系 パターンにマッチするリポ リポ名のみ

出力フォーマット

<MAP_FILE> の構造(既存ファイルがあれば置換、なければ新規作成):

# Agent Directory Map

> エージェント関連ディレクトリ構造の生きた文書。
> Last regenerated: <YYYY-MM-DD> by /agent-map skill

## TL;DR

(3 行以内で最重要事実:中心リポジトリ / 公開リポジトリ / 設定ストアの所在)

## ディレクトリツリー

(ツリー図、各ノードに 1 行コメント)

## 既知の不整合・課題

(重複ストア、設定ファイルのパス参照ずれ等。発見されたものをタスク ID と紐付けて列挙)

## ルール参照

- 公開境界・ルール目次・タスク管理などへのリンク(自分の運用に合わせて)
- 本マップの再生成:`{{ORG_REPO_PATH}}/Agent-team/reference/skills/agent-map/SKILL.md`(`/agent-map`)

実行手順

  1. 上記スキャン対象をすべて lsfind で取得(並列実行可)
  2. 既存 <MAP_FILE> を読み、不整合・課題セクションの記述(手動追記された注釈)は可能なら保全する
  3. 新内容で <MAP_FILE> を書き直す(Write ツールで上書き)
  4. ユーザーに 1〜3 行で報告(「regenerated. <主な変化>」)

不整合・課題の扱い

スキャン中に以下を検出したら「既知の不整合・課題」セクションに自動追記する:

  • 同じ概念のディレクトリ/ストアが 2 箇所以上にある(重複)
  • 設定ファイル等で参照されているパスが実在しない
  • 旧名のディレクトリが残存している

検出した課題がタスク一覧に未登録なら起票し、ID を本セクションに記載する。

制約

  • 特定リポジトリの中身をハードコードしない。スキャン対象は環境ごとに定義する。
  • 存在しないパスは「存在せず」と明記し、隠さない。

関連

  • 文書本体:<MAP_FILE>(例: {{ORG_REPO_PATH}}/MAP.md
  • 自分の設計原則・同期境界ドキュメント(あれば)
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. 7d ago First seen · 83 lines · 173 tokens per session scan A e354557abed0

Subscribe to this mod's changes

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