Skip to content

Documentation systems: Diátaxis, style guides, Vale and docs as code, and AI-written docs

Type: concept. Status: evaluating (2026-11-23): the Decision of ADR 0008 (#926) on Google's guide and Vale is still empty; nothing here changes what runs.

A documentation system is a set of ideas and tools that answers one question about a doc set: how it is structured, how it is worded, how a summary is built, how it is checked or where it lives. This page explains seven kinds of system, then asks how each relates to docs that agents write and docs that agents read, which is how nearly all docs in this repository are made. It sets them beside what the repository runs. How these pages are built: index.

Independent origin

This holds only in part. Issue #926 proposed Google's guide and Vale as a working default (ADR 0008, Proposed, 2026-11-21); the owner has not yet decided, so the setup in use is not independent of them. The practices the rest of the page compares were in place first: docs kept in the repository and built and checked in CI, the arc42 chapters for the architecture, and the research index's page types. A search of this repository's files finds no mention of Diátaxis before this page.

Sources

Read on 2026-11-23. A statement no source below supports is marked unconfirmed. A claim a vendor or project makes about itself is marked as its own claim.

What it is

Frameworks for the structure of a doc set: Diátaxis

Diátaxis is a framework that says documentation answers four different needs and should keep them apart: tutorials (a lesson that teaches by doing), how-to guides (steps for a reader who already knows the basics and has a goal), reference (neutral facts, laid out like the thing it describes) and explanation (background and the why). It places them on two axes, action or knowledge, and study or work. Its "compass" turns that into two questions a writer asks of any page (start here, compass).

  • Who makes it: one author, published at diataxis.fr; the repository names the author and invites discussion on a chat channel and in GitHub discussions (README).
  • Licence: CC BY-SA 4.0, as the README states. Share-alike means copied text carries the same licence, which is why this repository links and does not copy.
  • Maturity: the repository was created 2020-03-25 and last pushed 2026-10-14 (GitHub's data, read 2026-11-23); the newest commit read is from 2026-08-06. Its foundations page argues that there are four types and only four, the author's own argument (foundations).
  • Good for: deciding where a new page belongs and why a page feels muddled (the compass). Not a sentence-level style guide: none of the pages read gives rules for words or sentences. Its author recommends starting by applying it to something, however small, and treating the site as a handbook (start here).

Style guides for wording and formatting

  • Google developer documentation style guide and technical writing courses. The guide is Google's house style for developer docs, with a word list, and says in its own text that it is not an industry standard, does not claim to be objectively correct, and gives guidelines you may depart from (philosophy, about). Its reference order is project style first, then this guide, then third-party references; for technical style it points to Microsoft's guide (about). Two free courses go with it: Technical Writing One (clear sentences, audience) and Technical Writing Two (drafting, editing, organizing large documents, sample code, documentation types, using LLMs); a facilitator runs the optional in-class part (overview, Two). The pages state CC BY 4.0, code samples Apache 2.0. Good for a team that needs one stated source for wording; not a complete writing course, as its philosophy page says.
  • Microsoft Writing Style Guide. Microsoft's guide for anyone writing about technology, with top tips, bias-free and global communication (welcome). The welcome page carries a copyright line that reserves all rights; the GitHub repository's licence file is CC BY 4.0, and the repository is archived, last pushed 2024-11-13 (data). The two statements differ, so the licence is unclear here.

Patterns for summaries and business writing: the Pyramid Principle and BLUF

Both are practices for putting the conclusion first. Neither could be read here (see Sources), so this page does not describe them. The nearest source read is Google's course unit on large documents, which lists an introduction and a summary among the elements of navigation and recommends revealing detail gradually (large documents).

Plain language: the US federal guidelines

plainlanguage.gov is a resource, run by the federal Plain Language Action and Information Network with the General Services Administration, that helps federal employees comply with the Plain Writing Act of 2010 (README). The guidelines themselves, the digital.gov page the owner named and ISO 24495-1 could not be read here, so no rule of theirs is stated. Plain language is a legal duty for US federal agencies; for a repository it is a source of wording advice.

Docs as code

Docs as code means the documentation's life cycle is the software's: it lives in the repository, changes in the same code review, and is built and checked in CI so feedback is fast (Read the Docs). It is a practice, not a product, and rests on public sources. Good for keeping docs current with the code they describe; it says nothing about how good the prose is.

Prose linters: Vale

Vale is a command-line linter for prose that turns a team's writing guidelines into checks, runs in an editor, in CI and offline on macOS, Windows and Linux, and ships no opinions of its own (README). It is written in Go, MIT licensed, created 2017-02-05, with 6,421 stars and a push on 2026-11-21 (GitHub's data). The README calls its author the sole developer and lists adopters including AWS, NVIDIA, Microsoft, GitLab and Red Hat; that list is the project's own claim.

  • How rules work: a style is a folder of YAML rule files. They range from a list of words to part-of-speech patterns, readability formulas and scripts, and a rule can carry its own fix. A parser reads Markdown and other formats, so code spans, URLs and fenced blocks are skipped before a rule runs, and a rule can aim at headings, lists or table cells (README).
  • Alert levels: error, warning and suggestion, set by MinAlertLevel. In our use only an error fails a run (checks.md).
  • Vocabularies: a vocabulary is an accept list that the spelling check reads, which is how our config uses it (.vale.ini (.vale.ini)). Vale's own documentation was not readable here, so this rests on our config.
  • Packages: Packages in the config plus vale sync fetch styles. The Google (MIT) and Microsoft (MIT) packages implement those guides; both READMEs say they are not maintained or endorsed by the vendor. The Microsoft package reports it covers 57.8 % of the guide's guidelines and 12.5 % of its word list; the Google package tracks its own coverage the same way (Microsoft package, Google package).
  • Where it runs: an editor, a pre-commit or pre-push hook, CI. GitLab lists its Vale rules by level and says what each level does to a pipeline (GitLab).
  • Other linters: write-good is a naive English prose linter (MIT, last pushed 2025-03-10) and alex catches insensitive writing (MIT, last pushed 2024-11-27), both from GitHub's data. Neither is configured here.

Template collections: the Good Docs Project

The Good Docs Project's templates repository holds templates for open-source documentation, sorted into concept, task and reference types, with "recipes" that combine them (API reference, API guide) (README). Its GitHub repositories are all archived, the templates one with its last push on 2022-09-18, and GitHub reports its licence as none it can name; the project's own site was not readable here, so whether the work continues elsewhere is unconfirmed.

The systems and AI-written docs

This section covers the owner's request (2026-11-21): how each kind of system relates to docs that agents write and docs that agents read.

Style guides and docs-rules files as instructions for an agent

A style guide is useful to an agent in two ways: as text the agent reads before writing, and as rules a checker applies afterwards. Our CLAUDE.md, rules files and skills are the first kind of file: writing-docs.md is the docs-rules file the workflow:docs skill reads on top of its own rules (plugins/workflow/skills/docs/rules.md). The vale-ai-tells README gives the same advice for what a linter misses: put style instructions in CLAUDE.md, AGENTS.md or a similar file (README).

Do the style guides themselves say anything about AI-generated text? In the pages read:

  • Google's technical writing course has a unit on LLMs. It says careless use can inject mistakes, that responses sometimes contain errors and must be checked for facts and for text that does not feel right, that responses tend to be too long, that naming a style guide in the prompt helps, and that a document given as source is assumed true, so a bug in attached code can be taken for a feature. It also offers a counterpoint: a first draft from an LLM costs the thinking that writing forces (using LLMs).
  • Google's style guide has two word-list entries: "AI" rarely needs spelling out, and "generative AI" is spelled out in sentence case (word list); its what's new page lists the first under 2026-04-07 (what's new). Nothing further on AI text was found in the pages read; not every page of the guide was read.
  • Microsoft's three pages read say nothing on AI text.
  • Diátaxis and plain language: the pages read say nothing on AI. A pull request to add an agent skill that teaches Diátaxis to coding agents was opened on 2026-02-09 and closed unmerged as stale on 2026-11-16 (pull request 162); the project has no official agent guidance in the files read.

Prose linters as a guardrail, and what they cannot catch

Vale runs in the pre-push hook and in CI on ready pull requests, and finds what is mechanical: banned words, passive voice, spelling, dash style. Several projects have added packages that flag the vocabulary and shapes typical of AI prose (vale-ai-tells, vale-llm-slop). Their authors state limits:

  • vale-ai-tells says it catches lexical and phrasal patterns and cannot detect uniform sentence length, paragraph rhythm or semantic problems such as one point restated ten ways, and that some patterns would give too many false positives. The author says it is meant to clean up AI-assisted docs, not to hide AI text (README).
  • vale-llm-slop says its Slop rules flag AI-sounding prose, such as comments that repeat the code and empty praise, and a stricter STE style is opt-in and "isn't necessarily bad" writing when flagged (README).
  • What no linter in the sources checks is whether a statement is true. Neither README claims it. A pull request in the rbx project adds Vale with both packages and, beside it, a reviewer agent that verifies every flag, key and default against the code; its test seeded a page with a nonexistent flag and the reviewer caught it (rbx 881, a self-report). The same pull request says Vale found 71 errors, 857 warnings and 2011 suggestions on the existing docs and no Vale step ran in CI yet.
  • Vendor claims: Vale's README says a doc platform ships Vale as a CI check and that a documentation-update product runs Vale on every doc its agents write; both are claims by sponsors, repeated in the README, not checked here (README).

Structure frameworks for docs that people and agents both read

  • llms.txt is a proposal for a Markdown file at a site's root or any path: a required H1 with the name, a short summary in a quote block, optional prose, and sections of links with notes, one section named "Optional" for what an agent may skip (proposal, Apache-2.0 per GitHub's data). Its author says thousands of sites publish one and the labs publish their own; that is the proposer's own claim. Open issues show the format is unsettled: whether it should live under a well-known path, and what an agent should do when a linked page needs payment or a token (issue 126).
  • AGENTS.md is, in its README's words, a README for agents: a predictable place for instructions to coding agents, in plain Markdown, MIT licensed per GitHub's data (README). A user's issue calls Markdown the wrong format for rules an LLM must follow reliably and asks for XML or HTML instead (issue 1); it is open, one opinion.
  • Diátaxis for an agent that looks up a how-to or a reference: the framework says reference is neutral facts and a how-to is steps for a competent user (start here). It is our inference, not a finding, that an agent can use the page type to choose between an answer to "how do I" and an answer to "what are the options". The pull request cited earlier states the same worry from the other side: agents default to unstructured output that mixes the types (pull request 162), a claim of its author.

Known weaknesses of AI-written docs and which system addresses which

The sources are mostly one practitioner's account and the tools' own READMEs; none measures the rates. The blog post AI Wrote Your Docs. Nobody Read Them. (author's opinion, from work on a tutorial repository) names the weaknesses; the third column says what the sources offer.

Weakness What the post says What addresses it, in the sources read
Verbosity AI output is long, and volume passes for quality; it cites a study of regulatory documents with output three to five times longer (the study was not read here) Google's course: tell the model to abbreviate (using LLMs); the AI-prose packages flag filler words
Generic filler it explains what the reader knows and repeats itself across sections Diátaxis keeps explanation out of how-to and tutorial pages (start here); naming the reader in the prompt, as the post and Google's course advise
Confident errors the post stresses missing context over invented facts; it cites a finding that missing context is reported more often than hallucinations (not read here) no linter; a reviewer that checks claims against code (rbx 881); Google's course: check facts
Stale or contradicting text the same fact restated in several sections, worded differently, so readers doubt all of it docs as code: one review for docs and code (Read the Docs); our summary-invents rule keeps a summary to what the pages below it say
Missing hard parts it documents the obvious and omits edge cases and failure states the post: prompt for them; no system checks it

How teams report checking AI-written docs

The sources read name three checks: a human technical review before publishing (the post's advice, and Google's course on checking responses), a linter run (rbx, GitLab's Vale rules) and an adversarial reviewer agent with the code at hand (rbx). Tests of examples are a fourth practice, but no source read reports it for AI-written docs, so it is unconfirmed here. The post adds that GitBook reported AI readers at 41 % of readers on its platform in 2025; GitBook's page was not readable here, so the figure is second-hand.

How it relates to what we have

Verdicts follow the index. The short version: we already run docs as code and Vale with Google's guide as a working default; we write docs for people and keep CLAUDE.md files for agents, with no AGENTS.md or llms.txt; and nothing checks that what a page says is true.

# Outside Verdict Our side
1 Docs in the repository, reviewed with the code, built and checked in CI (Read the Docs) same docs/ lives in the repository; every ready pull request checks links and secrets, and one that changes the site's inputs also builds the site strictly and checks it for private details; a draft runs nothing (checks.md)
2 Vale in CI and in an editor or hook same vale docs README.md in the pre-push hook and CI, errors fail, warnings are reported (checks.md, .vale.ini (.vale.ini))
3 Packages fetched with vale sync different The Google package is committed at a release and updated by hand, never synced. A new Vale version changes the pin in .claude/dev-doctor.json and the SHA-256 in check.yml together (checks.md)
4 A vocabulary of accepted terms same .vale/styles/config/vocabularies/Repo/accept.txt (checks.md)
5 One stated style source, project style first same Google's guide and courses, behind the docs-rules file, which wins where it says more (writing-docs.md). The choice is planned: ADR 0008 is Proposed and its Decision is empty (#926) (ADR 0008 (docs/adr/0008-docs-style-guide-and-vale.md))
6 Summary first, detail revealed gradually (Google's large-documents unit) same Rule summary-first and summary-invents (plugins/workflow/skills/docs/rules.md)
7 Timeless documentation (Google) same Rule no-history cites it (plugins/workflow/skills/docs/rules.md)
8 Page types by reader need: tutorial, how-to, reference, explanation (Diátaxis) different Sections are by role and topic (docs/index.md); the architecture follows arc42's chapters (architecture CLAUDE.md (docs/architecture/CLAUDE.md)); research pages have four types of their own (index). One part is the same: how-tos are kept out of the architecture and go to setup/ or guides/ (architecture CLAUDE.md (docs/architecture/CLAUDE.md)). No page carries a Diátaxis label
9 Templates per page type (Good Docs Project) different The research index defines a skeleton per page type, as text, not as template files (index)
10 Style rules written down for the agent that writes same workflow:docs reads the docs-rules file and its own rules before every write or review (skill (plugins/workflow/skills/docs/SKILL.md))
11 Files for agents that read docs: AGENTS.md, llms.txt gap The repository has CLAUDE.md files for agents, and the site check keeps CLAUDE.md and AGENTS.md off the site (checks.md). No AGENTS.md, no llms.txt for the site. docs/references.md only lists outside guides that publish one
12 AI-prose linters (vale-ai-tells, vale-llm-slop) gap Only the Google package and Vale's own rules run
13 A check that a docs claim is true: a reviewer agent that verifies against the code (rbx) gap The docs rules judge structure and words; the link check finds dead links only. The research skill's reviewer checks the claims about us in a page's Critical assessment chapter, not the rest of the page (research skill (plugins/workflow/skills/research/SKILL.md))
14 A plain-language standard (US federal guidelines, ISO 24495-1) gap Rule plain-words cites Google's course units. No plain-language guideline is named; the sources were not readable, so no content is compared

Critical assessment

What critics say

The strongest argument first. Each is the author's opinion, not a finding. Searched: the web search tool (several queries on Diátaxis, Vale, AI-written docs, llms.txt), plus the repositories' issue lists on GitHub. Most critics' sites were not readable here.

  1. AI docs look finished and fail the reader. Vanna Winland, a documentation practitioner, argues in her blog post that volume masquerades as quality: generated docs are thorough about the obvious, thin on edge cases, repeat themselves, and answer no named reader. She puts the fault on the prompt, not the model, and says the fix is to name the reader and what to skip (the post). One practitioner's account from one repository; its figures are second-hand. This is the strongest argument against agent-written docs, and no system read answers it fully: a linter cannot name the reader. Our docs rules ask a summary to say whom a page serves (plugins/workflow/skills/docs/rules.md); nothing checks that the page then fits that reader, so this point stays open.
  2. A style check makes noise when every guideline becomes a rule. GitLab's documentation team says it is tempting to add a Vale rule for every style-guide rule, and asks the team to weigh the effort of enforcing it and the noise it makes. For a false positive in some rule types it advises reformatting the text, as the rule cannot be turned off there (GitLab). The team runs Vale at scale, and its concern is noise, not that the idea fails. Our answer: only errors fail a run, and rules that clash are switched off with a reason (.vale.ini (.vale.ini)).
  3. Markdown is the wrong format for rules an agent must follow. A user of the AGENTS.md repository (the issue's author, named by handle there) argues that humans can read Markdown but an LLM needs richer structure for priority, references and nested steps (issue 1). It is one opinion with no evidence in the issue, and the issue is open.
  4. A discovery file for agents leaves open who may read what. A user of the llms.txt repository (the issue's author, named by handle there) asks what an agent should do when a linked page needs payment or a token, and whether the format should handle it (issue 126). The issue is open, and its author promotes a related proposal of their own.
  5. Diátaxis fits tool documentation and does not cover everything (unverified). A web search returned a post by Hillel Wayne arguing that the four types do not cover needed documentation and are overused (the post). The page was not readable here, so this is the search summary only, not a read source.

Our assessment

Concern Evidence Severity What would settle it
Data quality: a linter and a style review say nothing on whether a page is true; nothing in our docs checks that a named command, a flag or a path exists rows 2, 13; vale-ai-tells limits; rbx 881; rules.md has no such rule serious check 20 recent doc claims (commands, paths, flags) against the repository and count the wrong ones
Reliability and edge cases: warnings fail nothing and are only listed in workflow:docs reviews, so drift can build up ADR 0008 (docs/adr/0008-docs-style-guide-and-vale.md) (0 errors, 432 warnings at the time); GitLab minor the warning count now, and how many a month's pull requests fixed
Real need against a gimmick: no reader or agent problem is recorded that Diátaxis, AGENTS.md or llms.txt would fix rows 8, 11; no issue names one unknown a list of pages where a reader or agent could not find a how-to or a reference, from pull request comments, or from a session
Dependencies and vendor lock-in: Vale has one named maintainer; the Google and Microsoft packages are run by a third party and say the vendor does not endorse them, and the Microsoft one reports 57.8 % of the guide's guidelines implemented, so a pass in Vale does not mean a page follows the guide Vale README; Google package; Microsoft package; row 3 minor the package's last release date and a run of our docs with a pinned copy while it stands still
Law and compliance: Diátaxis is CC BY-SA and Microsoft's licence is unclear (page and repository differ), so copying text is a risk Diátaxis licence; Microsoft page and repository minor the owner's reading of the licence paragraph in docs/references.md; keep "link, never copy"
Alternatives and opportunity cost: an AI-prose package adds rules to triage (rbx fired 72 rules as warnings on its own docs) for prose a reviewer reads anyway rbx 881; vale-ai-tells unknown one report-only run over docs/ and the hits sorted by whether a reviewer would have changed the page

Bottom line

Trial small: keep Google's guide and Vale as they run, add a claim check to the docs review, and leave Diátaxis, AGENTS.md and llms.txt until a recorded reader or agent problem asks for them.

What we could adopt

Results after checking each idea against the repository. A result is a recommendation: no issue is filed from this page, and the workflow does not change because of it.

  • Google's guide and Vale as the single style source (rows 2, 5)—needs the owner. It is the pending Decision of ADR 0008 (Proposed), which the owner writes; this page adds no rationale.
  • A claim check in the docs review (row 13)—adopt. A review rule that names each command, path, flag and issue a page states and checks it against the repository closes the largest gap found; the research skill's review does this only for the claims about us in a page's Critical assessment chapter.
  • Diátaxis types as the structure of docs/ (row 8)—don't adopt. The sections are by role and topic, the architecture has arc42, and the framework itself says to apply it to something small first. Its two compass questions could still help a writer decide where a page goes.
  • A second Vale package, Microsoft's (row 5)—don't adopt. Two sources for one rule invite clashes; Google's guide already sends technical style questions there, as a link.
  • AI-prose Vale packages (row 12)—needs the owner. They add outside dependencies and rules to triage; a report-only trial over docs/ would show the hits without gating anything.
  • llms.txt for the published site (row 11)—don't adopt. Our agents read the repository, not the site, and the format's open issues are unsettled.
  • AGENTS.md (row 11)—don't adopt. CLAUDE.md does that job in this repository.
  • Good Docs Project templates (row 9)—don't adopt. The repository is archived and the research index already carries a skeleton per page type.
  • A plain-language standard (row 14)—not assessed. The sources were not readable here; a run where digital.gov is reachable would settle it.