RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/CLAUDE.md/supabase/supabase

CLAUDE.md

.claude/CLAUDE.md
CLAUDE.md

Quality

97/100

Scores the file, not the repository.

Length

564 words

7 headings · 1 code blocks

Repository

107k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
supabase/supabase/.claude/CLAUDE.mdRawGitHub
1# Supabase Monorepo
2 
3pnpm 11 + Turborepo monorepo. Requires Node >= 22.13.
4 
5## Structure
6 
7| Directory | Purpose |
8| ------------------------ | --------------------------------------------------------------------------- |
9| `apps/studio` | Supabase Studio/Dashboard — has its own `apps/studio/CLAUDE.md` (see below) |
10| `apps/docs` | Documentation site — Next.js app router, MDX (port 3001) |
11| `apps/www` | Marketing website — Next.js, app + pages (port 3000) |
12| `apps/design-system` | Component demos — source of truth for Studio UI patterns (port 3003) |
13| `apps/ui-library` | shadcn-style registry site for Supabase UI blocks (port 3004) |
14| `apps/lite-studio` | Lightweight Studio — different stack: React Router 7 + Vite + Tailwind v4 |
15| `packages/ui` | Shared UI components (shadcn/ui based) — `import { Button } from 'ui'` |
16| `packages/ui-patterns` | Composite components — subpath imports, e.g. `ui-patterns/AssistantChat` |
17| `packages/common` | Shared utils, telemetry constants, feature flags |
18| `packages/api-types` | Generated platform Management API types |
19| `packages/pg-meta` | SQL builders for Postgres introspection (`SafeSqlFragment`) |
20| `packages/shared-data` | Static data: pricing, plans, regions, error codes |
21| `e2e/studio`, `e2e/docs` | Playwright E2E tests |
22| `supabase/` | Local Supabase project: edge functions, migrations, config.toml |
23 
24## Common Commands
25 
26```bash
27pnpm dev:studio # run Studio dev server → http://localhost:8082
28pnpm dev:docs # run docs dev server
29pnpm dev:www # run www dev server
30pnpm test:studio # Studio unit tests (vitest)
31pnpm e2e # Studio E2E tests (playwright)
32pnpm build --filter=studio # build Studio
33pnpm lint --filter=studio # lint Studio
34pnpm typecheck # typecheck all packages
35pnpm format # Prettier write (check: pnpm test:prettier)
36pnpm generate:types # local DB types → supabase/functions/common/database-types.ts
37pnpm api:codegen # platform Management API types → packages/api-types
38```
39 
40## CI
41 
42Every PR must pass typecheck + lint (one workflow), Prettier, and a typos check. Other checks are path-filtered: Studio unit tests/build and the lint ratchet (ESLint warning count must not increase) run on `apps/studio/**` changes; app-specific test suites run on their own paths.
43 
44Never hand-edit generated files: `packages/api-types/types/**`, `**/routeTree.gen.ts`, `**/__generated__/**`, `apps/docs/features/docs/generated/**`, `apps/www/.generated/**`, `supabase/functions/common/database-types.ts`.
45 
46## Conventions
47 
48**UI** — import from `'ui'`; primitives are shadcn/ui-based and exported unsuffixed (`Input`, `Select`, `Form`, …). Use `Button` — the in-house component and the standard everywhere (a raw shadcn `Button_Shadcn_` also exists but is rarely the right choice). Check `packages/ui/index.tsx` before creating new primitives. Higher-level patterns live in `packages/ui-patterns`.
49 
50**Styling** — Tailwind only, semantic tokens (`bg-muted`, `text-foreground-light`), no hardcoded colors.
51 
52**Exports** — named exports only; default exports are allowed only where a framework requires them (`pages/**`, `app/**`, config files — the eslint preset has the exact carve-out list). Lint-enforced across all apps via `eslint-config-supabase` (severity `warn` everywhere; hard-enforced in Studio by the lint ratchet).
53 
54**Language** — Use U.S. English everywhere.
55 
56## Skills
57 
58The skills in `.claude/skills/` are the source of truth for conventions — load the relevant ones before working, don't guess:
59 
60- `copywriting` — any user-facing text, anywhere in the monorepo
61- `docs-content` — anything under `apps/docs`
62- `telemetry-standards` — PostHog events, `packages/common/telemetry-constants.ts`
63- `dev-toolbar-review` — `packages/dev-tools`, `packages/common/posthog-client.ts`, `packages/common/feature-flags.tsx`
64- `safe-sql-execution` — any code that builds or executes SQL against user databases
65- `react-hook-form` — writing or modifying any form code, anywhere in the monorepo
66- `vitest` / `vercel-composition-patterns` — generic unit-testing and React composition references
67 
68## Studio
69 
70Before working on anything in `apps/studio`, read `apps/studio/CLAUDE.md` if it isn't already in context — it maps Studio tasks to required skills and covers the TanStack Start migration rules.
71 

