db-run-sql

Community

Execute SQL with safety and timing.

AuthorGDSDN
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill allows for the safe and efficient execution of SQL commands, whether they are provided as inline statements or from a file, ensuring data integrity through transaction management and providing performance insights via timing.

Core Features & Use Cases

  • SQL Execution: Runs SQL queries against a database.
  • Transaction Safety: Supports automatic transaction wrapping with rollback on error, read-only transactions, or manual control.
  • Input Flexibility: Accepts both file paths to SQL scripts and direct inline SQL strings.
  • Safety Checks: Warns about potentially destructive operations like DROP, DELETE, or UPDATE without conditions.
  • Use Case: Automatically apply database migrations by running a SQL script file, or quickly query a database by providing an inline SQL statement.

Quick Start

Use the db-run-sql skill to execute the SQL file located at supabase/migrations/20240101_add_users.sql.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: db-run-sql
Download link: https://github.com/GDSDN/kord-aios/archive/main.zip#db-run-sql

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.