Files
supabase/.agents/skills/pm-the-docs/reference/write-the-docs-checklist.md
3089aa3f67 docs(skills): add /kb to the write-the-docs content types and checklist (#53990)
## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

**Skill update.** The `write-the-docs` and `edit-the-docs` skills and
the `pm-the-docs` checklist now say when content belongs in `/kb`
instead of `/docs`. The docs skills also get a consistency pass.

Closes DOCS-1559.

## What is the current behavior?

The skills and the checklist do not mention `/kb`. Writers get no prompt
to put comparisons or migration guides there. The skills also still
place troubleshooting in `apps/docs`, disagree about which skill owns
the Shape stage, and link to skills that are not in this repo.

## What is the new behavior?

| File | Change |
|---|---|
| `.agents/skills/write-the-docs/reference/content-type-gate.md` | Adds
a `/kb` row and a short "What goes in `/docs` and what goes in `/kb`"
section. Troubleshooting now points to `/kb`. |
| `.agents/skills/write-the-docs/SKILL.md` | Adds `/kb` to the content
types. `/kb` guides use the template gate, and `/kb` FAQs are exempt.
Phase 2 sends `/kb` content to `apps/kb/AGENTS.md`. Removes duplicate
steps and links to skills outside this repo. |
| `.agents/skills/write-the-docs/reference/drafting-mechanics.md` | Says
oxfmt instead of Prettier |
| `.agents/skills/edit-the-docs/SKILL.md` | Adds a content-type gate
check before additions |
| `.agents/skills/pm-the-docs/reference/write-the-docs-checklist.md` |
Adds a stage 2 (Shape) item to decide if content belongs in `/kb`. Shape
now points to `/pm-the-docs` for placement decisions. |
| `.agents/skills/pm-the-docs/SKILL.md`,
`.agents/skills/ask-the-docs/SKILL.md` | Agree that `pm-the-docs` owns
Frame and Shape, and `ask-the-docs` owns docs-app mechanics. Removes
links to skills outside this repo. |
| `.agents/skills/ask-the-docs/reference/*.md` | Says oxfmt instead of
Prettier, updates the troubleshooting known issue, and removes links to
skills outside this repo |

## Additional context

Skill docs only. No preview needed. Troubleshooting now lives in `/kb`
and takes no direct contributions. The skills now say so.

### Test plan

- [ ] Read the diffs. The `/docs` and `/kb` rule matches the
content-type gate.
- [ ] `grep -rn docs-agent-skills
.agents/skills/{write,ask,pm}-the-docs` returns nothing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com>
2026-11-25 23:11:12 +00:00

4.6 KiB

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), 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.

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).

  • 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)
  • 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)
  • 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 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 (/pm-the-docs, /ask-the-docs, /write-the-docs, /test-the-docs, /review-the-docs).