# Supabase Database

> 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". Use when this capability is needed.

- Skill: `tomevault-io/supabase-database` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/supabase-database`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/supabase-database/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/supabase-database

---


# 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:
    - `supabase db diff` -> [.agent/rules/supabase/commands/db/diff.md](../../rules/supabase/commands/db/diff.md)
    - `supabase db dump` -> [.agent/rules/supabase/commands/db/dump.md](../../rules/supabase/commands/db/dump.md)
    - `supabase db pull` -> [.agent/rules/supabase/commands/db/pull.md](../../rules/supabase/commands/db/pull.md)
    - `supabase db push` -> [.agent/rules/supabase/commands/db/push.md](../../rules/supabase/commands/db/push.md)
    - `supabase db reset` -> [.agent/rules/supabase/commands/db/reset.md](../../rules/supabase/commands/db/reset.md)
3.  Check [00_global_policy.md](../../rules/supabase/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`

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/diatonic-ai) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-16 -->

