AGENT SKILL

sql-migrations

Configure stack-appropriate relational migration policy and verification.

License 许可
MIT
最近更新
2026-08-08
Stars
★ 1
Forks
0

01 前言 Front Matter

name
sql-migrations
description
Configure stack-appropriate relational migration policy and verification.

03 SKILL.md 正文

SQL Migrations

Trigger when persistent relational storage is selected.

  1. Detect existing migration tool.
  2. Preserve project conventions.
  3. Choose stack-appropriate tooling when absent: Flyway or Liquibase for Java, Alembic or Django migrations for Python, Ecto for Elixir, project ORM tooling for Node.
  4. Configure migration execution.
  5. Test from an empty schema.
  6. Test upgrade from representative previous schema where risk matters.
  7. Define rollback or forward-fix policy.
  8. Document deployment ordering.
  9. Integrate checks into CI.

Production relational schema changes must not rely solely on automatic DDL.

04 同仓库更多 Skills