Chuyển đến nội dung
Skillpedia
Viết lách9.8k · #12206

prose

Skill này làm gì

Đây là hướng dẫn phong cách viết cho chú thích code, commit, pull request và tài liệu. Hướng dẫn yêu cầu từ ngữ đơn giản, câu chủ động và giọng văn chân thực, dễ hiểu. Dành cho bất kỳ ai viết văn bản mà các kỹ sư khác sẽ đọc.

Khi nào nên dùng

  • ✓Khi agent của bạn viết một commit message hoặc chú thích code.
  • ✓Khi ai đó yêu cầu viết hoặc cập nhật README hoặc tài liệu khác.
  • ✓Khi nó soạn mô tả pull request để người khác đọc.

Liên kết skill

https://github.com/cloudflare/computer/blob/main/.agents/skills/prose/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/cloudflare/computer/blob/main/.agents/skills/prose/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Viết commit message cho các thay đổi này và giữ cách diễn đạt đơn giản.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill đặt các quy tắc viết: tiếng Anh đơn giản, không biệt ngữ hay từ viết tắt trừ khi đã phổ biến, chính tả kiểu Mỹ, và không nhắc đến lịch sử trò chuyện hay luồng review. Agent tuân theo các quy tắc này bất cứ khi nào nó viết văn bản mà người khác sẽ đọc.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Prose

  1. IMPORTANT! Keep language simple. Use plain English.
  2. IMPORTANT! Avoid technical terms or jargon when a plain word will do.
  3. 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".
  4. IMPORTANT! Never insert marker comments in code or decorative characters in prose.
  5. IMPORTANT! Use American English at all times.
  6. 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 code formatting for filenames, commands, classes, function names, and identifiers. e.g. "the .gitignore file", "call req.fetch()", "look at MyClass".
  • 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"). Never 10/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

  1. 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:.

  2. Blank line between subject and body. The body is wrapped at 72 characters per line.

  3. The body explains what and why, not how. The diff already shows how. Reference code identifi

Câu hỏi thường gặp

Hướng dẫn dùng chính tả Anh Mỹ hay Anh Anh?

Tiếng Anh Mỹ, và hướng dẫn yêu cầu dùng như vậy mọi lúc.

Nó xử lý từ viết tắt thế nào?

Nó viết đầy đủ các từ viết tắt, trừ những từ phổ biến như AI hoặc API.

Tài liệu có nhắc đến cuộc trò chuyện hoặc luồng review của chúng tôi không?

Không. Hướng dẫn nói rằng văn bản phải tự đứng được, không nhắc đến các cuộc trò chuyện hay phiên làm việc.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
9.8k
Vị trí xếp hạng
#12206
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự