Skip to content
DevBuildKit
AgentsSkillsCommandsPacksPricingDocsBlogTools
Log inGet DevBuildKit

Database Migration Playbook

Zero-downtime schema and data migration runbook — design with expand/contract, backups and rehearsal on production-like data, locking and performance checks, staged execution, verification, rollback and cleanup — with human approval before production changes.

PlaybookEngineeringv1.0.0
  1. Playbooks
  2. Database Migration Playbook

What it does

Zero-downtime schema and data migration runbook — design with expand/contract, backups and rehearsal on production-like data, locking and performance checks, staged execution, verification, rollback and cleanup — with human approval before production changes.

Category
workflowdatabasemigration
Platforms
backendgeneric
Frameworks and tools
postgresqlsql
Capabilities
orchestrationplanningdatabase

Example tasks

  • “Split the users.name column into first_name and last_name on a 200 million row table with zero downtime.”
  • “Plan adding a NOT NULL column with a default to a hot table safely.”
  • “Migrate from a self-managed Postgres to a managed instance with minimal downtime and a tested rollback.”

Works with

Recommended alongside

  • Migration Specialist· agent
  • PostgreSQL Specialist· agent
  • Database Optimizer· agent
  • Backend Architect· agent
  • Test Architect· agent
  • SRE Engineer· agent
  • Schema Migrations· skill
  • Database Backups· skill
  • Data Integrity· skill
  • /db-migrate· command
  • /db-review· command
  • /db-backup-plan· command
  • /rollback-plan· command

Permissions summary

  • Files

    Reads files only

  • Shell

    No shell commands

  • Network

    No network

Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.

Supported environments

ClientSupportInstalled as
Claude CodeAdapterdocs/development/playbooks/<id>.md
OpenAI CodexAdapterdocs/development/playbooks/<id>.md
CursorAdapter.cursor/rules/<id>.mdc
VS Code (Copilot)Adapterdocs/development/playbooks/<id>.md
Generic markdownAdapterdocs/forgekit/playbooks/<id>.md

Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.

Included in packs

  • backend

What is inside

This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (79 lines in total).

  1. 01Database Migration Playbook
  2. 02Roles
  3. 03Phase 1: Define and classify (gate G1)
  4. 04Phase 2: Design with expand/contract (gate G2)
  5. 05Phase 3: Backup and rehearsal (gate G3)
  6. 06Phase 4: Application readiness (gate G4)
  7. 07Phase 5: Go / no-go (user decision)
  8. 08Phase 6: Execute (production, human-supervised)
  9. 09Rollback
  10. 10Phase 7: Verify and clean up
  11. 11Common pitfalls to check every time
Unlock with DevBuildKit

Version and changelog

Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.

Changelog — Database Migration Playbook

1.0.0

  • Initial release.

Build with this playbook

Create Demo Project

Install in CLI

$ devbuild add playbook database-migration-playbook

Included in the Engineering tier of DevBuildKit.

Get DevBuildKit
IDdatabase-migration-playbook
Version1.0.0
TierEngineering
DevBuildKit

Your entire AI development team. One install.

DevBuildKit never uploads your source code. Telemetry is opt-in and anonymous.

Product

  • Agents
  • Skills
  • Commands
  • Packs
  • Features
  • Live demo
  • Pricing

Learn

  • Documentation
  • Getting started
  • CLI reference
  • Blog
  • Changelog
  • Compare

Free tools

  • All tools
  • Agent generator
  • Config converter
  • Stack detector
  • Context analyzer

Use cases

  • Android development
  • iOS development
  • SaaS development
  • Backend development
  • App Factory
  • Game development

Company

  • Terms
  • Privacy
  • Refunds
  • Log in
  • Sign up

© 2026 DevBuildKit. All rights reserved.

DevBuildKit is an independent product. Claude, Claude Code, Anthropic, OpenAI, Codex, ChatGPT, Cursor, Visual Studio Code, GitHub Copilot, Microsoft and all other product names are trademarks of their respective owners. DevBuildKit is not affiliated with, endorsed by or sponsored by any of them; names are used only to describe compatibility.