supabase-schema-from-requirements

Solid

Design Supabase Postgres schema from business requirements with migrations, RLS, and types. Use when translating specifications into database tables, creating migration files, adding Row Level Security policies, or generating TypeScript types from schema. Trigger with phrases like "supabase schema", "design database supabase", "schema from requirements", "supabase migration", "supabase tables from spec".

API & Backend 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Supabase Schema from Requirements ## Overview Translate business requirements into a production-ready Postgres schema inside Supabase. This skill covers the full path from specification document to applied migration: entity extraction, table creation with proper data types and constraints, Row Level Security policies, performance indexes, timestamp triggers, and TypeScript type generation. It is the highest-leverage activity in the early stages of any Supabase project because every downstream feature (auth, storage, realtime, edge functions) depends on well-designed tables. ## Prerequisites - Supabase CLI installed (`npm install -g supabase`) and project linked (`supabase link`) - `@supabase/supabase-js` v2+ installed in the project - Business requirements, PRD, or specification document identifying entities and access rules - Local Supabase running (`supabase start`) or a linked remote project ## Instructions ### Step 1: Parse Requirements and Create Migration Read the requirements document and extract entities, attributes, relationships, and access control rules. Map each entity to a Postgres table. **Entity extraction example** (project management app): | Entity | Key Columns | Relationships | |--------|------------|---------------| | Organization | name, slug, plan | has many Projects, has many Members | | Project | name, description, status | belongs to Organization, has many Tasks | | Task | title, priority, status, due_date | belongs to Project, assigned to ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Listed

supabase-architect

Automates Supabase workflows including migrations, type synchronization, and schema security audits. Use when creating new database tables, updating schemas, or ensuring RLS compliance.

0 Updated 2 weeks ago
sf-bcca
API & Backend Listed

supabase-schema-reviewer

Review Supabase/Postgres schema design, table ownership, normalization, defaults, relationships, and migration coherence. Use for new tables, column design, view design, schema cleanup, and database modeling decisions.

5 Updated today
conectlens
API & Backend Listed

supabase-schema-bootstrap

Bootstrap a complete Supabase schema from a domain spec — tables, RLS, triggers, indexes, seeds, type generation. Wraps erd / rls / index skills for new-project setup.

3 Updated 4 days ago
anthril
API & Backend Listed

managing-supabase-schema-migrations

Guides creation, validation, and application of Supabase database migrations with RLS policy checks and type generation. Use when adding tables, modifying schema, or updating database structure.

2 Updated today
Hildegaardchiasmal966
API & Backend Solid

supabase-migration-deep-dive

Database migration patterns with Supabase CLI: npx supabase migration new, zero-downtime migrations, data backfill strategies, schema versioning, rollback strategies, and type generation. Use when creating database migrations, performing zero-downtime schema changes, backfilling data in production, managing schema versions, or planning rollback strategies. Trigger: "supabase migration", "supabase schema change", "supabase zero downtime", "supabase rollback", "supabase db push", "supabase migration new".

2,266 Updated today
jeremylongshore