wait-category-analysis

Installation
SKILL.md

Wait Category Analysis

Determines why queries are slow by categorizing waits into Lock, CPU, IO, Memory, or Network. Use after running query-store-volatile-historical-slow-queries-comparison (Step 1) to diagnose root cause.

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 queries only read diagnostics (the snapshot steps use session temp tables and WAITFOR DELAY, so the tool must allow a multi-statement batch that runs for {{SnapshotDurationSeconds}} seconds). 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