From medusa-dev
Generates database migrations for Medusa modules using npx medusa db:generate <module-name>. Reports module name, migration file details, errors, warnings, and next steps like npx medusa db:migrate.
How this skill is triggered — by the user, by Claude, or both
Slash command
/medusa-dev:db-generateThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate database migrations for the specified Medusa module.
Generate database migrations for the specified Medusa module.
The user will provide the module name as an argument (e.g., brand, product, custom-module).
For example: /medusa-dev:db-generate brand
Use the Bash tool to execute the command npx medusa db:generate <module-name>, replacing <module-name> with the provided argument.
Report the results to the user, including:
npx medusa db:migrate to apply the migrations)npx claudepluginhub adaptive-machines/medusa-agent-skills --plugin medusa-devGenerates database migrations for Medusa modules using npx medusa db:generate <module-name>. Reports module name, migration file details, errors, warnings, and next steps like npx medusa db:migrate.
Generates safe, reversible database migrations from schema diffs and model changes for PostgreSQL, MySQL, Prisma, Django, Rails, Laravel.
Generates database migrations with schema changes and rollback, detecting framework (Knex, Prisma, TypeORM, raw SQL) and validating safety.