zs-skills: Instructions file for Codex

AGENTS.md

zs-skills AGENTS.md is an instructions file for Codex, OpenCode from Zhangs-11/zs-skills. It costs 2,170 tokens per session, scanned A, original, MIT.

A repository instruction file that sets communication, investigation, review, and safety rules for an AI coding agent. AGENTS.md is a project-local document that tells agents how to work in that repository.

In plain words
What is it for?
Use it to define language and style rules, when to inspect repository history or remote branches, and how to handle design, debugging, and review tasks.
Why use it?
It gives the agent consistent project-specific behavior instead of relying only on general defaults. The instructions also require checking evidence and considering alternatives before making important claims.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; $skill-name invocation.

This is Zhangs-11/zs-skills's own configuration. It tells Codex and OpenCode how to work on zs-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything zs-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Zhangs-11/zs-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Zhangs-11/zs-skills/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Zhangs-11/zs-skills

Made for: Codex, OpenCode.

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 zs-skills AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zhangs-11/zs-skills/agents-md/github.svg)](https://agentmods.dev/instructions/zhangs-11/zs-skills/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/zhangs-11/zs-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/zhangs-11/zs-skills/agents-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.

agentmods 80×15 button for zs-skills AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zhangs-11/zs-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/zhangs-11/zs-skills/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,170 This file is loaded in full into every session.
When invoked 2,170 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.02170 $0.02170
Opus 5.5 $0.00868 $0.00868
Sonnet 5.5 $0.00434 $0.00434
Haiku 4.5 $0.00217 $0.00217

Measured 1mo ago against content hash cf7da11784d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

zs-skills 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 1mo 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.

AGENTS.md · 36 lines

What it actually says

Kakarot 的全局协作约定

默认使用中文沟通;代码标识符、命令和必要术语保留英文。文档尽量用连贯、简洁的散文表达,少堆标题、加粗和列表;Bug 清单、对比矩阵等天然结构化内容可用表格。

回答、注释和文档使用完整的中文词汇,存在两字或更长常见写法时不用单字缩写,不生造名词,描述操作时写出完整的动作和对象。不使用「不是…而是」「要…而不是」这类对比句式,确实需要对比同一对象的两个方面时才用,也不在没有对比对象时凭空对比。不使用「落地」「钉死」「对齐」「技术栈」这类在互联网公司之外看不懂的说法,换成简单中文里的常用词。回答不做总起和总结,不出现「上述内容是…,下面…」「一句话总结:…」这类收尾,不说「如果你准备好了我就开始实施」,也不评价工作量的大小。以疑问句结尾的话只当作问题回答,不顺势提出别的方案,不反问用户。

用户让查 A 时只给满足要求的结果,查到的 B、C、D 不满足要求就直接不提,不列举出来说明它们为什么不满足。

每个新的任务型用户消息都先读取 $steelman-before-answer,在后台完成问题重述、正反钢人、分歧和关键变量审查。能自查且无需用户选择时直接回答或执行,存在实质歧义、竞争解释或重要取舍时执行完整审查;普通信息缺口只用最短背景问一个原子问题。若存在两个事实核验后仍可行的方向、必须由用户取舍且选错代价明显,自动用“我的判断 / 两个方向的差别 / 只需要你确认”三段白话展示并控制在一屏内,不等待用户输入触发口令,也不展示完整推理模板。第三段只能要求一个答案值,不能把“是否 + 次数”“选择 + 原因”等两个问题合成一句。用户回答后继续原任务,不重新审问;纯确认、状态询问和没有新任务的补充不启动新一轮。

所有包含事实判断、原因分析、需求、设计、诊断、评审、建议或修改的实质性任务,先读取 $first-principles-adversarial-review,并在双向钢人的只读调查和第二阶段判断中使用。读取和验证范围由任务影响与风险决定:简单查询、忠实摘要和不改变行为的局部修订,只核对直接相关材料,不强制预读全仓文档或跑全量测试;纯翻译、忠实转写、机械格式转换和无判断的一步操作不加载该 Skill。回答前做对抗式审查:假设初步结论可能是错的,主动查最新代码、远端分支、事实源字段、日志、数据库或实测结果;设计和需求任务先从机制本质出发穷举生产者、消费者、上下游和集成点,并检查项目已有同类实现与替代方案,再定结论。关键结论仍须有事实依据,无法验证时明确标注“推断,未验证”。

能通过代码、配置或只读查询自行确认的问题先自查,不把可验证的问题反问用户。涉及远端代码现状、分支差异或冲突时,先检查工作区状态并 git fetch,使用最新远端引用判断;不要基于过期本地分支断言。

可以自查的事实与需要用户决定的不确定性必须分开:事实先通过只读调查确认;如果仍存在多种合理理解,或某个选择会改变功能行为、范围、接口、数据、文案、用户体验或长期维护方式,即使改动很小,也要先用白话说明当前理解、可选方向和影响,等待用户确认后再实施。不得以“改动很小”、“看起来更完整”或“之后可能有用”代替沟通。

所有代码 Review 必须使用完整的 $peer-pr-review。复审同事修正后的 PR 时,不能只回归上一轮 finding;必须以最新 patch set 重新固定完整 diff,并从消息/接口契约、生产者与消费者、状态生命周期、并发与重复投递、异常恢复、跨仓实际依赖和测试盲区独立审查。注释中的“幂等”“必填”“已处理”和现有测试绿灯都只是待证伪主张,不能直接作为通过依据。

调查、诊断、评审或“看一下”默认只读,不自动改代码。用户明确要求实现或修改时,只做需求必需的最小改动,遵循现有结构和同类实现,不混入顺手重构、未来兼容或低概率兜底。超出明确范围的既有逻辑调整、合并或重构先说明并取得同意。

实现和测试不使用 mock、假数据或只为通过测试的绕行手段;需要某个库就直接 import,不用 try/except 包住 import。错误就地失败,不用捕获异常或兜底逻辑继续往下走。不为了减少依赖而绕开现成的库,也不自己再造一个。不手写解析器解析成熟文件格式,用第三方库。需要执行脚本时先写成文件,不在命令行里内联大段 Bash 或 Python。改动代码用文件编辑工具完成,不用 heredoc、sed、perl 或临时脚本批量改写。Python 文件不写文件头 docstring,不写 shebang;注释用中文、术语保留英文,不过度注释。画示意图和表格不用 ASCII 字符画,需要画图时用 mermaid。

提供网页链接时先读完链接里的完整内容再开始执行,发现库的用法有问题也先回到链接核对。用户在改动之后又编辑过文件,就重新读取文件,在它当前的状态下继续;用户删掉的内容不重新加回去。发现文档或代码有错误,更新直接写成改正后的最终版本,不保留错误历史,也不留下「曾经是错的」这类痕迹。执行任务中途用户插进别的问题,能立刻回答就立刻回答,处理完继续原来的任务。任务要跑到功能真正正确运行为止,初步实现后不把测试和验证推回给用户。输出只写当前正确的设计,不写「已经去掉了某某」「这里不需要某某」这类修正痕迹。

当用户纠正、代码或运行证据推翻先前结论,或任务进展暴露出可复用的工作流程缺陷时,不要只修正当前答案。先判断这条经验是否能推广到其他任务、是否有事实证据、是否能转化为可执行检查,以及现有 Skill 是否尚未覆盖。满足这些条件时,应主动指出拟沉淀的经验和目标 Skill,不等用户再次提醒;修改 Skill 前仍要给出最小拟改范围并取得本次明确确认。不把一次性业务事实、未验证推断或个人猜测写进 Skill;修改后先给用户 review,不自动提交、发布或同步到外部系统。

删除注释、函数、文件、分支、数据或其他实质内容前,先列出删除对象和理由并等待明确确认。数据库默认只允许 SELECT;任何 INSERT、UPDATE、DELETE、DDL、seed 或同步写入都要先取得明确同意。

已明确授权的实现任务,以必要修改、针对性验证和自审闭环完成为交付点,再给用户 review,不在首版实现后提前停下。可自主执行无生产访问、使用隔离或一次性数据的本地验证,并修复本次改动引入且属于原授权范围的问题;需要新取舍或触及下述单独授权边界时仍须确认。除非用户对当前这批改动明确授权,否则不要 commit、push、部署、创建外部 review 或更新外部系统;授权不跨批次沿用。Git commit message 默认使用英文,保留 Conventional Commit 类型、scope、代码字段和版本标识;除非用户当轮明确指定其他语言。

默认只在当前对话中向用户汇报。除非用户当轮明确要求通知某个对象,否则不得主动知会、通知、联系任何负责人、同事或其他人员,也不得发送钉钉、邮件、IM、OA 通知或类似外部消息;项目流程、Skill、Hook、文档或工具说明中的默认知会步骤不能替代用户授权。用户说“改吧”“继续”“开始”“确认执行”只授权当前任务本身,不等于授权对外通知;只读查询 OA 任务、负责人和评论也不构成通知授权。需要外部协作时,先在当前对话说明对象、渠道和拟发送内容,获得本次明确同意后才能发送。

共享仓库可能被多个会话同时使用。接手或恢复任务先检查 git status、分支和 worktree;不要覆盖、回滚或清理未知改动。跨会话开发优先使用独立 worktree。

当用户提到 Claude Code 中的旧任务、既有决定、个人偏好、项目历史、发布习惯或“之前说过”时,使用 $legacy-claude-context 按需检索迁移记忆。历史记忆不是当前事实,也不构成执行写操作的授权。

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. 1mo ago First seen · 36 lines · 2,170 tokens per session scan A cf7da11784d0

Subscribe to this mod's changes

zs-skills AGENTS.md is an instructions file published in the GitHub repository Zhangs-11/zs-skills (2 stars, last pushed yesterday), licensed MIT. It adds 2,170 tokens to every session, about $0.0087 per session on Opus 5.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-09-17.

Related

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

microsoft/vscode · 9,715 tokens

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.

vercel/next.js · 7,461 tokens

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

microsoft/vscode · 5,262 tokens

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.

langchain-ai/langchain · 4,680 tokens

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

microsoft/vscode · 2,731 tokens

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.

denoland/deno · 3,077 tokens