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 Hubfail
The skill is highly vulnerable to command injection because it directly interpolates user-provided input into a bash command without any validation or sanitization.
- 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>