supabase
Skill64 starsChanged 4 months agoMITView on GitHub
Manage Supabase local and hosted infrastructure. Migrations, schema diff, status, reset, push, and inspection. Wraps the Supabase CLI with project-specific context and gotcha avoidance.
60 other projects use a version of this.
Adopted by
Most recently taken up by
- schornai/schornaitheir own version, first seen Nov 8, 2026
- midudev/bigibai-2025their own version, first seen Nov 1, 2026
- sunavoine-sys/Claude-Skillstheir own version, first seen Nov 1, 2026
- mikilezen/sabatheir own version, first seen Nov 1, 2026
- darknecrocities/SkillBuildertheir own version, first seen Nov 1, 2026
- domhhv/habitracktheir own version, first seen Oct 25, 2026
Used with
Projects with it also use firebase, vercel and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
xfstudioSkillfirebase
Firebase gives you a complete backend in minutes - auth, database, storage, functions, hosting. But the ease of setup hides real complexity. Security rules are your last line of defense, and they're often wrong. Firestore queries are limited, and you learn this after you've designed your data model. This skill covers Firebase Authentication, Firestore, Realtime Database, Cloud Functions, Cloud Storage, and Firebase Hosting. Key insight: Firebase is optimized for read-heavy, denormalized data. I
Also in 5 projects that use this
SentrySkillvercel
Deploy and inspect Vercel apps, assign aliases, delete deployments, investigate logs, and monitor deployment outcomes. Use for Vercel deployment and log requests, not GitHub code changes or other cloud providers.
Also in 4 projects that use this
ffsshhttiikkSkillflutter
Flutter cross-platform framework
Also in 3 projects that use this
VercelSkillreact-native
React Native renderer for json-render that turns JSON specs into native mobile UIs. Use when working with @json-render/react-native, building React Native UIs from JSON, creating mobile component catalogs, or rendering AI-generated specs on mobile.
Also in 3 projects that use this
VercelSkillvercel-optimize
Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps. Collect Vercel metrics, usage, project config, and code scan results first; investigate only metric-backed candidates; produce ranked recommendations grounded in verified files and version-aware Vercel/framework docs. Trigger for Vercel bill reduction, slow or expensive routes, caching opportunities, Function Invocations, Build Minutes, Fast Data Transfer, Core Web Vitals, Bot Management, Fluid compute, or cost breakdown requests.
Also in 3 projects that use this
wewpellex21Skillbackend
Servers, routes, APIs, and backend architecture. Activated when Claude creates server-side code, API routes, or Express/Fastify/Next.js API handlers.
Also in 3 projects that use this
- +2 more from vercel-labs
Other versions60 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 60
- openai/plugins★ 7.8ksame name
- supabase/agent-skills★ 2.8ksame name
- FidelusAleksander/ghcertified★ 996same name
- imbhargav5/nextbase-nextjs-supabase-starter★ 827same name
- alinaqi/maggy★ 711same name
- alinaqi/claude-bootstrap★ 708same name
- Heyvhuang/ship-faster★ 337same name
- Mindrally/skills★ 275same name
- magnus919/agent-skills★ 172same name
- midudev/bigibai-2025★ 128same name
50 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository102 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- assumptionsSkill
- capture-learningSkill
- Codex-opus-4-6-promptingSkill
- Codex-promptSkill
- mcp-code-modeSkill
- deploy-team-hubSkill
- diagramSkill
- distillSkill
- effect-tsSkill
- escalateSkill
- evalSkill
- experimentSkill
- hddSkill
- hub-auditSkill
- hub-collabSkill
- implementSkill
- knowledgeSkill
- peer-notebook-delivery-guardSkill
- research-taskSkill
- session-reviewSkill
- source-command-hdd-decideSkill
- source-command-hdd-hddSkill
- source-command-hdd-researchSkill
- source-command-hdd-stage-adrSkill
- source-command-hdd-validateSkill
- statusSkill
- synthesizeSkill
- tasteSkill
- teamSkill
- test-suiteSkill
- theseus-protocolSkill
- thoughtbox:debugSkill
- thoughtbox:decisionSkill
- thoughtbox:evolutionSkill
- thoughtbox:knowledge-querySkill
- thoughtbox:onboardSkill
- thoughtbox:refactorSkill
- thoughtbox:researchSkill
- thoughtbox:session-reviewSkill
- thoughtbox-teamSkill
- ulc-loopSkill
- ulysses-protocolSkill
- workflow-brainstormingSkill
- workflow-ideationSkill
- workflow-reflectionSkill
- workflow-revisionSkill
- workflows-compoundSkill
- workflowSkill
- workflows-planSkill
- workflows-reviewSkill
- workflows-workSkill
- workflow-tournamentSkill
- assumptionsSkill
- capture-learningSkill
- claude-opus-4-6-promptingSkill
- claude-promptSkill
- mcp-code-modeSkill
- deploy-team-hubSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 3 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 58 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Run supabase status for local container health
- Very specific: line 25
Run supabase migration list to show local vs remote migration drift
- Very specific: line 32
Run supabase migration new <name> to create the file
- Very specific: line 38
Run supabase db diff to show schema changes not captured in migrations
- Distinctive: line 39
If changes exist, offer to create a migration capturing them
- Distinctive: line 40
If clean, report "Schema in sync with migrations"
- Very specific: line 44
Run supabase migration list to show what will be pushed
- Very specific: line 47
Run supabase db push to apply
- Very specific: line 48
Run supabase migration list again to confirm sync
- Very specific: line 52
Run supabase db pull to generate a migration from remote schema changes
- Very specific: line 59
Run supabase db reset to drop and re-apply all migrations
- Very specific: line 80
Run supabase services to verify version alignment
- Distinctive: line 137
Always end with a one-line status summary:
“Common” is measured: kept by at least 6 in 10 of the 58 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Manage Supabase: $ARGUMENTS
Project Context
- Linked project: Thoughtbox (
akjccuoncxlvrrtkvtno, West US Oregon) - Local DB URL:
postgresql://postgres:postgres@127.0.0.1:54322/postgres - Migrations dir:
supabase/migrations/ - Config:
supabase/config.toml
Commands
Parse the first word of $ARGUMENTS to determine the command:
status — Show local and hosted state
- Run
supabase statusfor local container health - Run
supabase migration listto show local vs remote migration drift - Report: which migrations are local-only, remote-only, or synced
migrate — Create a new migration
Parse remaining arguments for the migration name.
- Run
supabase migration new <name>to create the file - Open the created file path for editing
- Remind: after writing SQL, run
/supabase diffto verify, then/supabase pushto deploy
diff — Diff local schema against migrations
- Run
supabase db diffto show schema changes not captured in migrations - If changes exist, offer to create a migration capturing them
- If clean, report "Schema in sync with migrations"
push — Push migrations to hosted project
- Run
supabase migration listto show what will be pushed - List the pending migrations and their filenames
- Ask for confirmation before proceeding — this modifies the hosted database
- Run
supabase db pushto apply - Run
supabase migration listagain to confirm sync
pull — Pull remote schema to local migrations
- Run
supabase db pullto generate a migration from remote schema changes - Show the generated migration file
- Remind: review the SQL before committing
reset — Reset local database to migrations
- Confirm the user wants to destroy local data
- Run
supabase db resetto drop and re-apply all migrations - Report success and migration count
inspect — Inspect hosted database
Parse remaining arguments for the inspection type. Default to db-stats.
Available inspections:
db-stats— Size, cache hit rates, WAL sizetable-stats— Table sizes and row countsindex-stats— Index usage and bloatoutliers— Slowest querieslocks— Active locksbloat— Table and index bloat estimatesrole-stats— Role information
Run: supabase inspect db <type> --linked
link — Link or re-link to hosted project
- Run
supabase link --project-ref akjccuoncxlvrrtkvtno - Run
supabase servicesto verify version alignment - Report any version mismatches between local and remote
Gotchas (learned from experience)
| Gotcha | Detail |
| PG version mismatch | CLI upgrades can change local PG version (e.g., 15→17). Old volumes fail with "incompatible data directory". Fix: supabase stop --no-backup, remove volume, supabase start. |
--linked flag inconsistency | Some commands use --linked (e.g., inspect db), others don't support it (e.g., db execute, status). Check --help before assuming. |
| Migration ordering | Migrations sort lexicographically by filename. Use YYYYMMDDHHMMSS_ prefix (supabase CLI does this automatically with migration new). |
| RLS policies | New tables have RLS enabled by default. Forgetting policies means zero rows returned, not errors. Always add policies in the same migration that creates the table. |
db push is irreversible | There is no db unpush. Test migrations locally with db reset first. |
| Service role vs anon key | Admin operations (user management, bypassing RLS) require the service_role key, not the anon/publishable key. Never expose service_role client-side. |
| Local vs hosted auth | Local auth (GoTrue) has different rate limits and email config than hosted. Test auth flows against hosted before shipping. |
Candidate Slash Commands
These are composable building blocks for workflows:
| Command | Purpose | Implementation |
/sb-status | Quick health check | supabase status && supabase migration list |
/sb-new-migration | Create + open migration | supabase migration new <name> then open file |
/sb-sync-check | Drift detection | supabase migration list + diff analysis |
/sb-reset-local | Clean slate local DB | supabase db reset with confirmation |
/sb-push | Deploy migrations | supabase db push with pre-flight check |
Candidate Hooks
These can be wired into .Codex/settings.json:
| Event | Hook | Purpose |
PreToolUse:Bash | Guard supabase db push | Require confirmation before pushing to hosted |
PostToolUse:Write | Auto-lint on supabase/migrations/*.sql | Run supabase db lint after writing migration files |
SessionStart | Migration drift check | Run supabase migration list on session start if supabase dir exists |
PreToolUse:Bash | Block supabase stop --no-backup | Prevent accidental data loss without explicit intent |
Workflow Compositions
New feature with schema changes
/sb-status → /sb-new-migration → [write SQL] → /sb-reset-local → [test] → /sb-pushDebug hosted schema issues
/supabase inspect db-stats → /supabase inspect outliers → /supabase inspect bloatSync after pulling remote changes
git pull → /sb-sync-check → /sb-reset-local (if drifted) → [verify]Output
Always end with a one-line status summary:
Supabase: [local: running|stopped] [migrations: N local, N remote, N pending] [linked: yes|no]Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

