## Problem [#53996](https://github.com/supabase/supabase/pull/53996) passed an author review, two agent readers, and a full agent review, and still needed [#54013](https://github.com/supabase/supabase/pull/54013) to fix it. The new section repeated three sections of the same page, described worker-pool internals that a reader can't configure, and left the Functions architecture guide saying the opposite. `review-the-docs` and the style guide already named repeated facts. The rule didn't hold, for these reasons: - The Content review listed problems as examples ("they aren't the full list"), and its checklist asked only that "each problem is reported". A light review and a full one produced the same report. - No rule gave content problems a severity, and core rule 6 called style notes suggestions. - No rule covered internals the reader can't act on, or a statement on another page that says the opposite. - The review had no claim check of its own. `write-the-docs` has an accuracy pass, but a review runs on its own and can't count on the author having used that skill. `test-the-docs` runs only snippets. Tedd's own review skills filled these gaps with stricter copies of the rules, so people, Tedd, and CodeRabbit reviewed against different rules. Closes [DOCS-1806](https://linear.app/supabase/issue/DOCS-1806/the-docs-review-checks-each-claim-and-gives-each-new-sentence-a) ## Solution **The Content review in `review-the-docs` asks for a verdict on each item.** Each new and changed sentence gets a verdict, and so does the sentence right after each change. Each of these problems is a blocker: - A repeated fact - A disagreement with the docs, searched for in `apps/docs/content/` and `apps/kb/src/content/` by the behavior's terms. The published page can be the wrong one, so the Fact check decides which sentence is true, and the change fixes the wrong one - Mechanism the reader can't act on - Detail that only fits one reporter's case. The fix for one error, or an answer that depends on the reader's stack, belongs in `/kb`, per the `/docs` and `/kb` split in `write-the-docs` - An unanswered follow-up question A change longer than the ask needs is a note, because no style guide rule covers it. The review also gives a verdict on each new section's place, each new example's pattern, and each new link. The style pass counts the words of each long sentence with a script, gives a verdict on each style guide rule that applies to the changed lines, and checks the page's template and WORD_LIST. The done criterion lists each verdict, so a skipped item shows. **A new Fact check gives each claim a verdict.** Each claim gets one verdict: ran (a row in a `test-the-docs` verification report), traced to the source at the version the page uses, or unverified. When a change has more than 20 claims, or a claim needs a repo that the reviewer can't read, the review asks the user before it continues. Each path an instruction names is its own claim. A wrong claim is a blocker, and an unverified claim is a note to the author. Code runs only through `test-the-docs`, so the tutorial and example reviews ask to build example apps there, not in the reviewer's checkout. Before a wrong claim is made more exact, the review checks whether the reader needs it at all. **The `write-the-docs` accuracy pass checks that the reader needs a claim.** Its old step 3 said to add an exception the code has, or narrow the sentence, which pushed #53996 toward more internals. A new step 2 cuts a claim about mechanism the reader can't use, instead of making it more exact. An exception goes in only when it changes what the reader sees or does. The skill stays self-contained: it runs whether or not a review follows. **The style guide holds the rules the review applies.** New rules: "Document what the reader can use", "Answer the reader's next question", "Name what a command changes", "Model an example on the page's other examples", and "Put text under the heading for its topic". "Cut repeated points" now says to link to a fact that another section or page states. Required text, such as the standard SQL snippet, doesn't count as a repeat, and neither does a one-sentence term explanation or a warning that the task needs. "Link selectively" now covers two sections that send the reader to each other. The review links to each rule instead of restating it. **CodeRabbit reviews docs content against the style guide.** `.coderabbit.yaml` applies each top-level file in `apps/docs/style-guide/`, but not the templates, to `apps/docs/content/**/*.mdx` as code guidelines, so a new rule file is picked up without a config change. **Stale references.** `ask-the-docs`'s `app-map.md` and `write-the-docs` no longer point at `content/troubleshooting/`, which #52339 removed. ## Review instructions 1. Read the Content review and Fact check in `review-the-docs/SKILL.md`. 2. Check that each blocker links to a rule in `apps/docs/style-guide/`. A fresh agent ran an earlier version of the Content review and Fact check on #53996's merge commit, without seeing #54013. It requested changes and reported the problems that #54013 fixed: - The CPU cap and rotation across workers, as mechanism the reader can't act on - The same reuse fact stated four times in the section, and "runs once per worker" repeated from a later section - `guides/functions/architecture.mdx` saying "A new V8 isolate is spun up for each invocation" and "each run is stateless" It also traced each claim to `supabase/edge-runtime@v1.79.2`, and found a repeated link, a 26-word sentence, and two unverified claims. Its internals finding has a caveat: the new style guide example comes from this same case. After the review suggestions, a second fresh agent ran the current Content review and Fact check on the same commit. It found the same three problems, as blockers. It listed 17 claims, under the 20 at which the Fact check asks before it continues, so it checked each one. It reported the repeats inside the section as notes, not blockers. ## Checklist - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Nik Richers <nrichers@gmail.com>
12 KiB
Voice and tone
Our voice and tone are clean and straightforward. Elegant prose is succinct: it brings a reader to understanding without spending extra words.
Apply this document to every sentence you write, whether you're drafting a page or changing one line on an existing one.
It covers the sentence level. For how a page divides into sections, see
03-page-structure.md. For which component renders a piece of
information, see 02-elements.md.
| If you're deciding | Read |
|---|---|
| How to mentally frame how you write | Audience |
| How to write sharper and more succinctly | Brevity |
| How to write consistently and correctly | Sentence construction |
Audience
Write for the reader
The reader is a developer with a job to do, arriving mid-task from a search result rather than from the top of the page. Their Postgres experience ranges from none to deep, and they may be evaluating Supabase or already running it in production. Think about the task they came to complete. Tell them what, and only what, they need to know to finish it.
Document what the reader can use
Describe behavior the reader can observe, configure, or decide on. Leave out internal mechanism, such as an algorithm or a limit inside a service, unless the reader acts on it. A reader who doesn't need a detail still has to work out that they don't.
- Recommended:
The functions service reuses workers, so top-level code runs once for each worker. Put heavy setup there. - Not recommended:
Concurrent cold requests start up to one worker for each CPU, and later requests rotate across those workers.
Answer the reader's next question
After each step or fact, think of the first question the reader asks next, and answer
it on the page or link to the answer. After Enable RLS on the table, the reader asks
what happens to existing queries. Say that, until a policy allows them, your app's reads
return no rows and its inserts fail.
Write for a massive global audience
Many readers have a native language that isn't English. Conversational, direct English is easier to understand, localize, and read aloud.
Write for a human and an LLM at once
Both read our pages. Some principles overlap while others don't. For a human, be kind and respect their free will. For an LLM, you may need to nudge it to choose the best practice. Use clean procedures and lots of code examples to make the best path the easiest choice.
Write like you talk
Many readers who use English as an additional language learn conversational rather than academic English. Use words and sentences that sound natural when spoken. Read your writing out loud to find the clearest phrasing.
Avoid idioms and colloquialisms
A phrase like piece of cake is often specific to a region or culture.
Don't use ableist language
Words that use disability as a metaphor for something bad exclude the readers they describe.
Address the reader as you
Don't use we to refer to the reader. Use we only to refer to the Supabase team.
Brevity
Prefer short, direct sentences
Express one relationship at a time and avoid unnecessary compound structures. Each sentence gets easier to understand, localize, and interpret consistently.
Aim for fewer than 26 words per sentence. Past that, a reader has to hold too much at once, and a listener using a screen reader has no way to scan back.
Omit needless words
Cut every word that does no work. The replacements below recur often enough to be worth memorizing.
| Wordy | Direct |
|---|---|
| the question as to whether | whether |
| is able to, has the ability to | can |
| in the event that | if |
| at this point in time | now |
| make a decision about | decide |
| provides support for | supports |
Cut repeated points
If you can remove a sentence without losing information, remove it. Watch for a section
that restates what an earlier section established, and for three phrasings of one idea:
It's free, You won't be billed, No charge.
When another section of the page, or another page, already states a fact, link to it and leave the fact there. Text that this guide asks for at each step, such as the standard SQL snippet, and shared partials aren't repeated points. Neither is a one-sentence explanation of a term, or a warning or prerequisite that the task needs.
Use the positive form
State what something does. A positive sentence is shorter and tells the reader what to do next. Double negatives and nested exceptions are the hardest version of this to read.
-
Recommended:
You can continue without a path. -
Not recommended:
A missing path won't prevent you from continuing. -
Recommended:
Use an admonition when a reader might otherwise miss information that affects their outcome. -
Not recommended:
Don't use an admonition unless a reader might otherwise miss information that affects their outcome.
Cut mannered prose
Some sentences exist to sound composed. They carry nothing, and these three are the common shapes:
- Antithesis.
X, not Y, where Y is the negation of X. The negative half feels balanced and adds no information, and the sentence after it usually explains the point properly anyway. Delete the half after the comma and check whether anything was lost. - Rhythm for its own sake. Three examples where two would do, or a clause added to balance a sentence.
- The aphoristic closer. A final sentence that restates the paragraph in a tidier shape. The paragraph already said it.
Contrast is worth keeping when both halves are real and the reader needs the comparison.
A recommended and not-recommended pair qualifies, as does a concrete substitution like
select rather than SELECT.
- Recommended:
Write alt text that describes the image. A topic name is what the nearby heading already says. - Not recommended:
Write alt text that describes the image, not the topic.
Be specific and concrete
A vague verb makes the reader guess at the operation. Name the operation instead.
- Recommended:
Create, edit, and delete tables in the Table Editor. - Not recommended:
Manage your tables in the Table Editor.
WORD_LIST.md lists the vague verbs that come up most often. The
principle extends past that list: if a verb could describe five different operations,
it's the wrong verb.
Keep coordinate ideas parallel
List items and procedure steps are coordinate ideas, so give them the same grammatical form. A step list that mixes imperatives with descriptions reads as though the steps do different kinds of work.
- Recommended:
Install the CLI,Start the local stack,Apply the migration - Not recommended:
Install the CLI,The local stack starts next,Applying the migration
Put the emphatic words at the end of the sentence
The end of a sentence is where a reader's attention lands, so put the consequence there rather than in the middle.
- Recommended:
A table with Row Level Security enabled and no policy returns no rows to every client. - Not recommended:
Every client gets no rows back from a table that has Row Level Security enabled and no policy, which is worth knowing.
Sentence construction
Cover one topic in each paragraph
Start a new paragraph when the topic changes, or when you move between information types. Short paragraphs are fine.
Break up a dense paragraph rather than leaving it whole. A wall of text is hard to scan. It is harder still for a reader who is listening to it, or who has trouble keeping their place. When one paragraph carries several points, split it, or turn the points into a list.
Use complete sentences by default
They identify the actor and the action, which reduces ambiguity for readers, translators, and agents. Use sentence fragments only where they improve scanning, such as headings, labels, or short list items.
Don't rely on a heading to carry meaning
Headings guide the reader's eye and organize the page, but the content beneath one has to stand on its own. The first sentence can restate the heading, even if that sounds redundant. Readers skim headings and then return to the section that interests them, so the opening sentence is what confirms they're in the right place.
Keep important information out of parentheses
Some readers skip anything parenthesized, so a step they need can't live there.
Reach for parentheses when the content is brief and genuinely supplementary:
- Introducing an acronym after spelling it out:
full-text search (FTS) - Marking an item
(Optional) - A short example inside a step:
Enter a six-digit hex number (for example, `228B22`), and then select **OK**.
Rewrite as a separate sentence when the aside grows past a few words, or when it carries something the reader has to act on:
- Recommended:
Enter a six-digit hex number, and then select **OK**. For example, for forest green, enter `228B22`. - Not recommended:
Enter a six-digit hex number (for example, if you want the color forest green, enter `228B22`), and then select **OK**.
Don't use parentheses for optional plurals. Write one or more tables, not table(s).
Parentheses required by Markdown links or code syntax aren't prose parentheticals.
Don't bound an aside with dashes where a direct sentence reads better
A pair of dashes interrupts the sentence the same way parentheses do, and the interruption is usually a second sentence trying to escape. Google allows a dash in place of parentheses; Supabase docs prefer the separate sentence.
- Recommended:
Don't add steps to reach a minimum. The range organizes information; it isn't a required length. - Not recommended:
Don't add steps to reach a minimum — the range organizes information, it isn't a required length.
Put the condition before the instruction
When an action only applies in some cases, name the case first. A reader who sees the condition up front can skip the whole sentence. A reader who meets it at the end has already read the instruction for nothing.
- Recommended:
To delete the entire document, click **Delete**. - Not recommended:
Click **Delete** if you want to delete the entire document. - Recommended:
For more information, see [Row Level Security](/docs/guides/database/postgres/row-level-security). - Not recommended:
See [Row Level Security](/docs/guides/database/postgres/row-level-security) for more information.
The same order applies to a procedure step that branches. Put the if first, so a
reader can pass over a step that isn't theirs.
Don't refer to the position of something on the page
Above, below, and the right-hand side assume a reader who sees the page laid out
the way you do. Position also changes with screen size and breaks when content moves.
- Recommended:
In the preceding diagram, the client calls the pooler. - Not recommended:
In the diagram above, the client calls the pooler.
Spell out an abbreviation on first use
The exception is an abbreviation as familiar as API or SQL. Write full-text search
(FTS) once, then use FTS. A screen reader may read an unfamiliar abbreviation as a
word.
Use the Oxford comma
Write functions, tables, and indexes.
Use American English
Write color, organize, center, and artifact.
Use the present tense
Write the AI assistant answers your question rather than the AI assistant will answer your question.