Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
medusajs avatar

Db Generate

  • 2.3k installs
  • 207 repo stars
  • Updated July 31, 2026
  • medusajs/medusa-agent-skills

db-generate is an agent skill that Generate database migrations for a Medusa module.

About

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 db generate agent skill provides documented workflows prerequisites triggers and safety guidance from its SKILL md source Agents load it when user requests match the description and follow step by step instructions without inventing capabilities It integrates with standard agent tooling for the tasks inputs outputs and failure modes described in the repository documentation

  • description: Generate database migrations for a Medusa module
  • allowed-tools: Bash(npx medusa db:generate:*)
  • Generate database migrations for the specified Medusa module.
  • Follow db-generate SKILL.md steps and documented constraints.
  • Follow db-generate SKILL.md steps and documented constraints.

Db Generate by the numbers

  • 2,288 all-time installs (skills.sh)
  • +96 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #466 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

db-generate capabilities & compatibility

Capabilities
description: generate database migrations for a · allowed tools: bash(npx medusa db:generate:*) · generate database migrations for the specified m · follow db generate skill.md steps and documented
Use cases
orchestration
From the docs

What db-generate says it does

description: Generate database migrations for a Medusa module
SKILL.md
allowed-tools: Bash(npx medusa db:generate:*)
SKILL.md
Generate database migrations for the specified Medusa module.
SKILL.md
npx skills add https://github.com/medusajs/medusa-agent-skills --skill db-generate

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2.3k
repo stars207
Security audit2 / 3 scanners passed
Last updatedJuly 31, 2026
Repositorymedusajs/medusa-agent-skills

When should an agent use db-generate and what problem does it solve?

Generate database migrations for a Medusa module

Who is it for?

Developers invoking db-generate as documented in the skill source.

Skip if: Skip when requirements fall outside db-generate documented scope.

When should I use this skill?

Generate database migrations for a Medusa module

What you get

Outputs aligned with the db-generate SKILL.md workflow and stated deliverables.

  • TypeORM migration files
  • Migration file path report

Files

SKILL.mdMarkdownGitHub ↗

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)

Related skills

Forks & variants (1)

Db Generate has 1 known copy in the catalog totaling 15 installs. They canonicalize to this original listing.

How it compares

Pick this over manual TypeORM migration writing when working inside Medusa.js module development and the official db:generate CLI can diff entity schemas automatically.

FAQ

What is db-generate?

Generate database migrations for a Medusa module

When should I use db-generate?

Generate database migrations for a Medusa module

Is db-generate safe to install?

Review the Security Audits panel on this page before production use.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.