Database Migration
Helps with 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.
Run in terminal (recommended)
claude mcp add bobmatnyc-database-migration npx -- -y @trustedskills/bobmatnyc-database-migration
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"bobmatnyc-database-migration": {
"command": "npx",
"args": [
"-y",
"@trustedskills/bobmatnyc-database-migration"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
The database-migration skill enables AI agents to execute schema changes and data transformations across various database systems. It automates the process of updating table structures, adding columns, or modifying relationships without manual SQL intervention.
When to use it
- Updating legacy database schemas to support new application features.
- Adding new columns or altering existing field types during a release cycle.
- Refactoring data models to improve query performance or normalization.
- Applying consistent structural changes across multiple development environments.
Key capabilities
- Generates and executes SQL migration scripts automatically.
- Supports schema evolution for relational databases.
- Handles column additions, removals, and type modifications.
- Manages foreign key constraints and index updates.
Example prompts
- "Create a migration to add a
user_preferencesJSON column to theuserstable." - "Refactor the
orderstable by splitting it intoorder_itemsand updating existing data accordingly." - "Generate a reversible migration script to drop the deprecated
legacy_idcolumn from theproductstable."
Tips & gotchas
Ensure your AI agent has appropriate read/write permissions on the target database before running migrations. Always test generated scripts in a staging environment first, as schema changes can impact dependent applications or data integrity if not rolled back correctly.
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 Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.