Skip to content
Back to skills

Db Generate

ASecurity

Generate database migrations for a Medusa module

  • 220 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 7, 2026
databasesbashdatabase

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add medusajs/medusa-agent-skills --skill db-generate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Db Generate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Db Generate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/medusajs-db-generate/badge)](https://www.skillsdirectory.com/skills/medusajs-db-generate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Generate database migrations for a Medusa module
argument-hint: <module-name>
allowed-tools: Bash(npx medusa db:generate:*)
---

# Generate Database Migrations

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:

- The module name for which migrations were generated
- Migration file name or location
- Any errors or warnings
- Next steps (running `npx medusa db:migrate` to apply the migrations)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…