add-migration

Generate and apply EF Core migrations for .NET projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kirillshilin/instructions --skill add-migration-kirillshilin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-migration
Source: https://github.com/kirillshilin/instructions/tree/main/obsolete/claude/skills/add-migration
Command: npx skills add https://github.com/kirillshilin/instructions --skill add-migration-kirillshilin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safe workflow for adding and applying an Entity Framework Core migration in a .NET project, ensuring changes are deliberate and reviewable before deployment.

Core Features & Use Cases

  • Detect uncommitted model changes and verify code compiles before generating migrations.
  • Generate a descriptive migration name and review the generated file for correctness.
  • Apply the migration to a local or test database and run integration tests to validate behavior.
  • Provide a clear report detailing changes, risks, and rollback steps.

Quick Start

Create a migration with a descriptive PascalCase name and apply it to your local database using the EF Core CLI commands.

Frequently Asked Questions about add-migration

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

FAQPage Schema
How do I add an EF Core migration safely in a .NET project?

To add an EF Core migration safely, you should detect uncommitted model changes, verify the code compiles, generate a named migration, and review the file before applying it to the database.

What is the safest workflow for applying Entity Framework Core schema changes?

The safest workflow for applying Entity Framework Core schema changes involves verifying compilation, generating a descriptive migration, applying it to a local database, and running integration tests to validate behavior.

Do I need the dotnet SDK installed to generate EF Core database migrations?

Yes, you need the dotnet SDK with EF Core tooling installed, along with access to your project files, to generate and apply database migrations for your .NET application.

Can I apply EF Core migrations to a local or test database for validation?

Yes, you can apply EF Core migrations to a local or test database to synchronize the schema and run integration tests, ensuring the model changes behave as expected before deployment.

What should I check before generating an Entity Framework Core code-first migration?

Before generating an Entity Framework Core code-first migration, you should check for uncommitted domain model changes and ensure the project compiles successfully to prevent migration errors.

Why does my EF Core migration workflow need a rollback plan?

An EF Core migration workflow needs a rollback plan to document potential risks and reversal steps, ensuring that deliberate schema changes can be safely undone if issues arise during deployment.