writing-for-agents
Skill3 starsChanged 2 months agoMITView on GitHub
改「给 agent 读的文字」:skills 本身的写作与修订、AGENTS.md/CLAUDE.md/Cursor rules 等持久指令的审计修订、.harness 恢复面(work_index/state/lessons)的修复与迁移。触发:用户要求写/改 skill、更新或审计持久指令、修复迁移恢复面;分工——在目标项目搭工作台用 harness-builder,本 skill 只管文字与协议。
97 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- grezxune/ai-toolstheir own version, first seen Oct 5, 2026
- AlexisBalayre/claude-code-configtheir own version, first seen Oct 5, 2026
- KroxiDev/engineering-skillstheir own version, first seen Oct 5, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use setup-ts-deep-modules, writing-beats and 10 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.
loulanyueSkillsetup-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 13 projects that use this
RoentekSkillwriting-beats
Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.
Also in 16 projects that use this
RoentekSkillwriting-shape
Writing, exploit — shape raw material into an article, paragraph by paragraph.
Also in 16 projects that use this
pahwarangerSkillsetup-skills
Sets up an `## Agent skills` block in AGENTS.md/CLAUDE.md and `docs/agents/` so the engineering skills know this repo's ticket tracker (GitHub or local markdown), triage label vocabulary, and domain doc layout. Run before first use of `to-tickets`, `to-prd`, `triage`, `diagnose`, `tdd`, `improve-codebase-architecture`, or `zoom-out` — or if those skills appear to be missing context about the ticket tracker, triage labels, or domain docs.
Also in 5 projects that use this
qwlabsSkillclaude-handoff
Hand the current conversation off to a fresh background agent that picks up the work immediately.
Also in 12 projects that use this
qhuang20Skillmigrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.
Also in 14 projects that use this
- +2 more from Roentek
Other versions97 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 97
- mattpocock/skills★ 335ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- aws/graph-explorer★ 484same name
- devcxl/mattpocock-skills-zh★ 426same name
- niki914/zafiro★ 221same name
- tt-a1i/matt-skills-with-to-goal★ 182same name
- iamyoki/qwen-image-2.1-skill★ 146same name
- murray17/rovai-ai★ 122same name
- willdady/platypus★ 114same name
- timharris707/skills★ 40same name
87 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 repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- autoresearchSkill
- brainstormSkill
- capability-recommenderSkill
- cleanupSkill
- diagnoseSkill
- find-skillsSkill
- handoffSkill
- harness-builderSkill
- implementSkill
- planSkill
- remove-deadcode-pySkill
- researchSkill
- reviewSkill
- shipSkill
- sweepSkill
- tddSkill
The file
Files
Writing for Agents
写并维护 agent 消费的任何面:skills、AGENTS.md / CLAUDE.md / Cursor rules、指针到达的文档、恢复/状态面。包装不同,写作纪律不变——让 agent 每次运行走同样的过程,而不是产出同样的结果。
日常任务流(brainstorm/plan/ship)不经过本 skill:plan 负责建档,本 skill 负责修档案系统。
核心写作纪律(context pointers、两种负载、信息层级、完成判据、leading words、pruning)见 references/writing-core.md;写 skill 的 invocation 选择与 router 规则见 references/skill-mechanics.md。修改本 skill 族任何文档前先读对应 reference。
维护持久指令
- 发现指定范围内实际生效的文件,区分全局、项目、子目录及生成镜像;Codex 全局入口
$CODEX_HOME/AGENTS.md(默认~/.codex),Claude Code 与 Cursor 用各自发现机制。 - 将规则与当前代码、配置、运行入口和用户授权对照,区分过时事实、冲突、重复、过宽触发和仍有价值的约束;质量维度、更新规则与可选大纲见
references/instructions-maintenance.md。 - 以具体位置、后果和建议报告问题。只要求审计时只读;已授权时完成范围内删除、合并、迁移和修订,关键合同取舍询问,不重复确认已授权修改。
- 事实证据说明系统现在如何工作,用户/项目合同说明应该如何工作;不一致时报告,不用现有 bug 覆盖目标合同。
维护恢复/状态面
- 检查项目已有恢复入口和本次目标;旧任务状态不覆盖当前指令,只读 catch-up 先报告,不默认写文件。
- 按
references/recovery_surface_policy.md选最小 backend(none / lightweight / harness / feature-list / existing);每个任务/轨道一个权威入口,独立轨道可同时 active。新任务的 harness 最小面(work_index + state)由plan内联建立(brainstorm在已有恢复面项目仅预登记本轨道行,不建面);补充文件模板在../harness-builder/templates/(work_index/state/lessons),按需实例化;未安装 harness-builder 时按references/recovery_surface_policy.md的可恢复字段集手写同构文件,不依赖模板存在。 - 记录目标、状态、下一步、证据链接和 blocker;按阶段、关键决定和交接更新,不按工具调用次数更新(见
references/planning_with_files_adaptation.md)。lessons 读写:开工先读(若存在);cleanup 收尾与 diagnose 根因确认后落笔;每条带触发条件,失效即删,不设历史归档。 - 结构可恢复性检查通过不等于业务验收通过;迁移只在授权且收益明确时做,保留追溯和链接。
Recommended next skill
- 窄修改已验证:结束。
- 多类工作台改造:
harness-builder;用户要求独立审阅:review。
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.

