go-add-migration

Generate PostgreSQL up and down migration files for GOB Go services.

21|4|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/JotJunior/claude-ai-tips --skill go-add-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-add-migration
Source: https://github.com/JotJunior/claude-ai-tips/tree/main/language-related/go/skills/go-add-migration
Command: npx skills add https://github.com/JotJunior/claude-ai-tips --skill go-add-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation of properly named PostgreSQL migrations for GOB Go services, eliminating manual naming errors and drift from standard conventions.

Core Features & Use Cases

  • Generate both up and down migration skeletons for a target service and migration type
  • Determine the correct schema from the service name and apply the standard naming patterns
  • Validate and produce file names following the 3-digit sequence scheme and include appropriate comments and checks

Quick Start

Invoke the go-add-migration skill with a service name and migration description to generate both up and down SQL files.

Frequently Asked Questions about go-add-migration

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

FAQPage Schema
How do I generate PostgreSQL migration files for a Go microservice?

To generate PostgreSQL migration files for a Go microservice, you provide a service name and description to automatically create up and down SQL skeletons that follow standard naming conventions and sequence numbering.

Why do my database schema migrations keep failing due to naming errors?

Database schema migrations often fail due to naming errors when manually created, but automating file generation enforces standard 3-digit sequence schemes and correct service-to-schema mapping to eliminate drift.

What is the best way to manage idempotent down migrations in a Go project?

The best way to manage idempotent down migrations in a Go project is to generate standardized SQL templates that include appropriate comments and checks, ensuring safe deployments and reversible schema changes.

Does this migration generator handle schema mapping for multiple services?

Yes, this migration generator handles schema mapping for multiple services by automatically determining the correct PostgreSQL schema from the service name and applying standard naming patterns across the ecosystem.

How do I create both up and down SQL files for a database schema update?

To create both up and down SQL files for a database schema update, you invoke the generator with a migration description, which instantly outputs matched skeleton files formatted with CIM standards.