db-write

Execute mutating SQL against Supabase databases with explicit confirmation and environment checks.

16|3|Updated May 5, 2026
One-click install
npx skills add https://github.com/Kevin-Liu-01/Agent-Machines --skill db-write
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-write
Source: https://github.com/Kevin-Liu-01/Agent-Machines/tree/main/knowledge/skills/db-write
Command: npx skills add https://github.com/Kevin-Liu-01/Agent-Machines --skill db-write

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mutating SQL against Supabase databases can lead to accidental data changes or downtime without guardrails. This skill provides guardrails and explicit invocation to ensure changes are deliberate and auditable.

Core Features & Use Cases

  • Guarded Mutations: Enforces confirmation before executing mutations in non-local environments (dev/preview/prod) and supports environment targeting and database selection.
  • Safe Defaults & Diffing: Defaults to local, with options to preview changes and ensure safe migrations, seeds, and schema updates.
  • Audit Ready: Keeps a clear trail for migrations and data fixes via structured prompts and logging.

Quick Start

Provide your mutating SQL and a target environment, then confirm before execution.

Frequently Asked Questions about db-write

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely run mutating SQL on Supabase without causing downtime?

Safely run mutating SQL on Supabase by using guardrails that require explicit user confirmation before executing mutations in non-local environments. This enforces environment checks and targets specific databases to prevent accidental data changes.

What is the best way to execute database migrations and data fixes on dev environments?

Executing database migrations and data fixes on dev environments is best handled by targeting the dev environment explicitly and previewing changes. The system defaults to local but supports dev and preview environments with required confirmation before execution.

Can I preview schema changes and seed data before applying them to a Supabase database?

You can preview schema changes and seed data before applying them to a Supabase database. The system provides safe defaults with options to preview changes, ensuring safe migrations and schema updates before committing to execution.

Does running SQL mutations on Supabase require explicit confirmation for remote execution?

Running SQL mutations on Supabase requires explicit user confirmation for remote execution. Guardrails enforce this confirmation in non-local environments, including dev, preview, and production, to ensure all changes are deliberate and auditable.

Why do I need guardrails for Supabase SQL mutations and schema updates?

You need guardrails for Supabase SQL mutations and schema updates because mutating SQL can lead to accidental data changes or downtime. Guardrails provide explicit invocation and environment checks to ensure changes are deliberate and auditable.