prose
它能做什么
这是一份针对代码注释、提交、拉取请求和文档的写作风格指南。它要求用词简单、使用主动语态,并保持诚实、自然的语气。适合任何需要撰写供其他工程师阅读的文字的人。
适用场景
- ✓当你的智能体撰写提交信息或代码注释时。
- ✓当有人要求它编写或更新 README 或其他文档时。
- ✓当它为他人阅读而起草拉取请求描述时。
技能链接
https://github.com/cloudflare/computer/blob/main/.agents/skills/prose/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为这些修改写一条提交信息,并保持措辞简单。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能为写作设定了规则:使用简明的英文,除非是常见缩写,否则不使用行话或缩写;使用美式拼写;不提及聊天记录或审查讨论串。智能体每次撰写供他人阅读的文字时,都会遵循这些规则。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Prose
- IMPORTANT! Keep language simple. Use plain English.
- IMPORTANT! Avoid technical terms or jargon when a plain word will do.
- IMPORTANT! Avoid acronyms. Use the full word, e.g. "durable object" instead of "DO". Exceptions: established acronyms more common than their expansion, like "AI" or "API".
- IMPORTANT! Never insert marker comments in code or decorative characters in prose.
- IMPORTANT! Use American English at all times.
- IMPORTANT! Never refer to conversations, chat history, review threads, agents, or development sessions when writing plans, documentation, commits, or pull requests. Stand-alone artifacts only.
Voice
- Talk like a human. Avoid corporate or startup speak. Write like an engineer talking to another engineer.
- Don't assume specialist knowledge. Engineers are sophisticated, but don't assume domain context they may not share.
- Be honest. Don't hide reality. If you're doing something for a reason, say so.
- Be clear. Do the hard work to help readers understand complex ideas.
- Be funny when it fits. Not exclusionary "you had to be there" humor — Simpsons humor, where the joke doesn't get in the way for readers who don't catch it.
- Use active voice. "We will listen to your complaint", not "Your complaint will be listened to". Passive voice is fine when it reads more naturally, e.g. "Starting today, the per-second price is cut in half."
- Talk directly to "you", the reader.
- Don't overuse exclamation points. They lose their force when every other line ends in one.
Word choice
- Prefer simple verbs.
- "improve" not "revolutionize"
- "use" not "leverage" or "utilize"
- "help" not "assist"
- "let" not "enable"
- "make sure" not "ensure"
- "turn off" or "shut down" not "sunset"
- Prefer verbs to nouns. "We help users", not "We provide help to users".
- Drop adverbs that don't add information. "thousands of models", not "thousands of incredible models".
- Avoid words like "easy", "simply", "just". They imply the reader is slow when they get stuck.
- Avoid ableist and exclusionary terms like "crazy" or "lame".
Formatting
- Sentence case for headings, not Title Case.
- Keep heading hierarchies flat. One level deep is usually enough.
- Use
codeformatting for filenames, commands, classes, function names, and identifiers. e.g. "the.gitignorefile", "callreq.fetch()", "look atMyClass". - Use code blocks for commands the reader is supposed to run, and for examples longer than a line.
- ISO 8601 dates (
2024-10-24) or human-readable ("October 24, 2024"). Never10/24/2024. - American English spelling (color, behavior, organize, defense).
- Don't overuse bold. If you need bold to give a block of text structure, the text probably needs to be restructured.
- Spell out email addresses instead of hiding them behind
mailto:links.
Markdown
- Use GitHub-flavored markdown unless instructed otherwise.
- Use code braces for variable names, classes, identifiers.
- Do not use hard line breaks inside paragraphs.
Commit messages
Commit messages are read out of context, years later, by people who have no memory of the change. Write them for that reader.
The canonical reference is Tim Pope's note on git commit messages (https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). The rules below are the project's interpretation of it.
Structure
A commit message has a subject line, a blank line, and an optional body.
scope: short summary in the imperative
Optional body, wrapped at 72 characters, explaining what changed and
why. Multiple paragraphs are fine. Reference code identifiers like
`functionName` or `ClassName` in prose when needed.
Signed-off-by: Name <email@example.com>
Rules
Subject line. Imperative mood. Capitalize the first letter of the summary part. No trailing period. Target ≤ 50 characters; 72 is the hard maximum.
The capitalization rule applies to the part after the scope prefix colon. Lowercase scope prefixes are preserved when they match the project convention:
computerd:,rpc:,examples/think:,computerd, rpc:,docs:.Blank line between subject and body. The body is wrapped at 72 characters per line.
The body explains what and why, not how. The diff already shows how. Reference code identifi
常见问题
它使用美式还是英式拼写?
使用美式英语,指南要求始终如此。
它如何处理缩写?
会把缩写写全,但 AI 或 API 等常见缩写除外。
文档中会提到我们的聊天或审查讨论串吗?
不会。指南要求书面内容独立成文,不提及对话或会话。
详情
作者的原始描述
Style guidance for the written word. Use when asked to write code comments, commit messages, pull requests, READMEs, or documentation. Triggers might be phrases like "write a commit", "document this", or "add a README".
repo: cloudflare/computer
热度
- GitHub 星标
- 9.8k
- 排名
- #12206
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
cloudflare
9.8k在开始工作前,指引你的智能体查阅 Workers、Durable Objects、wrangler 及其他服务对应的 Cloudflare 平台指南。
pull-requests
9.8k教你的智能体撰写清晰的拉取请求描述,讲清一项修改的来龙去脉、它解决的问题,以及如何进行验证。
test-driven-development
9.8k教你的智能体在修改代码前先写一个会失败的测试,并先用测试复现缺陷。帮助证明修改确实有效。
gardener-tasks
9.8k讲解如何编写和检查 Gardener 任务文件,它通过 GitHub Actions 运行 AI 维护作业,并限制每个作业的修改范围。