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
- Distinctive: line 5
MUST: Plan before writing (overview, goal, audiences, documentation plan, open questions)
- Very specific: line 6
MUST: Declare meta.contentType (Tutorial, How-to, Reference, Conceptual, Troubleshooting, Landing)
- Distinctive: line 7
MUST: Title is user-shaped (the user's question), not feature-shaped
- Distinctive: line 8
MUST: Define every term on first use.
- Very specific: line 9
SHOULD: Goal uses a Bloom's taxonomy verb (configure, explain, debug)
- Distinctive: line 10
MUST: One page does one job (tutorial OR how-to OR reference, not all three)
- Distinctive: line 14
MUST: Active voice. Test: append "by monkeys".
- Very specific: line 15
MUST: Direct address: you.
- Distinctive: line 16
MUST: Imperative for steps ("Click Add Project", not "You will need to click...")
- Distinctive: line 17
SHOULD: Sentences under 20 words
- Very specific: line 18
SHOULD: Contractions (you'll, it's)
- Distinctive: line 19
MUST: Present tense unless describing future behavior
- Very specific: line 20
NEVER: we as a stand-in for you (only for deliberate Vercel actions)
- Very specific: line 21
NEVER: easy, simple, quick
- Very specific: line 22
NEVER: Filler words: very, just, really, simply
- Distinctive: line 24
MUST: Second-read test: each sentence parses on one read at speech pace.
- Distinctive: line 28
MUST: Earn every detail; cut a number, name, or implementation detail that wouldn't change the reader's understanding or action
- Very specific: line 29
NEVER: Weasel words (significantly, many, often, typically, generally).
- Very specific: line 30
NEVER: Vague quantifiers (near-zero, sub-second, most requests).
- Very specific: line 31
NEVER: Filler/metaphor verbs (moves through, lands, carries, hits).
- Very specific: line 35
NEVER: Summary-style transitions recapping the previous paragraph (With this setup complete…).
- Distinctive: line 36
NEVER: Stop-start fragments splitting one dependent idea into choppy sentences
- Very specific: line 37
NEVER: Spec-sheet voice reading like a datasheet (provides, is configurable, is explicitly labeled)
- Distinctive: line 38
NEVER: Cold-open body paragraphs with no antecedent.
- Very specific: line 39
NEVER: Personified artifacts performing human-physical actions (hand the browser a URL → the browser fetches the URL)
- Very specific: line 40
NEVER: Reused/template framing not specific to the page (The question most teams face is whether…)
- Very specific: line 52
MUST: Sentence case for page headings (H1 through H6)
- Distinctive: line 53
MUST: Title case for nav labels
- Very specific: line 54
MUST: Subheadings descriptive (Caveats when self-hosting on Cloudflare, not Caveats)
- Distinctive: line 55
MUST: Every page opens with a TL;DR paragraph
- Distinctive: line 56
MUST: Every major section opens with a summary sentence
- Very specific: line 57
MUST: Acronyms spelled out on first use (Content Security Policy (CSP))
- Distinctive: line 58
MUST: Keep paragraphs to 2 to 4 sentences.
- Distinctive: line 62
MUST: Three or more list-shaped items convert to a list
- Distinctive: line 63
MUST: Always introduce a list with a colon
- Very specific: line 64
MUST: Bold/description format: - Term: description
- Distinctive: line 65
NEVER: Periods on list items unless they're full sentences
- Distinctive: line 69
MUST: Language tag on every code block
- Distinctive: line 70
SHOULD: TypeScript first for new code
- Very specific: line 71
MUST: Wrap multi-step flows in <Steps/>
- Distinctive: line 72
SHOULD: ≤80 columns per line.
- Very specific: line 73
SHOULD: Highlight load-bearing lines ( `ts {8-12} )
- Distinctive: line 74
MUST: Explain what each code block does in prose
- Distinctive: line 75
NEVER: Reference "see the full example file" at the end of a guide
- Very specific: line 79
MUST: Text placeholders are snake_case, descriptive (your_access_token_here)
- Very specific: line 80
MUST: Number placeholders count up (1234567890123)
- Very specific: line 81
NEVER: <TOKEN>, xxx, your-token, ABC123
- Very specific: line 82
MUST: Data sizes have a space and uppercase unit (64 KB, 200 ms)
- Very specific: line 83
MUST: Seconds bare (30s)
- Very specific: line 84
MUST: Numerals for counts (8 deployments, not eight)
- Very specific: line 88
NEVER: Em dashes (—) or dashes (-) as punctuation.
- Very specific: line 89
MUST: Curly quotes (" " ' '), not straight
- Very specific: line 90
MUST: Ellipsis character (…), not three dots (...)
- Very specific: line 91
MUST: Loading states end with … (Loading…, Saving…)
- Very specific: line 92
MUST: Non-breaking spaces for glued terms (10 MB, ⌘ K, brand names)
- Very specific: line 93
SHOULD: & over and only where space-constrained
- Distinctive: line 97
NEVER: Hard-wrap paragraphs (each paragraph is one line in source)
- Distinctive: line 98
MUST: One blank line before headings.
- Very specific: line 99
NEVER: --- horizontal rules between sections
- Distinctive: line 103
MUST: Bold for UI elements or critical facts only, never for emphasis
- Very specific: line 104
MUST: Inline code for paths, file extensions, identifiers, short snippets (/api, .tsx, body)
- Distinctive: line 108
MUST: Define every term on first appearance.
- Distinctive: line 109
MUST: Anchor text names the destination
- Very specific: line 110
NEVER: Bare URLs or here/link as anchor text
- Distinctive: line 114
MUST: Use tables for pricing
- Distinctive: line 115
MUST: Document the pricing model explicitly
- Distinctive: line 116
NEVER: Assume the reader knows what counts as one invocation
- Distinctive: line 120
MUST: You are accountable for AI-generated content
- Distinctive: line 121
MUST: Hold technical accuracy to a high standard (LLMs consume the docs)
- Distinctive: line 122
MUST: Use only enterprise models that do not train on your data
- Distinctive: line 123
MUST: Disclose AI use in the PR
- Distinctive: line 124
MUST: Plan first by hand; the plan is the spec
- Distinctive: line 125
MUST: Final human review
- Distinctive: line 129
MUST: PR description links the plan, lists what to review, links the preview URL
- Distinctive: line 130
MUST: Author is accountable.
- Distinctive: line 131
SHOULD: Suggestion comments for small fixes.
≈ “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.
Files
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. Neverthe userorone 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:
weas a stand-in foryou(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 (
H1throughH6) - MUST: Title case for nav labels
- MUST: Subheadings descriptive (
Caveats when self-hosting on Cloudflare, notCaveats) - 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, noteight)
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 MB,⌘ K, brand names) - SHOULD:
&overandonly 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/linkas 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
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.

