verify-ef-migration

Validate Entity Framework Core migrations for naming conventions, rollback safety, and destructive changes.

2|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/daeha76/RianFriends --skill verify-ef-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verify-ef-migration
Source: https://github.com/daeha76/RianFriends/tree/main/.claude/skills/verify-ef-migration
Command: npx skills add https://github.com/daeha76/RianFriends --skill verify-ef-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the critical checks for Entity Framework Core migrations, ensuring they follow naming conventions, are safely reversible, and do not contain destructive operations, preventing data loss and deployment issues.

Core Features & Use Cases

  • Naming Convention Check: Verifies migrations use PascalCase and a verb-based naming scheme.
  • Rollback Safety: Confirms that Down() methods are implemented for reversibility.
  • Destructive Change Detection: Flags operations like DropTable or DropColumn in Up() methods.
  • Duplicate Timestamp Detection: Identifies migrations with identical timestamps to prevent conflicts.
  • Pending Migration Check: Lists migrations that have been generated but not yet applied to the database.
  • Use Case: Before merging a pull request that includes new database schema changes, run this Skill to automatically validate all new EF Core migrations, catching potential issues early in the development cycle.

Quick Start

Run the verify-ef-migration skill to check the latest EF Core migrations for safety and correctness.

Frequently Asked Questions about verify-ef-migration

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

FAQPage Schema
How do I validate EF Core migrations for rollback safety and destructive changes?

To validate EF Core migrations for rollback safety, scan Migrations/*.cs files to confirm Down() methods are implemented and flag destructive operations like DropTable or DropColumn in Up() methods. This prevents data loss and deployment issues before merging database schema changes.

What naming conventions should EF Core migrations follow to prevent conflicts?

EF Core migrations should follow PascalCase and a verb-based naming scheme to prevent conflicts. Additionally, checking for duplicate timestamps across migration files avoids deployment conflicts and maintains a clean migration history.

How can I check for pending EF Core migrations before deploying?

Check for pending EF Core migrations by listing generated migrations not yet applied to the database. This ensures all new schema changes are accounted for and validated before a deployment cycle begins.

Does EF Core migration validation flag missing Down methods?

Yes, EF Core migration validation flags missing Down() methods to ensure migrations are safely reversible. Confirming Down() methods are implemented allows rolling back database schema changes safely if deployment issues occur.

When should I run EF Core migration checks in the development cycle?

Run EF Core migration checks before merging a pull request that includes new database schema changes. Automating these checks catches potential data loss risks, naming convention violations, and duplicate timestamps early in the development cycle.