medusajs avatar

Db Generate

If you're working with Medusa and need to generate database migrations for your modules, this handles the npx command for you and formats the output. You give it a module name like `brand` or `product`, it runs `npx medusa db:generate` with that argument, then reports back what migration file was created and reminds you to actually run the migration. It's narrow in scope but saves you from context switching to your terminal for a command you'll run dozens of times while developing custom Medusa modules. The real value is keeping you in your Claude workflow instead of breaking out to bash every time your schema changes.

skills.sh installs
3.6K
GitHub stars
236
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:migrate to apply the migrations)

Sponsors

Details

Repository
github.com/medusajs/medusa-agent-skills
Categories
Backend & APIs, AI & Agent Building, Databases
First seen
Apr 16, 2026

More from medusajs/medusa-agent-skills

All 15
1agricidaniel avatarads-attributionagricidaniel/claude-adsAudit cross-platform attribution, conversion definitions, reporting windows, GA4, AdServices and AdAttributionKit, MMPs, browser and server events, offline conv3.6Kskills.sh installs
2tradermonty avataruptrend-analyzertradermonty/claude-trading-skillsAnalyzes market breadth using Monty's Uptrend Ratio Dashboard data to diagnose the current market environment. Generates a 0-100 composite score from 5 componen3.6Kskills.sh installs
3netlify avatarnetlify-confignetlify/context-and-toolsReference for netlify.toml configuration and site environment variables. Use when configuring build settings, redirects, rewrites, headers, deploy contexts, the3.6Kskills.sh installs
4forcedotcom avatarimplementing-ui-bundle-file-uploadforcedotcom/sf-skillsMUST activate when the project contains a uiBundles/*/src/ directory and the task involves uploading, attaching, or dropping files. Use this skill when adding f3.5Kskills.sh installs
5openai avatarhatch-petopenai/skillsCreate, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect3.5Kskills.sh installs
6chromedevtools avatartroubleshootingchromedevtools/chrome-devtools-mcpUses Chrome DevTools MCP and documentation to troubleshoot connection and target issues. Trigger this skill when list_pages, new_page, or navigate_page fail, or3.5Kskills.sh installs