Files
supabase/.agents/skills/test-the-docs/reference/verification-report.md
Nik RichersandNik Richers 0322720743 docs: add test-the-docs skill and pm-the-docs universe lookup (#49913)
## 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>
2026-09-04 00:34:45 +00:00

39 lines
1.9 KiB
Markdown

# Verification report
Paste into the PR body or self-review note under a **Verification** heading.
## Template
```markdown
## Verification (`/test-the-docs`)
| Snippet / step | Class | Sandbox | Result | Notes |
| ----------------------------- | -------------- | --------------------------------- | -------- | ------------------------ |
| e.g. `create type …` SQL | runnable-local | Compose runner + `supabase start` | pass | |
| e.g. `supabase db diff` | runnable-local | Compose runner + local stack | fail | product bug → link issue |
| e.g. paid Dashboard-only step | deferred | — | deferred | needs hosted project |
**Tier A path:** <one-line description of the end-to-end path run>
**Environment:** Docker Desktop <version if known>; compose sandbox (`sandbox/run.sh`); fences in-container only
```
Do **not** put secrets (`JWT_SECRET`, `ANON_KEY`, `SERVICE_ROLE_KEY`, access tokens) in Notes or Environment.
## Results
| Result | Meaning |
| ---------- | -------------------------------------------------------------------- |
| `pass` | Command exited 0 and matched expected behavior |
| `fail` | Ran but wrong output / non-zero exit — docs wrong **or** product bug |
| `deferred` | Not run; reason required in Notes |
| `skipped` | Out of scope (`illustrative-only`) |
## Product bugs
If the snippet matches the code and still fails:
1. Prefer linking an existing issue in the owning repo.
2. Otherwise note the repro in the PR and file/follow up with the product owner.
3. Do not "fix" the docs to hide a real platform bug without calling it out.