add-migration

Generate Entity Framework Core migrations for specific modules in a .NET monolith.

1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/piers-sinclair/Dostar --skill add-migration-piers-sinclair
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-migration
Source: https://github.com/piers-sinclair/Dostar/tree/main/.claude/skills/add-migration
Command: npx skills add https://github.com/piers-sinclair/Dostar --skill add-migration-piers-sinclair

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the complexity of manually configuring EF Core migration commands across a modular monolith architecture, ensuring migrations are correctly scoped to specific modules and the API host.

Core Features & Use Cases

  • Automated Scoping: Automatically targets the correct implementation project and startup project for any given module.
  • Migration Management: Provides a unified interface to add, update, or remove database migrations without remembering complex CLI flags.
  • Use Case: When adding a new feature to the Todos module, use this skill to generate the migration files in the correct directory structure without manually typing long dotnet ef paths.

Quick Start

Use the add-migration skill to create a new migration named InitialCreate for the Todos module.

Frequently Asked Questions about add-migration

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

FAQPage Schema
How do I manage Entity Framework Core migrations in a modular monolith architecture?

Managing Entity Framework Core migrations in a modular monolith requires targeting specific module implementation projects while utilizing a central API host for design-time context resolution to ensure database schema synchronization.

How do I add a database migration to a specific module without typing long dotnet ef paths?

Adding a database migration to a specific module is streamlined by automatically scoping the correct implementation project and startup project, generating migration files in the right directory without manually typing complex CLI flags.

Does this migration tooling work with .NET modular monoliths and Dostar modules?

Yes, the tooling is specifically designed to work with .NET modular monoliths and Dostar modules, executing dotnet ef commands to correctly scope migrations across distributed module boundaries.

What is the best way to synchronize database schemas across distributed module boundaries in .NET?

The best way to synchronize database schemas across distributed module boundaries is using a unified interface to add, update, or remove migrations that targets the correct implementation project and central API host automatically.

Why does my EF Core migration fail to resolve the design-time context in a modular architecture?

EF Core migration fails to resolve the design-time context when the command does not correctly target the central API host startup project alongside the specific module implementation project, which this automated scoping approach solves.