Migration

From weisser-dev/awesome-opencode · View interactive version

Migration is an AI agent skill from the GitHub repository weisser-dev/awesome-opencode. Plan and execute database or framework migrations with rollback strategies

How to use this skill

Skill file

What I do

When to use me

Use this skill when you need to:

Database Migration Process

  1. Analyze: Read current schema and understand relationships
  2. Plan: List all changes needed, order by dependencies
  3. Generate: Create migration files in the project's format:
  1. Rollback: For each migration, create the inverse operation
  2. Validate: Check for data loss risks and foreign key constraints

Framework Migration Process

  1. Inventory: List all breaking changes from changelog
  2. Assess: Identify affected code in the project
  3. Plan: Create ordered list of changes
  4. Execute: Make changes incrementally
  5. Test: Verify after each step

Migration File Template

-- Migration: description
-- Created: YYYY-MM-DD
-- Author: [generated]

-- UP
ALTER TABLE ...;

-- DOWN (rollback)
ALTER TABLE ...;

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.