mssql-performance-revi…
Agentic offline orchestrator for end-to-end SQL Server performance reviews. Forms hypotheses from artifacts or symptoms, dispatches the specialised review…
Analyzes SQL Server SPN (Service Principal Name) configuration and Kerberos delegation settings to diagnose authentication failures, NTLM fallback, and double-hop connectivity problems. Use this skill when users receive Kerberos errors, "Cannot generate SSPI context", ANONYMOUS
$ npx -y skills add vanterx/mssql-performance-skills --skill sqlspn-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sqlspn-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Analyzes SQL Server SPN (Service Principal Name) configuration and Kerberos delegation settings to diagnose authentication failures, NTLM fallback, and double-hop connectivity problems. Use this skill when users receive Kerberos errors, "Cannot generate SSPI context", ANONYMOUS
name: sqlspn-review description: Analyzes SQL Server SPN (Service Principal Name) configuration and Kerberos delegation settings to diagnose authentication failures, NTLM fallback, and double-hop connectivity problems. Use this skill when users receive Kerberos errors, "Cannot generate SSPI context", ANONYMOUS LOGON failures, linked servers fall back to NTLM, AG listener connections fail, or constrained delegation is needed for a middle-tier application, and you need to identify missing, duplicate, or misconfigured SPNs and delegation settings. Applies 54 checks (K1–K54) covering SPN presence, service account binding, AG listener and alias, permissions, Kerberos delegation, AD account sensitivity, Entra ID hybrid, gMSA/FCI scenarios, double-hop platform constraints for linked servers and SSISDB, clock skew and token size prerequisites, SQL Server on Linux keytabs, and client driver limitations. triggers: - /sqlspn-review
Analyze SQL Server SPN configuration and Active Directory delegation attributes to surface Kerberos authentication failures, NTLM fallback causes, and double-hop connectivity problems. Applies 54 checks (K1–K54) across eleven categories:
short-hostname variant, port mismatch, and FCI Virtual Network Name
vs domain account, stale SPNs from old accounts, MSA/gMSA auto-registration gaps
alias SPN, multi-subnet listener coverage
unconstrained delegation, NTLM fallback signal
configured, missing target SPN, protocol transition, RBCD misconfiguration, delegation scope
Users membership on end-user, computer account SPN conflict, computer account unconstrained delegation, service account in Protected Users
auth with orphaned AD SPN, Azure SQL MI Windows Authentication flow, gMSA rollover drift, FCI node SPN leak, distributed AG forwarder SPN, TrustedToAuthForDelegation on an RBCD path, encryption type mismatch, AdminSDHolder SPN write block, DNS CNAME alias without SPN
constrained delegation version floor, SSISDB constrained delegation unsupported, named instance dynamic port
under AES enforcement, forest boundary
keytab ownership and permissions
account password change without restart, Report Server missing RSWindowsNegotiate
Accept any of:
1. **setspn output** — paste output from one or more of:
2. **AD attribute output** — paste output from `Get-ADUser`, `Get-ADComputer` or `Get-ADServiceAccount` showing delegation and encryption attributes (`TrustedForDelegation`, `TrustedToAuthForDelegation`, `msDS-AllowedToDelegateTo`, `msDS-AllowedToActOnBehalfOfOtherIdentity`, `msDS-SupportedEncryptionTypes`, `memberOf`) 3. **Kerberos Configuration Manager or SQLCHECK output** — paste the KCM SPN tab results or the SQLCHECK `Suggested SPN / Exists / Status` table 4. **Linux keytab output** — paste `klist -kte <keytab>`, `mssql-conf validate-ad-config` results, or the `network.kerberoskeytabfile` / `network.privilegedadaccount` settings 5. **Natural language description** — describe the authentication failure, the SQL instance name, the service account, and any error messages observed
For best results, provide output from all capture commands below. When only partial data is available, state which checks cannot be evaluated and why.
Microsoft ships two diagnostic tools for this problem class. Prefer them over hand-reading `setspn` output — both produce a structured verdict the analysis can consume directly.
setspn -Q MSSQLSvc/* setspn -L DOMAIN\sqlsvc setspn -X Get-ADUser DOMAIN\sqlsvc -Properties TrustedForDelegation, TrustedToAuthForDelegation, msDS-AllowedToDelegateTo, ServicePrincipalNames, MemberOf, msDS-SupportedEncryptionTypes Get-ADComputer SQLNODE1 -Properties TrustedForDelegation, msDS-AllowedToActOnBehalfOfOtherIdentity, ServicePrincipalNames, msDS-SupportedEncryptionTypes # gMSA / MSA service accounts (K11, K34) Get-ADServiceAccount sqlsvc -Properties ServicePrincipalNames, msDS-SupportedEncryptionTypes # Verify cached Kerberos tickets on the client machine (run as the connecting user) klist # Clear ticket cache to force fresh acquisition during testing klist purge # Request a service ticket directly — surfaces KDC_ERR_ETYPE_NOTSUPP and principal er
SQL Server performance tuning skills for LLMs — 829 checks across 26 skills covering T-SQL, execution plans, wait stats, deadlocks, Query Store, indexes, encryption, Always On AG, WSFC, ERRORLOG, SPN, memory, disk I/O, config drift, setup logs, SSRS & migration readiness. Remote MCP server on Cloudflare Workers.
Repo: vanterx/mssql-performance-skills
Agentic offline orchestrator for end-to-end SQL Server performance reviews. Forms hypotheses from artifacts or symptoms, dispatches the specialised review…
Audits SQL Server Always On Availability Group configuration correctness across all layers — prerequisites, replica design, listener architecture, backup…
Analyze SQL Server Setup Bootstrap log files to diagnose failed installations, failed Cumulative Update or Service Pack patching, failed cluster node…
Analyzes Windows Server Failover Cluster (WSFC) CLUSTER.LOG files for Always On Availability Group root-cause diagnosis. Use this skill when an availability…
Analyze SQL Server instance and database configuration drift against proven DBA best practices. Applies 29 checks (B1–B29) across five categories: parallelism…
Analyze SQL Server deadlock XML (from system_health XE session, SSMS deadlock graph, or trace) to identify root cause and produce a prioritized remediation…