Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 77
  • 1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-generate

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install supabase-typegen-generate in Claude Code

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

A

No 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 →
hugging-face-datasetssickn33
94

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.

AAA Skill 50k
db-repairgarrytan
94

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.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

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.

AAA Skill 116k
fix-slow-queriespaperclipai
94

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.

AAA Skill 119k
prisma-8prisma
94

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.

AAA Skill 48k

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.

supabase-typegen-generate Install

Add to stack

Loading.