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.
npx skills add masa-san-jp/Agent-Aiko --skill dir-entrygit clone --depth 1 https://github.com/masa-san-jp/Agent-AikoWrote 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.
[](https://agentmods.dev/skills/masa-san-jp/agent-aiko/dir-entry)<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>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.
| Model | Per session | Once 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 |
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.
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:` 日付を見て、古ければ再生成する
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.
- 8d ago First seen · 200 lines · 144 tokens per session scan A 3a1f3a571151
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.
Other skills, from other repositories
share-skills
Use when you need to author, package, or share a skill folder — understanding the SKILL.md format, where skills live, and how to bundle a folder so it can be shared with others.
git-commit
Stage, write, and structure git commits and pull requests cleanly. Read this before committing — for conventional-commit message format, when to split commits, and how to open a PR with the gh CLI.
openai-whisper-api
Transcribe audio via OpenAI Audio Transcriptions API (Whisper).
app_evaluator
A professional skill for App Evaluation (evaluating app's performance with score) and App Improvement (giving professional suggestions for improving the app's performance).
add-backend
Guide for adding a backend (Rust or Python) to the agent-sec-core security middleware. Use when creating new backends, integrating Rust or Python code into the security middleware, or extending with new backend actions.
skill-ledger
A security record for agent skills, which are reusable instruction packages for coding agents. It shows their status, reviews risk exposure, and can certify them with quick or user-approved deeper scans.