Db Migrate

🏢Official
by medusajs · vlatest · Repository

Automates database schema migrations using MedusaJS's CLI tools, ensuring consistent data structure updates across environments.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add db-migrate npx -- -y @trustedskills/db-migrate
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "db-migrate": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/db-migrate"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The db-migrate skill enables AI agents to manage and execute database migrations, ensuring that database schemas are updated consistently across different environments. It supports version control of schema changes and provides tools for applying or rolling back migrations.

When to use it

  • When deploying new features that require changes to the database structure.
  • During development to keep local and production databases in sync.
  • When refactoring or improving existing database schemas.
  • To automate repetitive migration tasks across multiple environments.

Key capabilities

  • Execute migration scripts for schema updates.
  • Roll back migrations if issues are detected.
  • Track migration status and history.
  • Support for version-controlled migration files.

Example prompts

  • "Run all pending database migrations."
  • "Rollback the last migration executed on the production database."
  • "Generate a new migration file for adding a users table."

Tips & gotchas

  • Ensure that migration scripts are tested in a development environment before applying them to production.
  • Always back up your database before running destructive or schema-altering migrations.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
medusajs
Installs
225

🏢 Official

Published by the company or team that built the technology.