db-index-suggest

Analyzes SQL queries, slow query logs, and execution plans to suggest database index improvements.

2|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/gaebalai/claude-code-kit-ko --skill db-index-suggest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-index-suggest
Source: https://github.com/gaebalai/claude-code-kit-ko/tree/main/.claude/skills/db-index-suggest
Command: npx skills add https://github.com/gaebalai/claude-code-kit-ko --skill db-index-suggest

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you identify and implement optimal database indexes to significantly improve query performance and reduce database load.

Core Features & Use Cases

  • Index Analysis: Analyzes SQL queries, slow query logs, and execution plans to pinpoint indexing inefficiencies.
  • Index Suggestion: Proposes new indexes, improvements to existing ones, and identifies redundant indexes for removal.
  • Use Case: You're experiencing slow query times on your application. This Skill can analyze your problematic queries and suggest specific indexes to add or modify, leading to faster data retrieval.

Quick Start

Use the db-index-suggest skill to analyze the provided SQL query and suggest index improvements.

Frequently Asked Questions about db-index-suggest

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

FAQPage Schema
How do I find the optimal database indexes for slow SQL queries?

To find optimal database indexes for slow SQL queries, analyze your execution plans and slow query logs to pinpoint indexing inefficiencies. This reveals specific index additions or modifications needed to significantly improve query performance and reduce database load.

How does analyzing an execution plan help with SQL query optimization?

Analyzing an execution plan helps with SQL query optimization by revealing how the database retrieves data, highlighting full table scans or missing indexes. This detailed execution plan analysis pinpoints exact indexing inefficiencies to target for performance tuning.

Can I identify redundant indexes to remove from my PostgreSQL or MySQL schema?

Yes, you can identify redundant indexes to remove from your PostgreSQL or MySQL schema by analyzing existing index structures and query patterns. Removing redundant indexes optimizes your overall indexing strategy and reduces unnecessary database write overhead.

What is the best way to tune database performance using slow query logs?

The best way to tune database performance using slow query logs is to analyze the recorded problematic SQL statements alongside execution plans. This approach exposes exact query patterns and indexing gaps, allowing you to implement targeted index improvements for faster data retrieval.

Does this index suggestion approach work for both PostgreSQL and MySQL databases?

Yes, this index suggestion approach works for both PostgreSQL and MySQL databases. It analyzes standard SQL queries, execution plans, and schema structures to provide actionable index recommendations regardless of your specific relational database platform.

What do I need to provide for accurate database index analysis?

For accurate database index analysis, you need to provide your problematic SQL queries, existing schema definitions, and execution plan details. Supplying slow query logs also helps identify query patterns to suggest optimal index additions and improvements.