add-entity

Automate database entity creation with migrations across MySQL, MSSQL, and PostgreSQL.

16|9|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/omni-system-creator/omni --skill add-entity-omni-system-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-entity
Source: https://github.com/omni-system-creator/omni/tree/main/.claude/skills/add-entity
Command: npx skills add https://github.com/omni-system-creator/omni --skill add-entity-omni-system-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation of new entities across three databases (MySQL, MSSQL, PostgreSQL), including model classes and synchronized migrations to keep schemas aligned.

Core Features & Use Cases

  • End-to-end entity creation: Generates the entity class, updates DbContext, and creates migrations for all three databases.
  • Multi-database consistency: Ensures schema consistency across MySQL, SQL Server, and PostgreSQL with parallel migrations.
  • Guided workflow: Validates entity name and fields, differentiates between standard business entities and vector entities, and documents changes for audit.

Quick Start

Provide the entity name and fields in natural language, and the system will scaffold the entity across all databases.

Frequently Asked Questions about add-entity

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

FAQPage Schema
How do I add a new entity across MySQL, MSSQL, and PostgreSQL with Entity Framework?

To add a new entity across MySQL, MSSQL, and PostgreSQL, you need to generate the model class, update DbContext, and create synchronized migrations for all three databases. This ensures schema consistency across MySQL, SQL Server, and PostgreSQL with parallel migrations.

What is the best way to create database migrations for a multi-database C# backend?

Creating database migrations for a multi-database C# backend requires automating schema alignment across MySQL, SQL Server, and PostgreSQL. This involves updating DbContext and generating parallel migrations with required indexes and annotations to keep schemas aligned.

Does this entity creation workflow support vector entities in PostgreSQL?

Yes, the entity creation workflow supports vector entities in PostgreSQL using OmsPgContext. It differentiates between standard business entities using OmsContext and vector entities, guiding class creation, fields, and context updates for both types.

How do I scaffold a standard business entity using OmsContext?

To scaffold a standard business entity using OmsContext, provide the entity name and fields in natural language. The system validates the input, ensures proper inheritance from BaseEntity, updates the DbContext, and creates synchronized migrations with required indexes.

Why do my multi-database migrations fail to keep schemas aligned across MySQL and MSSQL?

Multi-database migrations fail to keep schemas aligned across MySQL and MSSQL when DbContext updates and migration scripts are not synchronized. Ensuring proper inheritance from BaseEntity and generating parallel migrations with required indexes and annotations resolves this issue.