investigate-statistics-issues

Installation
SKILL.md

Statistics Issues Investigation

Investigates statistics health across 20 diagnostic steps: staleness, histogram quality, plan cache impact, index correlation, auto-update thresholds, duplicates, and more.

Required tools

  • A SQL query tool connected to the target server and database. Prefer, in order: the SQL Tools MCP server that ships with the microsoft-sql-admin plugin (mssql_list_database_connections, mssql_connect_database, then mssql_execute_query); any other SQL tool the agent host provides for running T-SQL and reading result sets; sqlcmd from a terminal. The diagnostic queries are read-only; run UPDATE STATISTICS, CREATE/DROP STATISTICS, or ALTER DATABASE remediation only when the user asks for it. If the SQL Tools MCP server is not connected or lists no connections, follow the sql-tools-mcp-setup skill, which asks before installing or configuring anything. If no SQL tool can be made available, give the user the T-SQL to run and ask for the results.

Prerequisites

Installs
31
GitHub Stars
66
First Seen
11 days ago