database-migrations
Safe, zero-downtime database migration strategies — schema evolution, rollback planning, data migration, tooling, and anti-pattern avoidance for production systems. Use when planning schema changes, writing migrations, or reviewing migration safety.
Why use this skill?
Learn to perform zero-downtime database migrations with OpenClaw. Access expert patterns for schema evolution, rollback planning, and tool selection.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/database-migrationsWhat This Skill Does
The database-migrations skill provides OpenClaw agents with expert-level knowledge of schema evolution and data handling in production environments. It focuses on zero-downtime deployment patterns, ensuring that database schema changes do not cause outages or performance degradation. By leveraging industry-standard strategies like Expand-Contract and Additive-Only changes, the skill helps developers manage complex database lifecycle tasks, from simple column additions to high-stakes table refactoring. It also assists in selecting the appropriate migration tool based on your project's stack (e.g., Prisma, Drizzle, Alembic, or Flyway) and helps draft effective rollback strategies for risk mitigation.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/wpank/database-migrations
Use Cases
- Planning schema changes: Determine whether a requested change requires a simple additive migration or a multi-phase Expand-Contract approach.
- Performance optimization: Identify dangerous DDL operations (like adding a non-concurrent index) and provide safer alternatives.
- Rollback planning: Design and document the necessary rollback procedures for sensitive data migrations.
- Tooling evaluation: Compare migration tools like Atlas or Flyway against your existing framework to ensure better CI/CD integration.
- Production reviews: Audit pending migration files for common anti-patterns like long-running transactions on primary keys.
Example Prompts
- "I need to rename a column in a production table with 50 million rows. How do I do this without downtime or locking the table?"
- "Draft a three-step migration plan for changing a user_id column from integer to UUID, including the dual-write logic."
- "Evaluate these two migration strategies: adding a NOT NULL column with a default value versus using a nullable column and backfilling later. Which is safer?"
Tips & Limitations
Always prefer declarative tools when your schema complexity allows, as they reduce the likelihood of human error during development. Remember that this skill provides structural and procedural guidance—it does not execute SQL directly against your database. Always test your generated migrations in a staging environment that mirrors production data volume to verify performance impacts. If you are dealing with massive datasets, favor lazy migration patterns over bulk updates to keep replication lag within acceptable limits.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-wpank-database-migrations": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
mermaid-diagrams
Create software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams, sequence diagrams, flowcharts, ERDs, C4 architecture diagrams, state diagrams, git graphs, and other diagram types. Triggers include requests to diagram, visualize, model, map out, or show the flow of a system.
api-design-principles
Skill by wpank
auto-context
Automatically read relevant context before major actions. Loads TODO.md, roadmap.md, handoffs, task plans, and other project context files so the AI operates with full situational awareness. Use when starting a task, implementing a feature, refactoring, debugging, planning, or resuming a session.
clear-writing
Write clear, concise prose for humans — documentation, READMEs, API docs, commit messages, error messages, UI text, reports, and explanations. Combines Strunk's rules for clearer prose with technical documentation patterns, structure templates, and review checklists.
track-performance
Track the performance of Uniswap LP positions over time — check which positions need attention, are out of range, or have uncollected fees. Use when the user asks how their positions are doing.