Writing the docs¶
How a page in docs/ and the README.md is written. This file is the repository's docs rules:
the Docs rules key of CLAUDE.md names it. The workflow:docs skill reads it when it writes or
reviews a page, on top of the rules it carries itself. Vale checks the mechanical part on every
push.
Language and names¶
- English only, on every page, as everywhere in this repository. A quoted title or name in another language stays as it is.
- No login, email address or credential of a real person. Pages use placeholders such as
<owner login>or "the bot account", and describe an address by its domain. The full rule is "Identities" in the rootCLAUDE.md.
Voice¶
- First person on the overview and wherever the owner speaks. The owner writes the overview
as "I". A quoted answer or decision of the owner keeps its own words; a word the style check
refuses is replaced in square brackets, which mark the change. These pages are first person:
README.mddocs/index.md
- Elsewhere, "the owner". Every other page names the owner in the third person, and uses no "I".
docs/architecture/keeps its own rules, in itsdocs/architecture/CLAUDE.md.- An existing page in another voice is no finding until it is rewritten. A rewrite brings it to this rule.
A repository whose docs rules name no voice gets the skill's default: formal and impersonal, with no first person.
Where the docs are¶
- Docs root:
docs/. A folder directly below it is a section, and its first page isindex.md, elseREADME.md. - Overview:
README.md, followed bydocs/index.md. The two are read as one text, and the management summary is at the top ofREADME.md. - Where a new page goes: Where a page goes.
Where a page goes¶
A page about one plugin lives with the plugin, as plugins/<name>/README.md; the
plugin catalogue links each one. docs/ holds what spans plugins or is not a
plugin.
When a page moves, update every link to it in the same change, including the paths named in
files under plugins/; the link check (checks.md) finds the ones left.
Exempt paths¶
These are skipped entirely: workflow:docs reports nothing on them and refuses to rewrite them,
and Vale does not check them (.vale.ini).
docs/lessons-learned.md: the owner's own account, kept in the owner's words.docs/adr/: a decision record is not rewritten after it is decided.docs/plans/: dated working notes.docs/specs/: drafts for open issues.
What may be public¶
Most of docs/ is published as the docs site. mkdocs.yml lists what is public, and a page
outside that list stays private. A gate checks every built page for secrets and private details
before it is published (checks.md). A published page names no
login, internal host name or private term, even in an example.
The style guide and Vale¶
The rules follow Google's guidance: the courses
Technical Writing One and
Technical Writing Two, and the
Google developer documentation style guide. They are
linked, never copied. ADR 0008 (docs/adr/0008-docs-style-guide-and-vale.md) records the choice.
- What a reader judges: a summary first, the current state with no history, one topic per
page, plain words, links instead of copies. The
workflow:docsskill holds these rules, with what is a finding and what is not. - What Vale checks:
vale docs README.mdruns Vale'sGooglepackage in the pre-push hook and in CI. An error fails the push and the pull request; a warning is only reported. Rules that clash with this page are switched off in.vale.ini, each with its reason. The voice rules are one example. A word Vale does not know goes into its vocabulary. checks.md says how.
Related rules¶
- How the architecture description is written:
docs/architecture/CLAUDE.md. - How a research page is built: research/index.md.
- How a skill is written: writing-skills.md.