Files
coder/docs/AGENTS.md
T
Nick Vigilante c4cfe8a9ea docs: add missing rules from the docs style guide project (#30782)
## Summary

Adds the style rules from the Docs style guide project (DOCS-1282) that
`docs/.style/style-guide/` was missing, and fixes the guide's own
self-violations and contradictions from the second ASD-STE100 audit
(DOCS-1265).
Each new Vale rule lands in its own PR based on this branch, so every
footer for those rules reads `(planned)` here.

## Changes

- **New rules:** spell out negative instructions (`do not`, not
`don't`); leave out "please"; how to count words; full clauses instead
of `-ing` clauses in steps; words that have one meaning (`ensure`,
`should`, `may`, `since`); US spelling; noun stacks of three words or
fewer; no periods in acronyms; inclusive LGBTQ terms; `grandfathered` in
the inclusive substitutions, with a link to the history of the
grandfather clause.
- **Changed rules:**
- The 20-word step budget becomes a firm limit for the whole step,
counted per paragraph when a step deliberately breaks into more than
one.
- "Semicolons sparingly" becomes "No semicolons in prose", except in
code and table cells.
- Cross-references use "refer to" or "visit", not "see" or "check out".
  - The whose rule stops recommending "with".
- Latin abbreviations: prefer the English forms of `e.g.`, `i.e.`, and
`etc.` outside tables, and accept either form.
  - `IMPORTANT` callouts carry information, never actions.
- Feature names use title case and instances use sentence case (AI
Gateway versus your AI gateway).
- Literal product text, such as error messages, goes in code spans
instead of quotation marks.
- **Vale doctrine:** `suggestion` rules can land with existing findings.
Warning and error rules still ship clean.
- **Self-violations:** title-case H1, navigational "see", "walkthrough",
hard wraps, a British spelling, future-tense promises, the `tears down`
idiom, gerund headings in `docs/.style/README.md`, semicolons in the
DOC3 dash advice, and the numeric-range contradiction.
- Coverage counts move from 79 to 87 rules, with 9 tool-checked and 33
planned.

## Testing

- `go run ./scripts/styleclaims`: passes.
- `markdownlint-cli2` and `markdown-table-formatter` on every changed
file: pass.
- `scripts/check_emdash.sh`: passes.
- `vale` on the changed files that Vale lints (`docs/.style/README.md`,
`content-guidelines.md`, `docs/AGENTS.md`): zero findings.
- Repository `pre-commit-light` hook: passes.

<details>
<summary>Decision log</summary>

### Source

The second ASD-STE100 audit compared the guide with ASD-STE100 Issue 9,
and a catalog of the Linear project listed every rule missing from the
guide.
Nick reviewed each item and chose to add it, defer it, or edit only the
guide.

### Decisions

- All guide text goes in this PR. Each new Vale rule gets its own PR,
based on this branch.
- Vale rule PRs: `Coder.Please`, `Coder.AcronymPeriods` (a Coder copy of
`Google.Periods` that also catches 2-letter acronyms),
`Coder.InclusiveLanguage`, `Coder.LGBTQ`, `Coder.USSpelling`,
`Coder.AmbiguousWords` (suggestion), `Coder.ImperativeNegation`,
`Coder.StepLength`, `Coder.Semicolons`, `Coder.CheckOut`,
`Coder.LatinAbbreviations` (suggestion).
- Guide only, because Vale can't detect these: the "with" caution,
`IMPORTANT` callouts, feature versus instance capitalization, and noun
stacks. A part-of-speech prototype missed every test stack.
- Deferred to the backlog: hand-written anchors (DOCS-1278; some are
deliberate redirect targets), media captions (DOCS-1279 and DOCS-1286),
the noun-stack Vale rule (DOCS-1284), the `-ing` Vale rule (DOCS-1287),
and the product-name Vale rules (DOCS-1285 and DOCS-1288).
- Imperative negation follows the sentence's mood: "Do not delete the
production database" and "Coder won't push the new version" are both
correct.
- Word counting: a code span counts as one word. A bold UI label also
counts as one word, which is an assumption for review.

### Open for review

- Literal product text in code spans instead of quotation marks
(`formatting.md` code-font list and the US-style quotation example).
- Bold UI labels counting as one word.

</details>

---

*Generated by [Coder Agents](https://coder.com/docs/ai-coder/agents) on
behalf of @nickvigilante.*
2026-10-16 09:53:22 -04:00

4.0 KiB

Documentation Guidelines

Read the style guide before you write docs prose. It is the canonical source; this page is the short list of rules that get missed most often.

The surrounding page is not a reliable guide to house style. Most of the corpus predates these rules, so match the rules, not the neighboring lines.

When the style guide and the content guidelines conflict, the content guidelines govern scope and routing.

Docs contract

  • DOC1: One sentence per source line. Do not split a sentence across lines, and do not wrap to a fixed column width. MD013 is disabled on purpose.
  • DOC2: Headings are sentence case, don't lead with an -ing word, and carry no trailing punctuation.
  • DOC3: No em-dashes, en-dashes, or -- as punctuation, in prose, code, comments, or strings. Use commas, parentheses, periods, or a restructured sentence, not semicolons.
  • DOC4: Address the reader as "you". No first-person singular. Reserve "we" for Coder Technologies as a company.
  • DOC5: Active voice, present tense, contractions by default. Spell out negative instructions: do not, not don't. Keep sentences short, and keep each step to 20 words or fewer.
  • DOC6: Use the canonical term: select not click, stop not kill, turn off not disable, refer to or visit not see or check out, Learn more not Next steps, tutorial not walkthrough.
  • DOC7: Use canonical product and brand casing, and one term per concept.
  • DOC8: One instruction per step. Put the condition before the instruction. Callouts inform, steps instruct, and a warning states its consequence.
  • DOC9: Link text and alt text describe the destination or the image. Never here or click here.
  • DOC10: One audience and one outcome per page, declared up front.
  • DOC11: Digits for 6 and higher, a non-breaking space between a number and its unit, and the documented date and time formats.

Commands

Task Command
Prose lint (Vale) make lint/prose
Markdown lint pnpm run check-docs
Markdown fix pnpm run lint-docs
Table format pnpm run format-docs

Prettier does not own Markdown in this repository. Don't run it over docs/.

Where the rules live

Topic Page
Line breaks, text formatting, block elements formatting.md
Headings, dashes, commas, quotes capitalization-and-punctuation.md
Person, voice, tense, sentence length voice-and-tone.md
Terminology and banned words word-choice.md
Steps, conditions, callouts procedural-writing.md
Link text, alt text, plain English accessibility-and-inclusion.md
Audience, scope, personas audience-and-scope.md
Numbers, units, dates numbers-units-and-dates.md
What belongs in docs/ at all content-guidelines.md

Vale enforces a subset of these rules and reports the rest as advisory annotations. A clean make lint/prose run does not mean the prose follows the style guide.