query-optimize

SQL/NoSQL query optimization with N+1 detection and index recommendations

manastalukdar/ai-devstudio6 installsMITSynced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: query-optimize
description: SQL/NoSQL query optimization with N+1 detection and index recommendations
license: MIT
---

# Query Optimization & Performance Analysis

I'll analyze your database queries for performance issues, detect N+1 problems, recommend indexes, and provide query plan analysis.

**Supported Databases:**
- PostgreSQL (EXPLAIN ANALYZE)
- MySQL/MariaDB (EXPLAIN)
- MongoDB (explain())
- SQLite (EXPLAIN QUERY PLAN)

**Supported ORMs:**
- Prisma, TypeORM, Sequelize (JavaScript/TypeScript)
- Django ORM, SQLAlchemy (Python)
- Mongoose (MongoDB)

## Token Optimization

**Expected range**: 1,500–2,500 tokens (initial), 400 tokens (cache hit)

**Caching**: No persistent caching — analyzes queries from current staged/changed files.

**Early exit**: Returns immediately if no slow or unindexed queries are detected.

**Patterns used**: Grep-before-Read, early exit, git diff scope default

More Database skills

← All Database skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY