🗄️
DevOpsJavaScript

Database Migrations Generator

by medusajs

Database Migrations Generator is a DevOps skill for Claude Code, published by medusajs in medusa-agent-skills.

212 stars26 forkson medusajs/medusa-agent-skillsAdded 2026/09/04Repository updated 2026/08/14
agentic-commerceclaudeclaude-codecommerceecommercemedusa
Install in seconds
Install Database Migrations Generator
Copy Database Migrations Generator into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/medusajs/medusa-agent-skills/tree/main/plugins/medusa-dev/skills/db-generate ~/.claude/skills/db-generate

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/medusajs/medusa-agent-skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
plugins/medusa-dev/skills/db-generate/SKILL.md in medusajs/medusa-agent-skills
Installs to
~/.claude/skills/db-generate
Collection
One of 18 skills cataloged from this repository
Category
DevOps920 skills

What Database Migrations Generator does

Database Migrations Generator runs Medusa’s migration command for a specified module and reports the generated files or any errors. Use it when you need to create database migrations before applying them.

Database Migrations Generator is cataloged under DevOps on DirSkills. Database Migrations Generator comes from a repository tagged agentic-commerce, claude, claude-code, commerce and ecommerce.

Documentation

README

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)

Frequently asked about Database Migrations Generator

  • What else does medusajs publish alongside Database Migrations Generator?

    Database Migrations Generator is one of 18 skills that DirSkills catalogs from medusajs/medusa-agent-skills, the repository it ships in. Its siblings there include Building Storefronts, Building With Medusa and Cloud Logs. Each one is a separate skill with its own page in this directory, installs the same way Database Migrations Generator does, and is maintained by medusajs in that same repository. The rest of the collection is listed on the medusajs/medusa-agent-skills page.

  • How does Database Migrations Generator compare to other DevOps skills?

    Database Migrations Generator ranks #829 by stars among the 920 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Database Migrations Generator against them. Open each page to compare what they document and how they install.

More from medusajs/medusa-agent-skills

Database Migrations Generator is one of 18 skills cataloged on DirSkills from medusajs/medusa-agent-skills.

See all 18 skills
🛍️
2h ago

Building Storefronts

Building Storefronts covers Medusa storefront integration for SDK calls, custom API routes, and React Query data fetching. Use it when planning or implementing storefront features, mutations, cache invalidation, and error handling.
Frontend
21226
🛠️
2h ago

Building With Medusa

Building With Medusa guides Medusa backend work for custom modules, workflows, API routes, links, and business logic. Use it when planning or implementing backend features that need Medusa-specific architecture and rules.
AI Engineering
21226
📜
2h ago

Cloud Logs

Cloud Logs executes mcloud logs to fetch and stream runtime logs from backend or storefront environments. Use it to search errors, filter by time range, or scope results to a deployment.
DevOps
21226
☁️
2h ago

Cloud Organizations

Cloud Organizations executes mcloud commands to list organizations and retrieve organization details. Use it to find organization IDs, inspect members, or check subscription data.
Automation
21226
🤖
2h ago

Creating Agents In Medusa

Creating Agents In Medusa covers the full stack for internal, admin-facing AI agents in a Medusa project. Use it for merchant- or operator-operated assistants with MedusaExec, streaming API routes, and admin chat UI extensions.
AI Engineering
21226
🗄️
2h ago

Database Migrations

Database Migrations runs Medusa's database migration command to apply pending schema changes. Use it when a Medusa project needs to update its database before continuing development or deployment.
DevOps
21226