AgentSkillsCN

supabase-database

管理 Postgres 数据库,包括差异比对、转储、拉取与推送模式。当用户输入“差异数据库”、“转储模式”、“拉取远程数据库”或“推送数据库变更”等短语时,可触发此技能。

SKILL.md
--- frontmatter
name: supabase-database
description: Manage Postgres databases, including diffing, dumping, pulling, and pushing schemas. Triggered by phrases like "diff database", "dump schema", "pull remote db", or "push database changes".

Supabase Database Skill

Goal

Manage the database schema and data operations.

Instructions

  1. Identify the command needed based on user intent.
  2. Open the relevant rule file:
  3. Check 00_global_policy.md for destructive operation safety gates (especially for db reset).
  4. Ensure the project is correctly linked before running pull or push.

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