database-migration

Generate, review, test, and deploy PostgreSQL schema migrations with golang-migrate or goose.

5|2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/srnichols/plan-forge --skill database-migration-srnichols
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration
Source: https://github.com/srnichols/plan-forge/tree/main/presets/go/.github/skills/database-migration
Command: npx skills add https://github.com/srnichols/plan-forge --skill database-migration-srnichols

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires golang-migrate, goose, psql, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating, reviewing, testing, and deploying database schema migrations, eliminating manual processes and ensuring consistent, repeatable database changes.

Core Features & Use Cases

  • Automated Migration Generation: Generate migrations for adding columns, creating tables, or changing schema with ease.
  • Review and Testing: Execute local tests to validate migrations before deployment.
  • Conditional Rollback: Perform rollbacks in case of migration failure, ensuring data integrity.
  • Safety Rules and Guards: Follow best practices with safety rules and guardrails to prevent common pitfalls.
  • Integration with Continuous Integration/Continuous Deployment (CI/CD): Seamlessly integrate with CI/CD pipelines for automated deployment.

Quick Start

Run the 'database-migration' skill with the description of the migration, e.g., 'add user_profiles table'.

Frequently Asked Questions about database-migration

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

FAQPage Schema
How do I automate database schema migration generation and deployment?

Conditional rollback for database migration reverts schema changes if deployment fails, ensuring data integrity. This Skill executes local tests to validate migrations before deployment and performs rollbacks when failures occur during the automated process.

What is the best way to integrate schema changes into a CI/CD pipeline?

Database migration tools supported include golang-migrate and goose. This Skill automates generation, review, testing, and deployment of SQL schema migrations using these tools, requiring PostgreSQL for execution to manage schema changes safely.

Can I use golang-migrate or goose for local database migration testing?

PostgreSQL is required for database migration execution. This Skill requires a PostgreSQL setup to automate the generation, review, testing, and deployment of schema migrations, ensuring changes are validated locally before CI/CD integration.

Do I need PostgreSQL to run automated SQL schema migrations?

Automated database migration generation creates scripts for common SQL schema changes like adding columns or creating tables. This Skill generates these migrations, applies safety rules to prevent pitfalls, and prepares them for local testing and deployment.

Why perform a conditional rollback during a database schema change?

Safety rules and guardrails for database migrations prevent common pitfalls during schema changes. This Skill applies best practices to automate the generation, review, testing, and deployment of SQL migrations, ensuring consistent and repeatable database modifications.

What safety guards should I follow when changing database schema?

Testing database migrations locally validates schema changes before deployment. This Skill automates the review process and executes local tests using golang-migrate or goose, ensuring migrations are safe to deploy via CI/CD pipelines to production environments.