dabydat/alpha-omega/nestjs-migrations

Claude Code and agent skill by dabydat/alpha-omega

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Database migration patterns for NestJS. Covers TypeORM migrations, schema-per-bounded-context, soft-delete patterns, and index design. Use when creating database migrations, modifying schema, or managing database versioning.

Install

npx vskill@latest install dabydat/alpha-omega/nestjs-migrations

SKILL.md

NestJS Migrations

Database migrations provide versioned, reversible schema changes. TypeORM migrations ensure database schema evolves consistently across environments.

Why Migrations

See references/why-migrations.md for the INCORRECT vs CORRECT comparison and the timestamped filename convention.


Migration Anatomy

See references/migration-anatomy.md for a full migration (up/down).

Full examples: See references/migration-examples.md.


Creating Tables

See references/create-tables.md (basic table, foreign keys, indexes).


Altering Tables

See references/alter-tables.md for all five operations (add column, remove column, add multiple, rename, change type).


Data Migrations

See references/data-migrations.md (insert default data, transform existing data).


Rolling Back Migrations

See references/rollback.md (reversible down()).


Multi-Step Migrations

See references/multi-step-migrations.md (add nullable → migrate → add constraint).


Migration Best Practices

See references/best-practices.md (transaction, no manual prod edits, ifNotExists).


Running Migrations

See references/running-migrations.md.


Migration Structure Per Bounded Context

See references/structure-per-context.md.


Anti-Patterns to Avoid

See references/anti-patterns.md for the three ❌ examples (no rollback, destructive without backup, long-running).


Summary: Migration Responsibilities

MethodPurpose
up()Apply migration (create table, add column, insert data)
down()Rollback migration (drop table, remove column, delete data)

Golden rule: Every schema change goes through migration. No manual database edits in any environment.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dabydat/alpha-omega/nestjs-migrations/badge)](https://verified-skill.com/skills/dabydat/alpha-omega/nestjs-migrations)

Something wrong with this skill or its page? Tell us.