data-migration-safety
OfficialMake database migrations safe to ship.
Software Engineering#database migrations#postgresql#risk assessment#schema change#zero downtime#supabase rls#migration linting
AuthorXipher-Labs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents high-risk database changes by reviewing migrations for reversibility, locking behavior, safe backfills, idempotence, constraint/foreign-key rollout, and Supabase RLS correctness so teams avoid outages and data integrity incidents.
Core Features & Use Cases
- Migration safety checklist enforcement: evaluates every migration for required structure (up/down), lock duration risks (e.g., ACCESS EXCLUSIVE), and rollback feasibility.
- Operational migration guidance: flags patterns like non-concurrent index creation, unbatched backfills, and non-idempotent SQL constructs, and recommends safer phased approaches.
- Supabase-specific RLS review: verifies RLS is enabled for new tables/policy changes, ensures per-operation policies exist, and catches service-role bypass risks.
- Risk-aware guidance for regulated data: applies special severity expectations when audit-log integrity or PHI compliance is implicated.
- PR-oriented output: produces actionable BLOCKING|WARN|NIT findings with location, class, risk, estimated impact, fixes, and tests.
Quick Start
Use the data-migration-safety skill on your pull request that modifies migrations, SQL schema files, Supabase migrations, or any schema/RLS-related changes so it can produce a safety verdict for each risky statement.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: data-migration-safety Download link: https://github.com/Xipher-Labs/walter-os/archive/main.zip#data-migration-safety Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.