All skills
medusajs avatar

/db-generate

@fe387b2 official
by Medusamedusajs/medusa-agent-skills225 stars
29

Generate database migrations for a Medusa module

Use this Skill: https://skilld.dev/gh/medusajs/medusa-agent-skills/db-generate

This session only. Nothing lands on disk.

SKILL.md

≈15 tokens always: the name and description. ≈151 when used: this file.

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)

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill facilitates database migration generation using the vendor's official CLI tool. It is functional and safe for its intended purpose, though it lacks explicit input validation for the user-supplied module name argument.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    1/1 file flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at fe387b2. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 8 months ago
What it can do
Runs commands
argument-hint
<module-name>
All 1 allowed tools
Bash(npx medusa db:generate:*)

README badge

README badge for medusajs/medusa-agent-skills/db-generate