跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
搜索与研究

migrate-domain

Create, inspect, apply, or roll back Alembic migrations for a domain while treating autogenerated revisions as review-required output.

Mr-DooSun · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add Mr-DooSun/fastapi-agent-blueprint --skill migrate-domain

技能说明


name: migrate-domain description: Create, inspect, apply, or roll back Alembic migrations for a domain while treating autogenerated revisions as review-required output. metadata: short-description: Alembic migration workflow

Migrate Domain

Default Flow Position

  • Step: implement + feeds verify (alembic upgrade head + /test-domain {name} run)
  • approach options upstream conditional — required for indexed-column changes, constraint alterations, or backfills
  • Recursion guard: n/a (manual user invocation only)

Procedure

  1. Read docs/ai/shared/skills/migrate-domain.md for the full procedure.
  2. Confirm the requested action: generate, upgrade, downgrade, or status.
  3. Verify the target model change and environment configuration first.
  4. For generate, create the revision and review before applying.
  5. Treat autogenerate output as a draft: renames and destructive changes need manual review.
  6. Run the zero-downtime safety review: tools/check_migration_safety.py (advisory, ADR 056) flags lock-taking / compatibility-breaking DDL against pre-existing tables; apply the safe alternative from docs/operations/rdb-migrations.md.
  7. Verify the resulting revision state and recommend integration tests.