# Lint PostgreSQL migrations and SQL changes before irreversible schema mistakes land with Squawk

> Catch locking, indexing, and schema-change hazards in PostgreSQL migration SQL before a review turns into downtime.

- Skill: `agentskillexchange/lint-postgresql-migrations-and-sql-changes-before-irreversib` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/lint-postgresql-migrations-and-sql-changes-before-irreversib`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/lint-postgresql-migrations-and-sql-changes-before-irreversib/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/lint-postgresql-migrations-and-sql-changes-before-irreversib

---


# Lint PostgreSQL migrations and SQL changes before irreversible schema mistakes land with Squawk

Catch locking, indexing, and schema-change hazards in PostgreSQL migration SQL before a review turns into downtime.

## Prerequisites

Squawk CLI or container image, PostgreSQL migration SQL files, and optional CI or pre-commit integration.

## Installation

Use the upstream install or setup path that matches your environment:
- npm install -g squawk-cli
- pip install squawk-cli
- docker run --rm -v $(pwd):/data ghcr.io/sbdchd/squawk:latest *.sql
- cargo install

Requirements and caveats from upstream:
- ### Or via Docker
- You can also run Squawk using Docker. The official image is available on GitHub Container Registry.
- warning[prefer-text-field]: Changing the size of a varchar field requires an ACCESS EXCLUSIVE lock, that will prevent all reads and writes to the table.

Basic usage or getting-started notes:
- [Quick Start](https://squawkhq.com/docs/) | [Playground](https://play.squawkhq.com) | [Rules Documentation](https://squawkhq.com/docs/rules) | [GitHub Action](https://github.com/sbdchd/squawk-action) | [DIY GitHub Int...
- shell
- # or via PYPI

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

## Documentation

- https://squawkhq.com

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/lint-postgresql-migrations-and-sql-changes-before-irreversible-schema-mistakes-land-with-squawk/)

