---
name: sql-query-optimization
description: Optimize SQL queries with indexes, explain plans, and query restructuring
category: Intelligence & General
---

# Sql Query Optimization

## Overview
Optimize SQL queries with indexes, explain plans, and query restructuring. This skill helps you apply structured, repeatable methods for consistent results.

## When to Use
- When you need to apply sql query optimization best practices
- When establishing processes or standards for your workflow
- When training team members on sql query optimization
- When automating or optimizing sql query optimization tasks

## Instructions
1. **Assess**: Evaluate the current state, requirements, and constraints
2. **Plan**: Define the approach, steps, and success criteria
3. **Execute**: Follow the established patterns and best practices
4. **Verify**: Check results against expected outcomes and quality standards
5. **Iterate**: Refine based on feedback and lessons learned

## Examples
```
User: Help me apply sql query optimization for my current project
Assistant: I'll help you apply sql query optimization step by step...
```

## Related Skills
- Use with `workflow` tool for orchestrated execution
- Combine with `task` tool for delegated processing
- Reference `system-prompt` for system-level integration
