supabase-database

Manage Supabase databases through SQL execution, migrations, schema listing, advisor checks, log retrieval, and TypeScript generation.

Updated Jun 17, 2025
One-click install
npx skills add https://github.com/Karlito8888/new-ggv-gps --skill supabase-database
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-database
Source: https://github.com/Karlito8888/new-ggv-gps/tree/main/.claude/skills/supabase-database
Command: npx skills add https://github.com/Karlito8888/new-ggv-gps --skill supabase-database

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides tools to execute SQL, apply migrations, list tables and extensions, and generate types for the MyGGV GPS data model.

Core Features & Use Cases

  • SQL execution: Run ad-hoc queries against the project database.
  • Migrations: Create and apply schema changes safely.
  • Schema discovery: List tables and extensions to understand the data model.
  • Advisors & logs: Review security/performance advisories and operational logs.
  • Types generation: Generate TypeScript types from database schema.

Quick Start

Run mcp__supabase__execute_sql with a sample query; list tables with mcp__supabase__list_tables; apply a migration via mcp__supabase__apply_migration.

Frequently Asked Questions about supabase-database

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

FAQPage Schema
How do I execute SQL queries against a Supabase database?

SQL execution lets you run ad-hoc queries directly against your Supabase database. Use mcp__supabase__execute_sql to perform SELECT, INSERT, UPDATE, or DELETE operations, retrieve data, and test schema changes in real time.

How do I create and apply database migrations safely?

Migrations let you version-control schema changes systematically. Create migrations that define structural changes, then apply them via mcp__supabase__apply_migration to roll out updates consistently across environments while maintaining data integrity.

Can I generate TypeScript types automatically from my database schema?

Yes. Type generation introspects your Supabase schema and produces TypeScript type definitions for core entities like locations and public_pois, eliminating manual type-writing and keeping types synchronized with schema changes.

How do I inspect tables, extensions, and security advisories in Supabase?

Schema discovery tools list all tables and extensions to understand your data model structure. Advisor checks surface security and performance recommendations, while log retrieval exposes operational events for debugging and compliance.

What best practices does this Skill enforce for database design?

The Skill enforces snake_case naming conventions, prohibits hard-coded IDs, and verifies Row Level Security policies, ensuring schemas follow security and maintainability standards aligned with production database governance.

Does this work for managing multiple Supabase projects?

This Skill is designed for the MyGGV GPS project's Supabase database. SQL execution, migrations, schema inspection, and type generation all target that specific project's data model and configuration.