data $9.99

SQL Optimizer

Optimize SQL queries with AI-powered analysis, index suggestions, and rewrite recommendations

7.2K DOWNLOADS
1.0K STARS
4.8 RATING
9 REVIEWS
3.0.0 VERSION
MIT LICENSE
sv install datapipe/sql-optimizer

Requires the sv CLI. Installs to your project automatically.

.cursor/skills/sql-optimizer/SKILL.md

Download and place the SKILL.md file into your .cursor/skills/sql-optimizer/ directory.

curl -sL https://skillvault.md/api/packages/datapipe/sql-optimizer/download -o sql-optimizer.zip

Downloads the package as a zip archive to your current directory.

https://skillvault.md/api/packages/datapipe/sql-optimizer/download

Download the zip, extract, and copy the relevant files into your project.

SKILL: query-rewriteSKILL: index-advisorSKILL: explain-readerSKILL: n-plus-oneAGENT: sql-tunerRULESCLAUDE.MD
Claude CodeCursorCodexCopilotGemini CLI

SQL Optimizer

Paste a slow SQL query and get an optimized version with explanations. Understands PostgreSQL, MySQL, SQLite, and BigQuery dialects.

Skills

  • query-rewrite — rewrites queries for better performance while preserving semantics
  • index-advisor — analyzes query patterns and suggests optimal indexes with CREATE statements
  • explain-reader — reads EXPLAIN/EXPLAIN ANALYZE output and highlights bottlenecks in plain English
  • n-plus-one — detects N+1 query patterns in ORM code (ActiveRecord, Prisma, SQLAlchemy, Drizzle)

Agent: sql-tuner

An interactive agent that profiles your database queries, suggests schema improvements, and benchmarks before/after performance.

bash
sv install datapipe/sql-optimizer
3.0.0 Mar 22, 2026

N+1 detection skill for ORMs. Prisma and Drizzle support.

2.0.0 Feb 15, 2026

Added explain-reader skill and sql-tuner agent. BigQuery support.

1.0.0 Jan 12, 2026

Initial release with query-rewrite and index-advisor skills.

Sam Webcrafter
★★★★☆
Excellent for Postgres, decent for MySQL

PostgreSQL optimization is world-class. MySQL support works but the suggestions are less specific. BigQuery rewrite is a nice bonus.

Mar 12, 2026
Dan Morrison
★★★★★
N+1 detection is a game changer

Pointed it at our Rails codebase and it found 23 N+1 queries we had no idea about. The Prisma support is equally solid. Best data tool on SkillVault.

Mar 5, 2026
Sarah Chen
★★★★★
Found our slow queries instantly

The explain-reader skill turned a 12-second query into 80ms. The index suggestions were exactly right. Worth every penny of the subscription.

Feb 20, 2026
SIGN IN TO LEAVE A REVIEW
Write a Review