supabase-codegen

Generate type-safe Dart classes from a Supabase PostgreSQL schema.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/titabash/gemini-hackathon-game --skill supabase-codegen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-codegen
Source: https://github.com/titabash/gemini-hackathon-game/tree/main/.claude/skills/supabase-codegen
Command: npx skills add https://github.com/titabash/gemini-hackathon-game --skill supabase-codegen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the generation of type-safe Dart classes from your Supabase PostgreSQL database schema, eliminating manual mapping and reducing runtime errors.

Core Features & Use Cases

  • Type-Safe Code Generation: Automatically creates Dart models, enums, and table/row classes based on your database structure.
  • Reduced Boilerplate: Minimizes the need for manual data class definitions and JSON serialization/deserialization.
  • Use Case: When setting up a new Flutter project with Supabase, use this Skill to ensure your frontend code accurately reflects your database schema, enabling robust type checking and autocompletion.

Quick Start

Run the make frontend-supabase-codegen command to generate Flutter types from your PostgreSQL schema.

Frequently Asked Questions about supabase-codegen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate type-safe Dart classes from a Supabase PostgreSQL schema?

To generate type-safe Dart classes from a Supabase PostgreSQL schema, configure environment variables and output paths in a YAML file, then execute the make frontend-supabase-codegen command to build the environment and generate types.

Why should I use code generation for Flutter types from my Supabase database?

You should use code generation for Flutter types to eliminate manual data mapping and reduce runtime errors, automatically creating Dart models, enums, and table classes that ensure robust type checking and autocompletion.

What is the process to set up Supabase codegen for a Dart project?

Setting up Supabase codegen involves configuring environment variables and output paths in a YAML file, followed by executing make commands to build the Supabase environment and generate the Dart type classes.

Does the supabase_codegen package work with existing PostgreSQL schemas?

Yes, the supabase_codegen package works with existing PostgreSQL schemas by automatically creating Dart models, enums, and table classes based on your current database structure.

Can I reduce boilerplate when mapping Supabase data to Flutter applications?

You can reduce boilerplate by using this Skill to automatically generate type-safe Dart classes, minimizing the need for manual data class definitions and JSON serialization or deserialization.