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.