agentleFS
VercelKnown publishervercel-labs/writing-guidelines/AGENTS.md

writing-guidelines

AGENTS.md20 starsChanged 6 months agoMITView on GitHub

Concise rules for writing clear, agent-readable docs. Use MUST/SHOULD/NEVER to guide decisions.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

76 rules. About 0 are common, 41 are distinctive, and 35 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈41

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 35

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    MUST: Plan before writing (overview, goal, audiences, documentation plan, open questions)

    line 5
  2. Very specific:

    MUST: Declare meta.contentType (Tutorial, How-to, Reference, Conceptual, Troubleshooting, Landing)

    line 6
  3. Distinctive:

    MUST: Title is user-shaped (the user's question), not feature-shaped

    line 7
  4. Distinctive:

    MUST: Define every term on first use.

    line 8
  5. Very specific:

    SHOULD: Goal uses a Bloom's taxonomy verb (configure, explain, debug)

    line 9
  6. Distinctive:

    MUST: One page does one job (tutorial OR how-to OR reference, not all three)

    line 10
  7. Distinctive:

    MUST: Active voice. Test: append "by monkeys".

    line 14
  8. Very specific:

    MUST: Direct address: you.

    line 15
  9. Distinctive:

    MUST: Imperative for steps ("Click Add Project", not "You will need to click...")

    line 16
  10. Distinctive:

    SHOULD: Sentences under 20 words

    line 17
  11. Very specific:

    SHOULD: Contractions (you'll, it's)

    line 18
  12. Distinctive:

    MUST: Present tense unless describing future behavior

    line 19
  13. Very specific:

    NEVER: we as a stand-in for you (only for deliberate Vercel actions)

    line 20
  14. Very specific:

    NEVER: easy, simple, quick

    line 21
  15. Very specific:

    NEVER: Filler words: very, just, really, simply

    line 22
  16. Distinctive:

    MUST: Second-read test: each sentence parses on one read at speech pace.

    line 24
  17. Distinctive:

    MUST: Earn every detail; cut a number, name, or implementation detail that wouldn't change the reader's understanding or action

    line 28
  18. Very specific:

    NEVER: Weasel words (significantly, many, often, typically, generally).

    line 29
  19. Very specific:

    NEVER: Vague quantifiers (near-zero, sub-second, most requests).

    line 30
  20. Very specific:

    NEVER: Filler/metaphor verbs (moves through, lands, carries, hits).

    line 31
  21. Very specific:

    NEVER: Summary-style transitions recapping the previous paragraph (With this setup complete…).

    line 35
  22. Distinctive:

    NEVER: Stop-start fragments splitting one dependent idea into choppy sentences

    line 36
  23. Very specific:

    NEVER: Spec-sheet voice reading like a datasheet (provides, is configurable, is explicitly labeled)

    line 37
  24. Distinctive:

    NEVER: Cold-open body paragraphs with no antecedent.

    line 38
  25. Very specific:

    NEVER: Personified artifacts performing human-physical actions (hand the browser a URL → the browser fetches the URL)

    line 39
  26. Very specific:

    NEVER: Reused/template framing not specific to the page (The question most teams face is whether…)

    line 40
  27. Very specific:

    MUST: Sentence case for page headings (H1 through H6)

    line 52
  28. Distinctive:

    MUST: Title case for nav labels

    line 53
  29. Very specific:

    MUST: Subheadings descriptive (Caveats when self-hosting on Cloudflare, not Caveats)

    line 54
  30. Distinctive:

    MUST: Every page opens with a TL;DR paragraph

    line 55
  31. Distinctive:

    MUST: Every major section opens with a summary sentence

    line 56
  32. Very specific:

    MUST: Acronyms spelled out on first use (Content Security Policy (CSP))

    line 57
  33. Distinctive:

    MUST: Keep paragraphs to 2 to 4 sentences.

    line 58
  34. Distinctive:

    MUST: Three or more list-shaped items convert to a list

    line 62
  35. Distinctive:

    MUST: Always introduce a list with a colon

    line 63
  36. Very specific:

    MUST: Bold/description format: - Term: description

    line 64
  37. Distinctive:

    NEVER: Periods on list items unless they're full sentences

    line 65
  38. Distinctive:

    MUST: Language tag on every code block

    line 69
  39. Distinctive:

    SHOULD: TypeScript first for new code

    line 70
  40. Very specific:

    MUST: Wrap multi-step flows in <Steps/>

    line 71
  41. Distinctive:

    SHOULD: ≤80 columns per line.

    line 72
  42. Very specific:

    SHOULD: Highlight load-bearing lines ( `ts {8-12} )

    line 73
  43. Distinctive:

    MUST: Explain what each code block does in prose

    line 74
  44. Distinctive:

    NEVER: Reference "see the full example file" at the end of a guide

    line 75
  45. Very specific:

    MUST: Text placeholders are snake_case, descriptive (your_access_token_here)

    line 79
  46. Very specific:

    MUST: Number placeholders count up (1234567890123)

    line 80
  47. Very specific:

    NEVER: <TOKEN>, xxx, your-token, ABC123

    line 81
  48. Very specific:

    MUST: Data sizes have a space and uppercase unit (64 KB, 200 ms)

    line 82
  49. Very specific:

    MUST: Seconds bare (30s)

    line 83
  50. Very specific:

    MUST: Numerals for counts (8 deployments, not eight)

    line 84
  51. Very specific:

    NEVER: Em dashes (—) or dashes (-) as punctuation.

    line 88
  52. Very specific:

    MUST: Curly quotes (" " ' '), not straight

    line 89
  53. Very specific:

    MUST: Ellipsis character (…), not three dots (...)

    line 90
  54. Very specific:

    MUST: Loading states end with … (Loading…, Saving…)

    line 91
  55. Very specific:

    MUST: Non-breaking spaces for glued terms (10&nbsp;MB, ⌘&nbsp;K, brand names)

    line 92
  56. Very specific:

    SHOULD: & over and only where space-constrained

    line 93
  57. Distinctive:

    NEVER: Hard-wrap paragraphs (each paragraph is one line in source)

    line 97
  58. Distinctive:

    MUST: One blank line before headings.

    line 98
  59. Very specific:

    NEVER: --- horizontal rules between sections

    line 99
  60. Distinctive:

    MUST: Bold for UI elements or critical facts only, never for emphasis

    line 103
  61. Very specific:

    MUST: Inline code for paths, file extensions, identifiers, short snippets (/api, .tsx, body)

    line 104
  62. Distinctive:

    MUST: Define every term on first appearance.

    line 108
  63. Distinctive:

    MUST: Anchor text names the destination

    line 109
  64. Very specific:

    NEVER: Bare URLs or here/link as anchor text

    line 110
  65. Distinctive:

    MUST: Use tables for pricing

    line 114
  66. Distinctive:

    MUST: Document the pricing model explicitly

    line 115
  67. Distinctive:

    NEVER: Assume the reader knows what counts as one invocation

    line 116
  68. Distinctive:

    MUST: You are accountable for AI-generated content

    line 120
  69. Distinctive:

    MUST: Hold technical accuracy to a high standard (LLMs consume the docs)

    line 121
  70. Distinctive:

    MUST: Use only enterprise models that do not train on your data

    line 122
  71. Distinctive:

    MUST: Disclose AI use in the PR

    line 123
  72. Distinctive:

    MUST: Plan first by hand; the plan is the spec

    line 124
  73. Distinctive:

    MUST: Final human review

    line 125
  74. Distinctive:

    MUST: PR description links the plan, lists what to review, links the preview URL

    line 129
  75. Distinctive:

    MUST: Author is accountable.

    line 130
  76. Distinctive:

    SHOULD: Suggestion comments for small fixes.

    line 131

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Concise rules for writing clear, agent-readable docs. Use MUST/SHOULD/NEVER to guide decisions.

Planning

  • MUST: Plan before writing (overview, goal, audiences, documentation plan, open questions)
  • MUST: Declare meta.contentType (Tutorial, How-to, Reference, Conceptual, Troubleshooting, Landing)
  • MUST: Title is user-shaped (the user's question), not feature-shaped
  • MUST: Define every term on first use; link to its conceptual page
  • SHOULD: Goal uses a Bloom's taxonomy verb (configure, explain, debug)
  • MUST: One page does one job (tutorial OR how-to OR reference, not all three)

Voice & tone

  • MUST: Active voice. Test: append "by monkeys". If the sentence parses, rewrite
  • MUST: Direct address: you. Never the user or one can
  • MUST: Imperative for steps ("Click Add Project", not "You will need to click...")
  • SHOULD: Sentences under 20 words
  • SHOULD: Contractions (you'll, it's)
  • MUST: Present tense unless describing future behavior
  • NEVER: we as a stand-in for you (only for deliberate Vercel actions)
  • NEVER: easy, simple, quick
  • NEVER: Filler words: very, just, really, simply
  • NEVER: Rhetorical questions
  • MUST: Second-read test: each sentence parses on one read at speech pace; name the subject, action, and consequence (kill metaphor verbs and far-reaching pronouns)

Concision

  • MUST: Earn every detail; cut a number, name, or implementation detail that wouldn't change the reader's understanding or action
  • NEVER: Weasel words (significantly, many, often, typically, generally); give a specific number or claim
  • NEVER: Vague quantifiers (near-zero, sub-second, most requests); give the figure and cite it
  • NEVER: Filler/metaphor verbs (moves through, lands, carries, hits); name the literal step

AI-generated tells

  • NEVER: Summary-style transitions recapping the previous paragraph (With this setup complete…); pivot to the next point
  • NEVER: Stop-start fragments splitting one dependent idea into choppy sentences
  • NEVER: Spec-sheet voice reading like a datasheet (provides, is configurable, is explicitly labeled)
  • NEVER: Cold-open body paragraphs with no antecedent; carry the prior subject forward
  • NEVER: Personified artifacts performing human-physical actions (hand the browser a URL → the browser fetches the URL)
  • NEVER: Reused/template framing not specific to the page (The question most teams face is whether…)

Tone, by content type

  • Tutorial: warm, encouraging, predictable structure
  • How-to: terse, direct (reader is mid-task)
  • Reference: neutral, exhaustive, quotable
  • Conceptual: explain like the reader will teach it back
  • Troubleshooting: empathetic but not apologetic

Headings & structure

  • MUST: Sentence case for page headings (H1 through H6)
  • MUST: Title case for nav labels
  • MUST: Subheadings descriptive (Caveats when self-hosting on Cloudflare, not Caveats)
  • MUST: Every page opens with a TL;DR paragraph
  • MUST: Every major section opens with a summary sentence
  • MUST: Acronyms spelled out on first use (Content Security Policy (CSP))
  • MUST: Keep paragraphs to 2 to 4 sentences; split anything longer or covering two ideas

Lists

  • MUST: Three or more list-shaped items convert to a list
  • MUST: Always introduce a list with a colon
  • MUST: Bold/description format: - **Term**: description
  • NEVER: Periods on list items unless they're full sentences

Code

  • MUST: Language tag on every code block
  • SHOULD: TypeScript first for new code
  • MUST: Wrap multi-step flows in <Steps/>
  • SHOULD: ≤80 columns per line; ≤25 lines per snippet (split with prose)
  • SHOULD: Highlight load-bearing lines (```ts {8-12})
  • MUST: Explain what each code block does in prose
  • NEVER: Reference "see the full example file" at the end of a guide

Placeholders, units, & numbers

  • MUST: Text placeholders are snake_case, descriptive (your_access_token_here)
  • MUST: Number placeholders count up (1234567890123)
  • NEVER: <TOKEN>, xxx, your-token, ABC123
  • MUST: Data sizes have a space and uppercase unit (64 KB, 200 ms)
  • MUST: Seconds bare (30s)
  • MUST: Numerals for counts (8 deployments, not eight)

Typography

  • NEVER: Em dashes (—) or dashes (-) as punctuation. Use colons, commas, periods, or rephrase
  • MUST: Curly quotes (" " ' '), not straight
  • MUST: Ellipsis character (…), not three dots (...)
  • MUST: Loading states end with … (Loading…, Saving…)
  • MUST: Non-breaking spaces for glued terms (10&nbsp;MB, ⌘&nbsp;K, brand names)
  • SHOULD: & over and only where space-constrained

Source formatting

  • NEVER: Hard-wrap paragraphs (each paragraph is one line in source)
  • MUST: One blank line before headings; before and after code blocks
  • NEVER: --- horizontal rules between sections

Emphasis

  • MUST: Bold for UI elements or critical facts only, never for emphasis
  • MUST: Inline code for paths, file extensions, identifiers, short snippets (/api, .tsx, body)

Links

  • MUST: Define every term on first appearance; link to its conceptual page
  • MUST: Anchor text names the destination
  • NEVER: Bare URLs or here/link as anchor text

Pricing & money pages

  • MUST: Use tables for pricing
  • MUST: Document the pricing model explicitly
  • NEVER: Assume the reader knows what counts as one invocation

AI workflow

  • MUST: You are accountable for AI-generated content
  • MUST: Hold technical accuracy to a high standard (LLMs consume the docs)
  • MUST: Use only enterprise models that do not train on your data
  • MUST: Disclose AI use in the PR
  • MUST: Plan first by hand; the plan is the spec
  • MUST: Final human review

Review

  • MUST: PR description links the plan, lists what to review, links the preview URL
  • MUST: Author is accountable; reviewers liberal with approvals
  • SHOULD: Suggestion comments for small fixes; preview comments for bigger feedback

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.