sqlplan-review

Installation
SKILL.md

SQL Server Execution Plan Review Skill

Purpose

Analyze a SQL Server execution plan for performance anti-patterns and produce a prioritized, actionable report. Based on the same ruleset used by SentryOne Plan Explorer and similar tools. Covers 99 checks across statement-level (S1–S33) and node-level (N1–N66) categories.

Input

Accept any of:

  • Raw .sqlplan XML (paste or file contents)
  • A description of the plan tree (operator names, row counts, costs)
  • A question like "why is this query slow?" with plan details included

If the user provides XML, extract the relevant attributes yourself before running checks. If the input is a description, apply the checks based on what is mentioned.

How to Run

A .sqlplan XML contains one or more <StmtSimple> elements (a single query, or many in a stored procedure).

Related skills

More from vanterx/mssql-performance-skills

Installs
2
GitHub Stars
1
First Seen
13 days ago