agentsclimarketplace

Pwp migrate

Skill shandar/pwp-plugin/skills/pwp-migrate

11 systematic skills for Claude Code — structured protocols for debugging, code review, security, refactoring, testing, deployment, and more. No vibes, just discipline.

Install
npx -y skills add shandar/pwp-plugin --skill pwp-migrate

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Data and schema migration protocol — safe, reversible, verified migrations. Use this skill whenever the user needs to do a database migration, schema change, data transformation, platform move, or major dependency upgrade. Also use when they say 'add a column', 'change the schema', 'upgrade the database', 'move to a new host', 'backfill data', or 'major version upgrade'. Covers schema, data, platform, and dependency migrations with rollback strategies.

SKILL.md

3.4 KB, as published. Nobody here has run it

Migration Skill

This skill defines how to plan and execute migrations — database schema changes, data transformations, system upgrades, and platform moves. Migrations are the highest-risk operations in software delivery.

Migration Mindset

  • Migrations are not features. They have their own lifecycle and risks. Never mix migration code with application code in the same deploy.
  • Reversibility is mandatory. Every up must have a down. If you can't undo it, you're not ready to do it.
  • Test on realistic data. An empty database is not a test.
  • Communicate risk. Every migration has a blast radius. Make it explicit.

Migration Types

TypeExamplesRisk Level
SchemaAdd column, create table, add indexMedium
DataBackfill values, transform formatsHigh
PlatformChange hosting, switch databasesVery High
DependencyMajor version upgradeMedium-High

Migration Protocol

Step 1: Plan

  • Document what changes and why
  • Identify all affected systems, tables, and services
  • Estimate duration, define rollback strategy

Step 2: Write Migration

Naming: {YYYYMMDD}_{sequence}_{description}.{direction}.sql

  • Each migration is atomic
  • Separate schema changes from data changes
  • Never modify an already-applied migration

Step 3: Test

  1. Test on empty database (syntax)
  2. Test on seed data (existing data)
  3. Test on production-shaped data (realistic volume)
  4. Test the rollback
  5. Test the application with both old and new schema

Step 4: Execute

  1. Backup the database
  2. Deploy to staging first
  3. Deploy to production during low-traffic window
  4. Monitor for errors
  5. Verify data integrity

Step 5: Verify

  • Migration applied successfully
  • Data integrity checks pass
  • Application functions correctly
  • Rollback tested and verified
  • Performance acceptable

Safe Schema Change Patterns

Adding a Column: Add as nullable → deploy writes → backfill → add constraint Removing a Column: Stop reading → stop writing → drop column Renaming a Column: Add new → write both → backfill → read new → write new → drop old Adding an Index: Use CREATE INDEX CONCURRENTLY for large tables

Data Migration Rules

  1. Batch large operations (1,000-10,000 rows per batch)
  2. Log progress for long-running migrations
  3. Validate before and after (counts, distributions, foreign keys)
  4. Never delete data permanently in a migration — soft-delete first

Anti-Patterns

Anti-PatternDo This Instead
Migration + feature in same deployDeploy separately
No down migrationAlways write reversible migrations
Testing on empty database onlyTest on production-shaped data
Editing applied migrationsWrite new migration instead
No backup before migrationAlways backup first

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.