~ / rigs / vanterx / mssql-performance-skills

vanterx/mssql-performance-skills

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 l

↗ GitHub ★ 12 MIT updated 26d ago project Claude CodeCodex Claude plugin
stack: TypeScript
share on X
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
CONTEXT TAX · EVERY TURN
up to ~20.1k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Context hog · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 56/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ claude mcp add --transport http microsoft-learn https://learn.microsoft.com/api/mcp
$ npx degit vanterx/mssql-performance-skills/.claude ./rig-mssql-performance-skills  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ claude mcp add --transport http microsoft-learn https://learn.microsoft.com/api/mcp
$ npx degit vanterx/mssql-performance-skills/skills/mssql-performance-review .claude/skills/mssql-performance-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlag-review .claude/skills/sqlag-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlblocking-review .claude/skills/sqlblocking-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlbootstraplog-review .claude/skills/sqlbootstraplog-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlclusterlog-review .claude/skills/sqlclusterlog-review
$ npx degit vanterx/mssql-performance-skills/skills/sqldbconfig-review .claude/skills/sqldbconfig-review
$ npx degit vanterx/mssql-performance-skills/skills/sqldeadlock-review .claude/skills/sqldeadlock-review
$ npx degit vanterx/mssql-performance-skills/skills/sqldiskio-review .claude/skills/sqldiskio-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlencryption-review .claude/skills/sqlencryption-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlerrorlog-review .claude/skills/sqlerrorlog-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlhadr-review .claude/skills/sqlhadr-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlindex-advisor .claude/skills/sqlindex-advisor
$ npx degit vanterx/mssql-performance-skills/skills/sqlmemory-review .claude/skills/sqlmemory-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlmigration-objects-review .claude/skills/sqlmigration-objects-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlmigration-review .claude/skills/sqlmigration-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlmigration-security-review .claude/skills/sqlmigration-security-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlperfmon-review .claude/skills/sqlperfmon-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlplan-batch .claude/skills/sqlplan-batch
$ npx degit vanterx/mssql-performance-skills/skills/sqlplan-compare .claude/skills/sqlplan-compare
$ npx degit vanterx/mssql-performance-skills/skills/sqlplan-review .claude/skills/sqlplan-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlprocstats-review .claude/skills/sqlprocstats-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlquerystore-review .claude/skills/sqlquerystore-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlspn-review .claude/skills/sqlspn-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlstats-review .claude/skills/sqlstats-review
$ npx degit vanterx/mssql-performance-skills/skills/sqltrace-review .claude/skills/sqltrace-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlwait-review .claude/skills/sqlwait-review
$ npx degit vanterx/mssql-performance-skills/skills/sqlworkload-compare .claude/skills/sqlworkload-compare
$ npx degit vanterx/mssql-performance-skills/skills/ssrstracelog-review .claude/skills/ssrstracelog-review
$ npx degit vanterx/mssql-performance-skills/skills/tsql-review .claude/skills/tsql-review
$ curl -fsSL --create-dirs -o .claude/agents/check-author.md https://raw.githubusercontent.com/vanterx/mssql-performance-skills/main/.claude/agents/check-author.md
$ curl -fsSL --create-dirs -o .claude/agents/citation-auditor.md https://raw.githubusercontent.com/vanterx/mssql-performance-skills/main/.claude/agents/citation-auditor.md
$ curl -fsSL --create-dirs -o .claude/agents/consistency-reviewer.md https://raw.githubusercontent.com/vanterx/mssql-performance-skills/main/.claude/agents/consistency-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/example-builder.md https://raw.githubusercontent.com/vanterx/mssql-performance-skills/main/.claude/agents/example-builder.md
$ curl -fsSL --create-dirs -o .claude/agents/mcp-sync.md https://raw.githubusercontent.com/vanterx/mssql-performance-skills/main/.claude/agents/mcp-sync.md
$ curl -fsSL --create-dirs -o .claude/agents/mslearn-validator.md https://raw.githubusercontent.com/vanterx/mssql-performance-skills/main/.claude/agents/mslearn-validator.md
$ curl -fsSL --create-dirs -o .claude/agents/skill-scaffolder.md https://raw.githubusercontent.com/vanterx/mssql-performance-skills/main/.claude/agents/skill-scaffolder.md
$ curl -fsSL --create-dirs -o .claude/agents/tsql-lint-triager.md https://raw.githubusercontent.com/vanterx/mssql-performance-skills/main/.claude/agents/tsql-lint-triager.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Bash(git push --force*)",
      "Bash(git reset --hard*)",
      "Bash(git clean -f*)",
      "Bash(* > /dev/*)",
      "Bash(ssh *)",
      "Bash(rm -rf *)",
      "Bash(sudo *)",
      "Bash(chmod 777 *)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "node .claude/hooks/pre-tool-security.js"
          },
          {
            "type": "command",
            "command": "node .claude/hooks/ensure-gitignore.js"
          }
        ]
      }
    ]
  }
}

