Supabase's 75-line root guide contains a directory table, commands, and four short convention sections. Per-app files and named skills hold most subsystem detail.
Documents
├── ├── · imports AGENTS.md└── apps ├── docs │ ├── │ ├── · same content as CLAUDE.md · imports AGENTS.md │ └── ├── kb │ ├── │ └── · same content as CLAUDE.md · imports AGENTS.md └── studio ├── └── · same content as CLAUDE.md · imports AGENTS.md
Public pull requests, issues, and comments must omit absolute production metrics, internal vendor or pricing discussion, and competitor names. Use ratios for metrics and keep internal context in the tracker.
Source excerpt starting at line 59.
59**Public surfaces** — this repo is public: PR descriptions, issues, and code comments are world-readable. Keep internal content out of them: absolute production metrics (event counts, user counts, revenue figures: state percentages, ratios, or relative change instead), internal decision detail (vendor, legal, pricing, or strategy discussions), and competitor names (protocol identifiers such as user-agent strings are fine). Put that context in the Linear issue and link it.
02 / Router files
Skills mapped to when they apply
Nine skills each have a clear trigger, including user-facing text, docs work, SQL built against user databases, and form code. Those skills, not the root file, own the detailed conventions.
Source excerpt starting at line 63.
63The skills in `.agents/skills/` are the source of truth for conventions — load the relevant ones before working, don't guess:
03 / Ratchets
A lint warning count that may not increase
Lint rules run at warning severity across all apps, and a ratchet check on the Studio app fails if the warning count goes up. The rule is enforced by a path-filtered CI job rather than by review.
04 / Generated file guards
Generated paths listed explicitly
Eight path patterns are named as never hand-edited, including API types, a route tree, generated docs content and database types. One entry carries the command that regenerates it.
05
One component named as the default
The conventions name the standard button and explain why the raw shadcn variant is rarely right. Check the package index before creating another primitive.
Ideas for your repo
01For public repos, state what must stay out of pull requests, issues, and comments, and where internal context belongs.
02When two similarly named components exist, say which is the default and what the other one is for.
03Use a warning ceiling that may only shrink to turn lint debt into a one-way ratchet.
Sponsored by
Give your agents the whole story.
These instructions explain how to work in Supabase. Modem shows your agents what customers said, who is affected, and what changed.