AgentSkillsCN

sync-db-schema-from-code

利用 Prisma(默认迁移工具)或 SQLAlchemy/Alembic,将项目代码中的数据库 schema 同步至远程数据库(PostgreSQL/MySQL/SQLite);同时提供差异预览与审批门禁。

SKILL.md
--- frontmatter
name: sync-db-schema-from-code
description: Sync database schema from project code to a remote DB (PostgreSQL/MySQL/SQLite) using Prisma (default migrate) or SQLAlchemy/Alembic; includes diff preview and approval gates.
category: workflows/database
ssot_path: .ai/skills/workflows/database/sync-db-schema-from-code

sync-db-schema-from-code (entry)

Canonical source: .ai/skills/workflows/database/sync-db-schema-from-code/

Open .ai/skills/workflows/database/sync-db-schema-from-code/SKILL.md and any supporting files referenced there (for example reference.md, examples.md, scripts/, templates/).

Note: The frontmatter above is identical to the canonical source except for ssot_path and category which are added for navigation. After opening the source file, skip re-reading the description to avoid redundant token usage.