writing-for-agents SKILL.md skillA

writing-for-agents from suge8/friedbun is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add suge8/friedbun/writing-for-agents@git:20261008.20ae18e

Pins git:20261008.20ae18e in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
suge8/friedbun
Path
skills/development/writing-for-agents/SKILL.md
Versions recorded
2
Latest version
git:20261008.20ae18e, committed Oct 8, 2026
First version recorded
Oct 8, 2026
Size
4,082 bytes
Repository stars
12
License
MIT

写、改或审查给 agent 读的文档时使用:skill、AGENTS.md、术语表与项目文档。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 给 agent 写文档

适用于一切会被 agent 读到的文档。目标是让每次运行走同样的过程,用最少的字。

## 唯一检验

每句话都要回答:删掉它,当前模型的行为会不会变差?不会就是无操作,整句删掉,不只删几个字。有分歧时跑一次文档看结果,不靠争论。

常见的无操作:

- 模型默认就会做的步骤:理解需求、自查、"要彻底"。
- 为旧模型写的验证与复查指令。当前模型会自行验证,这类指令只造成过度验证;删掉,不改写。
- 全大写和"必须""务必"式强调。新模型对系统提示更敏感,强调会让它过度触发;写成平实的"在……时做……"。

## 写什么

- **环境是事实源**:脚本、配置、目录结构、`--help` 查得到的不重述。文档只缓存查不到的:未写明的约定、某个选择的理由、配置没承认的坑。
- **单一事实源**:同一含义只有一个权威位置;发现第二份就合并,不维护两处同步。
- **越短越正确**:每次改动顺手删掉失效、过时或已被别处覆盖的内容。不删的结局是层层沉积,有效内容被埋在过时内容下面。

## 指针

AGENTS.md 里指向某份文件的一行、skill 的 description,都是指针:说明材料是什么,以及什么情形去读。

- 触发词放最前;每种情形只留一个触发词,同义改写合并掉。
- 该读的材料没被读到,先加强指针措辞、写清触发情形("等合并与发布只用 `make land`"),加强无效才把内容内联。
- 指针每轮都在上下文里,比正文裁剪得更狠;正文已说明的身份信息不在指针里重复。

AGENTS.md 是地图:命令入口、代码看不出的约束、"遇到某种情形去读某份文件"的条件指针。架构概述、目录树、`rg` 一下就能找到的东西不写。

## 结构

文档由两种内容组成:agent 按顺序做的**步骤**,和按需查的**参考**。

- 每条路径都用到的内容写在正文;只有部分情形用到的移到单独文件,正文留指针。步骤被参考资料埋住时,agent 注意不注意到全看运气。
- 同一概念的定义、规则、注意事项放在同一标题下,不散在各处。
- 每个步骤以**完成标准**结尾:可检查(分得清做完没做完),且要求穷尽("每个被改的调用点都已核对",而不是"列出改动")。标准含糊,agent 会提前收工。

## 措辞

- 写目标行为("写单行注释"),不写笼统禁令("别啰嗦"):禁令会把被禁的东西带进上下文。硬性护栏才直接禁止。
- 观察到具体失败模式时逐项点名("奶油色背景、标题里的斜体强调词、01/02/03 编号标签"),同时写出要什么。
- 用模型预训练里已有的常用词(tracer bullet、expand–contract),不自造术语。自造词要花字定义,还会被 agent 带进给用户的回复,变成用户看不懂的黑话。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add suge8/friedbun/writing-for-agents@sha256:d3f6ce879532c156

