What problem does it solve?
Writing database migrations in the Golem repository requires keeping PostgreSQL and SQLite schemas in sync across multiple migration roots, each with its own naming and style conventions. This Skill encodes those rules so new migration files land in the right directory with the right numbering, types, and index names.
Core Features & Use Cases
- Dual-engine migrations: Creates matching PostgreSQL and SQLite migration files with the same numbered prefix, choosing shared or divergent schema shapes based on the owning root's query layer.
- Convention enforcement: Applies per-root index and constraint naming (
<table>_<column>_idx/_uk vs idx_ prefix), sequential three-digit file numbering, and local DDL style.
- No compatibility layer: Directs schema changes to be made directly, updating in-tree queries and models in the same change without dual-read/dual-write or legacy columns.
- Use Case: When adding a new table to the registry service, the Skill places
004_new_table.sql in both golem-registry-service/db/migration/postgres/ and .../sqlite/ with converged column types and matching constraint names, then points to the repository tests that verify both backends.
Quick Start
Ask the AI to create a new database migration adding a table or column to one of the Golem services, and it will generate the paired PostgreSQL and SQLite SQL files following the owning root's conventions.