Analyzing Database Indexes
Identifies missing, redundant, or inefficient database indexes to optimize query performance based on usage patterns.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add analyzing-database-indexes npx -- -y @trustedskills/analyzing-database-indexes
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"analyzing-database-indexes": {
"command": "npx",
"args": [
"-y",
"@trustedskills/analyzing-database-indexes"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill analyzes database indexes to identify potential performance bottlenecks and areas for optimization. It can assess index usage, fragmentation, and redundancy within a given database schema. The tool provides insights into how existing indexes impact query performance and suggests improvements or removals based on analysis.
When to use it
- Slow Query Investigation: Identify if missing or inefficient indexes are contributing to slow query execution times.
- Database Maintenance Planning: Determine which indexes require maintenance (e.g., rebuilding, reorganizing) due to fragmentation.
- Schema Optimization: Evaluate the overall index strategy for a database and identify redundant or unused indexes that can be removed.
- Performance Tuning After Changes: Analyze index performance after significant data changes or application updates.
Key capabilities
- Index usage analysis
- Fragmentation assessment
- Redundancy detection
- Performance impact evaluation
- Optimization suggestions
Example prompts
- "Analyze the indexes on the 'orders' table in my database."
- "Identify any redundant indexes within the 'customers' schema."
- "What is the fragmentation level of the index on the 'product_id' column?"
Tips & gotchas
This skill requires access to the database schema and metadata. Ensure the AI agent has appropriate permissions to query system views or catalog tables for index information.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.