🗄️
DevOpsPython

Database Migrator

by laolaoshiren

Database Migrator is a DevOps skill for Claude Code, published by laolaoshiren in claude-code-skills-zh.

786 stars84 forkson laolaoshiren/claude-code-skills-zhAdded 2026/08/23+1% in starsRepository updated 2026/08/23
ai-agentawesome-listclaude-codeclaude-skillsdeveloper-toolsprompt-engineeringskills
Install in seconds
Install Database Migrator
Copy Database Migrator into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/laolaoshiren/claude-code-skills-zh/tree/main/skills/db-migrator ~/.claude/skills/db-migrator

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/laolaoshiren/claude-code-skills-zh.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/db-migrator/SKILL.md in laolaoshiren/claude-code-skills-zh
Installs to
~/.claude/skills/db-migrator
Collection
One of 20 skills cataloged from this repository
Category
DevOps798 skills

What Database Migrator does

Database Migrator compares schemas, identifies table and column changes, and generates migration scripts with rollback steps. Use it when you need database upgrades, schema changes, or framework-specific migrations.

Database Migrator is cataloged under DevOps on DirSkills. Database Migrator comes from a repository tagged ai-agent, awesome-list, claude-code, claude-skills and developer-tools.

Documentation

README

数据库迁移助手

触发条件

当用户要求数据库迁移、生成 migration、schema 变更、数据库升级时激活此技能。

工作流程

第 1 步:识别框架

扫描项目文件,判断使用的 ORM/迁移框架:

  • alembic.ini / alembic/ → Alembic
  • prisma/schema.prisma → Prisma
  • pom.xml 含 flyway → Flyway
  • manage.py + settings.py → Django
  • Gemfile + db/migrate/ → Rails

第 2 步:分析 Schema 变更

  • 对比 models 定义与现有迁移历史
  • 识别新增/修改/删除的表和字段
  • 检测索引、约束、外键变更

第 3 步:生成迁移脚本

根据框架生成对应的迁移文件,并同时生成回滚脚本。

第 4 步:风险评估

  • 大表 DDL 变更(锁表风险)
  • 数据迁移需求
  • 向后兼容性

迁移模板

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Database Migrator

  • What else does laolaoshiren publish alongside Database Migrator?

    Database Migrator is one of 20 skills that DirSkills catalogs from laolaoshiren/claude-code-skills-zh, the repository it ships in. Its siblings there include API Tester, Changelog Generator and Chinese Code Reviewer. Each one is a separate skill with its own page in this directory, installs the same way Database Migrator does, and is maintained by laolaoshiren in that same repository. The rest of the collection is listed on the laolaoshiren/claude-code-skills-zh page.

  • How does Database Migrator compare to other DevOps skills?

    Database Migrator ranks #538 by stars among the 798 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Database Migrator against them. Open each page to compare what they document and how they install.

More from laolaoshiren/claude-code-skills-zh

Database Migrator is one of 20 skills cataloged on DirSkills from laolaoshiren/claude-code-skills-zh.

See all 20 skills