softinter-chiangrai/up-ai-skill-training

d1-05-entity-migration

Creates an EF Core entity + runs the migration that creates its table in Postgres. CRUD drill Day 1 step 5. Trigger: 'day1 step5', 'create entity/table for up-api'. Use the entity name and columns exactly as user specifies — do not suggest or add columns.

First seen Aug 7, 2026

Installation

$ npx skills add softinter-chiangrai/up-ai-skill-training --skill d1-05-entity-migration

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from softinter-chiangrai/up-ai-skill-training · top by installs.

npx skills add softinter-chiangrai/up-ai-skill-training

Browse all from softinter-chiangrai/up-ai-skill-training

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch main
Open issues 0
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Compatibility.NET 10 SDK, dotnet-ef; up-api DbContext + db connection must already work.

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,517 B
  • docs SUMMARY.md 287 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 47 installs

SKILL.md

Day 1 · Step 5 — Entity + migration (no redeploy)

Before starting: Ask for:

  1. Entity name (PascalCase, e.g., Product, Order, User) — REQUIRED
  2. Columns (format: ColumnName:Type, comma-separated, e.g., Name:string, Price:decimal, Stock:int) — REQUIRED
  3. Nullable columns (optional, default: all non-string/Id are non-nullable) — OPTIONAL

Use exactly as specified. Do not suggest, add, or modify columns.

up-api/Entities/<Entity>.cs:

public class <Entity>
{
    public int Id { get; set; }
    // one property per given column, e.g.:
    // public string Name { get; set; } = string.Empty;
    // public decimal Price { get; set; }
}

Add to AppDbContext:

public DbSet<<Entity>> <Entity>s => Set<<Entity>>();

```Run bash cd up-api dotnet ef migrations add Init<Entity> dotnet ef database update


This runs against the already-running Postgres container via the `localhost:5432` connection string from
the db-config step — no redeploy needed. Verify the table exists (`\dt` in `psql`, or a quick
`docker exec` into the db container).