ops-database-sql

Analyze EXPLAIN ANALYZE output and suggest indexing improvements for SQL queries.

73|16|Updated Nov 14, 2025
One-click install
npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill ops-database-sql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ops-database-sql
Source: https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/claude-code-kit/initial-setup/skills/ops-database-sql
Command: npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill ops-database-sql

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Slow SQL queries, inefficient indexing, and poorly managed database operations can cripple application performance and user experience. This Skill provides production-grade SQL optimization and operational patterns across various database platforms.

Core Features & Use Cases

  • AI-Assisted Query Tuning: Analyze query plans with automated EXPLAIN ANALYZE interpretation and receive AI-powered optimization suggestions for PostgreSQL, MySQL, and more.
  • Intelligent Indexing: Design balanced indexing strategies, identify unused indexes, and optimize for selectivity to drastically improve query speeds without over-indexing.
  • Robust Database Operations: Manage schema migrations, implement backup/recovery, set up high availability (replication), and conduct security audits for reliable and secure databases.

Quick Start

Use the ops-database-sql skill to analyze the EXPLAIN ANALYZE output for a slow PostgreSQL query and suggest indexing improvements.

Frequently Asked Questions about ops-database-sql

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

FAQPage Schema
How do I optimize slow SQL queries in PostgreSQL and MySQL?

SQL query optimization involves analyzing execution plans with EXPLAIN ANALYZE, identifying bottlenecks, and applying targeted improvements like better indexing, query restructuring, or schema adjustments. This Skill provides AI-assisted analysis of query plans and automated optimization suggestions for PostgreSQL, MySQL, and other platforms to reduce query execution time.

What does EXPLAIN ANALYZE output tell me about database performance?

EXPLAIN ANALYZE shows how a database executes a query, including actual row counts, execution time, and resource usage per operation. This Skill interprets these execution plans automatically and recommends specific optimizations like indexing changes or query rewrites to improve performance.

How do I design an indexing strategy without over-indexing?

Effective indexing balances query speed gains against write overhead and storage cost by targeting high-selectivity columns and eliminating unused indexes. This Skill helps identify which indexes will deliver measurable performance improvements while avoiding unnecessary index proliferation.

Can I use this for database operations beyond query tuning?

Yes. Beyond query optimization, this Skill covers schema migrations, backup and recovery procedures, high-availability replication setup, and security audits to ensure databases remain reliable, secure, and operationally sound in production environments.

What platforms does SQL optimization apply to?

SQL optimization techniques work across relational databases including PostgreSQL, MySQL, and similar platforms. This Skill provides patterns and AI-assisted guidance tailored to these systems' specific execution behaviors and indexing capabilities.