Commands it names

  • pnpm dev:studio
  • pnpm dev:docs
  • pnpm dev:www
  • pnpm test:studio
  • pnpm e2e
  • pnpm build --filter=studio
  • pnpm lint --filter=studio
  • pnpm typecheck
  • pnpm format
  • pnpm generate:types
  • pnpm api:codegen
  • eslint-config-supabase
  • vitest

Sections

  • Supabase Monorepo
  • Structure
  • Common Commands
  • CI
  • Conventions
  • Skills
  • Studio

What it covers

testlint-formatcode-stylearchitecturemonorepo

Stack — with the evidence

typescript

(1.00)

node

(1.00)

nextjs

(1.00)

supabase

(1.00)

vitest

(0.95)

playwright

(0.95)

postgres

(0.90)

monorepo

(0.85)

pnpm

(0.85)

react

(0.70)

vue

(0.70)

nuxt

(0.70)

tailwind

(0.70)

vite

(0.70)

vercel

(0.70)

aws

(0.70)

javascript

(0.60)

swift

(0.60)

jupyter

(0.60)

github-actions

(0.60)

python

(0.50)

Format

CLAUDE.md

Claude Code's memory file. Shaped like AGENTS.md but with two things it lacks: @path imports, so shared rules live in one place, and a user-scope layer that follows the developer across repos rather than shipping with the code.

What the corpus says about it

Repository

Owner
supabase
Language
—
License
—
Archived
no

All configs in this repo

Also in supabase/supabase

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
supabase/supabase.claude/skills/vercel-composition-patterns/AGENTS.md · 107kAGENTS.mdtypescriptnode+19styleapiuido-not45/1003 days ago
supabase/supabase.github/copilot-instructions.md · 107kCopilot instructionstypescriptnode+19lint-formatstylegitagent-behaviour56/1003 days ago
supabase/supabase.github/instructions/studio-composition-patterns.instructions.md · 107kCopilot instructionstypescriptnode+19stylegitapiui+161/1003 days ago
supabase/supabase.github/instructions/studio-copy.instructions.md · 107kCopilot instructionstypescriptnode+19uiagent-behaviourdocs25/1003 days ago
supabase/supabase.github/instructions/studio-e2e-tests.instructions.md · 107kCopilot instructionstypescriptnode+19teststyletesting-strategygit+260/1003 days ago
supabase/supabase.github/instructions/studio-error-handling.instructions.md · 107kCopilot instructionstypescriptnode+19gitdo-not57/1003 days ago
supabase/supabase.github/instructions/studio-shadcn-components.instructions.md · 107kCopilot instructionstypescriptnode+19gituido-not55/1003 days ago
supabase/supabase.github/instructions/studio-shortcuts.instructions.md · 107kCopilot instructionstypescriptnode+19stylegitdo-not61/1003 days ago
supabase/supabase.github/instructions/studio-telemetry.instructions.md · 107kCopilot instructionstypescriptnode+19stylegitdo-notdocs65/1003 days ago
supabase/supabase.github/instructions/studio-testing.instructions.md · 107kCopilot instructionstypescriptnode+19testtypestesting-strategygit+155/1003 days ago
supabase/supabaseapps/studio/CLAUDE.md · 107kCLAUDE.mdtypescriptnode+21testlint-formatstyletesting-strategy+181/1003 days ago
Diff against .claude/skills/vercel-composition-patterns/AGENTS.md Diff against .github/copilot-instructions.md Diff against .github/instructions/studio-composition-patterns.instructions.md Diff against .github/instructions/studio-copy.instructions.md Diff against .github/instructions/studio-e2e-tests.instructions.md Diff against .github/instructions/studio-error-handling.instructions.md Diff against .github/instructions/studio-shadcn-components.instructions.md Diff against .github/instructions/studio-shortcuts.instructions.md Diff against .github/instructions/studio-telemetry.instructions.md Diff against .github/instructions/studio-testing.instructions.md Diff against apps/studio/CLAUDE.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
dotCMS/corecore-web/CLAUDE.md · 950CLAUDE.mdjavanode+13teststylearchtesting-strategy+3100/1003 days ago
bagisto/bagistoCLAUDE.md · 28kCLAUDE.mdphplaravel+8setupbuildteststyle+5100/1003 days ago
microsoft/playwrightCLAUDE.md · 94kCLAUDE.mdtypescriptjavascript+10buildtestlint-formatstyle+7100/1003 days ago
Adit-Jain-srm/NightmareNetCLAUDE.md · 45CLAUDE.mdtypescriptpython+18buildtestlint-formatstyle+6100/1003 days ago
nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4kCLAUDE.mdtypescriptnode+16setupbuildstylearch+2100/1003 days ago
filamentphp/filamentCLAUDE.md · 32kCLAUDE.mdphplaravel+5buildtestlint-formatstyle+7100/1003 days ago
dotCMS/coreCLAUDE.md · 950CLAUDE.mdjavanode+9setupbuildteststyle+799/1003 days ago
lollipopkit/flutter_server_boxCLAUDE.md · 8.3kCLAUDE.mddartflutter+8buildteststylearch+298/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack