new-drizzle-table

Create a Drizzle ORM table and generate its migration.

2|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/PlazaCC/antes-da-tela --skill new-drizzle-table
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-drizzle-table
Source: https://github.com/PlazaCC/antes-da-tela/tree/main/.agents/skills/new-drizzle-table
Command: npx skills add https://github.com/PlazaCC/antes-da-tela --skill new-drizzle-table

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adding a new database table in a Drizzle ORM‑based project requires manual edits to schema files, re‑exporting, and running migrations, which is error‑prone and time‑consuming.

Core Features & Use Cases

  • Generates a correctly structured table definition with UUID primary key.
  • Ensures the schema is exported and migration files are created automatically.
  • Ideal for developers expanding the data model of a Supabase‑backed Next.js application.

Quick Start

Use the new-drizzle-table skill to create a comments table for storing user comments.

Frequently Asked Questions about new-drizzle-table

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

FAQPage Schema
How do I add a new Drizzle ORM table and generate its migration in a Next.js application?

To add a new Drizzle ORM table, define the schema with a UUID primary key and run the migration command to automatically generate and export the migration files in your Next.js application.

What is the best way to create a Supabase database table using Drizzle ORM?

The best way to create a Supabase database table using Drizzle ORM is to generate a correctly structured table definition with a UUID primary key, which automatically handles schema exporting and migration creation.

Do I need a specific database connection to run Drizzle ORM migrations on Supabase?

Yes, you need a specific database connection to run Drizzle ORM migrations. You must set the DATABASE_URL_UNPOOLED environment variable to execute migration operations correctly on Supabase.

How do I generate a UUID primary key when creating a new Postgres table with Drizzle?

To generate a UUID primary key when creating a new Postgres table with Drizzle, use a table generation tool that automatically structures the table definition with a UUID primary key before exporting the schema.

Why does manually adding a new Drizzle schema table cause migration errors?

Manually adding a new Drizzle schema table causes migration errors because it requires manual edits to schema files and re-exporting, which is error-prone. Automating table definition generation ensures correct structure and migration files.