MCP servers (1)

serversourceest. tokens
Microsoft Learn Docs · "microsoft-learn" remote · remote 1.2k

Skills (29)

Subagents (8)

check-author
model: sonnet
Adds, edits or retires a check in an existing skill of this repository and propagates the change to every file that states a count, range or ID. Use when asked to add a check, new check, retire a chec
citation-auditor
model: sonnet
Audits this repository's credit-and-cite rule — finds checks, thresholds, formulas, quotes, parameter names and adapted work that do not say where they came from, checks that cited sources exist and s
consistency-reviewer
model: sonnet
Finds semantic drift across this repository's 29 skills and root docs that verify-docs.sh cannot detect — the same metric given different thresholds in two skills, references to retired or renumbered
example-builder
model: opus
Builds or refreshes a skill's worked example in this repository — a realistic, fictional input artifact that triggers a deliberate spread of checks, and the matching -analysis.md that follows the skil
mcp-sync
model: sonnet
Keeps this repository's remote MCP server (mcp-server/, deployed to Cloudflare Workers) in step with the skills — regenerates skills-data.ts from every SKILL.md, checks that ARTIFACT_SKILL_MAP routes
mslearn-validator
model: opus
Validates SQL Server, Azure SQL, Windows Server and PowerShell claims in this repository against Microsoft Learn, using the Microsoft Learn MCP tools. Use after editing any SKILL.md, check-explanation
skill-scaffolder
model: opus
Creates a new skill in this repository end to end — directory layout, SKILL.md, references, evals, examples, scripts — and registers it everywhere the repo lists skills, so verify-docs.sh passes with
tsql-lint-triager
model: sonnet
Triages failures from the repository's T-SQL lint gate (scripts/lint-tsql.ps1, run by lint-scripts.sh) — classifies each failing .sql file or sql fenced block in Markdown as a fragment, a ScriptDom pa

Hooks (4)

eventmatcherruns
PreToolUseBashnode .claude/hooks/pre-tool-security.js
PreToolUseBashnode .claude/hooks/ensure-gitignore.js
PostToolUseWrite|Editnode .claude/hooks/scoped-verify-docs.js
Stop*node .claude/hooks/stop-secret-scan.js

Permissions

deny (8)
Bash(git push --force*)
Bash(git reset --hard*)
Bash(git clean -f*)
Bash(* > /dev/*)
Bash(ssh *)
Bash(rm -rf *)
Bash(sudo *)
Bash(chmod 777 *)
ask (0)
—
allow (30)
Bash(bash scripts/verify-docs.sh)
Bash(git status)
Bash(git diff*)
Bash(git log*)
Bash(git add*)
Bash(git commit*)
Bash(git push origin*)
Bash(git checkout*)
Bash(git branch*)
Bash(git fetch*)
Bash(git merge*)
Bash(git pull*)
Bash(gh pr *)
Bash(gh issue *)
Bash(gh release *)
Bash(gh repo view*)
Bash(gh repo clone*)
Bash(gh search *)
Bash(gh api *)
Bash(node .claude/hooks/pre-tool-security.js)
Bash(node .claude/hooks/ensure-gitignore.js)
Bash(node .claude/hooks/stop-secret-scan.js)
Bash(node .claude/hooks/scoped-verify-docs.js)
Bash(npm ci)
Bash(npm run *)
Bash(npx wrangler*)
Bash(npx ecc-agentshield*)
mcp__microsoft-learn__microsoft_docs_search
mcp__microsoft-learn__microsoft_docs_fetch
mcp__microsoft-learn__microsoft_code_sample_search

Similar rigs

copied ✓