Files
supabase/.agents/skills/ask-the-docs/reference/docs-app-direction.md
Nik RichersandNik Richers cf36ad9e52 feat(skills): move Write the docs skills into the monorepo — DO NOT REVIEW YET (#48914)
## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

Adds four AI agent skills that support docs contributors across the
authoring lifecycle, intended to lower the barrier to entry for
contributing to our docs.

Closes DOCS-1287.

## What is the current behavior?

Our process for writing docs is somewhat undefined beyond some general
guidance in CONTRIBUTING.md and we don't make as easy to contribute to
our docs as we could. As a result, content often needs additional
changes during PR reviews or requires further revisions after merging.

The four AI agent skills in this PR already existed in a private repo
where I've been testing them but they were not previously available for
general use until now.

## What is the new behavior?

- Four skills added under `.agents/skills/`, symlinked from
`.claude/skills/` and `.cursor/skills/` (same pattern as the existing
`vitest` skill).
- `ask-the-docs`: answers architecture and design questions about
apps/docs (MDX pipeline, content components, federated docs) and checks
whether a proposed change fits existing docs app patterns.
- `write-the-docs`: drafts net-new or substantially rewritten docs
content for a feature or launch, grounded in the Linear ticket, the
actual code, and the docs style guide.
- `review-the-docs`: runs a local, PR-type-specific review checklist
against any open supabase/supabase docs PR (markdown pipeline, MDX
content, tutorials, examples, Studio links) and produces a consolidated
report.
- `pm-the-docs`: supports "Write the docs" authoring process across the
different phases.
- `apps/docs/CONTRIBUTING.md` gets a new "AI agent skills for docs
authoring" section mapping each skill to its checklist stage
- Cross-references to skills that stay in `docs-agent-skills`
(`work-linear-issue`, `audit-docs-ia`, `create-pull-request`,
`proof-it-works`, `pm-the-docs-full`) now point there via absolute
GitHub links instead of relative paths

## Additional context

- Companion PR:
[supabase/docs-agent-skills#28](https://github.com/supabase/docs-agent-skills/pull/28).
Removes the three moved skills, renames `pm-the-docs` to
`pm-the-docs-full`, and fixes now-dangling inbound links.
- Worktree:
`~/GitHub/supabase/supabase-worktrees/nikrichers/docs-1287-move-skills-mentioned-in-write-the-docs-from-docs-agent`
- Opened as draft: this is a docs-authoring-tooling change with no
runtime/build surface. Flip to ready once you've sanity-checked the
skill content.

### Test plan

- [ ] `ls -la
.claude/skills/{ask-the-docs,pm-the-docs,write-the-docs,review-the-docs}`
resolves to `.agents/skills/...`
- [ ] Open a fresh Claude Code session with cwd in this repo and confirm
`/ask-the-docs`, `/pm-the-docs`, `/write-the-docs`, `/review-the-docs`
are available
- [ ] Read the new section in
[`apps/docs/CONTRIBUTING.md`](apps/docs/CONTRIBUTING.md) in context
- [ ] Spot-check
`.agents/skills/pm-the-docs/reference/write-the-docs-checklist.md` has
no `linear.app` links and carries the snapshot disclaimer

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
2026-08-12 22:48:30 +00:00

2.8 KiB

apps/docs direction and vision

Where the docs app is heading and what new work should align with. For the current state of broken or fragile systems, see known-issues.md. For feature-design best practices, see adding-features.md.

Refactoring vision

  • Docs-only project. The long-term goal is for the documentation project to handle only documentation. Other functionalities (specific APIs, etc.) should migrate to sub-projects.
  • Ongoing surface reduction. A substantial portion of legacy critical code has already been refactored, and remaining work continues to reduce surface area rather than add to it.
  • One-to-one markdown fidelity. Improvements to generate-guides-markdown aim for exact correspondence between the rendered guide and the LLM-oriented markdown export. New components that render in MDX should serialize to markdown with the same semantics.

Working norms

  • Work inside apps/docs/, not the repo root. Simpler terminal commands, clearer debugging scope. Most docs commands assume you've cd'd into the app.
  • AI use is encouraged for explaining complex or legacy sections of the codebase. Considered effective for mechanical, non-creative tasks.
  • Historical context. For decisions older than the current refactoring wave, check with longer-tenured maintainers — most current code has clearer provenance.

What this means for new work

When proposing changes that touch apps/docs:

  1. Reuse existing seams before adding new ones. Markdown export, MDX pipeline, lint, codegen, and federated fetch are all places where new surface area gets challenged. See adding-features.md "Inventory before you write."
  2. Keep markdown fidelity in mind. Anything that changes how a guide renders should also change how it serializes to markdown — or have a clear reason it doesn't.
  3. Don't build against the broken parts. See known-issues.md. Search, Sentry instrumentation, and federated link handling are all in flux. New features should not depend on their current shape.
  4. Don't extend tech debt. Component scatter, parallel pipelines, and bespoke render paths are existing problems — don't add to them.
  5. Refactor only what the feature requires. Bundling unrelated cleanup into a feature PR muddies review and gets cut anyway. Open a separate refactor PR if the cleanup matters.