sql-database

Execute parameterized SQL queries and inspect schemas in read-only mode.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/KILWA73/MiniSoc --skill sql-database
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-database
Source: https://github.com/KILWA73/MiniSoc/tree/main/.agents/skills/sql-database
Command: npx skills add https://github.com/KILWA73/MiniSoc --skill sql-database

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Use this skill to perform raw SQL queries, connect to databases, inspect schemas, and optimize performance in a safe, parameterized manner without risking accidental data loss.

Core Features & Use Cases

  • Read-only by default: execute safe SELECT, EXPLAIN, or SHOW queries with explicit permission to mutate only when approved.
  • Schema exploration: list tables and view their CREATE statements to understand data structures.
  • Query optimization guidance: identify common anti-patterns and suggest safe improvements.

Quick Start

Query a sample database to list tables and display the first five rows.

Frequently Asked Questions about sql-database

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

FAQPage Schema
How do I run safe SQL queries without risking accidental data loss?

To execute safe SQL queries without data loss, use a read-only mode by default for SELECT operations and enforce parameterization. This prevents destructive operations, allowing mutations only when explicitly approved.

How do I inspect a database schema to understand table structures?

You can inspect a database schema by listing tables and viewing their CREATE statements. This schema exploration reveals the underlying data structures without requiring direct, risky interactions with the data itself.

Can I run SQL queries against SQLite and Postgres databases?

Yes, you can run SQL queries against SQLite and other relational databases like Postgres. The skill supports schema inspection and query execution across multiple relational database systems safely.

What is the best way to identify SQL query anti-patterns for optimization?

The best way to identify SQL query anti-patterns is to use query optimization guidance features. These analyze your statements, detect common inefficiencies, and suggest safe improvements for better performance.

Why should I use parameterized SQL queries for database exploration?

You should use parameterized SQL queries to prevent SQL injection and ensure safe database exploration. Parameterization separates code from data, enforcing read-only safety by default and blocking destructive operations.

Are database mutations allowed during schema inspection?

Database mutations are not allowed by default during schema inspection. The system operates strictly in read-only mode, permitting data modifications only when you grant explicit approval for those specific operations.