analyzing-database-indexes
About
This skill analyzes database query patterns to recommend optimal indexes, identifying both missing indexes for query performance and unused indexes for removal. It's triggered by requests for index optimization, slow query analysis, or index cleanup. The skill provides actionable indexing strategies by examining database workloads through the database-index-advisor plugin.
Quick Install
Claude Code
Recommended/plugin add https://github.com/jeremylongshore/claude-code-plugins-plusgit clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/analyzing-database-indexesCopy and paste this command in Claude Code to install this skill
Documentation
Overview
This skill empowers Claude to analyze database workloads, identify suboptimal or missing indexes, and suggest improvements to enhance database performance. It leverages the database-index-advisor plugin to provide concrete recommendations for indexing strategies, including identifying unused indexes for removal.
How It Works
- Initiate Analysis: The skill activates the database-index-advisor plugin.
- Workload Analysis: The plugin analyzes the database's query workload and existing index configurations.
- Recommendation Generation: The plugin identifies missing index opportunities and unused indexes, generating a report with suggested actions.
When to Use This Skill
This skill activates when you need to:
- Optimize slow-running database queries.
- Identify potential performance bottlenecks related to missing indexes.
- Reclaim storage space by identifying and removing unused indexes.
Examples
Example 1: Optimizing a Slow Query
User request: "My orders table query is running slowly. Can you help optimize it?"
The skill will:
- Activate the database-index-advisor plugin.
- Analyze the query patterns against the orders table.
- Recommend creating a specific index on the orders table to improve query performance.
Example 2: Identifying Unused Indexes
User request: "Can you help me identify and remove any unused indexes in my database?"
The skill will:
- Activate the database-index-advisor plugin.
- Analyze the existing indexes and their usage patterns.
- Generate a report listing unused indexes that can be safely removed.
Best Practices
- Database Connection: Ensure the database connection is properly configured for the plugin to access the database.
- Permissions: Grant the plugin the necessary permissions to analyze query patterns and retrieve index information.
- Impact Assessment: Review the recommended index changes and assess their potential impact on other queries before applying them.
Integration
This skill can be used in conjunction with other database management plugins to automate index creation and removal based on the advisor's recommendations. It also integrates with monitoring tools to track the performance impact of the applied index changes.
GitHub Repository
Related Skills
csv-data-summarizer
MetaThis skill automatically analyzes CSV files to generate comprehensive statistical summaries and visualizations using Python's pandas and matplotlib/seaborn. It should be triggered whenever a user uploads or references CSV data without prompting for analysis preferences. The tool provides immediate insights into data structure, quality, and patterns through automated analysis and visualization.
content-collections
MetaThis skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.
llamaindex
MetaLlamaIndex is a data framework for building RAG-powered LLM applications, specializing in document ingestion, indexing, and querying. It provides key features like vector indices, query engines, and agents, and supports over 300 data connectors. Use it for document Q&A, chatbots, and knowledge retrieval when building data-centric applications.
hybrid-cloud-networking
MetaThis skill configures secure hybrid cloud networking between on-premises infrastructure and cloud platforms like AWS, Azure, and GCP. Use it when connecting data centers to the cloud, building hybrid architectures, or implementing secure cross-premises connectivity. It supports key capabilities such as VPNs and dedicated connections like AWS Direct Connect for high-performance, reliable setups.
