Database Operations

Execute SQL queries, apply migrations, and manage RLS policies for Supabase databases.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/agentpoet/Agentic-Coding-System-Self-Improving-Framework --skill database-operations-agentpoet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Database Operations
Source: https://github.com/agentpoet/Agentic-Coding-System-Self-Improving-Framework/tree/main/.claude/skills/database
Command: npx skills add https://github.com/agentpoet/Agentic-Coding-System-Self-Improving-Framework --skill database-operations-agentpoet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the management of database operations, including executing queries, running migrations, and optimizing performance.

Core Features & Use Cases

  • Execute SQL queries: Run arbitrary SQL commands against the database.
  • Run migrations: Apply database schema changes systematically.
  • Manage RLS policies: Ensure data security through Row Level Security.
  • Performance optimization: Identify and suggest improvements for database speed.
  • Use Case: Apply a new set of database migrations to a staging environment to test schema changes before production deployment.

Quick Start

Use the database skill to run the migration file database/migrations/003_add_analytics.sql.

Frequently Asked Questions about Database Operations

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

FAQPage Schema
How do I run database migrations on a Supabase database?

This Skill manages Row Level Security policies by configuring RLS rules directly via SQL commands or Supabase MCP integration to ensure data security across your database tables.

Can I execute raw SQL queries for performance optimization in Supabase?

Yes, you can execute arbitrary SQL queries against the database to identify performance bottlenecks and suggest speed improvements using either raw SQL commands or Supabase MCP integration.

What is the best way to inspect a database schema before applying changes?

The best way to inspect a database schema is using the schema inspection feature, which allows you to review existing structures and safely apply data seeding or migrations before production deployment.

Do I need Supabase MCP integration to manage database operations?

You do not strictly need Supabase MCP integration to manage database operations; the Skill also supports executing raw SQL commands directly to handle queries, migrations, and RLS policies.