Commit Graph
8 Commits
Author SHA1 Message Date
fb37145641 docs(skills): the docs review gives each new sentence a verdict and checks each claim (#54082)
## 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>
2026-11-30 17:24:56 -07:00
Miranda Limonczenko 81d5e239e2 docs(style-guide): add how-to guide template (#53648)
Closes DOCS-1608

## Problem

We do not have a template for the most common and important type of
content we have: the procedure.

## Solution

This PR introduces our first template: the how-to. This also includes
the scaffolding needed for all other templates, including a
template-selection table and wiring into our docs-writing skills.

## Preview links

The style guide isn't served by the docs site, so the table links the
changed files on `master` and on this branch instead.

| Site | Live | Preview | Search for |
| ---- |
-------------------------------------------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------------------------------------------------
| ------------------------- |
| Docs |
[03-page-structure.md](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/03-page-structure.md)
|
[03-page-structure.md](https://github.com/supabase/supabase/blob/docs/how-to-template/apps/docs/style-guide/03-page-structure.md)
| `Choose a template` |
| Docs | Not on `master` |
[templates/how-to-guide.md](https://github.com/supabase/supabase/blob/docs/how-to-template/apps/docs/style-guide/templates/how-to-guide.md)
| `How-to guide template` |

## Review instructions

1. Open `templates/how-to-guide.md` from the preview link and confirm
it's 80 lines or fewer and makes sense without other files.
2. Follow the new links in `03-page-structure.md`, the style-guide
README, and the three skills, and confirm each resolves.
3. Run `pnpm test:prettier` and confirm it passes.

## Checklist

Check all before review:

- [ ] 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)
2026-11-19 10:59:37 -08:00
Kody JacksonandClaude Sonnet 5.5 5ca501cd24 chore(docs) - Remove inline Accordion component for machine readability -> details/summary instead (#53274)
## Problem

Accordion components -- as currently constructed -- aren't machine
readable b/c they require JS. Additionally, they aren't heavily used at
all.

## Solution

Removes accordion component from codebase + moves existing usage into
`<details>` / `<summary>` components. Adds some default styling for the
new HTML pattern so they look similar.

Could also refactor accordion to auto-template out details/summary too.
No strong pref here.

## Limits

The sidebar navigation accordions use radix-ui directly and are
unchanged.

## Preview links

### Before

[Creating a client
(before)](https://supabase.com/docs/guides/auth/server-side/creating-a-client#nextjs-utility-functions)


https://github.com/user-attachments/assets/fd320358-7a35-46f8-b7b4-177b023e748e

### After

[Creating a client
(before)](https://docs-git-kody-devrel-850-remove-accordions-docs-mdx-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client#nextjs-utility-functions)


https://github.com/user-attachments/assets/22049184-9157-46d2-a3a6-64ca2c991e24

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:31:54 -06:00
Nik RichersandNik Richers f1b8af12b8 docs: refresh contributing page with rules of engagement (#52536)
## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

Simplifies the Contributing page so it does not duplicate the GitHub
guide, and updates `CONTRIBUTING.md` and `apps/docs/README.md` to match.

Closes DOCS-1563.

## What is the current behavior?

The live page is a 530-line component reference that duplicates and
drifts from CONTRIBUTING.md and the official docs style guide. Current
info about how to author content with our skills is missing.

## What is the new behavior?

`content.mdx` is a short intro that agrees with CONTRIBUTING.md, plus a
card that opens the guide on GitHub.

`CONTRIBUTING.md` now says to link an issue, that GitHub requests a
review from the Docs team (`@supabase/docs`), and to give the changes a
human review. It also requires a frontmatter `description`, documents
the `skip-anchor-check` label, and describes keyword search
(`docs_search_v2`) instead of embedding search.

`apps/docs/README.md` is now a short map: style guide, contributing
guide, agent skills, local setup, and redirects. The old Reference Docs
and DocSpec overview is gone.

## Additional context

- Worktree:
~/GitHub/supabase/supabase-worktrees/nikrichers/docs-1563-refresh-docscontributing-with-rules-of-engagement-and-remove
- Verification:

| Check | Result |
| --- | --- |
| `prettier --check` on the four changed files | pass |
| CI `format` | pass |
| Production `/docs/contributing` | pass, HTTP 200 |
| Preview `/docs/contributing` | pass, HTTP 200, shows How to contribute
and Get started |
| Full-page screenshots at 1280px | pass |

### Proof: the contributing page is a short guide, not a component
catalog

**Verified:** production `curl` (200) · preview `curl` (200) · `prettier
--check` (pass)

| [Before (production)](https://supabase.com/docs/contributing) | [After
(PR
preview)](https://docs-git-nikrichers-docs-1563-refresh-docscontr-0d1210-supabase.vercel.app/docs/contributing)
|
| --- | --- |
|
![contributing-before](https://moijyfpvgnmgoxvwcikq.supabase.co/storage/v1/object/public/pr-proof/supabase/supabase/pr52536/contributing-before-e1d4b706.png)
| <img width="1388" height="1283" alt="image"
src="https://github.com/user-attachments/assets/108856e9-0c53-4ca3-ae0e-0c2a0aedeab3"
/> |

### Test plan

- [ ] Compare the production and preview pages in the table above.
- [ ] On the preview, read How to contribute and confirm the three
steps.
- [ ] Open the Get started card and confirm it lands on
`apps/docs/CONTRIBUTING.md`.
- [ ] Confirm the card text covers authoring, where the docs source
lives, and how the docs app works.

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
2026-11-04 16:11:28 -07:00
Miranda Limonczenko 4eab2bdbc6 docs(style-guide): say how to introduce a link (#52578)
## Problem

The style guide says to write "For more information about X, see Y,"
which is too prescriptive and not nuanced.

## Solution

- **Introduce a link:** replace "Introduce a link with `see`" with a
table of three forms. These are `See [Title].`, `For more information,
see [Title].`, and `For more information about X, see [Title].` Each row
says when to use the form.

It's funny. By making something 'looser', it still feels quite
prescriptive. But now there is at least options and nuance.

## Manual testing

1. Read [Introduce a
link](https://github.com/supabase/supabase/blob/docs/style-guide-about-clause/apps/docs/style-guide/02-elements.md#introduce-a-link).
See the three forms and three examples.
2. Read [Put the condition before the
instruction](https://github.com/supabase/supabase/blob/docs/style-guide-about-clause/apps/docs/style-guide/01-voice-and-tone.md#put-the-condition-before-the-instruction).
See that its `For more information, see [Row Level Security]` example
matches the second form.
2026-10-30 16:44:08 -07:00
Miranda Limonczenko 92866b9597 docs(style-guide): pair Dashboard steps with a terminal option (#51973)
Closes DOCS-1490

## Problem

Pages that ask readers to run SQL mostly point only to the SQL Editor,
and the wording differs from page to page. An agent can't use the
Dashboard, so a Dashboard-only instruction leaves it with no way to
finish the task.

## Solution

- **Terminal option rule:** for any change a reader makes in the
Dashboard, the page also gives a terminal path, such as `psql`, the
Supabase CLI, or the Management API.
- **Standard run snippet:** every "run the following SQL" step uses one
copy-paste snippet, placed before the SQL block, that names both the SQL
Editor and `psql`.

One file, 14 lines added. Both rules go under **Procedures** in
`02-elements.md`, which the write, edit, and review docs skills already
check.

**Not changed:** existing pages. supabase/supabase#51974 converts them,
stacked on this PR.

## Manual testing

1. In **Files changed**, open the rich diff of
`apps/docs/style-guide/02-elements.md`. The two new rules appear under
**Procedures**, before **Code blocks**.
2. Click the **tabs** link in the first rule. It goes to the **Tabs**
section.
2026-10-20 09:34:15 -07:00
Alexis AguilarandMiranda Limonczenko add223d7b3 docs(style-guide): add rules for list lead-ins and UI instruction order (#51632)
## Problem

Two writing patterns came up while editing the Vercel Marketplace guide
in #51630, and the style guide doesn't cover either one.

- **References to a list:** When another sentence sits between a
reference and its list, as in "start from these tabs. Each one opens a
different page:", _these_ has nothing to point back to. Nothing in the
style guide covers this.
- **Order of UI instructions:** Nothing says whether an instruction
names the location or the control first. "Click **Manage** next to
Supabase" asks the reader to look for **Manage** before they know where
it is.

Resolves DOCS-1452.

## Solution

`02-elements.md` gets a new rule for lists and an addition to the
existing step guidance, each with a recommended and a not recommended
example.

- **Point forward to a list with _the following_** (under **Lists**):
When another sentence sits between a reference and its list, use _the
following_, which points forward. When the reference is directly before
the list, _these_ works too.
- **Location before the action** (under **Procedures**): The step
guidance now says that a step can begin with a short location phrase
followed by the imperative verb, and that when a step says where to act,
the location comes first.

The examples use _click_ for buttons, following the `click` and `select`
entries in `WORD_LIST.md`.

## Review instructions

1. Open `apps/docs/style-guide/02-elements.md` in the **Files changed**
tab.
2. Read **Point forward to a list with _the following_** under
**Lists**, and confirm that the examples separate the two cases: a
reference directly before the list, and one with a sentence in between.
3. Read the step guidance at the start of **Procedures**, and confirm
that the examples agree with the `click` entry in `WORD_LIST.md`.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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: Miranda Limonczenko <miranda.limonczenko@supabase.io>
2026-10-16 09:07:04 -07:00
Miranda LimonczenkoandNik Richers 8fa75be01b docs: add a standalone style guide (#50742)
Part 1 of 3. Stack: #50742 → #50744 → #50743.

## Problem

We have several problems:
- Style guidance lives in lots of places and need consolidation
- Our CONTRIBUTING guide has turned into one massive style document that
needs to be broken up



## Solution

Add `apps/docs/style-guide/` as plain markdown. 

| File | Covers |
| --- | --- |
| `README.md` | What the guide covers, who it's for, how to contribute,
and the references it defers to |
| `WORD_LIST.md` | Terminology, spelling, capitalization, and the
`agent` / `LLM` / `AI` distinction. Moved from `apps/docs/` with history
intact |
| `01-voice-and-tone.md` | Audience, brevity, sentence construction |
| `02-elements.md` | Which component renders each piece, and linking
conventions |
| `03-page-structure.md` | Document types, information types, grouping,
chunking, timeless documentation |

### New content

This guide is mostly rearrangement and glue, but it includes some new
content:
- Links and cross-reference formatting
- WORD_LIST entries for LLM and AI agent
- Timeless documentation guidance
- Accessibility guidance
- Sharper guidance on brevity and chunking

## Manual testing

1. Open `apps/docs/style-guide/` on this branch and confirm `README.md`
renders below the file list.
2. Follow every link in `README.md` and read the document through.
3. You can test by locally pointing an agent at the style-guide and
seeing that it makes great choices when revising a document.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Added a documentation style guide covering voice and tone, page
structure, and guidance for writing procedures, code, tables, diagrams,
media, and links.
* Added a word list with preferred spelling, capitalization, and usage,
including guidance on inclusive and concise language.
* Added recommendations for reviewing documentation drafts and runnable
examples.
* Replaced the existing word list page’s content with a link to its new
location in the style guide.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
2026-09-25 20:04:52 -07:00