Skip to content
Back to skills

Diff Live Database Schemas Against Declarative Sql Before Schema Drift Reaches Production With Sqldef

ASecurity

Compare checked-in SQL against live MySQL, PostgreSQL, SQLite, or SQL Server schemas and generate a reviewable apply plan before agents touch production databases.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 8, 2026
ai-agentsgosqldockergitdatabasesecuritydocumentation

Works with

  • cli

Security analysis

A100/100

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill diff-live-database-schemas-against-declarative-sql-before-schema-drift-reaches-production-with-sqldef --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diff Live Database Schemas Against Declarative Sql Before Schema Drift Reaches Production With Sqldef?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Diff Live Database Schemas Against Declarative Sql Before Schema Drift Reaches Production With Sqldef
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-diff-live-database-schemas-against-declarative-sql/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-diff-live-database-schemas-against-declarative-sql)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Diff live database schemas against declarative SQL before schema drift reaches production with sqldef"
slug: "diff-live-database-schemas-against-declarative-sql-before-schema-drift-reaches-production-with-sqldef"
description: "Compare checked-in SQL against live MySQL, PostgreSQL, SQLite, or SQL Server schemas and generate a reviewable apply plan before agents touch production databases."
github_stars: 3076
verification: "security_reviewed"
source: "https://github.com/sqldef/sqldef"
author: "sqldef"
publisher_type: "organization"
category: "Runbooks & Diagnostics"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "sqldef/sqldef"
  github_stars: 3076
---

# Diff live database schemas against declarative SQL before schema drift reaches production with sqldef

Compare checked-in SQL against live MySQL, PostgreSQL, SQLite, or SQL Server schemas and generate a reviewable apply plan before agents touch production databases.

## Prerequisites

Go-built sqldef binary and access to a supported relational database

## Installation

Use the upstream install or setup path that matches your environment:
- Docker images are available on Docker Hub:
- brew install sqldef/sqldef/mysqldef
- brew install sqldef/sqldef/psqldef
- brew install sqldef/sqldef/sqlite3def

Requirements and caveats from upstream:
- ### Docker images
- https://hub.docker.com/u/sqldef
- Debian packages are not currently available. Use the pre-built binaries or Docker images instead.

Basic usage or getting-started notes:
- Each database gets its own command (mysqldef, psqldef, sqlite3def, mssqldef) that mimics the connection options of the native database client, making it familiar and easy to integrate into existing workflows. The tool...
- ### Basic Workflow
- This is the basic workflow, which is identical across all databases - only the connection options differ between commands.

- Source: https://github.com/sqldef/sqldef
- Extracted from upstream docs: https://raw.githubusercontent.com/sqldef/sqldef/HEAD/README.md

## Documentation

- https://github.com/sqldef/sqldef

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/diff-live-database-schemas-against-declarative-sql-before-schema-drift-reaches-production-with-sqldef/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.