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? Docs authoring skills / contributor enablement. ## What is the current behavior? - The "Write the docs" bar asks for runnable examples, but skills stop at lint/build (`/review-the-docs`) and do not execute inline MDX snippets. - Cross-repo product grounding depends on a single-repo read; there is no skill guidance for `supabase/universe` when you have Supabase org access. ## What is the new behavior? - Adds `/test-the-docs` to run procedural snippets against a Docker-isolated local stack (`supabase start` in a temp project), with Verification table output. - Teaches `/pm-the-docs` cross-repo product lookup (`reference/universe-lookup.md`) with a capability gate: universe when you have Supabase org access (or a local clone), otherwise a first-class OSS public-search path. `ask-the-docs` stays docs-app only. - Updates the checklist mirror, CONTRIBUTING skills table, and light handoffs in `write-the-docs` / `review-the-docs`. ## Additional context Vault "Write the docs" checklist updated separately; Linear document needs a Claude-side delta sync after merge. ### Test plan - [ ] Symlinks: `.claude/skills` is a Git symlink to `../.agents/skills`; `.claude/skills/test-the-docs/SKILL.md` resolves - [ ] No hardcoded personal absolute paths under `.agents/skills/` - [ ] CONTRIBUTING lists skills including `/test-the-docs` - [ ] `/pm-the-docs` references `universe-lookup.md` capability gate; `/ask-the-docs` Related points there for product lookup - [ ] OSS path: no universe clone / submodule init when `gh api repos/supabase/universe` fails - [ ] Docker up: dry-run `/test-the-docs` against one MDX page with SQL/CLI (optional smoke) - [ ] Docker down: skill documents graceful `deferred` (not silent skip) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added documentation guidance for testing runnable examples in an isolated local environment. - Added cross-repository product lookup guidance, including capability checks and source tracking. - Added verification report templates with standardized results and environment details. - **Documentation** - Expanded authoring, review, self-review, and contribution guidance. - Improved safety instructions for local snippet testing, including credential protection and cleanup. - Updated repository layout, tooling, links, and workflow references for documentation skills. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Nik Richers <nik@validmind.ai>
2.4 KiB
2.4 KiB
Snippet classes
Classify each extracted artifact before running it.
| Class | Meaning | Run? |
|---|---|---|
runnable-local |
Complete CLI, SQL, or script that works against a local stack or temp dir | Yes |
runnable-with-setup |
Needs migrations, seed data, .env, or prior steps from the same page |
Yes, after setup |
example-app |
$CodeSample or path under examples/ |
Build (npm install && npm run build) |
illustrative-only |
Incomplete on purpose, omits required context, or is conceptual | No |
deferred |
Needs production, paid feature, destructive op, or missing required prerequisite | No — record reason |
Safety
- Prefer read-only SQL and non-destructive CLI flags.
- Never target a linked hosted/production project from this skill.
- Do not print secrets (service role keys, PATs) into Verification notes or logs.
- Mark incomplete copy-paste blocks
illustrative-onlyrather than forcing a run that cannot succeed. - Execute fences only inside the Compose runner per sandbox-setup.md. Restrict
curl/wgetto filtered stack URLs; restrictnpm/npx/nodetoexample-appmounts. Mark out-of-policy fencesdeferred.
Language heuristics
| Fence | Typical class |
|---|---|
sql |
runnable-local or runnable-with-setup if ordered migrations |
bash / sh |
runnable-local if self-contained; else deferred / illustrative-only |
javascript / typescript / tsx / jsx |
Often illustrative-only unless a full runnable script or example-app path |
mermaid |
Skip (not executable) |