migrations

Automate versioned SQL migrations for Go services using golang-migrate.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlockx/track-work --skill migrations-matlockx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrations
Source: https://github.com/matlockx/track-work/tree/main/.agent/skills/migrations
Command: npx skills add https://github.com/matlockx/track-work --skill migrations-matlockx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates and standardizes database schema migrations for Go services using golang-migrate to ensure safe, versioned changes across environments.

Core Features & Use Cases

  • Create, apply, and rollback versioned SQL migrations with up/down scripts.
  • Provides end-to-end guidance for production-grade migrations, including Docker, CI/CD, and Kubernetes integration.
  • Supports Postgres and MySQL using the golang-migrate tool chain.

Quick Start

Run the migrate tool against your database after configuring the migrations directory and DATABASE_URL.

Frequently Asked Questions about migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage database schema migrations in a Golang service?

To manage database schema migrations in a Golang service, this skill automates creating, applying, and rolling back versioned SQL scripts using the golang-migrate toolchain across Postgres and MySQL.

What is the best way to roll back database migrations in production?

Rolling back database migrations in production requires versioned down SQL scripts. This skill provides end-to-end guidance for safely reversing schema changes using golang-migrate in Kubernetes and CI/CD environments.

How do I set up golang-migrate for Postgres and MySQL?

Setting up golang-migrate for Postgres and MySQL requires configuring a migrations directory with paired up/down SQL files and a DATABASE_URL. This skill standardizes that directory structure and tooling configuration.

Does golang-migrate work with Docker and CI/CD pipelines?

Yes, golang-migrate works with Docker and CI/CD pipelines. This skill provides production-grade integration guidance to automatically apply versioned SQL schema changes during local development and continuous deployment.

What are the limitations of using golang-migrate for database schema changes?

Using golang-migrate for database schema changes requires strict adherence to the migrations directory structure with paired up/down SQL files. It is limited to Postgres and MySQL and requires the golang-migrate toolchain installed.

Why do I need versioned SQL migration files for my Go application?

You need versioned SQL migration files to ensure safe and standardized database schema changes across local, CI, and production environments. This skill automates applying these up and down scripts to prevent deployment drift.