sqlplan-compare skillA
sqlplan-compare is agent-read markdown (skill) from vanterx/mssql-performance-skills: Diff two SQL Server execution plans (baseline vs regression) to identify what changed — join strategies, memory grants, operator topology, new warnings, and missing indexes. Applies 20 checks (C1–C20). Use when a query regressed after a deployment, statistics update, schema change, or SQL Server version upgrade..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# SQL Server Execution Plan Comparison Skill ## Purpose Identify what changed between two execution plans for the same query — one known-good (baseline) and one regressed (new). Produce a side-by-side diff that explains why the query is slower and what to fix. Applies 20 regression checks (C1–C20). ## Input Accept any of: - Two `.sqlplan` file paths: `baseline.sqlplan` and `new.sqlplan` - Two blocks of raw `.sqlplan` XML pasted inline, labeled Baseline and New - A description of both plans if XML is not available ## How to Run 1. Parse both plans independently 2. Extract the comparison metrics listed below for each plan 3. Produce a side-by-side diff table, then a findings section for every significant change 4. Conclude with a prioritized fix list --- ## Metrics to Compare ### Statement-Level | Metric | Where to Find | Signal | |--------|--------------|--------| | StatementSubTreeCost | `StmtSimple/@StatementSubTreeCost` | > 2× increase = regression | | DegreeOfParallelism | `QueryPlan/@DegreeOfParallelism` | DOP drop = serial plan forced | | GrantedMemory (KB) | `MemoryGrantInfo/@GrantedMemory` | > 2× increase = cardinality inflation | …
Read the whole file at its exact version.
How to install
mdr add vanterx/mssql-performance-skills/sqlplan-compare@git:20260607.6ff4f7amdr add vanterx/mssql-performance-skills/sqlplan-compare@sha256:1ddc8392b441cf03Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_mxgnekwqhsnke4gb)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260607.6ff4f7a latest | 2026-06-07 | 6ff4f7a | 16,652 B | A | view · diff |
| git:20260605.9ec0ebe | 2026-06-05 | 9ec0ebe | 16,651 B | A | view · diff |
| git:20260603.6f65dab | 2026-06-03 | 6f65dab | 16,654 B | A | view · diff |
| git:20260531.e133523 | 2026-05-31 | e133523 | 16,037 B | A | view · diff |
| git:20260529.c32faaf | 2026-05-29 | c32faaf | 11,543 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (16652 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
vanterx/mssql-performance-skills · 5 stars · license MIT · pushed 2026-09-19 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_mxgnekwqhsnke4gb GET https://markdownregistry.com/api/v1/resolve?ref=vanterx/mssql-performance-skills/sqlplan-compare GET https://markdownregistry.com/api/v1/blob/1ddc8392b441cf031c020e5b6f3d77c00bbea79fe4467993179d6cf8fe1a6bd2
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.