supabase-schema-from-requirements

Featured

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,940 stars 439 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
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Listed

supabase-postgres-pro

Supabase and Postgres end to end: schema design, column types, primary and foreign keys, constraints, migrations (Supabase CLI, declarative schemas, MCP execute_sql / apply_migration), RLS policies and tests, auth (supabase-js, @supabase/ssr, getUser, getClaims, JWT, app_metadata), API keys, Data API grants, views, SECURITY DEFINER functions, triggers, storage policies, edge functions, realtime, pg_cron, queues, pgvector, full-text search, JSONB; slow queries, EXPLAIN ANALYZE, indexes (composite, partial, covering, GIN, GiST, BRIN), N+1, pagination, upsert, batch inserts, connection pooling, pooler, prepared statements, timeouts, locks, deadlocks, SKIP LOCKED job queues, vacuum, pg_stat_statements, partitioning, read replicas; debugging permission denied, empty results, RLS surprises, schema cache, 401/403, timeouts, logs and advisors. Also any read, report, backfill or data fix on any live production Supabase project, and MySQL tuning basics.

1 Updated 1 weeks ago
GrowingGold
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 8 months ago
sf-bcca
API & Backend Listed

schema-to-migrations

Turn a Supabase project built through Lovable, Bolt or the dashboard into versioned SQL migrations so changes are reviewable, reproducible and testable on a branch. Use before hardening RLS or adding a staging environment.

0 Updated yesterday
getshipready