# Db change management

> Db change management is an open-source agent skill for databases. Plan zero-downtime database schema changes with expand-and-contract migrations. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/rpraharaj/forward-deployed-engineer/tree/main/fde-data/skills/db-change-management
- **Repository:** https://github.com/rpraharaj/forward-deployed-engineer
- **GitHub stars:** 19
- **License:** MIT
- **Skill name:** db-change-management
- **Collection:** https://github.com/rpraharaj/forward-deployed-engineer
- **Categories:** [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-12-01

## About

This skill guides an agent through changing a schema on a live production database without causing an outage. It focuses on the failure modes that tests miss, such as locks held on large tables and replication lag, and on the ordering problems that arise when schema and application deploy separately.

The workflow starts with gathering real production numbers such as row counts, table size, write rate and replication status, rather than relying on staging. The agent then classifies each operation by what it locks, applies an expand-and-contract sequence across separate deploys, backfills data in resumable batches, and records an explicit deploy order and reversibility for every step. Irreversible steps are flagged as one-way doors, and rehearsal timing is treated as unverified unless measured against production-shaped data.

The skill expects access to a database engine and its documentation, and it reads engine-specific notes from a bundled reference file. It writes its output as a deploy runbook section and a change log summary in a shared workspace. It runs no scripts of its own.

## When your agent uses it

> Change a schema against a live production database without taking an outage - expand and contract patterns, zero-downtime DDL, lock and replication-lag behavior on large tables, reversibility, and coordinating the migration with the application deploy that depends on it. Use before any schema change on a system that stays up, when adding or dropping a column on a large table, when a migration must be reversible, or when the deploy order between schema and application matters. Distinct from ordinary application change because the failure mode is a locked table, not a failed test.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-data/skills/db-change-management)
- [License: MIT](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-data/skills/db-change-management)

## Features

- **Real-world numbers first:** Gathers production row counts, table size, write rate and replication status before choosing an approach.
- **Lock-aware operation classification:** Sorts schema operations by lock behavior and rewrite cost, with a reminder to check the specific engine version.
- **Expand and contract sequence:** Breaks a rename or type change into separate deploys where old and new code both keep working.
- **Batched backfill guidance:** Plans resumable, paced data backfills that watch replication lag and can be stopped safely.
- **Deploy order and reversibility:** Records the order of schema and application deploys and marks irreversible steps as one-way doors.
- **Runbook output template:** Produces a deploy runbook section with a steps table, rehearsal notes, monitoring thresholds and rollback plan.

## Good for

- Plan how to add a non-null column to a large production orders table without downtime
- Rename a column in a live system using a multi-step expand and contract migration
- Write a batched backfill that can be paused and resumed while watching replica lag
- Decide whether a schema change must deploy before or after the application code that uses it
- Document rollback steps and mark which migration steps cannot be reversed

## Install

### Claude Code

This skill ships in the `fde-data` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add rpraharaj/forward-deployed-engineer
/plugin install fde-data@fde-skills
```

Or copy only this skill to `~/.claude/skills/db-change-management`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/db-change-management &&
cp -R "$tmp/fde-data/skills/db-change-management" ~/.claude/skills/db-change-management &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/db-change-management` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/db-change-management` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/db-change-management &&
cp -R "$tmp/fde-data/skills/db-change-management" ~/.agents/skills/db-change-management &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/db-change-management` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/db-change-management` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/db-change-management &&
cp -R "$tmp/fde-data/skills/db-change-management" ~/.cursor/skills/db-change-management &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/db-change-management` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/rpraharaj/forward-deployed-engineer.git --path fde-data/skills/db-change-management
```

Or copy the folder to `~/.gemini/skills/db-change-management` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/db-change-management`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/db-change-management &&
cp -R "$tmp/fde-data/skills/db-change-management" ~/.copilot/skills/db-change-management &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/db-change-management` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git
```

Then copy `forward-deployed-engineer/fde-data/skills/db-change-management` into your agent's skills folder as `db-change-management`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Db change management be used?

Before any schema change on a system that stays up, when adding or dropping a column on a large table, when a migration must be reversible, or when deploy order between schema and application matters.

### When does Db change management not apply?

It does not apply to greenfield projects with no data and no users, when an agreed maintenance window is available, or for a small low-traffic table whose row count has been confirmed.

### What does the skill need before Db change management starts?

It needs production row counts and table sizes gathered from the actual production database, not staging. If those cannot be obtained, the skill says to stop and record that gap.

### Does Db change management run any scripts?

No. The skill contains no scripts. It works through instructions and reads an engine notes reference file.

### How do I install Db change management in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/db-change-management to use it in all your projects, or to .claude/skills/db-change-management in one project. Or install the fde-data plugin, which includes it: /plugin marketplace add rpraharaj/forward-deployed-engineer, then /plugin install fde-data@fde-skills.

### Does Db change management run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Db change management?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Db change management?

The closest alternatives to Db change management are Database migrations, Data archaeology, Planning oracle to postgres migration integration testing, Bigquery migration validator and Alembic knowledge patch.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Database migrations](https://ai-powered.com/skills/database-migrations): Database migrations is an open-source agent skill for databases.
- [Data archaeology](https://ai-powered.com/skills/data-archaeology): Data archaeology is an open-source agent skill for databases.
- [Planning oracle to postgres migration integration testing](https://ai-powered.com/skills/planning-oracle-to-postgres-migration-integration-testing): Planning oracle to postgres migration integration testing is an open-source agent skill for databases.
- [Bigquery migration validator](https://ai-powered.com/skills/bigquery-migration-validator): Bigquery migration validator is an open-source agent skill for databases.
- [Alembic knowledge patch](https://ai-powered.com/skills/alembic-knowledge-patch): Alembic knowledge patch is an open-source agent skill for databases.
- [Bigquery migration SQL translator](https://ai-powered.com/skills/bigquery-migration-sql-translator): Bigquery migration SQL translator is an open-source agent skill for databases.
- [Reviewing oracle to postgres migration](https://ai-powered.com/skills/reviewing-oracle-to-postgres-migration): Reviewing oracle to postgres migration is an open-source agent skill for databases.
- [SQL server table reconciliation](https://ai-powered.com/skills/sql-server-table-reconciliation): SQL server table reconciliation is an open-source agent skill for databases.

---
Source: https://ai-powered.com/skills/db-change-management
