This skill empowers Claude to handle database migrations, including creating new migrations, applying changes, and rolling back previous modifications. It ensures that database schema changes are managed safely and efficiently.
How It Works
Migration Request: The user requests a database migration task (e.g., "create a migration").
Migration File Generation: Claude generates a timestamped migration file, including both "up" (apply changes) and "down" (rollback changes) migrations.
Database Support: The generated migration file is compatible with PostgreSQL, MySQL, SQLite, or MongoDB.
When to Use This Skill
This skill activates when you need to:
Create a new database migration file.
Add a column to an existing database table.
Rollback a previous database migration.
Manage database schema changes.
Examples
Example 1: Adding a Column
User request: "Create a migration to add an 'email' column to the 'users' table."
The skill will:
Generate a new migration file with timestamped name.
Populate the 'up' migration with SQL to add the 'email' column to the 'users' table.
Populate the 'down' migration with SQL to remove the 'email' column from the 'users' table.
Example 2: Rolling Back a Migration
User request: "Rollback the last database migration."
The skill will:
Identify the most recently applied migration.
Execute the 'down' migration script associated with that migration.
Confirm the successful rollback.
Best Practices
Idempotency: Ensure your migrations are idempotent, meaning they can be applied multiple times without unintended side effects.
Transactions: Wrap migration steps within transactions to ensure atomicity; either all changes succeed, or none do.
Naming Conventions: Use clear and descriptive names for your migration files (e.g., YYYYMMDDHHMMSS_add_email_to_users).
Integration
This skill can be used independently or in conjunction with other plugins for database management, ORM integration, and deployment automation.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: jeremylongshore-claude-code-plugins-plus-skills-database-mig3description: Overview4---56## Overview78This skill empowers Claude to handle database migrations, including creating new migrations, applying changes, and rolling back previous modifications. It ensures that database schema changes are managed safely and efficiently.910## How It Works11121. **Migration Request**: The user requests a database migration task (e.g., "create a migration").132. **Migration File Generation**: Claude generates a timestamped migration file, including both "up" (apply changes) and "down" (rollback changes) migrations.143. **Database Support**: The generated migration file is compatible with PostgreSQL, MySQL, SQLite, or MongoDB.1516## When to Use This Skill1718This skill activates when you need to:19- Create a new database migration file.20- Add a column to an existing database table.21- Rollback a previous database migration.22- Manage database schema changes.2324## Examples2526### Example 1: Adding a Column2728User request: "Create a migration to add an 'email' column to the 'users' table."2930The skill will:311. Generate a new migration file with timestamped name.322. Populate the 'up' migration with SQL to add the 'email' column to the 'users' table.333. Populate the 'down' migration with SQL to remove the 'email' column from the 'users' table.3435### Example 2: Rolling Back a Migration3637User request: "Rollback the last database migration."3839The skill will:401. Identify the most recently applied migration.412. Execute the 'down' migration script associated with that migration.423. Confirm the successful rollback.4344## Best Practices4546- **Idempotency**: Ensure your migrations are idempotent, meaning they can be applied multiple times without unintended side effects.47- **Transactions**: Wrap migration steps within transactions to ensure atomicity; either all changes succeed, or none do.48- **Naming Conventions**: Use clear and descriptive names for your migration files (e.g., `YYYYMMDDHHMMSS_add_email_to_users`).4950## Integration5152This skill can be used independently or in conjunction with other plugins for database management, ORM integration, and deployment automation.5354---55> Converted and distributed by [TomeVault](https://tomevault.io/claim/jeremylongshore) — claim your Tome and manage your conversions.56<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/jeremylongshore-claude-code-plugins-plus-skills-database-mig in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Overview It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.