- Home
- Skills
- Data & Databases
- SQL Rig Free: SQL Server Starter Kit for AI Agents
SQL Rig Free: SQL Server Starter Kit for AI Agents
Safe SQL Server defaults for your AI agent: DBA rules, read-only diagnostics, and dry-run templates for Agent jobs and stored procedures.
Free
Works with the AI Agents you already use
SQL Rig Free: SQL Server Starter Kit for AI Agents
Example session with this skill installed
The order database is slow right now. Find out why.
- Read your context and instructions
- Compiled the sql rig free
The agent runs wait-stats-delta.sql, blocking-chain.sql, and expensive-queries.sql, all read-only. It summarizes the top waits since the last snapshot, identifies the head blocker and the sessions it is holding up, and lists the heaviest queries by CPU, duration, and reads with their plan handles. It then proposes next steps, such as reviewing the blocking session's open transaction or adding a covering index, and states that any change would start from a dry-run template with @DryRun = 1. It does not run any write, kill any session, or change any setting without explicit confirmation.
Connects securely to your tools. The creator never sees your data.
About this skill
AI agents write T-SQL fast and break production just as fast. SQL Rig Free gives your agent a set of rules and tested scripts to work from, so the first thing it reaches for is a read-only diagnostic or a dry-run template, not an unfiltered DELETE.
What it does
- Loads DBA rules into the agent: preferred toolchain, required shape for every write (NOCOUNT, XACT_ABORT, TRY/CATCH, idempotent guards), and a list of actions that need your explicit confirmation.
- Routes common requests to tested scripts instead of improvised SQL.
- Keeps every write behind
@DryRun = 1or-WhatIfuntil you read the plan and flip the flag.
What's included (13 working files)
- Agent rules: SQL Server DBA system prompt.
- Read-only T-SQL: blocking chains and head blockers, top queries by CPU, duration, and reads, wait stats delta, linked-server connectivity test, surface-area audit.
- Templates: Agent job with category and schedule (idempotent, dry-run default), production-safe stored procedure, orphaned-user detection with optional remap.
- PowerShell: connection smoke test, blocking snapshot to CSV.
- Guardrails: production safety rules and a pre-change review checklist.
Requirements
- SQL Server 2016 or later, or Azure SQL Managed Instance. Each script states its minimum version and required permissions in its header.
- PowerShell 5.1 or later for the .ps1 files.
- You run the scripts yourself (SSMS, sqlcmd, Azure Data Studio, PowerShell). The skill never connects to a server.
Built by Scott Coffey, sqlrig.com. Source and MIT license: https://github.com/scottkcoffey-a11y/sqlrig-free
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 2 days ago
- Free to download with an account
Requires