dir-entry

dir-entry is a skill for Claude Code, Codex from masa-san-jp/Agent-Aiko. It costs 144 tokens per session (2,461 once invoked), scanned A, original, MIT.

A documentation skill that creates or updates an AI-facing INDEX.md and a human-facing README.md at a project directory’s entry point. The index focuses on structure and conventions; the README focuses on purpose, setup, and current status.

In plain words
What is it for?
Use it to document an unfamiliar work directory, its files, rules, related skills, and quick-start information. It can work on the current directory or a path you provide.
Why use it?
It gives coding agents and people different information suited to their needs without overwriting the project’s existing README content. It first inspects the directory and existing guidance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to document an unfamiliar work directory, its files, rules, related skills, and quick-start information. It can work on the current directory or a path you provide.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/dir-entry.svg)](https://agentmods.dev/skills/masa-san-jp/agent-aiko/dir-entry)
Your own site
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/dir-entry"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/dir-entry.svg" alt="Measured on agentmods" height="20"></a>
Per session 144 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,461 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.00144 $0.02461
Opus 5 $0.00072 $0.01230
Sonnet 5 $0.00029 $0.00492
Haiku 4.5 $0.00014 $0.00246

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

Security

Grade A, and why

dir-entry 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.

reference/skills/dir-entry/SKILL.md · 200 lines

How it starts

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

/dir-entry

任意の作業ディレクトリの入り口に、AI エージェントが最初に読む INDEX.md人間が最初に読む README.md を生成・更新する共通スキル。既存 README.md は保持し、不足を補う形で更新する。

引数

引数 必須 既定
path × カレントディレクトリ($PWD

引数なしで呼ばれた場合はカレントディレクトリ。/dir-entry ~/Dev/foo のように指定されればそこへ。 複数の候補が考えられる場合(例:カレントがクラウド同期配下の PJ なのか、その親ディレクトリなのか)は 1 問だけ問い返す

ファイル責務の分離

ファイル 読者 内容
INDEX.md AI エージェント(各種コーディングエージェント等) 機械可読寄り。frontmatter・ツリー・キーファイル・規約・関連スキル・最近のログ
README.md 人間(オーナー・チームメンバー) 目的・クイックスタート・運用ルール・現状サマリ・FAQ

両者は 目的の補完関係:人間向け README に書ききれない構造情報を INDEX に集約する。両者で同じ事を書かない(リンクで参照する)。

実行手順

1. ディレクトリの状態把握

  • ls -la <path> でルート直下のファイル・ディレクトリ一覧
  • 既存 README.md / INDEX.md / CLAUDE.md / AGENTS.md の有無確認
  • プロジェクトタイプの簡易推定(次のヒューリスティクス):
    • package.json → Node/JS プロジェクト
    • pyproject.toml / requirements.txt → Python プロジェクト
    • .git/ あり → ローカル git リポ
    • パスにクラウド同期フォルダ(例:CloudStorage/...)を含む → クラウド同期領域
    • operations/log.jsonl / handoff/ / strategy/ の組合せ → 業務 PJ 構造
    • personas/ / agents/ → エージェント開発プロジェクト

2. 既存 README.md の読み取りと保持判断

  • 既存があれば全文を読む
  • 以下のセクションは 保持 する(ユーザーが意図的に書いたものとみなす):
    • 目的 / Purpose / 概要 / About
    • ライセンス / License
    • 寄稿 / Contributing
    • 引用 / 著者
    • 警告 / 禁止事項(例:「ここに置かないもの」「ローカル機密境界」)
  • 以下のセクションは 更新/再生成 する(時間で陳腐化するため):
    • ディレクトリ構成 / ツリー
    • 現状サマリ / ステータス
    • 最近の更新 / 直近ログ

3. INDEX.md の生成

以下のテンプレートに沿って生成。項目はディレクトリ実態に応じて取捨

---
type: ai-index
generated: <yyyy-mm-dd>
project: <ディレクトリ名 or 推定 PJ 名>
project_type: <local-repo | cloud-sync-pj | personal-workspace | etc.>
visibility: <PUBLIC | PRIVATE | local-only>
canonical_path: <絶対パス>
---

# INDEX — AI エージェント向け案内

> このファイルは **AI エージェントが最初に読むこと** を想定しています。
> 人間向けの説明は `README.md` を参照してください。

## エントリポイント(先に読むべき順)

1. `<file1>` — <一文の目的説明>
2. `<file2>` — <同上>
3. `<file3>` — <同上>

## ディレクトリ構造(責務マップ)

| パス | 責務 | 主な拡張子・形式 |
|---|---|---|
| `<dir1>/` | <一文の責務> | `.md` |
| `<dir2>/` | <同上> | `.jsonl` |
| ... | ... | ... |

## ファイル命名・形式の規約

- <例: `yyyymmdd-<内容>` プレフィックス>
- <例: `log.jsonl` の 1 行 JSON フォーマット>
- <例: 人名禁止・actor は `owner`/`agent`/`system` のみ>

## 関連スキル

| コマンド | 用途 |
|---|---|
| `/<skill1>` | <一文> |
| `/<skill2>` | <一文> |

## 直近の状態(生成時点のスナップショット)

- 最新ログ ID: `<LOG-NNNN>`(あれば)
- 最終更新ファイル: `<path>` (`<yyyy-mm-dd>`)
- 進行中タスク: `<簡潔に>`

## このディレクトリで「やってはいけないこと」

- <例: PUBLIC リポへの混入禁止>
- <例: 人名の記載禁止>
- <例: 外部データソースの直接編集不可(handoff 経由)>

## 関連外部リソース

- <ドキュメント基盤・データソース等への参照リンク(あれば)>

## このファイルの保守

- `/dir-entry` を再実行すれば更新可
- ヘッダーの `generated:` 日付を見て、古ければ再生成する

Read the full file on GitHub · 200 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 · 200 lines · 144 tokens per session scan A 3a1f3a571151

Subscribe to this mod's changes

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