init-claude-md CLAUDE.md

init-claude-md CLAUDE.md is an instructions file for coding agents from LetheChen/init-claude-md. It costs 932 tokens per session, scanned A, a copy of init-claude-md AGENTS.md, MIT.

A set of instructions for Claude Code covering repository guidance, session maintenance, language choices, and project conventions. Claude Code is a coding agent that follows files such as AGENTS.md and CLAUDE.md.

In plain words
What is it for?
Use it when maintaining agent instruction files, reviewing TODO and reference files, choosing branch and commit conventions, or working on a Markdown-only skill.
Why use it?
It gives the agent consistent rules for starting and ending sessions, making focused changes, and keeping related documentation synchronized.

Instructions file

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.

agentmods
npx agentmods add instructions/lethechen/init-claude-md/claude-md
Clone the repo
git clone --depth 1 https://github.com/LetheChen/init-claude-md

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 init-claude-md CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lethechen/init-claude-md/claude-md.svg)](https://agentmods.dev/instructions/lethechen/init-claude-md/claude-md)
Your own site
<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>
Per session 932 This file is loaded in full into every session.
When invoked 932 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod 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.00932 $0.00932
Opus 5 $0.00466 $0.00466
Sonnet 5 $0.00186 $0.00186
Haiku 4.5 $0.00093 $0.00093

Measured 5d ago against content hash 8807f8925645, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

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.

Origin

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.

CLAUDE.md · 55 lines

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 描述一致。

结束前(最后一条用户消息之后、停止前必做):

  1. 回看本次会话实际做了什么 —— 改动的文件、发现的问题、用户新增的约束
  2. 更新 TODO.md(决策表见 references/session-maintenance-protocol.md
  3. 更新本文件的规则 —— 本次会话暴露的新约定加到对应段
  4. 刷新日期戳 > 最后更新:YYYY-MM-DD

触发条件:≥1 个仓库文件被改 · 用户新增约束 · 会话 > 10 分钟

Core rules (from Karpathy)

  1. Think Before Coding — surface assumptions, push back when warranted
  2. Simplicity First — minimum code that solves the problem
  3. Surgical Changes — touch only what you must
  4. 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

Read the full file on GitHub · 55 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. 5d ago First seen · 55 lines · 932 tokens per session scan A 8807f8925645

Subscribe to this mod's changes

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.

Related

Other instructions, from other repositories

skills AGENTS.md

AGENTS.md instructions for huangwb8/skills, covering skills - 项目指令, 目录结构与边界, python 与工具运行产物归档, ai 任务中间文件与 skill 协作工作区 and 任务根目录与生命周期.

huangwb8/skills · 10,019 tokens

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.

suboss87/FDEOps · 362 tokens

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.

Borda/AI-Rig · 2,000 tokens

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).

tortastudios/sentry-instrumentation · 1,038 tokens

agent-profile CLAUDE.md

Claude Code instructions for jsuvic/agent-profile, covering instruction precedence, claude code, source of truth, runtime scope and safety rules.

jsuvic/agent-profile · 1,495 tokens

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.

wedabro/bro-skills · 425 tokens