supabase-local-dev-loop
Skill by jeremylongshore
Sets up Supabase local development with the CLI, Docker, and a migration workflow. Aimed at developers who want to run the full Supabase stack on their own machine.
Install supabase-local-dev-loop
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/supabase-local-dev-loop ~/.claude/skills/supabase-local-dev-loopRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install supabase-local-dev-loop in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/supabase-local-dev-loop ~/.gemini/antigravity-cli/skills/supabase-local-dev-loopAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install supabase-local-dev-loop in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The supabase-local-dev-loop skill guides an AI assistant through running the full Supabase stack locally using Docker and the Supabase CLI. It covers initializing a project with npx supabase init, starting the local stack, and writing migrations and seed data. The source says the local stack includes Postgres, Auth, Storage, Realtime, Edge Functions, and Studio.
Schema changes are captured with supabase db diff, and supabase db reset replays all migrations and seed.sql to verify them. The skill also covers testing against the local instance, serving Edge Functions, and pushing verified migrations to a remote Supabase project. It is meant for developers who want offline, repeatable local development that mirrors production APIs.
Written from the project's SKILL.md and checked against it.
What it can do
- Initialize projectRuns npx supabase init to create a supabase/ directory with config, migrations, and seed files.
- Start local stackRuns npx supabase start and prints local API, Studio, and database endpoints and keys.
- Create migrationsRuns npx supabase migration new to create a timestamped SQL migration file.
- Seed dataLoads seed.sql after migrations when the database is reset, for repeatable local state.
- Diff-based migrationsRuns npx supabase db diff -f to generate a migration from schema changes made in Studio.
- Reset databaseRuns npx supabase db reset to replay all migrations and seed data and check they apply cleanly.
- Push to remoteLinks a remote project and runs npx supabase db push to deploy verified migrations.
- Edge FunctionsCreates and serves Edge Functions locally with hot reload using npx supabase functions serve.
- Local testsShows Vitest examples that run queries and RLS checks against the local Supabase instance.
What you need
- Docker Desktop installed and running
- Node.js 20+ for the npm CLI
- Node.js 22+ for current SDK application examples
- Supabase CLI installed with npm install --save-dev supabase
Try asking
- Initialize Supabase in this project and start the local stack.
- Create a migration that adds a profiles table with RLS enabled.
- Run supabase db diff to capture my Studio changes as a migration.
Good to know
- All local services require Docker to be running.
- The auth schema only exists in the Supabase-managed Postgres instance, so migrations referencing auth.users fail elsewhere.
Security check
C- Asks for administrator rights (sudo)In
skills/.curated/supabase-local-dev-loop/SKILL.md:`sudo - Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/supabase-local-dev-loop/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(npx:*)Bash(supabase:*)Bash(docker:*)Bash(curl:*)
Alternatives to supabase-local-dev-loop
All alternatives →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.
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.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
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.
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.
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.
Compare with hugging-face-datasets, db-repair or alloydb-basics
supabase-local-dev-loop: common questions
What does the Supabase local dev loop skill set up?
It sets up the full Supabase stack locally with Postgres, Auth, Storage, Realtime, Edge Functions, and Studio, using Docker and the Supabase CLI.
How does the skill handle schema changes?
Changes made in Studio are turned into migration files with supabase db diff, then verified by replaying them with supabase db reset.
Does the skill deploy to production?
It includes a step to link a remote project and run supabase db push to send verified migrations to that remote project.
How do I install supabase-local-dev-loop?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is supabase-local-dev-loop free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is supabase-local-dev-loop safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to supabase-local-dev-loop?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
