← Back to the Hub

supabase 0.1.1

The Supabase repository's agent setup: docs and Studio skills, generated files kept read-only, the Supabase MCP server.

Owner: Baudrier AI · Apache-2.0 · from supabase/supabase at b6270f4

Claude Code 7 of 7 guards holdCodex 7 of 7 guards holdGitHub Copilot 7 of 7 guards hold

Install

$ uv tool install baudrier # once

$ baudrier install supabase --dry # look first: nothing is written

$ baudrier install supabase # for the agents your repository uses; or --to claude|codex|copilot|generic

It shows what it will write, hook scripts first, and asks before it writes.

Last step: paste the line the install prints last into your agent, opened in your repository. It fits the harness to your repository. Don’t skip it. For Claude Code:

Read .baudrier/harness/supabase/FINISH_SETUP.claude.md and follow it.

For another agent, the file ends in .codex.md, .copilot.md or .generic.md.

What each agent keeps

What Codex rebuilds or loses (6)
  • Edit(packages/api-types/types/**) rebuilt, a PreToolUse hook that refuses a patch adding, changing, moving or deleting a file this rule covers (Codex rules cover shell commands only). A shell command that writes the file is not checked, as in Claude Code
  • Edit(**/routeTree.gen.ts) rebuilt, a PreToolUse hook that refuses a patch adding, changing, moving or deleting a file this rule covers (Codex rules cover shell commands only). A shell command that writes the file is not checked, as in Claude Code
  • Edit(**/__generated__/**) rebuilt, a PreToolUse hook that refuses a patch adding, changing, moving or deleting a file this rule covers (Codex rules cover shell commands only). A shell command that writes the file is not checked, as in Claude Code
  • Edit(apps/docs/features/docs/generated/**) rebuilt, a PreToolUse hook that refuses a patch adding, changing, moving or deleting a file this rule covers (Codex rules cover shell commands only). A shell command that writes the file is not checked, as in Claude Code
  • Edit(apps/www/.generated/**) rebuilt, a PreToolUse hook that refuses a patch adding, changing, moving or deleting a file this rule covers (Codex rules cover shell commands only). A shell command that writes the file is not checked, as in Claude Code
  • Edit(supabase/functions/common/database-types.ts) rebuilt, a PreToolUse hook that refuses a patch adding, changing, moving or deleting a file this rule covers (Codex rules cover shell commands only). A shell command that writes the file is not checked, as in Claude Code
What GitHub Copilot rebuilds or loses (6)
  • Edit(packages/api-types/types/**) rebuilt, a preToolUse hook that refuses an edit or a new file this rule covers. A shell command that writes the file is not checked, as in Claude Code
  • Edit(**/routeTree.gen.ts) rebuilt, a preToolUse hook that refuses an edit or a new file this rule covers. A shell command that writes the file is not checked, as in Claude Code
  • Edit(**/__generated__/**) rebuilt, a preToolUse hook that refuses an edit or a new file this rule covers. A shell command that writes the file is not checked, as in Claude Code
  • Edit(apps/docs/features/docs/generated/**) rebuilt, a preToolUse hook that refuses an edit or a new file this rule covers. A shell command that writes the file is not checked, as in Claude Code
  • Edit(apps/www/.generated/**) rebuilt, a preToolUse hook that refuses an edit or a new file this rule covers. A shell command that writes the file is not checked, as in Claude Code
  • Edit(supabase/functions/common/database-types.ts) rebuilt, a preToolUse hook that refuses an edit or a new file this rule covers. A shell command that writes the file is not checked, as in Claude Code
What Any agent rebuilds or loses (6)
  • Edit(packages/api-types/types/**) lost, written in AGENTS.md as an instruction; nothing enforces it
  • Edit(**/routeTree.gen.ts) lost, written in AGENTS.md as an instruction; nothing enforces it
  • Edit(**/__generated__/**) lost, written in AGENTS.md as an instruction; nothing enforces it
  • Edit(apps/docs/features/docs/generated/**) lost, written in AGENTS.md as an instruction; nothing enforces it
  • Edit(apps/www/.generated/**) lost, written in AGENTS.md as an instruction; nothing enforces it
  • Edit(supabase/functions/common/database-types.ts) lost, written in AGENTS.md as an instruction; nothing enforces it
The 7 guard cases
CaseMustClaude CodeCodexGitHub Copilot
deny rule Edit(packages/api-types/types/**) blocks editing `packages/api-types/types/example.txt`block✓ blocks✓ blocks✓ blocks
deny rule Edit(**/routeTree.gen.ts) blocks editing `src/routeTree.gen.ts`block✓ blocks✓ blocks✓ blocks
deny rule Edit(**/__generated__/**) blocks editing `src/__generated__/example.txt`block✓ blocks✓ blocks✓ blocks
deny rule Edit(apps/docs/features/docs/generated/**) blocks editing `apps/docs/features/docs/generated/example.txt`block✓ blocks✓ blocks✓ blocks
deny rule Edit(apps/www/.generated/**) blocks editing `apps/www/.generated/example.txt`block✓ blocks✓ blocks✓ blocks
deny rule Edit(supabase/functions/common/database-types.ts) blocks editing `supabase/functions/common/database-types.ts`block✓ blocks✓ blocks✓ blocks
an ordinary file can be editedallow✓ allows✓ allows✓ allows

The checks are the publisher's own run: the hub never runs a harness. baudrier selftest runs them again in your repository.

Refused 6

  • Edit(packages/api-types/types/**)
  • Edit(**/routeTree.gen.ts)
  • Edit(**/__generated__/**)
  • Edit(apps/docs/features/docs/generated/**)
  • Edit(apps/www/.generated/**)
  • Edit(supabase/functions/common/database-types.ts)

Skills 24

  • api-types Maintain Supabase API types. Use when changing generated API type declarations, OpenAPI schemas, or investigating API type deployment drift.
  • ask-the-docs Answer questions about the Supabase docs app (apps/docs) using documented architecture, build pipeline, and review-pattern notes, and apply feature-design principles (codebase reuse, coding minimalism) when proposing or critiquing changes. Use when the user asks "how does X work in the docs app?", "where does Y live?", "is this approach OK for the docs app?", or before writing non-trivial changes under apps/docs/ — especially anything touching the MDX pipeline, markdown generation, content components, federated docs, or contributor-facing authoring patterns, or feature flags and experiments. Can answer architecture questions with Mermaid diagrams when helpful.
  • clickhouse-logs-queries Write, review, and migrate Supabase logs queries against the ClickHouse-backed `logs` table (the `logs.all.otel` analytics endpoint). Use this whenever a task involves Logs Explorer SQL, the `log_attributes` map, querying a log `source` (edge_logs, postgres_logs, auth_logs, etc.), translating an old BigQuery `cross join unnest(metadata)` logs query to ClickHouse, or wiring analytics log SQL in `apps/studio/data/logs` and `apps/studio/components/interfaces/Settings/Logs`. Reach for it even when the user just says "logs query", "Logs Explorer", or pastes a BigQuery logs query to convert, not only when they name ClickHouse.
  • code-review Review repository changes for correctness, type boundaries, structural quality, and meaningful test coverage. Use for read-only code or PR assessments and development-task readiness checks.
  • copywriting Write or audit UI copy (buttons, labels, empty states, error messages, tooltips, form text) anywhere in the monorepo. Load it before shipping or reviewing any user-facing text — including when copy is incidental to the task, like a new feature that adds buttons, toasts, dialogs, or validation messages.
  • dev-toolbar-review Safety rules for the dev toolbar, PostHog client, and feature flags. Use when writing or reviewing any change to packages/dev-tools/, packages/common/posthog-client.ts, or packages/common/feature-flags.tsx. Covers environment guards, flag override cookies, telemetry event subscription, and SSE stream safety.
  • edit-the-docs Restructure, reorder, and improve existing Supabase docs pages under apps/docs: clarity, connective text, section grouping, and brevity. Use when asked to edit, reorganize, restructure, tighten prose, add glue between sections, or split a page edit into stacked PRs. Not for net-new feature drafts, which belong to write-the-docs, and not for PR triage or verification, which belong to review-the-docs.
  • pm-the-docs Docs-PM decision support for the "Write the docs" authoring process — makes audience, stage, and cross-cutting scope calls during the Frame and Shape stages (including cross-repo product lookup via universe when accessible, else the public OSS path), and helps decide when a docs question needs to self-serve vs. escalate to a docs PM. Use when framing a new docs page or launch, deciding what product stage or audience a feature targets, judging whether a docs question needs PM sign-off, or confirming which product repos a launch spans.
  • react-hook-form Correct React Hook Form usage anywhere in the monorepo — data flow, subscriptions, reset, dirty state, number inputs, and controlled-input rules. Load this BEFORE writing or modifying ANY form code, adding a field to an existing form, touching watch/useWatch/formState/getValues/setValue/reset, wiring a form into a dialog or sheet, or building a submit/cancel footer — even when the change looks trivial. The codebase contains widespread RHF anti-patterns; without this skill you will copy them. For form layout and which components to use, also load studio-ui-patterns.
  • review-the-docs Review Supabase docs changes locally in your `supabase/supabase` checkout — either an open PR (triage, classify, verify) or your own branch before opening a PR (local self-review). Covers markdown pipeline, MDX content, tutorials, examples, Studio links, and docs tooling. Use when asked to review docs PRs, self-review a draft branch, check who has approved, verify build output, or evaluate supabase/supabase documentation changes.
  • safe-sql-execution Use whenever code will build, return, fetch, or execute SQL that runs against a user's real Postgres database — even when the request reads like an ordinary feature or bug fix and never says "security," "injection," or "SafeSqlFragment." This covers: writing or editing any pg-meta function, query builder, or endpoint that builds/returns SQL for database objects (tables, views, functions, DB triggers, indexes, RLS policies); interpolating a schema/table/column/search/route-param value into SQL text; storing, fetching, or re-running SQL that round-trips from the database (a policy's definition, a function/view definition, a snippet's saved content); and any "Run"/"Apply"/"Execute" action that sends SQL to a project's database (SQL editor run-selection, policy editor apply, snippet runner). Load this BEFORE writing such code, not only when reviewing a finished diff. Skip only for changes that never touch SQL text or execution — styling, unrelated data hooks, non-SQL form validation, or UI layout work.
  • studio-e2e-tests Write and run Playwright E2E tests for Supabase Studio (e2e/studio). Use when asked to run e2e tests, write new E2E tests, or debug flaky or failing Playwright tests. Covers running commands, avoiding race conditions, waiting strategies, selectors, helper functions, and CI vs local differences.
  • studio-error-handling Error display and troubleshooting pattern for Supabase Studio. Use when showing a failed API request or query error in the UI (AlertError, toast, inline message), adding troubleshooting steps for a new error type, or wiring up the AI assistant debug button from an error state.
  • studio-mock-api-tests Component tests for Supabase Studio that mock API requests at the network layer with MSW. Use when writing or reviewing a component test that exercises a React Query hook or mutation, or when migrating an existing test away from vi.mock('@/data/...'). Covers the customRender + addAPIMock template and the jsdom/MSW gotchas that cost real debugging time.
  • studio-queries React Query conventions for data fetching in Supabase Studio. Use when writing or reviewing query hooks, mutation hooks, or query keys in apps/studio/data/ — including adding the first fetch or mutation for a new API endpoint or resource. Covers queryOptions pattern, keys.ts structure, mutation hook template, and imperative fetching.
  • studio-shortcuts Keyboard shortcut conventions for Supabase Studio. Use when adding a repeated user action, toolbar action, list/table operation, or sub-page navigation that should have shortcut coverage, when registering or changing a shortcut, or when adding a search/filter Input (which needs the staged-Escape handler). Covers the shortcut registry, useShortcut, ShortcutTooltip/ShortcutBadge, the reference sheet, and collision rules.
  • studio-testing Testing strategy for Supabase Studio. Use when selecting, writing, or reviewing tests, or extracting logic for testing. Covers meaningful unit, component, and E2E coverage and scoped verification.
  • studio-ui-patterns Design system UI patterns for Supabase Studio. Use when building or updating pages, forms, tables, charts, empty states, navigation, cards, alerts, or side panels (sheets). Covers layout selection, component choice, and placement conventions.
  • telemetry-standards PostHog event tracking standards for Supabase Studio. Use when adding useTrack() calls, defining events in packages/common/telemetry-constants.ts, implementing tracking for a new feature, or reviewing PRs for telemetry compliance. Covers event naming, property conventions, privacy rules for event properties, URL state and consent, approved patterns, and implementation guide.
  • test-the-docs Execute runnable docs snippets and examples inside a disposable Docker Compose sandbox (runner container + local Supabase stack via `supabase start`). Use after Draft or during Self-review when asked to test the docs, fact-check CLI/SQL/code samples, or produce a verification report for a docs PR. Complements review-the-docs build and review checks; does not replace them.
  • turbo-scripts Conventions for package.json scripts and turbo.jsonc tasks in the monorepo. Use when adding, changing or reviewing scripts in any apps/* or packages/* package.json, any turbo.jsonc (root or per-package), pre/post hooks, script chains (&&, run-p), maybe-turbo, or turbo task inputs, outputs, env and caching. Includes an audit script that flags scripts that should use maybe-turbo.
  • vercel-composition-patterns React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.
  • vitest Vitest API and config reference (Jest-compatible) — mocking with vi.*, spies, fake timers, coverage configuration, fixtures, snapshots, and test filtering. Use for Vitest API and configuration questions anywhere in the monorepo; for Studio-specific test strategy and component-test setup, start with studio-testing and studio-mock-api-tests.
  • write-the-docs Draft new or updated Supabase docs content for a feature or launch, grounded in product intent (Linear when available), a read of the actual code, and the docs style guide. Use when asked to write docs for a new feature, a product launch, or a Linear ticket that needs net-new content rather than a bug fix. Not for implementing existing docs bug reports. Not for restructuring existing pages — use edit-the-docs for that.

MCP servers 1

  • supabase streamable-http

Files 83

  • 2.4 kB
  • 14.3 kB
  • 5.0 kB
  • 11.3 kB
  • 1.8 kB
  • 2.2 kB
  • 9.9 kB
  • 10.2 kB
  • 16.8 kB
  • 7.3 kB
  • 4.4 kB
  • 2.9 kB
  • 6.1 kB
  • 10.9 kB
  • 6.5 kB
  • 6.9 kB
  • 5.6 kB
  • 3.7 kB
  • 10.7 kB
  • 5.9 kB
  • 3.5 kB
  • 9.5 kB
  • 3.6 kB
  • 6.3 kB
  • 8.0 kB
  • 594 B
  • 6.1 kB
  • 21.2 kB
  • 5.2 kB
  • 6.0 kB
  • 4.1 kB
  • 4.7 kB
  • 15.9 kB
  • 20.6 kB
  • 16.8 kB
  • 11.1 kB
  • 8.9 kB
  • 14.1 kB
  • 7.0 kB
  • 3.7 kB
  • 11.9 kB
  • 6.9 kB
  • 18.1 kB
  • 5.2 kB
  • 6.3 kB
  • 2.5 kB
  • 1.9 kB
  • 71 B
  • 1.1 kB
  • 2.1 kB
  • 6.0 kB
  • 5.0 kB
  • 3.9 kB
  • 2.9 kB
  • 2.3 kB
  • 2.6 kB
  • 1.9 kB
  • 2.4 kB
  • 953 B
  • 5.0 kB
  • 2.7 kB
  • 3.2 kB
  • 136 B
  • 4.4 kB
  • 4.3 kB
  • 5.0 kB
  • 4.6 kB
  • 4.6 kB
  • 3.4 kB
  • 3.5 kB
  • 3.5 kB
  • 4.7 kB
  • 4.5 kB
  • 4.0 kB
  • 4.2 kB
  • 4.4 kB
  • 3.5 kB
  • 3.5 kB
  • 4.8 kB
  • 3.6 kB
  • 18.6 kB
  • 3.1 kB
  • 1.5 kB
Loading harness.yaml...

All files as JSON · card.json

Apache-2.0 (recognised from the licence file), its licence file travels with every install; from supabase/supabase at b6270f4, absorbed on 2026-11-27. The files are the source repository authors' work, copied unchanged; Baudrier AI is not affiliated with that project.