ef-migration-safety

Automate EF Core migrations with pre-flight checks and rollback scripts.

1|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/martiendejong/autonomous-dev-system --skill ef-migration-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ef-migration-safety
Source: https://github.com/martiendejong/autonomous-dev-system/tree/main/.claude/skills/ef-migration-safety
Command: npx skills add https://github.com/martiendejong/autonomous-dev-system --skill ef-migration-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safe EF Core migrations are prone to deployment failures due to schema drift and misconfigured migrations. This workflow enforces pre-flight checks, detects breaking changes, and guides multi-step migrations to ensure safe production deployments.

Core Features & Use Cases

  • Pre-flight safety checks before any migration
  • Breaking-change detection and multi-step migration patterns
  • Rollback script generation and clone-database testing guidance
  • Clear, enforceable deployment checklist

Quick Start

Run the pre-flight check, then create and review a multi-step migration following the documented pattern before applying.

Frequently Asked Questions about ef-migration-safety

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent EF Core migration failures during production deployment?

Prevent EF Core migration failures by running pre-flight validation checks to detect schema drift and breaking changes before deployment. This workflow enforces multi-step migration patterns and clone-database testing to ensure safe production releases.

What is a pre-flight check for EF Core migrations?

A pre-flight check for EF Core migrations is a validation step that detects breaking changes and schema drift before deployment. It enforces an actionable checklist to verify model changes are safe to apply and guides rollback script generation.

How do I generate rollback scripts for EF Core migrations?

Generate rollback scripts for EF Core migrations as part of a multi-step deployment pattern. The workflow includes rollback script generation alongside pre-flight validation and clone-database testing to ensure safe production deployment.

How do I test EF Core migrations on a clone database before production?

Test EF Core migrations on a clone database by following the guided multi-step workflow. This process applies pre-flight validation and breaking-change detection to verify schema changes safely before touching production environments.

How do I detect breaking changes in EF Core migrations?

Detect breaking changes in EF Core migrations using pre-flight safety checks that analyze model changes before deployment. The workflow identifies potentially destructive schema modifications and enforces a multi-step migration pattern to mitigate them.