mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## 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>
45 lines
1.5 KiB
Markdown
45 lines
1.5 KiB
Markdown
# Drafting mechanics
|
|
|
|
Mechanics that come up during drafting but aren't worth duplicating from the
|
|
style guide or `ask-the-docs`. For style rules, see
|
|
[`apps/docs/style-guide/`](../../../../apps/docs/style-guide/README.md). For nav
|
|
wiring, partials, and file placement, see `ask-the-docs`'s `app-map.md` and
|
|
`federated-docs.md`.
|
|
|
|
## Link paths
|
|
|
|
- Use `/docs/...` paths for pages in Supabase docs.
|
|
- Use site-root paths such as `/dashboard` for pages outside docs.
|
|
- Use descriptive link text and sparse admonitions with the appropriate severity.
|
|
|
|
## Anchor stability
|
|
|
|
Anchor IDs are generated from heading text at render time, and nothing in CI
|
|
checks that `#anchor` links still resolve. Before renaming, removing, or
|
|
substantially rewording a heading, run:
|
|
|
|
```bash
|
|
grep -rn "#<old-anchor-slug>" apps/docs/content
|
|
```
|
|
|
|
Update every in-page and cross-file match. If a heading needs a stable anchor
|
|
independent of its wording, pin it with a custom anchor, for example
|
|
`## Some heading [#some-heading]`.
|
|
|
|
## Lint and format
|
|
|
|
From `apps/docs`:
|
|
|
|
```bash
|
|
pnpm build:guides-markdown
|
|
```
|
|
|
|
`pnpm build:guides-markdown` only applies to guides, explainers, and tutorials.
|
|
|
|
From the repository root, run `pnpm format` to apply oxfmt to changed MDX
|
|
files. This enforces repo-wide formatting rules.
|
|
|
|
Check terminology against [`WORD_LIST.md`](../../../../apps/docs/style-guide/WORD_LIST.md)
|
|
yourself. Treat its replacements as suggestions when context matters: rewrite the
|
|
sentence instead of applying one that changes its technical meaning.
|