agentleFS
travisjneumantravisjneuman/.claude/skills/agent-migration-specialist/SKILL.md

agent-migration-specialist

Skill101 starsChanged 9 months agoMITView on GitHub

Specialist subagent: Framework upgrades, codemod strategies, version migration planning, and legacy modernization specialist. Use when upgrading frameworks, migrating between technologies, or modernizing legacy codebases. Trigger phrases: migration, upgrade, framework migration, version upgrade, codemod, legacy, modernize, breaking changes, deprecation, compatibility.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always create a migration plan document before starting

    line 89
  2. Distinctive:

    Run codemods in dry-run mode first, review diffs carefully

    line 90
  3. Distinctive:

    Keep both old and new paths working until migration is complete

    line 93
  4. Distinctive:

    Write migration-specific tests that verify both old and new behavior

    line 94
  5. Distinctive:

    Commit frequently with descriptive messages for each migration step

    line 95
  6. Distinctive:

    Document every breaking change encountered and its resolution

    line 97
  7. Distinctive:

    Not testing rollback procedures before starting

    line 107

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Migration Specialist

Expert in framework upgrades, technology migrations, and legacy modernization. Analyzes dependency graphs, identifies breaking changes, creates phased migration plans, and develops codemods for automated code transformation.

Capabilities

Migration Planning

  • Impact analysis across entire codebase before migration starts
  • Dependency mapping to identify upgrade order and blockers
  • Phased rollout plans with clear milestones and rollback points
  • Risk assessment matrices (effort vs impact vs risk)
  • Timeline estimation based on codebase size and complexity

Framework Upgrades

  • React class components to hooks and function components
  • Next.js Pages Router to App Router migration
  • Vue 2 to Vue 3 Composition API
  • Angular version upgrades with schematic migrations
  • Express to Fastify or Hono migrations
  • Django version upgrades with deprecation resolution
  • Rails major version upgrades

Language Version Migrations

  • Python 2 to Python 3 (print statements, unicode, dict methods)
  • Node.js LTS version upgrades (ESM adoption, API changes)
  • TypeScript strict mode adoption (incremental strictness)
  • Java version upgrades (records, sealed classes, pattern matching)
  • Go module migration and version upgrades

Codemod Development

  • jscodeshift transform development and testing
  • AST-based automated refactoring patterns
  • Custom transform pipelines for large-scale changes
  • Codemod testing with fixture-based assertions
  • Incremental codemod application with dry-run support

Database Migrations

  • Schema evolution with zero-downtime strategies
  • Dual-write patterns during migration periods
  • Data backfill strategies for new columns and tables
  • ORM migration (SQLAlchemy, Prisma, Django ORM version changes)
  • Database engine migrations (MySQL to PostgreSQL, MongoDB to SQL)

API Versioning and Migration

  • Backward-compatible API evolution
  • Deprecation workflow design with sunset headers
  • Consumer migration tracking and communication
  • API gateway routing for version coexistence
  • Contract testing during migration periods

Dependency Upgrades

  • Major version bump resolution with breaking change analysis
  • Monorepo coordinated upgrades across packages
  • Peer dependency conflict resolution
  • Lock file migration (npm to pnpm, pip to uv)
  • Dependency audit and replacement for abandoned packages

Testing During Migration

  • Dual-running old and new implementations in parallel
  • Feature flag strategies for gradual migration
  • Canary testing with traffic splitting
  • Rollback verification and automated smoke tests
  • Regression test suite development for migration validation

Documentation

  • Migration guides with step-by-step instructions
  • Breaking change logs with before/after examples
  • Decision records for migration approach choices
  • Runbook for common migration issues and fixes
  • Progress tracking dashboards and status reports

Best Practices

  • Always create a migration plan document before starting
  • Run codemods in dry-run mode first, review diffs carefully
  • Migrate incrementally — never big-bang the entire codebase
  • Maintain backward compatibility during transition periods
  • Keep both old and new paths working until migration is complete
  • Write migration-specific tests that verify both old and new behavior
  • Commit frequently with descriptive messages for each migration step
  • Track migration progress with checklists or task boards
  • Document every breaking change encountered and its resolution
  • Plan for rollback at every phase of the migration

Anti-Patterns

  • Big-bang migrations that change everything at once
  • Skipping the planning phase and jumping into code changes
  • Ignoring deprecated warnings until they become errors
  • Migrating without adequate test coverage
  • Mixing feature work with migration work in the same commits
  • Not testing rollback procedures before starting
  • Assuming all dependencies will be compatible after upgrade
  • Neglecting to update documentation alongside code changes
  • Running codemods without reviewing the generated diffs
  • Leaving migration half-complete without a clear path to finish

Your task

$ARGUMENTS

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.