What problem does it solve? Slow SQL Server queries and procedures are often "fixed" with guesses—blanket NOLOCK hints, reflexive RECOMPILE, or speculative indexes—that either fail or silently break correctness. This Skill enforces an evidence-driven optimization workflow: define correctness, capture a baseline plan and statistics, change one lever, re-measure, and verify semantics before claiming any improvement. ## Core Features & Use Cases - Evidence-based T-SQL optimization: Analyze execution plans, logical reads, parameter sniffing, implicit conversions, sargability, blocking, and index strategy, then propose the smallest defensible change with before/after metrics. - PROCESIO SQL action support: Review SQL inside PROCESIO Execute Query or Execute Command actions and migrate unsafe inline <%Variable%> substitution to native typed @parameter mappings with a full mapping table. - Guarded database context collection: Bounded metadata gathering via a registered sqlserver tool, plus legacy inspection-only exporter scripts (tables, indexes, procedures/functions) gated behind explicit scope and confidentiality approval. - Use Case: A query is fast for one customer and slow for another. The Skill treats parameter sensitivity as a hypothesis, requests actual plans and representative parameter values, proposes one rewrite or index, and requires comparable before/after measurements across both parameter shapes. ## Quick Start Ask the assistant to analyze and optimize your slow SQL Server query or stored procedure, providing the query text, execution plan, and table/index definitions if available.