db-migrate
medusajs/medusa-agent-skills
Execute Medusa database migrations to apply pending schema changes.
What is db-migrate?
Runs the Medusa database migration command to apply pending migrations to your database. Use this when you need to update your database schema after installing packages or making configuration changes.
- Executes npx medusa db:migrate command
- Reports number of migrations applied
- Displays any errors that occurred during migration
- Provides success confirmation
- Applies pending database schema changes
How to install db-migrate
npx skills add https://github.com/medusajs/medusa-agent-skills --skill db-migrate- Medusa project installed and configured
- Database connection properly set up
- Node.js and npm installed
How to use db-migrate
- 1.Run the skill to execute database migrations
- 2.Review the migration results output
- 3.Check for any reported errors or warnings
- 4.Verify the number of migrations applied matches expectations
- 5.Confirm database schema is updated successfully
Use cases
- Update database schema after installing a new Medusa package
- Apply pending migrations during development workflow
- Sync database with latest code changes
- Prepare database for production deployment
- Resolve database schema inconsistencies
- Medusa developers
- Backend engineers
- DevOps engineers managing Medusa deployments
db-migrate FAQ
It runs the Medusa database migration command (npx medusa db:migrate) to apply any pending migrations to your database.
Use it after installing new Medusa packages, making configuration changes, or when you need to sync your database schema with your codebase.
It reports the number of migrations applied, any errors that occurred, and a success confirmation.
You need a Medusa project installed with a properly configured database connection and Node.js/npm installed.
Full instructions (SKILL.md)
Source of truth, from medusajs/medusa-agent-skills.
name: db-migrate description: Run database migrations in Medusa allowed-tools: Bash(npx medusa db:migrate:*)
Run Database Migrations
Execute the Medusa database migration command to apply pending migrations.
Use the Bash tool to execute: npx medusa db:migrate
Report the migration results to the user, including:
- Number of migrations applied
- Any errors that occurred
- Success confirmation
Related skills
More from medusajs/medusa-agent-skills and the wider catalog.


