---
title: "database-migration skill: zero-downtime schema changes, rollbacks"
canonical_url: https://cookiesforai.app/skills/wshobson/database-migration
last_updated: 2026-10-02T01:58:30+02:00
type: skill
summary: "database-migration is an agent skill from Seth Hobson's wshobson/agents marketplace for writing schema and data migrations in Sequelize, TypeORM and Prisma, with zero-downtime patterns and rollback strategies."
install: "npx skills add wshobson/agents --skill database-migration"
related:
  - "https://cookiesforai.app/skills/neondatabase/neon-postgres"
  - "https://cookiesforai.app/skills/supabase/supabase-postgres-best-practices"
  - "https://cookiesforai.app/skills/prisma/prisma-upgrade-v7"
  - "https://cookiesforai.app/skills/supabase/supabase"
---

# Database migration

database-migration is an agent skill from Seth Hobson's wshobson/agents marketplace for writing schema and data migrations in Sequelize, TypeORM and Prisma, with zero-downtime patterns and rollback strategies.

| Fact | Value |
|---|---|
| Publisher | Seth Hobson |
| Source | https://github.com/wshobson/agents/tree/HEAD/plugins/framework-migration/skills/database-migration |
| License | MIT |
| Repository stars | 40,142 on 2026-10-02 |
| Skill name | database-migration |
| Category | Databases |
| Skill last changed | 2026-05-22 |
| Page updated | 2026-10-02 |
| Facts checked | 2026-10-02 |

## Install

Install this skill with the skills CLI:

```
npx skills add wshobson/agents --skill database-migration
```

Or with GitHub's gh CLI:

```
gh skill install wshobson/agents database-migration
```

Or, in Claude Code, add the wshobson/agents marketplace:

```
/plugin marketplace add wshobson/agents
```

Then install the framework-migration plugin, which holds this skill:

```
/plugin install framework-migration
```

## Ask your coding agent

A skill can include scripts that run on your computer, so read its source first: https://github.com/wshobson/agents/tree/HEAD/plugins/framework-migration/skills/database-migration

```text
Install the agent skill database-migration from github.com/wshobson/agents.
```

## What it does

database-migration is an agent skill in wshobson/agents, an independent plugin marketplace with 40,127 GitHub stars on 2026-10-01. It gives an agent working templates for migrations in three ORMs: Sequelize migration files with up and down functions, TypeORM migration classes, and Prisma schema changes applied with prisma migrate. Each template shows the command to run it and the command to undo it.

The database-migration skill focuses on changes that must not take an app offline. Adding a column comes with a default value. Renaming a column happens in three steps: add the new column and copy the data, switch the application over, then drop the old column in a later migration. Changing a column type goes through a temporary column with a cast, and a data transformation example splits one address column into street, city and state, with a down step that rebuilds it.

For rollbacks the skill shows migrations wrapped in a transaction and a checkpoint approach that copies the table to a backup and restores it if a check fails. A reference file adds blue-green deployment for databases and a worked PostgreSQL to MySQL migration. The examples update rows one at a time and are written for JavaScript and TypeScript only; there is nothing for Django, Rails, Alembic or Go migration tools.

## When to use it

- You need to rename a column in production without downtime.
- You want a migration with a working down step so you can roll it back.
- You need to split one column into several, such as an address into street, city and state.
- You are switching a Node.js app from one ORM to another.

## When to pick something else

- Prisma 6 to 7 upgrades: Prisma's own prisma-upgrade-v7 skill covers the breaking changes.
- Python, Ruby or Go projects: the examples are only Sequelize, TypeORM and Prisma.

## Which agents it works in

Seth Hobson documents it for Claude Code, Codex, Cursor, OpenCode, Antigravity CLI, GitHub Copilot, Pi. The open skills CLI also installs it into 78 agents (listed with the CLI on 2026-10-01).

## License

MIT.

## Related

### Related skills for databases

- [Neon Postgres](https://cookiesforai.app/skills/neondatabase/neon-postgres): neon-postgres is Neon's agent skill for working with Postgres on Neon: connection strings, pooled or direct connections, migrations, branching, built-in diagnostics, autoscaling, scale to zero and search.
- [Postgres Best Practices](https://cookiesforai.app/skills/supabase/supabase-postgres-best-practices): Postgres Best Practices is Supabase's agent skill of Postgres rules for any Postgres database, ranked by impact: indexes, connection pooling, row level security and schema design.
- [Prisma upgrade to v7](https://cookiesforai.app/skills/prisma/prisma-upgrade-v7): prisma-upgrade-v7 is Prisma's agent skill for upgrading a project from Prisma ORM 6 to 7, covering every breaking change: the new generator, driver adapters, prisma.config.ts, ESM and removed features.
- [Supabase](https://cookiesforai.app/skills/supabase/supabase): Supabase is Supabase's own agent skill for any Supabase task, with a security checklist for auth and row level security and a rule to check the current docs first.

