migration-workflow

Execute EF Core migrations with SQL review, rollback planning, and test verification.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/Maj3D10/Training-Platform --skill migration-workflow-maj3d10
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migration-workflow
Source: https://github.com/Maj3D10/Training-Platform/tree/main/.agent/skills/migration-workflow
Command: npx skills add https://github.com/Maj3D10/Training-Platform --skill migration-workflow-maj3d10

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents risky EF Core migrations and platform upgrades by enforcing review, rollback readiness, and post-change verification so you don’t break production or lose data.

Core Features & Use Cases

  • EF Core migration safety: Review generated SQL (including idempotent scripts), guard against data loss and long locks, and enforce “one change per migration.”
  • Rollback and verification: Define rollback steps for migrations, NuGet changes, and .NET upgrades, and require full test runs (including integration tests with Testcontainers) after each migration step.
  • Incremental upgrade workflows: Update NuGet packages (patch/minor/major) and upgrade .NET with a staged checklist to isolate breakages and maintain confidence at every phase.

Quick Start

Use the migration-workflow skill to plan a safe path for “update database to the latest EF Core migration, review the generated SQL, then run tests and be able to roll back if anything fails.”

Frequently Asked Questions about migration-workflow

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

FAQPage Schema
How do I safely execute EF Core database migrations without breaking production?

Safe EF Core database migrations require reviewing generated SQL for data loss, guarding against long locks, enforcing one change per migration, and running integration tests after each step. Define explicit rollback steps to ensure database migration safety and prevent production failures.

What's the best way to plan a rollback strategy for .NET upgrades and NuGet package updates?

The best rollback strategy for .NET upgrades and NuGet package updates is an incremental workflow. Apply patch, minor, and major updates in staged checklists to isolate breakages, then require full test runs and define explicit rollback steps after each phase to minimize blast radius.

Why should I review idempotent SQL scripts before updating a database to the latest EF Core migration?

Reviewing idempotent SQL scripts before updating a database to the latest EF Core migration is necessary to guard against data loss and identify long locks. This SQL review ensures deterministic command sequences and verifies that only one change is applied per migration.

Does this migration workflow require integration testing with Testcontainers for NuGet updates?

Yes, the migration workflow requires integration testing with Testcontainers for NuGet updates. It enforces mandatory build and full test verification, including integration tests, after each migration step to maintain confidence and verify that incremental package updates do not introduce breakages.

How do I minimize blast radius when upgrading my target framework in dotnet?

To minimize blast radius when upgrading your target framework in dotnet, use a staged checklist workflow. Upgrade incrementally, isolating breakages at each phase, and enforce mandatory build and test verification between steps to maintain confidence throughout the dotnet upgrade process.