The line at the top of this page pins the label git:20261008.20ae18e, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_mcj22uinl4ghyf6j.svg)](https://markdownregistry.com/a/art_mcj22uinl4ghyf6j)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, all committed on Oct 8, 2026.

versioncommittedcommitsizeaudit
git:20261008.20ae18e latest2026-10-08 20ae18e 4,082 BA view · diff
git:20261008.3911d612026-10-08 3911d61 4,086 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4082 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

suge8/friedbun · 12 stars · license MIT · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_mcj22uinl4ghyf6j
GET https://markdownregistry.com/api/v1/resolve?ref=suge8/friedbun/writing-for-agents
GET https://markdownregistry.com/api/v1/blob/d3f6ce879532c156e030d71c3da7abf4281eddba0d891c10b8bcf275a2dc26d6

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from suge8/friedbun

AGENTS.md@skills AGENTS.md file
suge8/friedbun · skills/AGENTS.md
git:20261011.f56249e · audit A · 12 stars
copywriting SKILL.md skill
suge8/friedbun · skills/creative/copywriting/SKILL.md · 撰写或优化以转化为目标的网站和产品文案:标题、Hero、CTA、价值主张、落地页、定价页、功能页和产品描述
git:20261008.80eac82 · audit A · 12 stars
gpt-image SKILL.md skill
suge8/friedbun · skills/creative/gpt-image/SKILL.md · 通过 gptimage 模型生成优美 AI 图片、海报、插图或 Logo
git:20261011.7f79f8f · audit A · 12 stars
post SKILL.md skill
suge8/friedbun · skills/creative/post/SKILL.md · 把实测数据或经验写成社媒帖:核数、按平台语言写文案、出数据图、排期发布并回查
git:20261008.9ccea24 · audit A · 12 stars
promo SKILL.md skill
suge8/friedbun · skills/creative/promo/SKILL.md · 制作项目宣传物料:Hero/OG/社媒图、商店截图、README 配图和演示 GIF/视频。根据项目现状产出到 design/promo/;应用 UI 用 ui-craft,单独 Logo 用 gpt-image。
git:20261008.662804f · audit A · 12 stars
video SKILL.md skill
suge8/friedbun · skills/creative/video/SKILL.md · 视频统一入口:把主题策划成运动优先的动画,用 Remotion 实现、配声音、检查并渲染成片,或通过 Grok/Seedance 直接生成带音轨 MP4
git:20261011.f56249e · audit A · 12 stars
architecture-audit SKILL.md skill
suge8/friedbun · skills/development/architecture-audit/SKILL.md · 架构体检:找出该合并加深的浅模块,用 eli5 图解呈现,再为选中的一项并行设计几种接口。
git:20261009.443953a · audit A · 12 stars
better-test SKILL.md skill
suge8/friedbun · skills/development/better-test/SKILL.md · 验证改动、写测试、审查或清理测试时使用:验证方法、什么测试值得留、端到端测试写法、DELETE/REWRITE/KEEP 判决。
git:20261009.443953a · audit A · 12 stars
eli5 SKILL.md skill
suge8/friedbun · skills/development/eli5/SKILL.md · 把话题讲到没读过代码的技术读者也能准确理解,默认 HTML 图解
git:20261008.a717a7c · audit A · 12 stars
fan-out SKILL.md skill
suge8/friedbun · skills/development/fan-out/SKILL.md · 调研、审计、设计探索拆给子代理并行的低中高三档;research、grilling、architecture-audit、better-test 按档引用,用户也可直接点档位。
git:20261008.3911d61 · audit A · 12 stars
pr SKILL.md skill
suge8/friedbun · skills/development/pr/SKILL.md · 写 PR 描述时使用。
git:20261008.3911d61 · audit A · 12 stars
project-setup SKILL.md skill
suge8/friedbun · skills/development/project-setup/SKILL.md · 项目体检:新项目开工、半途补缺、开源前检查或“这个项目缺什么”。盘点文档骨架、工单约定与验证链,报告缺口,确认后补齐。
git:20261008.b610344 · audit A · 12 stars

Every file in suge8/friedbun

Other files named writing-for-agents

writing-for-agents SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/productivity/writing-for-agents/SKILL.md · 为 agent 编写文档。适用于创建或编辑 skills,或修改 AGENTS.md 或 CLAUDE.md 时。
git:20261008.5be0dc1 · audit A · 5,110 stars
writing-for-agents SKILL.md skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/writing-for-agents/SKILL.md · Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
git:20260827.561ec6a · audit A · 555 stars
writing-for-agents SKILL.md skill
qshanx/docs-governance · skills/documentation/writing-for-agents/SKILL.md · Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
git:20261011.ee7c4b9 · audit A · 218 stars
writing-for-agents SKILL.md skill
timharris707/skills · skills/author/writing-for-agents/SKILL.md · Write and prune documents an agent consumes: a SKILL.md, an AGENTS.md or CLAUDE.md, a rules file, a reference file…
git:20261008.0b04f1c · audit A · 44 stars
writing-for-agents SKILL.md skill
timharris707/skills · plugins/clickai-codex/skills/author/writing-for-agents/SKILL.md · For skills, standing agent instructions, recorded rules, or documents agents skip, write and prune reliable triggers…
git:20261008.0b04f1c · audit A · 44 stars
writing-for-agents SKILL.md skill
vodailocz/kilo-kit-mcp · skills/productivity/writing-for-agents/SKILL.md · Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
git:20260821.05c0d52 · audit A · 28 stars
writing-for-agents SKILL.md skill
j-star-films-studios/vibecode-protocol-suite · assets/.agent/skills/agent-engineering/writing-for-agents/SKILL.md · Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
git:20260821.1b830a3 · audit A · 24 stars
writing-for-agents SKILL.md skill
mambo-wang/codewiki-plus · .codebuddy/skills/writing-for-agents/SKILL.md · Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
git:20260916.5a385b8 · audit A · 20 stars

Browse by kind, by grade A, or by owner.