supabase-typegen-generate
Skill by supabase
Generates the typed Dart schema for a Supabase database using the Supabase CLI and supabase_typegen. Useful for Dart and Flutter developers who need typed table() and rpc code that stays in sync with their database.
Install supabase-typegen-generate
Built from the published package, never by AI.
git clone --depth 1 https://github.com/supabase/supabase-flutter /tmp/supabase-flutter && mkdir -p ~/.claude/skills && cp -r /tmp/supabase-flutter/packages/supabase_typegen/skills/supabase-typegen-generate ~/.claude/skills/supabase-typegen-generateRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install supabase-typegen-generate in Claude Code
git clone --depth 1 https://github.com/supabase/supabase-flutter /tmp/supabase-flutter && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/supabase-flutter/packages/supabase_typegen/skills/supabase-typegen-generate ~/.gemini/antigravity-cli/skills/supabase-typegen-generateAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install supabase-typegen-generate in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an assistant through generating the typed Dart schema for a Supabase database. The generated file holds row, insert and update types, column constants, enums and typed rpc methods. The Supabase CLI runs the supabase_typegen package to produce it, and the skill covers choosing a source such as the local stack, a linked project or a connection string, plus selecting schemas with --schema.
It also explains when to regenerate: after schema changes, after upgrading supabase_typegen or the Supabase CLI, and when a table, column or function is missing. The skill says to commit the generated file, never edit it, and analyze the output. It is aimed at developers building Dart and Flutter apps on Supabase.
Written from the project's SKILL.md and checked against it.
What it can do
- Generate from the local stackGenerates the Dart schema from the migrations applied to the local Supabase stack.
- Generate from a hosted projectGenerates the schema from a linked or hosted project using --remote.
- Select schemasChooses which database schemas to generate with repeated --schema flags.
- Typed table and rpc codeDescribes row, insert and update types, column constants and typed rpc methods.
- Regeneration rulesExplains when to regenerate after migrations, tool upgrades or schema changes.
- Missing item guidanceExplains why tables, relations or functions may be missing and how to fix them.
- Error referenceLists common generator errors with the fix for each one.
What you need
- Supabase CLI 3.0.0 or newer
- Dart SDK or Flutter
- supabase_typegen as a dev dependency
- Docker and a running stack for local generation
Try asking
- Generate the typed Dart schema for my Supabase database
- Regenerate supabase_schema.g.dart after my latest migration
- Why is my table missing from the generated Supabase Dart file?
Good to know
- Never edit the generated file. Change the database and regenerate.
- Local generation needs Docker and a running stack.
- supabase db reset drops rows that migrations and seed.sql do not recreate, so ask first.
- Only schemas exposed through the Data API can be queried at runtime.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/supabase_typegen/skills/supabase-typegen-generate/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to supabase-typegen-generate
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-typegen-generate: common questions
Can I edit the generated Dart file?
No. The skill says never to edit it. Change the database and regenerate the file instead.
When should the schema be regenerated?
After any database schema change, after upgrading supabase_typegen or the Supabase CLI, and when items are missing or the file fails to analyze.
Does the app need a database to build?
No, once the generated file is committed the app builds without a database. Generating the file still needs a local stack or a hosted project.
How do I install supabase-typegen-generate?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is supabase-typegen-generate free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is supabase-typegen-generate safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to supabase-typegen-generate?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
