PluginBench
Skill
Official
Review
Audit score 70

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
Prerequisites
  • Medusa project installed and configured
  • Database connection properly set up
  • Node.js and npm installed
Claude Code
Cursor
Windsurf
Cline

How to use db-migrate

  1. 1.Run the skill to execute database migrations
  2. 2.Review the migration results output
  3. 3.Check for any reported errors or warnings
  4. 4.Verify the number of migrations applied matches expectations
  5. 5.Confirm database schema is updated successfully

Use cases

Good for
  • 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
Who it's for
  • Medusa developers
  • Backend engineers
  • DevOps engineers managing Medusa deployments

db-migrate FAQ

What does this skill do?

It runs the Medusa database migration command (npx medusa db:migrate) to apply any pending migrations to your database.

When should I use this skill?

Use it after installing new Medusa packages, making configuration changes, or when you need to sync your database schema with your codebase.

What information does it report?

It reports the number of migrations applied, any errors that occurred, and a success confirmation.

Do I need to set up anything before using this skill?

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