Create Database Migration

🌐Community
by nilecui · vlatest · Repository

Helps with creation, database, migration as part of working with databases and data persistence workflows.

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 nilecui-create-database-migration npx -- -y @trustedskills/nilecui-create-database-migration
2

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

~/.claude/settings.json
{
  "mcpServers": {
    "nilecui-create-database-migration": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/nilecui-create-database-migration"
      ]
    }
  }
}

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

About This Skill

What it does

This skill allows AI agents to generate database migration scripts. It can create migrations for changes to tables, columns, indexes, and data. The generated scripts are designed to be compatible with various database systems, ensuring smooth application updates.

When to use it

  • You need to update a database schema after code changes.
  • Deploying new features that require alterations to the database structure.
  • Rolling back database modifications in case of errors during deployment.
  • Automating repetitive tasks related to database version control.

Key capabilities

  • Generates migration scripts for table creation/modification.
  • Supports changes to columns (add, remove, modify).
  • Handles index creation and deletion.
  • Designed for compatibility with various database systems.

Example prompts

  • "Create a migration to add an email column to the users table."
  • "Generate a script to rename the 'products' table to 'items'."
  • “Write a migration to drop the index on the ‘created_at’ field of the orders table.”

Tips & gotchas

The quality of the generated migration depends heavily on the clarity and accuracy of your instructions. Be specific about the desired changes to avoid unexpected results.

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
nilecui
Installs
7

🌐 Community

Passed automated security scans.