test-the-docs
Skill by supabase
Runs runnable code snippets from Supabase docs pages inside disposable Docker Compose containers and writes a verification report. Built for docs contributors who need to check CLI, SQL and code samples before a PR.
Install test-the-docs
Built from the published package, never by AI.
git clone --depth 1 https://github.com/supabase/supabase /tmp/supabase && mkdir -p ~/.claude/skills && cp -r /tmp/supabase/.agents/skills/test-the-docs ~/.claude/skills/test-the-docsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/supabase/supabase /tmp/supabase && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/supabase/.agents/skills/test-the-docs ~/.gemini/antigravity-cli/skills/test-the-docsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
test-the-docs is a skill that runs the runnable procedural content in docs pages inside disposable containers, not on the host shell and not against production. It scopes changed MDX files, extracts fenced bash, sh, sql, JavaScript, TypeScript, tsx and jsx blocks, and classifies each one. Each artifact runs through a sandbox script with a default time limit of 60 seconds, or longer for example app builds.
The sandbox uses a runner container and, when a block needs a database or API, a local Supabase stack started with supabase start. Connection URLs are captured inside the runner, and credential fields are kept out of notes and logs. The skill ends by writing a verification report for the PR body or self-review note. It is for people drafting or reviewing docs, and it complements review-the-docs rather than replacing it.
Written from the project's SKILL.md and checked against it.
What it can do
- Scope changed docsSelects changed MDX files under apps/docs/content from a git diff or explicit paths.
- Extract and classify snippetsLists runnable fenced blocks and assigns each one a class such as runnable-local or example-app.
- Sandbox executionRuns each block through the Compose sandbox with a time limit, never on the host shell.
- Local Supabase stackStarts a local stack with supabase start inside the runner when a block needs a database or API.
- Verification reportWrites a report of exit codes, observed and expected behavior for the PR body or self-review note.
What you need
- Docker
- Docker Compose
- A host session that is not running as root
- Node.js inside the runner for example app builds
Try asking
- Test the docs in this PR and write a verification report.
- Fact-check the SQL and CLI samples on the changed pages.
- Run the examples in the changed MDX files in the sandbox.
Good to know
- Never runs against production or hosted projects.
- Refuses to run when the host is running as root.
- Product bugs found while testing are filed separately, not fixed in the docs.
- Does not replace review-the-docs build and review checks.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/test-the-docs/SKILL.md, .agents/skills/test-the-docs/sandbox/run.sh. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
reference/sandbox-setup.md6 KB -
reference/snippet-classes.md2 KB -
reference/verification-report.md2 KB -
sandbox/.empty/.keep71 B
Show all 9 files
-
sandbox/.gitignore22 B -
sandbox/Dockerfile1 KB -
sandbox/compose.yaml2 KB -
sandbox/run.sh6 KB
Alternatives to test-the-docs
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
test-the-docs: common questions
Does test-the-docs run snippets on my computer?
No. The source says fenced blocks run inside disposable Docker containers, not on the host shell.
Do I need a global Supabase CLI installed?
The source says not to defer example apps just because the host lacks a global Supabase CLI. Supabase commands run inside the runner container.
What happens if a snippet hangs?
Each artifact is bounded by a time limit. On timeout the process group is killed and the artifact is recorded as fail or deferred with a reason.
How do I install test-the-docs?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is test-the-docs free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is test-the-docs safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to test-the-docs?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
