agentleFS
trelmitttrelmitt/claude-skills/migration-safety-reviewer/SKILL.md

migration-safety-reviewer

Skill0 starsChanged 5 months agoNo licenceView on GitHub

A pre-commit RELIABILITY gate for Postgres/Supabase schema migrations — reviews a pending migration for DESTRUCTIVE, IRREVERSIBLE, or LOCK-HEAVY operations, returning a severity-rated go/no-go report plus a safer expand-migrate-contract rewrite. Use whenever someone writes, edits, or is about to commit a file under /supabase/migrations (or any raw DDL), or asks: "is this migration safe", "will this lock the table", "review my migration", "can I ship this schema change", "is this reversible / will this drop data", "safe way to drop/rename this column", "add a NOT NULL column safely", "backfill without downtime", "migration preflight". Catches: DROP/destructive ALTER, type narrowing, NOT NULL on a populated column, renames that break in-flight code, missing IF [NOT] EXISTS, CREATE INDEX without CONCURRENTLY, ACCESS EXCLUSIVE locks on large tables, unsafe inline backfills, no rollback path. Distinct from supabase-rls-test-harness / supabase-security-reviewer (AUTHORIZATION — cross-tenant leaks) and sr-security-auditor: this asks "will it survive production data and live traffic". If the change also touches RLS, flag it and defer proof to supabase-rls-test-harness.

  • Deletes or force-pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

No licence file, so all rights are reserved — read it at the source. We count its rules but don't quote them. Read them on GitHub.

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.