db-migrations

Generate and review database migration files with custom SQL.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/1154761334/it-bidding-copilot --skill db-migrations-1154761334
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-migrations
Source: https://github.com/1154761334/it-bidding-copilot/tree/main/frontend/.agents/skills/db-migrations
Command: npx skills add https://github.com/1154761334/it-bidding-copilot --skill db-migrations-1154761334

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of generating, reviewing, and managing database migration files, ensuring consistent schema evolution and reducing errors.

Core Features & Use Cases

  • Migration Generation: Automatically creates new migration files based on schema changes or custom SQL commands.
  • Review & Validation: Provides best practices for writing idempotent SQL statements, reducing organization and deployment risks.
  • Use Case: When modifying your database schema, use this Skill to generate appropriate migration scripts, check for safety, and update journal entries to maintain version control.

Quick Start

Use the db-migrations skill to generate a new schema migration after modifying your database models and then review the generated SQL for correctness.

Frequently Asked Questions about db-migrations

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

FAQPage Schema
How do I generate database migration files from schema changes?

To generate database migration files, modify your database models and use the skill to automatically create new versioned migration scripts based on those schema changes or custom SQL commands. You then review the generated SQL for correctness and update journal entries to maintain version control.

What are idempotent SQL statements and how do they safeguard schema updates?

Idempotent SQL statements are commands that can be executed multiple times without changing the result beyond the initial application. Writing idempotent statements ensures safe and consistent schema updates, reducing organization and deployment risks across development and production environments.

Does this database migration tool support custom SQL and Drizzle schema versioning?

Yes, the tool supports versioned database changes by allowing you to generate migration scripts from custom SQL commands and schema changes. It ensures safe and consistent schema evolution applicable in software projects requiring versioned database management.

What is the best way to review and validate database migration scripts for deployment safety?

The best way to review database migration scripts is to validate them against best practices for writing idempotent SQL statements. This process checks the generated SQL for correctness, reducing deployment risks and ensuring consistent schema updates across environments.

Why do I need to update journal entries when modifying my database schema?

You need to update journal entries when modifying your database schema to maintain accurate version control of your migration files. This ensures consistent schema evolution and tracks the sequence of versioned database changes across development and production environments.