# Write the docs A practical six-stage checklist and quality standard for planning, drafting, and reviewing product documentation. **P** = Product **E** = Engineering **Docs** = Docs team ## Authoring Six short stages. Keep it lightweight; the point is to make good docs the default, not to add ceremony. _Self-serve first ([agent skills](../../../../apps/docs/CONTRIBUTING.md#ai-agent-skills-for-docs-authoring)), ask your docs team's PM as needed._ ## What good looks like - The **why** is explicit: a reader learns what problem this solves and when to reach for it, not only the steps. - The content **type is deliberate** and consistent within the page. - **Audience and prerequisites** are stated up front. - **Examples are runnable and have been tested** (commands, code, expected result) - **Correct stage** like GA is stated; limitations are named honestly. - The page **lives in the right place** in the IA and links to and from related pages. - Terminology and formatting match the [style guide](../../../../apps/docs/style-guide/README.md). ### 1. Frame _Skills:_ `/ask-the-docs` for how the docs surface works today; `/pm-the-docs` for audience, stage, and cross-cutting scope (cross-repo span via universe when accessible — see [universe-lookup.md](universe-lookup.md)). - [ ] P: State the product stage (private/public alpha, beta, GA) - [ ] P: Name the audience and the job they are trying to do - [ ] P: Write one line on _why_ the feature exists (the problem it solves), not only what it does ### 2. Shape _Skills:_ `/pm-the-docs` for content type and placement decisions; `/ask-the-docs` for docs-app architecture and where content lives. - [ ] P: Pick the content type(s): tutorial (learning), how-to (a task), reference (lookup), explanation (the why). Do not mix types on one page (refer to [Diátaxis](https://diataxis.fr/)) - [ ] P: Decide where the page lives in the existing IA and what links in and out (avoid orphan pages) - [ ] P: Decide if part of the content belongs in `/kb` instead of `/docs`: comparisons, migration guides, or anything where the answer depends on the user's stack. Product facts stay in `/docs`, and `/kb` links to them ([content-type gate](../../write-the-docs/reference/content-type-gate.md#what-goes-in-docs-and-what-goes-in-kb)) - [ ] P: List prerequisites and assumed knowledge up front ### 3. Draft _Skill:_ `/write-the-docs` to draft net-new content grounded in Linear and the code. - [ ] P: Lead with the why and the outcome, then the how/what (product story first) - [ ] P: Include at least one runnable, copy-pasteable example that you have actually run (or will run in Self-review via `/test-the-docs`) - [ ] P/E: Cross-repo behavior confirmed via universe when accessible, else public `gh search` / named product repos when the feature is not confined to `supabase/supabase` (lookup via `/pm-the-docs`, not `/ask-the-docs`) - [ ] E: Contribute technical depth and verify accuracy (APIs, limits, edge cases) - [ ] P: Call out the current stage inline and any known limitations ### 4. Self-review against the bar _Skills:_ `/review-the-docs` for [local self-review](../../review-the-docs/SKILL.md#local-self-review-no-open-pr) before opening the PR; `/test-the-docs` to run snippets and produce a verification report. - [ ] P/E: Check the draft against "What good looks like" above before opening the PR - [ ] P/E: `/test-the-docs` run; verification report ready for the PR body - [ ] P/E: Follow Authoring Experience standards and tooling when available ### 5. PR review _Skill:_ `/review-the-docs` to triage, classify, verify the build, and report. - [ ] P/E: Open the PR and request review per the rules of engagement - [ ] Docs: Review against the published bar ### 6. Keep it honest - [ ] P: Keep the product launch checklist's "start on day 1" docs gate honest through ship (update as stage or behavior changes) ## Ask the Docs PM **Self-serve when:** the checklist above is clear, standards exist, and you know the product stage and audience. **Ask when:** scope or stage is unclear, you need a review path, the bar is ambiguous, or the launch docs touch cross-cutting surfaces (quick starts, API keys, tutorials, onboarding, platform concepts). **What to expect:** the docs PM is the point of contact for questions, skills enablement, and review against the bar. **Where to ping:** your team's PR-review channel and current docs PM — check your contributor guide for who that is today. ## Resources Skills for this checklist: [AI agent skills for docs authoring](../../../../apps/docs/CONTRIBUTING.md#ai-agent-skills-for-docs-authoring) (`/pm-the-docs`, `/ask-the-docs`, `/write-the-docs`, `/test-the-docs`, `/review-the-docs`).