# Sql Migration Reviewer

> Reviews a SQL migration file for safety before it ships to production, checking for locking risk, missing rollback statements, unsafe column drops, and index changes made without CONCURRENTLY. Use when the user asks to review, check, or sanity-test a migration file, a schema change, or a raw `.sql` file that alters a table. Not for writing migrations from scratch, and not for reviewing applicatio…

- **Type:** Skill
- **Install:** `agentstack add skill-aneesh-a7-skill-lint-sql-migration-reviewer`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [aneesh-a7](https://agentstack.voostack.com/s/aneesh-a7)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [aneesh-a7](https://github.com/aneesh-a7)
- **Source:** https://github.com/aneesh-a7/skill-lint/tree/main/examples/good/sql-migration-reviewer

## Install

```sh
agentstack add skill-aneesh-a7-skill-lint-sql-migration-reviewer
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# SQL Migration Reviewer

Reads a single `.sql` migration file and flags changes that are risky to run
against a live database: missing `CONCURRENTLY` on index creation, `DROP
COLUMN` without a prior deprecation window, unbounded `UPDATE`/`DELETE`, and
migrations with no corresponding rollback.

## Usage

Point it at a migration file and ask for a review:

```
review this migration for safety: migrations/0042_add_user_status.sql
```

The output is a list of findings, each tied to the specific statement that
triggered it, with a suggested rewrite.

See [references/checklist.md](references/checklist.md) for the full set of
checks and the reasoning behind each one.

## When NOT to use

- Writing a new migration from scratch (this only reviews existing SQL).
- Reviewing ORM migration code with no raw SQL statements to inspect.
- Reviewing schema changes for a database engine other than Postgres/MySQL,
  where the locking semantics below don't apply.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [aneesh-a7](https://github.com/aneesh-a7)
- **Source:** [aneesh-a7/skill-lint](https://github.com/aneesh-a7/skill-lint)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-aneesh-a7-skill-lint-sql-migration-reviewer
- Seller: https://agentstack.voostack.com/s/aneesh-a7
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
