mssql-performance-revi…
Agentic offline orchestrator for end-to-end SQL Server performance reviews. Forms hypotheses from artifacts or symptoms, dispatches the specialised review…
Audits the operational-object migration plan for a SQL Server move with 16 checks (M1-M16) — SQL Agent jobs/operators/alerts/proxies, linked servers, Database Mail, backup devices, custom error messages, server-level triggers, Extended Events sessions, and endpoints. Use this
$ npx -y skills add vanterx/mssql-performance-skills --skill sqlmigration-objects-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sqlmigration-objects-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Audits the operational-object migration plan for a SQL Server move with 16 checks (M1-M16) — SQL Agent jobs/operators/alerts/proxies, linked servers, Database Mail, backup devices, custom error messages, server-level triggers, Extended Events sessions, and endpoints. Use this
name: sqlmigration-objects-review description: Audits the operational-object migration plan for a SQL Server move with 16 checks (M1-M16) — SQL Agent jobs/operators/alerts/proxies, linked servers, Database Mail, backup devices, custom error messages, server-level triggers, Extended Events sessions, and endpoints. Use this skill when a user is migrating a SQL Server instance and needs to carry over scheduled jobs, linked servers, mail profiles, or other instance-level objects, or asks "what instance objects do I need to recreate after migration." Trigger whenever operational-object portability during a migration is the topic; dispatched here from /sqlmigration-review for the operational-object family. triggers: - /sqlmigration-objects-review - /migration-objects-review - /sql-migration-instance-objects
Reviews the operational-object family of a SQL Server migration — the slice `sqlmigration-review` dispatches here rather than checking itself. This skill owns 16 checks (M1–M16) covering whether instance-level operational objects survive a backup/restore or log shipping/Always On AG seeding migration, since none of these objects travel with a database backup/restore — they live in `msdb`/`master` at the instance level and must be migrated separately.
with stale notification addresses, alerts tied to error numbers not raised on target, proxy account credential mapping, job schedule timezone drift
collation-compatible setting
the new instance
All fix recipes use native T-SQL system objects/scripts, the in-box `SqlServer` PowerShell module, and `sqlcmd`/`bcp` — no third-party module is referenced or required.
Accepts any of the following:
1. **Source and target server facts pasted as text** — job definitions, linked server lists, mail profile names, target platform 2. **Capture script output** (`.txt`/`.csv`) — see `scripts/capture-objects-facts.sql` 3. **Natural-language description** — "migrating 15 Agent jobs and 3 linked servers to a new instance" 4. **File path to a directory of exported artifacts** — SSMS Generate Scripts output for Agent jobs/linked servers, `sp_helplinkedsrvlogin` dumps
Recommended capture (run on the **source** instance):
SELECT j.name, j.enabled, c.name AS category_name, j.owner_sid FROM msdb.dbo.sysjobs j LEFT JOIN msdb.dbo.syscategories c ON j.category_id = c.category_id; SELECT name, product, provider, data_source, is_linked, is_collation_compatible FROM sys.servers WHERE is_linked = 1; SELECT name, description FROM msdb.dbo.sysmail_profile; SELECT name, physical_name, type_desc FROM sys.backup_devices; SELECT message_id, language_id, severity, text FROM sys.messages WHERE message_id >= 50000; SELECT name, type_desc, is_disabled FROM sys.server_triggers; SELECT name, is_running FROM sys.dm_xe_sessions; SELECT name FROM sys.server_event_sessions;
**Trigger:** A job step's `database_name` (`msdb.dbo.sysjobsteps`) references a database that is not part of the migration's database scope, or has a different name on the target. **Severity:** Critical **Fix:** Update `database_name` on each affected job step via `sp_update_jobstep` after confirming the actual target database name, or exclude the job from migration if its dependent database is being decommissioned.
**Trigger:** A job's `owner_sid` does not resolve to a login on the target instance (the owning login was not migrated, or login migration ran after job migration). **Severity:** Warning **Fix:** Re-run `sp_update_job @job_name = '<name>', @owner_login_name = '<login>';` once the owning login exists, or reassign ownership to `sa`/a service account if the original owner is intentionally not migrating — see `/sqlmigration-security-review` J1/J2 for the login migration sequencing this depends on.
**Trigger:** An Agent operator's `email_address`/`pager_address` is unchanged from source, and the target instance's outbound mail path (Database Mail profile, SMTP relay) has not been verified to reach that address. **Severity:** Warning **Fix:** Test notification delivery explicitly post-migration with `EXEC msdb.dbo.sp_notify_operator` (test message) rather than assuming the address is reachable just because the operator definition migrated correctly.
**Trigger:** An Agent alert (`msdb.dbo.sysalerts`) fires on a specific `message_id`/severity combination tied to a feature or configuration (e.g., a custom error message via `sys.messages`, or an AG-specific error) that does not exist or is not enabled on the target. **Severity:** Warning **Fix:** Cross-reference each alert's `message_id` against `sys.messages` on the target before migrating the alert; migrate the underlying custom error message first if it's user-defined (see M13).
**Trigger:** A job step uses a proxy account (`msdb.dbo.sysproxies`) whose backing credential was not migrated or was migrated after the proxy. **Severity:** Critical **Fix
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 lock blocking from sys.dm_exec_requests, sys.dm_exec_sessions, sys.dm_os_waiting_tasks, sys.dm_tran_locks, open-transaction DMVs, blocked…
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…