Skip to content
Skill

Db migration agent

Plans and writes database schema migrations and seed data against a contract

Db migration agent is an open-source agent skill for databases. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
12
Last commit
License
MIT
Listing updated

Similar skills

About Db migration agent

This skill has the agent manage database schema migrations, seed data and schema evolution while treating the contracted data layer as the source of truth. It owns migration directories such as migrations/, seeds/, prisma/, alembic/ and knex/migrations/, and reads application models without changing them or touching route handlers and business logic.

The workflow starts by reading the data layer contract, shared type definitions and domain rules, then writes migrations that match contracted tables, column types, constraints and indexes. Migrations are meant to be idempotent, reversible with up and down steps, ordered, and atomic. Development seed data is meant to be realistic but clearly fake, cover every entity, exercise relationships and include edge cases, and stay deterministic for repeatable test runs. A validation pass checks tables, column types, foreign keys, indexes and seed loading before the work is reported done.

The skill is written for an orchestrated multi-agent build, but it also covers explicitly requested solo migration work where the user supplies scope and approved paths. It expects a project database CLI and an ORM or migration tool such as Alembic, Prisma, Knex, Django or raw SQL. Database writes, destructive migrations and production changes require separately scoped approval.

When your agent uses it

Manage database schema migrations, seed data and schema evolution in native orchestrator dispatch or explicitly requested solo migration work. Preserve contract boundaries and approval before database mutations; load it when the orchestrator assigns this role or the user asks for it.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 3 files (16 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madness

Or copy only this skill to ~/.claude/skills/db-migration-agent:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/db-migration-agent &&
cp -R "$tmp/skills/roles/db-migration-agent" ~/.claude/skills/db-migration-agent &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/db-migration-agent inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/db-migration-agent to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/db-migration-agent &&
cp -R "$tmp/skills/roles/db-migration-agent" ~/.agents/skills/db-migration-agent &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/db-migration-agent inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/db-migration-agent to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/db-migration-agent &&
cp -R "$tmp/skills/roles/db-migration-agent" ~/.cursor/skills/db-migration-agent &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/db-migration-agent inside it instead.

Cursor docs on skills

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

gemini skills install https://github.com/ivy00johns/Skill-Madness.git --path skills/roles/db-migration-agent

Or copy the folder to ~/.gemini/skills/db-migration-agent yourself.

Gemini CLI docs on skills

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

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/db-migration-agent &&
cp -R "$tmp/skills/roles/db-migration-agent" ~/.copilot/skills/db-migration-agent &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/db-migration-agent inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git

Then copy Skill-Madness/skills/roles/db-migration-agent into your agent's skills folder as db-migration-agent. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Contract-matched schema design
Builds tables, column types, constraints and indexes to match the data layer contract.
Reversible migration files
Writes ordered, idempotent migrations with both up and down steps.
Deterministic seed data
Produces fake but realistic seed records covering entities, relationships and edge cases.
Post-migration schema validation
Checks tables, column types, foreign keys, indexes and seed loading after migrating.
Approval gates for mutations
Requires separate approval for database writes, destructive changes and production requests.
Ownership boundaries
Restricts edits to migration and seed directories and leaves application code read-only.

Good for

  • Create migrations for a new set of database tables from a schema contract
  • Write reversible Prisma or Alembic migrations after a model change
  • Generate development seed data covering parent-child and many-to-many relationships
  • Check that a database schema matches its contracted column types and indexes
  • Plan a schema evolution while flagging destructive changes for approval

Db migration agent FAQ

When does Db migration agent trigger?

It loads when an orchestrator assigns the db-migration role or when the user explicitly asks for it, since native activation is set to explicit only.

Does Db migration agent change application code?

No. It owns migration and seed directories and treats src/models/ as read-only; route handlers and business logic are off-limits.

What does Db migration agent need to run?

A project database CLI and a migration tool such as Alembic, Prisma, Knex, Django or raw SQL, with Read, Write, Edit, Bash, Glob and Grep tools available.

Which AI clients does Db migration agent support?

The skill is published in a Claude Code plugin marketplace, and its frontmatter names Claude Code dispatch; it is otherwise a standard SKILL.md folder.

How do I install Db migration agent in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/db-migration-agent to use it in all your projects, or to .claude/skills/db-migration-agent in one project. Or install the skill-madness plugin, which includes it: /plugin marketplace add ivy00johns/Skill-Madness, then /plugin install skill-madness@skill-madness.

Does Db migration agent 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 migration agent?

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 migration agent?

The closest alternatives to Db migration agent are Database migrations, Db change management, Database migrations, Data layer patterns edho ferdian and Data archaeology.

Where this comes from

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

More from ivy00johns/Skill-Madness

  1. Finds merged and stale git branches, then deletes them only after your confirmation

    • Open source
    • 12 GitHub stars
    • Developer tools
  2. Finds and removes git worktrees whose changes are already merged into main

    • Open source
    • 12 GitHub stars
    • Developer tools
  3. Bulk-scans a skill ecosystem for consistency, quality gaps and ownership conflicts

    • Open source
    • 12 GitHub stars
    • Developer tools
  4. Runs a single-skill quality review covering structure, triggering and output checks

    • Open source
    • 12 GitHub stars
    • Developer tools
  5. Turns skill review or audit reports into a prioritized list of concrete SKILL.md fixes

    • Open source
    • 12 GitHub stars
    • Developer tools
  6. Applies planned edits to SKILL.md files, validates them, and offers to sync

    • Open source
    • 12 GitHub stars
    • Developer tools