migration-helper
Analyze GORM model changes, estimate resulting schema (DDL) differences, and propose safe migration steps with verification guidance.
- Star
- 507
- 分类
- 数据
- 许可证
- MIT
- 最近提交
- 2026年12月1日
.agents/skills/migration-helper/SKILL.md
在 GitHub 上查看Migration Helper
When to Use
- A model change (field add/remove/type change) or migration code is proposed and you need a safe rollout plan.
Rules
- Start with a non-destructive assessment and clearly call out destructive operations (drops, type narrows, index changes).
- Recommend backups, staging verification, and zero-downtime considerations for risky changes.
Project-Specific Paths
- Core migration:
database/migrate/ - Example app migration:
example2/internal/database/migrate/ - Core models:
database/model/(Auth,TwoFA,TwoFABackup,TempEmail)
Workflow
- Locate migration entrypoints in the paths above.
- Map model edits to likely DDL changes and affected queries.
- Recommend migration steps and verification commands (local + staging).
Output
- Affected models:
path:lineentries. - Schema updates: likely DDL changes and risk level (low/medium/high).
- Verification: steps and test commands.
Examples
- "Adding a
Rolefield toAuthmodel - what migration is needed?" - "Changing
IDAuthfrom uint64 to uint32 - what are the risks?"
Related Skills
db-infra-mocks,test-runner,patch-applier
相似的 Skill
精选
health
GAgarrytan/gstack143k近 7 天新增 636 个 star
deprecation-and-migration
ADaddyosmani/agent-skills122k近 7 天新增 1,627 个 star
ccs-align
THthedotmack/claude-mem121k近 7 天新增 1,594 个 star
handoff
THthedotmack/claude-mem121k近 7 天新增 1,594 个 star
knowledge-agent
THthedotmack/claude-mem121k近 7 天新增 1,594 个 star