Agent skill
indexes
Analyze database queries and recommend missing indexes with performance impact analysis
Install this agent skill to your Project
npx add-skill https://github.com/thoreinstein/opencode-config/tree/main/skill/indexes
SKILL.md
Database Index Analysis
Current Time: !date
PostgreSQL: !psql --version
Scope: $ARGUMENTS (or entire codebase if not specified)
Scan whole codebase and tell me what indexes are missing.
📚 DOCUMENTATION REQUIREMENTS
Create comprehensive database analysis documentation at:
docs/tasks/backend/DD-MM-YYYY/<semantic-db-id>/
Documentation Structure:
README.md- Database analysis overview and objectivesquery-analysis.md- Detailed query performance analysisindex-recommendations.md- Missing indexes and impact analysisperformance-metrics.md- Before/after performance comparisonsimplementation-plan.md- Index creation strategy and migration planmonitoring-setup.md- Performance monitoring and alerting
Semantic Database Task ID Examples:
user-query-optimizationorder-performance-indexessearch-query-accelerationrelationship-index-analysisslow-query-investigation
Please analyze all database queries, identify missing indexes, and document recommendations according to the standards above.
$ARGUMENTS
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
seo
Implement SEO optimizations for specified pages or entire site
runbook
Generate operational runbooks for services, procedures, or incident response
file-organizer
Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
ultrathink
Ultra-deep multi-perspective analysis for complex architectural and strategic decisions
commit
Analyze unstaged changes and suggest atomic commit groups with messages
Didn't find tool you were looking for?