backend-migrations
使用适当的回滚方法、专注的更改和零停机部署注意事项创建和管理数据库迁移。创建新的数据库迁移文件、修改表架构、添加或删除列、创建或删除索引或管理数据库版本控制时使用此技能。处理迁移目录、架构定义文件或数据库更改脚本时。为生产部署实现向后兼容的数据库更改时。将架构更改与数据迁移分开时。
📖 中文导读:使用适当的回滚方法、专注的更改和零停机部署注意事项创建和管理数据库迁移。创建新的数据库迁移文件、修改表架构、添加或删除列、创建或删除索引或管理数据库版本控制时使用此技能。处理迁移目录、架构定义文件或数据库更改脚本时。为生产部署实现向后兼容的数据库更改时。将架构更改与数据迁移分开时。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: Backend Migrations description: Create and manage database migrations with proper rollback methods, focused changes, and zero-downtime deployment considerations. Use this skill when creating new database migration files, modifying table schemas, adding or removing columns, creating or dropping indexes, or managing database version control. When working with migration directories, schema definition files, or database change scripts. When implementing backwards-compatible database changes for production deployments. When separating schema changes from data migrations.
Backend Migrations
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend migrations.
When to use this skill
- When creating new database migration files
- When modifying existing table schemas (adding/removing columns, changing types)
- When adding or removing database indexes
- When creating or modifying foreign key constraints
- When implementing database schema versioning
- When working with migration directories (e.g.,
migrations/,db/migrate/) - When writing rollback/down migration methods
- When planning zero-downtime deployments with backwards-compatible schema changes
- When separating schema changes from data transformation scripts
- When naming migration files with descriptive, clear names
Instructions
For details, refer to the information provided in this file: backend migrations