Supabase Database Skill
Goal
Manage the database schema and data operations.
Instructions
- •Identify the command needed based on user intent.
- •Open the relevant rule file:
- •
supabase db diff-> .agent/rules/supabase/commands/db/diff.md - •
supabase db dump-> .agent/rules/supabase/commands/db/dump.md - •
supabase db pull-> .agent/rules/supabase/commands/db/pull.md - •
supabase db push-> .agent/rules/supabase/commands/db/push.md - •
supabase db reset-> .agent/rules/supabase/commands/db/reset.md
- •
- •Check 00_global_policy.md for destructive operation safety gates (especially for
db reset). - •Ensure the project is correctly linked before running
pullorpush.
Examples
- •"Compare local schema with remote" -> Use
supabase db diff - •"Pull latest changes from production" -> Use
supabase db pull - •"Export local database content" -> Use
supabase db dump