
Db Generate
medusajs/medusa-agent-skillsOfficial
Generates database migrations for a named Medusa module by running the Medusa CLI with the module name.
- CCM score
- 61 of 100
- skills.sh installs
- 3.7K
- GitHub stars
- 238
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers one task: running
npx medusa db:generate <module-name>for a module such asbrand,product, orcustom-module - Takes the module name as a single argument and passes it through to the Medusa CLI unchanged
- Reports the module name, the generated migration file name or location, and any errors or warnings
- Points the user to
npx medusa db:migrateas the next step for applying the generated migrations
Install
$ npx -y skills add medusajs/medusa-agent-skills --skill db-generate -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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)
Details
- Repository
- github.com/medusajs/medusa-agent-skills
- Categories
- Databases, Backend & APIs
- First seen
- Apr 16, 2026
More from medusajs/medusa-agent-skills
All 15- Learning Medusa3.7K
- New User3.4K
- Using Medusa Cloud1.7K
- Mcloud Deployments1.6K
- Mcloud Environments1.6K
- Mcloud Variables1.6K
- Mcloud Projects1.6K
- Mcloud Logs1.6K
- Mcloud Organizations1.6K
- Storefront Best Practices5.2K
- Building With Medusa5K
- Building Admin Dashboard Customizations4.8K
- Building Storefronts4.6K
- Db Migrate3.8K
Similar to Db Generate
More Databases
db-migrateSkillmedusajs/medusa-agent-skills3.8K installsLead-in skill that runs pending Medusa database migrations and reports the outcome to the user.
schema-generatorPlugindevsforge/marketplace81 starsDatabase schema and migration file generator
migrate-createSkillruvnet/ruflo730 installsGenerates sequentially numbered database migrations with paired up and down SQL files for schema changes.
running-dbt-commandsSkilldbt-labs/dbt-agent-skills1.1K installsFormats and runs dbt CLI commands, picks the right executable, and structures selectors and variables.
Create database migrationSkillTryGhost/Ghost55.9K starsOrdered, step-by-step migration checklist that enforces generator-created files, schema.ts sync, and up/down testing.
prisma-cliSkillprisma/skills444.7K installsQuick reference for Prisma ORM 7 CLI commands covering init, generate, migrate, db, dev, studio, and mcp.