/microsoft-sql-admin:health-audit-sqlserver [DatabaseName] [LookbackHours] [CriticalOnly]from Microsoft SQL administration
Orchestrates a health audit of SQL Server or Managed Instance, checking availability, integrity, resources, storage, backups, HA, jobs, and security. Executes read-only T-SQL queries to surface current failures and risks.
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 this skill to answer: What is unhealthy, failing, anomalous, or operationally risky now or within the requested lookback window?
This skill is an orchestration layer. It collects bounded health evidence and routes confirmed signals to specialist skills. It does not replace configuration governance, workload tuning, or specialist incident investigations.
Supported targets:
Not supported:
UNKNOWN, never PASS.IncludeSensitiveText = true.IncludeExpensiveChecks = true. Error-log, dump, registry, and other
privileged checks require IncludePrivilegedChecks = true.ERROR, and continue only with independent
checks. Do not retry with broader permissions or an unbounded alternative.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. 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,
provide the T-SQL for the user to run and ask for the results.VIEW SERVER PERFORMANCE STATE (VIEW SERVER STATE before SQL Server 2022) or, on Azure
SQL Database, VIEW DATABASE PERFORMANCE STATE or ##MS_ServerStateReader##, plus any other read
permission these queries need. A tool is only as read-only as the login it connects with.| Parameter | Default | Description |
|---|---|---|
| LookbackHours | 24 | Recent evidence window |
| DatabaseName | null | Optional single-database scope |
| IncludeSystemDatabases | false | Include master, model, msdb, and tempdb where applicable |
| IncludeExpensiveChecks | false | Allow bounded medium/high-cost checks |
| IncludePrivilegedChecks | false | Allow error-log and dump evidence |
| IncludeSensitiveText | false | Allow sensitive values in evidence and output |
| SampleCount | 3 | Number of resource snapshots; minimum 2, maximum 10 |
| SampleIntervalSeconds | 5 | Delay between snapshots; minimum 2, maximum 60 |
| TopN | 20 | Maximum rows per ranked query; maximum 100 |
| TimeoutSeconds | 30 | Per-query timeout |
| CriticalOnly | false | Run only Step 0, baseline, and critical checks |
| DeploymentHint | auto | auto, onprem, or azure-vm |
Clamp out-of-range values to the documented limits and disclose that in the report.
When a step names a file, read it from references/ relative to this SKILL.md before
executing the step.
Normalize each check to:
check_id
status: PASS | FAIL | WARN | INFO | UNKNOWN | NOT_APPLICABLE | ERROR
severity: CRITICAL | HIGH | MEDIUM | LOW | INFORMATIONAL
scope_type
scope_name
observed_value
expected_condition
evidence
evidence_time_utc
data_window
permission_state
capability_state
confidence
recommendation
verification_action
Execute in order. Do not skip Step 0 and do not run extra queries.
Load references/step-0-platform-capabilities.md.
Build the complete EnvironmentProfile and eligibility plan before continuing.
Load references/step-1-scope-and-baseline.md. Establish UTC time, uptime, reset boundaries, database scope, and evidence windows. Missing baseline evidence lowers confidence for cumulative DMV findings.
Load references/step-2-critical-health.md. Run critical availability and integrity checks first. Promote active outage, recovery, suspect page, severe HA, or dump/error evidence to the top of the report.
If CriticalOnly = true, skip Steps 3-6 after Step 2, evaluate eligible Step 7 routing, and
continue to synthesis.
Load references/step-3-resource-health.md.
Collect SampleCount bounded snapshots at SampleIntervalSeconds. Compare samples; do not infer
sustained pressure from one point. Return dominant signals and routing candidates, not speculative
root cause.
Load references/step-4-storage-and-tempdb-health.md. Assess capacity, file state, log usage, VLF state, tempdb layout, and bounded IO evidence using only eligible variants.
Load references/step-5-backup-ha-jobs.md. Assess backup freshness, current HA/log-shipping state, recent Agent failures, and notification coverage. Do not claim backup or HA compliance without workload RPO/RTO requirements. Treat Managed Instance built-in HA and managed backups as platform-managed controls.
Load references/step-6-security-exposure.md. Report immediate exposure with minimum disclosure. Redact principal names by default and separate confirmed dangerous state from policy questions.
Load references/step-7-targeted-drilldowns.md. Invoke only specialists justified by captured evidence. Pass identifiers, database names, time windows, and dominant signals. Do not repeat specialist query sets.
Load references/decision-tree.md, classify each finding and the overall health state, then load references/report-template.md and produce the report.
HA-* check ID for every finding.UNKNOWN, ERROR, NOT_APPLICABLE, and skipped coverage explicitly.HEALTHY if any mandatory check is UNKNOWN or ERROR.references/decision-tree.md (opens in a new tab)references/report-template.md (opens in a new tab)references/step-0-platform-capabilities.md (opens in a new tab)references/step-1-scope-and-baseline.md (opens in a new tab)references/step-2-critical-health.md (opens in a new tab)references/step-3-resource-health.md (opens in a new tab)references/step-4-storage-and-tempdb-health.md (opens in a new tab)references/step-5-backup-ha-jobs.md (opens in a new tab)references/step-6-security-exposure.md (opens in a new tab)references/step-7-targeted-drilldowns.md (opens in a new tab)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