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/xirong/my-git/agents-mdgit clone --depth 1 https://github.com/xirong/my-gitWhat 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 | $0.00493 | $0.00493 |
| Opus 5 | $0.00246 | $0.00246 |
| Sonnet 5 | $0.00099 | $0.00099 |
| Haiku 4.5 | $0.00049 | $0.00049 |
Grade A, and why
my-git AGENTS.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 2d 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.
What it actually says
AGENTS.md
本仓库是面向现代工程团队与 AI 编程时代的双语 Git / GitHub 手册。欢迎用 AI 工具协助维护,约定如下。
仓库结构
01-getting-started/到10-company-practices/是正文目录,每个目录的中文文章在目录根,English 文章在<目录名>_en/子目录,文件名以_en.md结尾00-meta/放维护类文档:路线图、风格规范、release notes09-resources/legacy/是历史归档,保持原样scripts/放文档检查脚本
改动后必须验证
python3 scripts/check-docs.py
python3 scripts/check-links.py --no-external
git diff --check
check-docs.py 会检查本地链接和禁用词,动笔前先看脚本里的 FORBIDDEN_LITERAL 列表,避免返工。
内容规则
- 新文章遵循 内容风格规范
- 先讲场景和判断,再给命令,危险操作必须写清风险
- 涉及 GitHub 功能的描述要引用官方文档链接
- 中英文内容成对维护:改中文文章时同步更新对应的
_en.md文件,新文章要同时创建两份并互相链接 - 新文章要加进所在目录的 README 和相关导航入口
禁止操作
- 不修改
09-resources/legacy/下的历史归档 - 不新增 pdf、docx 等二进制文档
- 不修改
LICENSE - 不执行
git commit、git push、打 tag,这些由维护者确认后执行 - 不删除已有文章,废弃内容先和维护者确认
提交与 PR 约定
- commit message 用
docs: ...、ci: ...风格,一个 commit 一个意图 - AI 工具参与的提交加
Co-authored-bytrailer - PR 描述写明使用的 AI 工具、人工检查过的文件、跑过的检查命令
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.
- 2d ago First seen · 43 lines · 493 tokens per session scan A 6a784989489f
my-git AGENTS.md is an instructions file published in the GitHub repository xirong/my-git (7,398 stars, last pushed 11d ago), licensed MIT. It adds 493 tokens to every session, about $0.0025 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-30.
Other instructions, from other repositories
aider-desk AGENTS.md
AGENTS.md instructions for hotovo/aider-desk, covering agents.md, common commands, development, type checking and linting and formatting.
Meta_Kim CLAUDE.md
Instructions for KimYx0207/Meta_Kim, covering metakim for claude code, fast read, what this repository is, claude code's role and canonical vs runtime files.
crystal CLAUDE.md
Instructions for stravu/crystal, covering crystal - multi-session claude code manager, project overview, references, implementation status: ✅ complete and ✅ implemented features.
easy-cheese python.instructions.md
Instructions for paulnsorensen/easy-cheese, covering hard rules, what to flag and what not to flag.
claude-bridge AGENTS.md
Instructions for kadaba/claude-bridge, covering agents.md — using claude-bridge from any ai coding cli, two independent channels, 1. coordination (the conversation), 2. file transfer (the bytes) — same for every tool and workflows.
AmbyKit CLAUDE.md
Instructions for ambystechcom/AmbyKit, covering claude code — notes for the ambykit repo and claude-specific.