@medusajs/db-generate

Agent skills and commands for Medusa best practices and conventions.

View in AI SkillSafe app
130 downloads
0 stars
0 demos
SKILL.md
namedb-generate
descriptionGenerate database migrations for a Medusa module
argument-hint<module-name>
allowed-toolsBash(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)

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@medusajs/db-generate/verified)](https://skillsafe.ai/skill/@medusajs/db-generate/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@medusajs/db-generate/installs)](https://skillsafe.ai/skill/@medusajs/db-generate/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@medusajs/db-generate/scan)](https://skillsafe.ai/skill/@medusajs/db-generate/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@medusajs/db-generate/eval)](https://skillsafe.ai/skill/@medusajs/db-generate/)