Skip to content

Add writing guidance to AGENTS.md and apply it to docs - #5990

Merged
danielmarbach merged 3 commits into
masterfrom
agents-md-writing-guidance
Oct 12, 2026
Merged

danielmarbach merged 3 commits into
masterfrom
agents-md-writing-guidance

Conversation

@danielmarbach

Copy link
Copy Markdown
Contributor

Updates AGENTS.md to the current engineering context template and applies its new Writing section to the pages under docs/.

The template now has a Writing section that applies to pull request descriptions, commit messages, docs/, ADRs, and code comments. It asks for the main point first, no restated or inflated text, short active sentences, one term per concept, and no invented facts. Commit subjects are short imperative summaries without emoji or type prefixes. Code comments explain only what the code cannot state.

How the docs revision was made

An agent revised the docs using only the Writing section of AGENTS.md, and the diff was reviewed by hand. Edits that removed information were reverted, such as contrasts that correct a likely assumption, history that explains a current default, and "should" in guidelines rewritten as a statement. Those cases led to the clarifications in the last commit.

The docs commit also fixes typos, two broken link syntaxes, and British spellings, and converts headings to sentence case. Heading changes are case-only where other pages link to them, so anchors still resolve.

Commits

Review the commits separately. AGENTS.md is a verbatim copy of the template, and the docs commit changes wording, not meaning.

  • 14f3939 Add writing guidance to AGENTS.md
  • a5161db Apply AGENTS.md writing guidance to docs
  • 2c74e12 Clarify AGENTS.md writing rules

Found but not changed

  • packaging.md says RavenDBServer.zip is used by ServiceControl and Monitoring instances. deployment.md and the project file comments say the primary and Audit instances.
  • packaging.md names the zip folder zip, and deployment.md names it zips. The repository has zip/.
  • error-ingestion-design.md says the instance "runs a single ingestion loop today", which conflicts with the concurrent writers and --error-ingestion-only hosts in ingestion-pipeline.md.
  • data-versioning-design.md refers to "the reflection test above", but no test is described above it.
  • Broken links: testing.md links packaging.md#assembly-mismatches (the anchor is #assembly-version-mismatches) and /docs/test/ghcr-tag (the folder is test-ghcr-tag). forward-headers-testing.md links testing-architecture.md, which does not exist.

@danielmarbach

Copy link
Copy Markdown
Contributor Author

// cc @johnsimons @rbev @warwickschroeder

@rbev rbev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

I mostly just reviewed agents.md and did a quick spot check on the rest of the changes to see what sort of changes it prompted.

Comment thread AGENTS.md
- Write a commit subject or pull request title as a short imperative summary of the change, without emoji or type prefixes; a squash merge turns the title into the commit subject. Give each commit one intent, and put renames and formatting changes in their own commits.
- Use formatting only where it helps scanning: sentence-case headings, lists for three or more parallel items, no bold label on every item, no emoji, and no dashes to join clauses in prose. Index entries and list items may be fragments, with a dash or colon between a term and its description.
- Do not invent facts, numbers, rationale, or sources. When the record does not say, write that it does not say.
- Leave out chat and drafting residue: offers, praise, and notes on how the text was produced or what it replaced. Keep provenance that changes how to read the text, such as a record reconstructed after the decision. Mention earlier behavior only where it explains the current design or a default, or in changelogs, release notes, and upgrade guides.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 this is one of my pet peeves of AI doc writing.

@danielmarbach
danielmarbach enabled auto-merge (squash) October 12, 2026 07:36
@danielmarbach
danielmarbach merged commit efb56e7 into master Oct 12, 2026
69 of 70 checks passed
@danielmarbach
danielmarbach deleted the agents-md-writing-guidance branch October 12, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants