/microsoft-sql-admin:plan-cache-qds-bridge [query text, query_hash, query_id or plan_handle]from Microsoft SQL administration
Locates a single query's cached plan and Query Store history using text, query_hash, query_id, or plan_handle. For read-only investigation of one query across cache and history.
Ships in Microsoft SQL administration. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use the lookup queries for identity resolution, database-scoped lookup, and the cache/history comparison. This is a read-only investigation; do not flush the cache, enable Query Store, force a plan or execute the workload just to make evidence appear.
plan-cache-analysis.query-store-investigation.Use the connected host's SQL query tool: prefer mssql_execute_query from the
SQL Tools MCP server that ships with the microsoft-sql-admin plugin, or an
already authorized SQL CLI connection. If that server is not connected or lists
no connections, follow the sql-tools-mcp-setup skill, which asks before
installing or configuring anything. Verify the selected server/database and
permissions before interpreting absence as a finding.
If the catalog exposes getEstimatedShowplanForQuery, it can resolve a complete
statement's optimizer hash without executing the workload. Compilation can still
require permissions, locks and auto-statistics work; skip it when the requested
scope prohibits those effects. Otherwise use the reference's text-search path
and report ambiguity. Do not send GO or rely on SET state across independent
raw-query calls. No tool available means provide the diagnostic SQL and identify
what remains unobserved.
Return query identity and uncertainty, cache observations, historical coverage, plan differences, and the next smallest useful investigation. When delegated, preserve the caller's requested scope and output format.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub microsoft/microsoft-sql --plugin microsoft-sql-admin47 skills in this plugin
/active-connectionsUse when the user asks who is connected, which sessions are idle or hold the oldest open transaction, or how connections split by login or app. If a client can't connect, use `connectivity-troubleshoot`./always-encrypted-columnsUse when the user asks which plaintext columns can or should use Always Encrypted, or why a column is disqualified. Eligibility only: not for listing already-encrypted columns or their keys./authentication-diagnosticsUse when a login fails (18456, 'Login failed for user'), a user can't open a database, a permission is denied, or an Entra or managed identity login fails. For network errors, use `connectivity-troubleshoot`.Other plugins' skills for the same job