Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 93
  • 115k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-docs

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install test-the-docs in Claude Code

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

A

No 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 →
hugging-face-datasetssickn33
94

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.

AAA Skill 50k
db-repairgarrytan
94

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.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

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.

AAA Skill 116k
fix-slow-queriespaperclipai
94

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.

AAA Skill 119k
prisma-8prisma
94

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.

AAA Skill 48k

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.

test-the-docs Install

Add to stack

Loading.