migration-check

Validate EF Core migrations for destructive operations and backward compatibility.

2|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/dimsour/dotnet-ai-toolkit --skill migration-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migration-check
Source: https://github.com/dimsour/dotnet-ai-toolkit/tree/main/plugins/dotnet-copilot/skills/migration-check
Command: npx skills add https://github.com/dimsour/dotnet-ai-toolkit --skill migration-check

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies potential issues in EF Core migrations, such as destructive operations, downtime risk, and backward compatibility, before they impact production.

Core Features & Use Cases

  • Destructive Operations Detection: Identifies dropped columns, NOT NULL additions without defaults, and data-destructive renames.
  • Risky Operations Validation: Checks for new indexes on large tables, foreign key additions, and computed column additions.
  • Safe Operations Flagging: Flags new nullable columns and new tables.
  • Two-Phase Patterns: Provides guidance on safely renaming columns and adding NOT NULL constraints.
  • Integration: Integrates with the dotnet ef migrations workflow for easy use.

Quick Start

Use the migration-check skill to validate a pending migration named 'AddTenantScope'.

Frequently Asked Questions about migration-check

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

FAQPage Schema
How do I check EF Core migrations for destructive operations before deploying?

Validate EF Core migrations for destructive operations by detecting dropped columns, NOT NULL additions without defaults, and data-destructive renames before they impact production during pre-deploy reviews.

What EF Core migration changes cause downtime risk in production?

EF Core migration downtime risks include new indexes on large tables, foreign key additions, and computed column additions. Validating these risky operations before deployment prevents unexpected production outages.

How do I safely rename columns in EF Core without breaking backward compatibility?

Safely renaming columns requires two-phase patterns to maintain backward compatibility. This involves applying incremental migration changes sequentially so older application versions continue functioning during deployment.

Can I add NOT NULL constraints to existing columns without causing downtime?

Adding NOT NULL constraints without defaults causes downtime. Apply two-phase patterns by first adding the column as nullable, backfilling data, and then enforcing the constraint in a subsequent migration.

Does this migration validation integrate with the dotnet ef migrations workflow?

Yes, migration validation integrates directly with the dotnet ef migrations workflow. You can validate a pending migration like 'AddTenantScope' to automatically check for safe, risky, and destructive operations.

What EF Core schema changes are considered safe operations?

Safe EF Core schema operations include adding new nullable columns and creating entirely new tables. These operations are flagged as safe because they avoid modifying existing data structures and prevent backward compatibility issues.