add-migration

add-migration is a skill for Claude Code from makigjuro/cloudstack-ai-plugins. It costs 38 tokens per session (772 once invoked), scanned A, original, MIT.

A tool for creating an Entity Framework Core database migration for a specific service. A migration is a recorded set of database changes, such as adding a table or column.

In plain words
What is it for?
Use it after changing entities, database sets, or entity mappings in a microservice.
Why use it?
It keeps the database schema aligned with changes to application entities and their configuration.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the dotnet-architect plugin — 7 skills, 1 agent shipped together

Good fit Use it after changing entities, database sets, or entity mappings in a microservice.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makigjuro/cloudstack-ai-plugins/add-migration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add makigjuro/cloudstack-ai-plugins --skill add-migration
Clone the repo
git clone --depth 1 https://github.com/makigjuro/cloudstack-ai-plugins

Made for: Claude Code.

Or install dotnet-architect, the plugin that ships this one along with the rest of its 7 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/add-migration/github.svg)](https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/add-migration)
Your own site
<a href="https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/add-migration"><img src="https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/add-migration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/add-migration"><img src="https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/add-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 772 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00772
Opus 5.5 $0.00015 $0.00309
Sonnet 5.5 $0.00008 $0.00154
Haiku 4.5 $0.00004 $0.00077

Measured 1mo ago against content hash e011685301eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dotnet-architect/skills/add-migration/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add EF Core Migration

Create a new EF Core migration for a microservice's database context.

Arguments

  • {Name} -- Migration name in PascalCase (e.g., AddOrdersTable)
  • {Service} -- Target microservice (ask if ambiguous)

Configuration

Read cloudstack.json from the project root at the start of execution. Extract:

  • SERVICES = backend.services[] (default: discover from src/*/ directories containing .Application/ subfolders)
  • SOLUTION = backend.solutionPath (default: find *.sln in src/)

If cloudstack.json does not exist, auto-detect by scanning the project structure.

Service DbContext Discovery

If a service-to-DbContext mapping is not defined in cloudstack.json, auto-detect by searching for *DbContext.cs files:

grep -rn "class.*DbContext" src/{Service}/**/Infrastructure/ --include="*.cs"

Find the Infrastructure and Host projects:

find src/{Service} -name "*.Infrastructure.csproj" -o -name "*.Host.csproj"

Process

Step 1: Verify Changes

Before creating a migration, check that entity configurations are in place:

# Find the entity configuration
grep -rn "IEntityTypeConfiguration" src/{Service}/

Step 2: Create Migration

Run from the Infrastructure project directory:

dotnet ef migrations add {Name} \
  --project src/{Service}/{Service}.Infrastructure \
  --startup-project src/{Service}/{Service}.Host \
  --output-dir Persistence/Migrations

If the startup project differs from the convention, search for the .Host project:

find src/{Service} -name "*.Host.csproj" -o -name "*.Host" -type d

Step 3: Review Migration

Read the generated migration file and verify:

  • Only expected changes are included
  • No data loss operations (dropping columns/tables) without user confirmation
  • Index names follow conventions
  • Foreign keys are correct
# Find the latest migration
ls -t src/{Service}/**/Migrations/*.cs | head -2

Step 4: Apply Migration (Optional)

Read the full file on GitHub · 106 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 106 lines · 38 tokens per session scan A e011685301eb

Subscribe to this mod's changes

add-migration is a skill published in the GitHub repository makigjuro/cloudstack-ai-plugins (1 stars, last pushed 3mo ago), licensed MIT. It adds 38 tokens to every session and 772 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

azure-resource-manager-postgresql-dotnet

Azure PostgreSQL Flexible Server SDK for .NET. Database management for PostgreSQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "PostgreSQL", "PostgreSqlFlexibleServer", "PostgreSQL Flexible Server", "Azure Database for…

microsoft/skills · 97 tokens

ef-core-patterns

EF Core best practices reference — safe migrations, query optimization, configuration patterns, and common pitfalls.

zdanovichnick/dotnet-pilot · 24 tokens

rider-search

Routing rules for code search in JetBrains Rider projects — use the Rider MCP symbol/reference/file tools instead of Bash grep. Use whenever searching for a symbol, definition, function, variable, type, or finding usages/references in a C#/.NET or Unreal C++ codebase open in Rider.

JSungMin/rider-mcp-enforcer · 60 tokens

sqlalchemy-expert

SQLAlchemy 2.0 async patterns, session management, query optimization, and Alembic migrations. Use when designing Python data access layers with SQLAlchemy.

SKB3002/agenthub · 37 tokens

generate-code-cs

Generate the code from typespec for C#. Parameter: C# SDK repository root location .

Azure/azure-sdk-for-net · 26 tokens

author-test

Generate a test given sample. Parameters: C# SDK repository root; Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; the sample to use as a starting point for the test.

Azure/azure-sdk-for-net · 68 tokens