db-generate
Generate database migrations for a Medusa module
How do I install this agent skill?
npx skills add https://github.com/medusajs/medusa-agent-skills --skill db-generateIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill generates database migrations for Medusa modules using the Medusa CLI. It is susceptible to command injection because user-provided module names are interpolated directly into a shell command without validation.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
1/1 file flagged
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
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:migrateto apply the migrations)
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/medusajs/medusa-agent-skills/db-generate">View db-generate on skillZs</a>