Borrowing it
Nothing to install: this file belongs to LetheChen/init-claude-md. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/LetheChen/init-claude-md/main/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/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.
<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="Reviewed on agentmods" width="80" 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.5 | $0.00373 | $0.00373 |
| Sonnet 5.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 2mo 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.
- 2mo 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 3mo ago), licensed MIT. It adds 932 tokens to every session, about $0.0037 per session on Opus 5.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
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).
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.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
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.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.