sqlplan-index-advisor

Installation
SKILL.md

SQL Server Index Advisor Skill

Purpose

Produce a prioritized, ready-to-run CREATE INDEX script from two independent sources:

  1. Operator-derived recommendations — index opportunities inferred directly from plan operator patterns (Key Lookups, expensive scans, Sort operators, Eager Index Spools, high-count Nested Loops, residual predicates, heap scans, backward scans)
  2. Optimizer suggestions — the explicit <MissingIndexGroup> elements SQL Server emits, consolidated and de-duplicated

Both sources feed into a single unified merge and ranking pipeline. The final output contains one CREATE INDEX statement per table group — not one per source.

Input

Accept any of:

  • One or more .sqlplan file paths
  • Raw .sqlplan XML pasted inline
  • A description of plan operators if XML is not available

How to Run

Related skills

More from vanterx/mssql-performance-skills

Installs
1
GitHub Stars
1
First Seen
13 days ago