writing-for-agents
Skill12 starsChanged 9 days agoMITView on GitHub
写、改或审查给 agent 读的文档时使用:skill、AGENTS.md 及其指向的文档、术语表。
191 other projects use a version of this.
Adopted by
Most recently taken up by
- xiaoxiaosrm/dsh-mattpocock-skillstheir own version, first seen Nov 8, 2026
- microsoft/frontier-agentic-modernization-rvastheir own version, first seen Nov 8, 2026
- The-Vibe-Company/quivrtheir own version, first seen Nov 8, 2026
- 5thlayer/skillworkstheir own version, first seen Nov 8, 2026
- gaoyu06/harnesstheir own version, first seen Nov 8, 2026
- zhikedan/mattpocock-skills-dshtheir own version, first seen Nov 8, 2026
Used with
Projects with it also use wait-what, to-questionnaire and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkillwait-what
Stop. That last message did not land: re-pitch it.
Also in 115 projects that use this
AWSSkillto-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
Also in 83 projects that use this
liufeng1976Skillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 34 projects that use this
openchamberSkillclack-cli-patterns
Use when creating or modifying OpenChamber CLI commands, prompts, terminal output, non-TTY behavior, `--quiet`, or `--json` behavior.
Also in 3 projects that use this
MicrosoftSkillcloud-architecture-diagram
Create, edit, or troubleshoot Azure-first architecture diagrams as editable draw.io files, with AWS and multicloud topology support and identity, API, and CI/CD flow diagrams. Use for architecture visualization, network boundaries, interaction flows, or missing diagram icons. Not for deploying infrastructure, live cloud discovery, security certification, or unrelated charts.
Also in 3 projects that use this
openchamberSkilldrag-to-reorder
Use when implementing or modifying OpenChamber sortable or drag-to-reorder behavior, especially `@dnd-kit`, touch/mobile interactions, variable-width items, or wrapping layouts.
Also in 3 projects that use this
- +1 more from aws
- +4 more from openchamber
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- mattpocock/skills★ 309ksame name
- QuivrHQ/quivr★ 40ksame name
- The-Vibe-Company/quivr★ 40ksame name
- formbricks/formbricks★ 13ksame name
- btriapitsyn/openchamber★ 13ksame name
- openchamber/openchamber★ 13ksame name
- ArcReel/ArcReel★ 6.3ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- withcoral/coral★ 4.9ksame name
- bestofjs/bestofjs★ 3.1ksame name
181 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- gpt-imageSkill
- postSkill
- promoSkill
- videoSkill
- cuepadSkill
- architecture-auditSkill
- better-testSkill
- project-setupSkill
- prototypeSkill
- prSkill
- shipSkill
- write-swiftSkill
- ui-craftSkill
- ui-picksSkill
- better-browser-useSkill
- better-computer-useSkill
- herdrSkill
- sshSkill
- researchSkill
- session-dataSkill
- web-searchSkill
- fan-outSkill
- grillingSkill
- hillclimbSkill
- retroSkill
- eli5Skill
- writing-for-humansSkill
The file
Files
给 agent 写文档
适用于一切会被 agent 读到的文档。目标是让每次运行走同样的过程,用最少的字。
唯一检验
每句话都要回答:删掉它,当前模型的行为会不会变差?不会就是无操作,整句删掉,不只删几个字。有分歧时跑一次文档看结果,不靠争论。
常见的无操作:
- 模型默认就会做的步骤:理解需求、自查、"要彻底"。
- 为旧模型写的验证与复查指令。当前模型会自行验证,这类指令只造成过度验证;删掉,不改写。
- 全大写和"必须""务必"式强调。新模型对系统提示更敏感,强调会让它过度触发;写成平实的"在……时做……"。
写什么
- 环境是事实源:脚本、配置、目录结构、
--help查得到的不重述。文档只缓存查不到的:未写明的约定、某个选择的理由、配置没承认的坑。 - 单一事实源:同一含义只有一个权威位置;发现第二份就合并,不维护两处同步。
- 越短越正确:每次改动顺手删掉失效、过时或已被别处覆盖的内容。不删的结局是层层沉积,有效内容被埋在过时内容下面。
指针
AGENTS.md 里指向某份文件的一行、skill 的 description,都是指针:说明材料是什么,以及什么情形去读。
- 触发词放最前;每种情形只留一个触发词,同义改写合并掉。
- 该读的材料没被读到,先加强指针措辞、写清触发情形("等合并与发布只用
make land"),加强无效才把内容内联。 - 指针每轮都在上下文里,比正文裁剪得更狠;正文已说明的身份信息不在指针里重复。
AGENTS.md 是地图:命令入口、代码看不出的约束、"遇到某种情形去读某份文件"的条件指针。架构概述、目录树、rg 一下就能找到的东西不写。
结构
文档由两种内容组成:agent 按顺序做的步骤,和按需查的参考。
- 每条路径都用到的内容写在正文;只有部分情形用到的移到单独文件,正文留指针。步骤被参考资料埋住时,agent 注意不注意到全看运气。
- 同一概念的定义、规则、注意事项放在同一标题下,不散在各处。
- 每个步骤以完成标准结尾:可检查(分得清做完没做完),且要求穷尽("每个被改的调用点都已核对",而不是"列出改动")。标准含糊,agent 会提前收工。
措辞
- 写目标行为("写单行注释"),不写笼统禁令("别啰嗦"):禁令会把被禁的东西带进上下文。硬性护栏才直接禁止。
- 观察到具体失败模式时逐项点名("奶油色背景、标题里的斜体强调词、01/02/03 编号标签"),同时写出要什么。
- 用模型预训练里已有的常用词(tracer bullet、expand–contract),不自造术语。自造词要花字定义,还会被 agent 带进给用户的回复,变成用户看不懂的黑话。
术语表 WORDS.md
项目术语表只收代码看不出的约束,一条一行:
- **桌仔**(Guide)→ `guide`;避免:主持- 只收两种:带「避免」的(这个概念在本项目叫什么、不能叫什么,含改名后退役的旧名),和易混概念的一句区分(会话 vs 分段)。只有「词 → 模块」映射的不收:搜代码就能找到。
- 业务规则写进所属模块的头注释,不进术语表。
- "避免"项能做成禁词检查的,做成 lint 后从表里删掉。
Skill
- description 每轮常驻上下文,按「指针」写;模型需要自己发现时才开放自动触发。
- 只靠手动命令或其他 skill 明确指向的,加
disable-model-invocation: true,它就不进自动列表。 - 正文超过 500 行就按情形拆出参考文件,引用只走一层。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

