# SQL Query Optimizer Plugin

Analyze and optimize SQL queries for better performance with index suggestions and query rewrites.

## Installation

```bash
/plugin install sql-query-optimizer@claude-code-plugins-plus
```

## Usage

```bash
/optimize-query
```

## Features

- **Query Analysis**: Identify performance bottlenecks
- **Index Recommendations**: Suggest optimal indexes
- **Query Rewriting**: Provide optimized alternatives
- **Execution Plan Review**: Analyze EXPLAIN output
- **Best Practices**: Follow SQL optimization patterns

## Example

Paste your slow query and get optimization suggestions with expected performance improvements.

## Requirements

- SQL queries (PostgreSQL, MySQL, SQLite compatible)
- Access to EXPLAIN output (optional but helpful)

## License

MIT
