schema-versioning

Installation
SKILL.md

Schema Versioning

Overview

This skill helps you establish a reliable database schema versioning workflow: generating timestamped migration files, testing them against a shadow database, integrating schema checks into CI/CD, and rolling back safely when deployments fail. It works with any migration tool (Prisma, Knex, TypeORM, Flyway, Alembic) and focuses on patterns rather than vendor lock-in.

Instructions

1. Initialize migration infrastructure

Set up the migration directory structure and configuration:

# For Knex.js (creates knexfile.js; migrations are written by hand)
npm install knex pg
npx knex init
npx knex migrate:make initial_schema -x ts   # -x ts for TypeScript migrations
Installs
2
GitHub Stars
192
First Seen
Sep 8, 2026