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 agentmods add instructions/lethechen/init-claude-md/claude-mdgit clone --depth 1 https://github.com/LetheChen/init-claude-mdWrote 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/instructions/lethechen/init-claude-md/claude-md)<a href="https://agentmods.dev/instructions/lethechen/init-claude-md/claude-md"><img src="https://agentmods.dev/badge/instructions/lethechen/init-claude-md/claude-md.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.00932 | $0.00932 |
| Opus 5 | $0.00466 | $0.00466 |
| Sonnet 5 | $0.00186 | $0.00186 |
| Haiku 4.5 | $0.00093 | $0.00093 |
Grade A, and why
init-claude-md 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 5d 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.
This is a copy
91% identical to init-claude-md AGENTS.md — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Session Maintenance Protocol
开始时:读 TODO.md,复述当前 🔴 和 🟡 段;扫 references/ 是否与 SKILL.md 描述一致。
结束前(最后一条用户消息之后、停止前必做):
- 回看本次会话实际做了什么 —— 改动的文件、发现的问题、用户新增的约束
- 更新
TODO.md(决策表见references/session-maintenance-protocol.md) - 更新本文件的规则 —— 本次会话暴露的新约定加到对应段
- 刷新日期戳
> 最后更新:YYYY-MM-DD
触发条件:≥1 个仓库文件被改 · 用户新增约束 · 会话 > 10 分钟
Core rules (from Karpathy)
- Think Before Coding — surface assumptions, push back when warranted
- Simplicity First — minimum code that solves the problem
- Surgical Changes — touch only what you must
- Goal-Driven Execution — define success criteria, loop until verified
Language
- Communication:
zh(用户偏好) - Code comments:
zh - Commit messages:
en(Conventional Commits 必须英文) - Rule files:
zh
Project conventions
- 纯 Markdown skill:没有代码 / 包管理器 / 测试运行器
- 编辑
SKILL.md时必须同步更新references/和examples/(决策表、模板、检测矩阵三者锁步) - 所有文件统一用 UTF-8 no BOM(PowerShell
Set-Content -Encoding UTF8默认带 BOM,禁止用) references/session-maintenance-protocol.md是 single source of truth,根文件里的短版必须与之保持一致
Workflow
- Branch:
codex/<scope>-<slug>(solo 维护时直接用 main,feature branch 可选) - Commit: Conventional Commits(
feat:,fix:,chore:,docs:,refactor:) - Solo 维护者:直接
git push origin main,commit log 即 audit trail - TODO.md:每次会话结束时按决策表更新
Verification
git diff --stat HEAD 确认改动符合预期;改 SKILL.md 后用 Get-Content -Encoding UTF8 检查没有 BOM。
Things to avoid
- 不要在 skill 主体加 TypeScript / 任何编译型语言
- 不要加 CI 依赖(这个 skill 没必要要求 Node 18+ 才能用)
- 不要改
SKILL.md时漏改references/(决策表 / 模板 / 检测矩阵三者必须锁步) - 不要写带 BOM 的 UTF-8 文件(PowerShell 默认行为)
- 不要从
examples/删文件而不补 README 的目录树 - 不要在 README 里用单反引号包裹多行内容(GitHub 会渲染成一行)。多行示例一律用 fenced code block (
```text或```markdown);嵌套示例用 4 个反引号 - 不要把
description字段里的中文触发词写错(之前是涓?乱码,每个 agent 看到的触发词是错的) - 不要用 PowerShell Get-Content | Set-Content 改 Markdown(CRLF 会丢成 LF-only、\a \b \v 会被 PS 解释成控制字符)。用 [System.IO.File]::ReadAllBytes/WriteAllBytes 字节级操作
- 不要在 skill 里加 hook / cron / 外部触发器(软自动才是设计核心;外部触发器破坏跨 agent 兼容)
- 不要去掉根文件顶部的
## Session Maintenance Protocol块(agent 失去结束前自检清单)
最后更新:2026-07-05
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.
- 5d ago First seen · 55 lines · 932 tokens per session scan A 8807f8925645
init-claude-md CLAUDE.md is an instructions file published in the GitHub repository LetheChen/init-claude-md (1 stars, last pushed 2mo ago), licensed MIT. It adds 932 tokens to every session, about $0.0047 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to init-claude-md AGENTS.md, differing in 3 lines, and is treated as a copy.
Other instructions, from other repositories
skills AGENTS.md
AGENTS.md instructions for huangwb8/skills, covering skills - 项目指令, 目录结构与边界, python 与工具运行产物归档, ai 任务中间文件与 skill 协作工作区 and 任务根目录与生命周期.
FDEOps AGENTS.md
AGENTS.md instructions for suboss87/FDEOps, covering agents.md - working in the fdeops repository, if you are helping use fdeops in an engagement, if you are contributing to this repository and boundaries.
AI-Rig CLAUDE.md
Claude Code instructions for Borda/AI-Rig, covering instruction layering, edit scope — hard constraint, lint/format — use pre-commit hooks, not direct tools, test workflow and python documentation style.
sentry-instrumentation AGENTS.md
Instructions for tortastudios/sentry-instrumentation, covering agents guide — sentry-instrumentation, what this repo is, this repo has no "skill registry", if you're a codex agent asked to install this skill and skill-enable block (copy into consumer agents.md).
agent-profile CLAUDE.md
Claude Code instructions for jsuvic/agent-profile, covering instruction precedence, claude code, source of truth, runtime scope and safety rules.
bro-skills copilot-instructions.md
Copilot instructions for wedabro/bro-skills, covering copilot instructions for bro-skills, 1. supreme order, 2. bro-skills protocol, 3. language & code and 4. safety.