stacks-migrations

Generate and execute database migrations for Stacks applications.

2|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/bughq/bughq --skill stacks-migrations-bughq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-migrations
Source: https://github.com/bughq/bughq/tree/main/.claude/skills/stacks-migrations
Command: npx skills add https://github.com/bughq/bughq --skill stacks-migrations-bughq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the complex task of managing database schema changes, ensuring that your application's database structure stays in sync with your models without manual SQL errors.

Core Features & Use Cases

  • Automated Migration Generation: Automatically create migration files by diffing your model definitions against the current database schema.
  • Comprehensive Lifecycle Management: Handle the full migration lifecycle including running pending migrations, seeding data, and performing fresh database recreations.
  • Use Case: When you add a new field to a user model, use this Skill to generate the corresponding SQL migration file and apply it to your development database instantly.

Quick Start

Use the stacks-migrations skill to generate new migration files based on your current model definitions and apply them to your database.

Frequently Asked Questions about stacks-migrations

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

FAQPage Schema
How do I generate database migration files from model definitions automatically?

To generate database migrations automatically, this Skill compares your current model definitions against the existing database schema to detect structural changes. It then creates the corresponding SQL migration files to synchronize your database without manual coding errors.

What is the best way to manage database schema changes for Stacks applications?

Managing database schema changes for Stacks applications involves automating the migration lifecycle, including generating schema diffs, running pending migrations, and seeding data. This ensures your database structure stays synchronized with your application models consistently across development environments.

Do I need Bun runtime to run SQL schema migrations for Stacks?

Yes, the Bun runtime is required to execute SQL schema migrations for Stacks. The Skill also requires connectivity to either a SQLite or PostgreSQL database to perform schema operations, generate migration files, and apply structural updates.

Can I recreate database tables and seed data during development?

Yes, you can recreate database tables and seed data during development. The Skill supports the full migration lifecycle, allowing you to perform fresh database recreations and seed data to quickly reset your development environment to a known state.

How does schema diffing work for automated database migrations?

Schema diffing for automated database migrations works by comparing your declared model definitions against the active database's current structure. It identifies the exact differences and automatically generates the specific SQL commands needed to bridge the gap in a migration file.