supabase-schema-from-requirements
Skill by jeremylongshore
Designs a Supabase Postgres schema from business requirements. It covers migrations, Row Level Security policies, indexes and TypeScript types for developers building on Supabase.
Install supabase-schema-from-requirements
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/supabase-schema-from-requirements ~/.claude/skills/supabase-schema-from-requirementsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install supabase-schema-from-requirements in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/supabase-schema-from-requirements ~/.gemini/antigravity-cli/skills/supabase-schema-from-requirementsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install supabase-schema-from-requirements in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The supabase-schema-from-requirements skill translates business requirements or a specification into a Supabase Postgres schema. It extracts entities, attributes and relationships, maps them to tables, and writes a migration file under supabase/migrations/. It also adds Row Level Security policies with helper functions, timestamp triggers, partial indexes, and generates TypeScript types from the live schema.
The workflow runs in steps: create the migration, write RLS policies, apply the migration with supabase db reset or db push, then generate types. The skill is written for Claude Code and is aimed at developers who design database tables for Supabase projects. Auth, storage and realtime are left to a separate skill, supabase-auth-storage-realtime-core.
Written from the project's SKILL.md and checked against it.
What it can do
- Entity extractionReads requirements and maps entities, attributes and relationships to Postgres tables.
- Migration creationCreates a migration file under supabase/migrations/ with tables, constraints and indexes.
- Row Level SecurityEnables RLS and writes per-table policies that call reusable security definer helpers.
- Timestamp triggersAdds moddatetime triggers to manage updated_at automatically.
- Partial indexesAdds partial indexes on frequently filtered columns such as status and due_date.
- TypeScript type generationGenerates types from the live schema for type-safe Supabase client queries.
What you need
- Supabase CLI installed and project linked
- @supabase/supabase-js v2 or later
- Business requirements, PRD or specification document
- Local Supabase running or a linked remote project
Try asking
- Design a Supabase schema from this PRD with RLS policies.
- Create a migration for organizations, projects and tasks from this spec.
- Generate TypeScript types from my Supabase schema.
Good to know
- Designed for Claude Code, according to the source.
- Allowed tools are limited to Read, Write, Bash(supabase:*) and Bash(npx:*).
Security check
B- Allowed to use Write without limitsIn
SKILL.md
Checked automatically: skills/.curated/supabase-schema-from-requirements/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteBash(supabase:*)Bash(npx:*)
Alternatives to supabase-schema-from-requirements
All alternatives →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.
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.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
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.
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.
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.
Compare with hugging-face-datasets, db-repair or alloydb-basics
supabase-schema-from-requirements: common questions
Does this skill turn on Row Level Security for new tables?
Yes. The skill states that every table exposed to the client must have RLS enabled, and it writes per-table policies for that.
How are the TypeScript types created?
The skill runs npx supabase gen types typescript --local against the live schema and writes the output to types/supabase.ts.
Does it handle auth, storage or realtime?
No. The source says those topics are covered by the separate supabase-auth-storage-realtime-core skill.
How do I install supabase-schema-from-requirements?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is supabase-schema-from-requirements free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is supabase-schema-from-requirements safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write without limits). Review the code before you install. How grades work.
What are alternatives to supabase-schema-from-requirements?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
