Skip to content
Development
Skill

/codebase-migration-batches

Use when a wide refactor or migration is too large to ship as one change — API renames across many files, framework or config migrations, or mechanical codemod-backed refactors that need reviewable batches.

From plugin
agent-powerups
8114 skills46 agents54 commands

Claude Code

$ npx -y skills add yeaight7/agent-powerups --skill codebase-migration-batches --agent claude-code

SKILL.md

codebase-migration-batches.SKILL.md
name: codebase-migration-batches
description: Use when a wide refactor or migration is too large to ship as one change — API renames across many files, framework or config migrations, or mechanical codemod-backed refactors that need reviewable batches.

Codebase Migration Batches

Use this skill for broad, repetitive refactors that should move in slices.

When to Use

  • API renames across many files
  • Framework or config migrations
  • Mechanical refactors backed by codemods or search/replace rules
  • Any change where "all at once" would be too large to review safely

Core Rules

  • Define the transform precisely before editing files
  • Keep one migration theme per batch
  • Prefer deterministic codemods over manual repetition
  • Maintain a batch ledger so already-migrated files are not touched twice
  • Validate each batch before moving to the next
  • No auto-commit, auto-push, or auto-PR

Workflow

1. **Define the migration**

  • What changes
  • What does not change
  • How success is measured

2. **Measure the blast radius**

  • Count affected files
  • Sample representative files
  • Identify edge cases before the first codemod pass

3. **Choose batch size**

  • Small enough to review and debug
  • Large enough to make visible progress

4. **Run the transform**

  • Prefer AST-aware tools when syntax matters
  • Use plain search/replace only for truly mechanical edits
  • Keep any helper scripts under versioned project control if they are reused

5. **Verify the batch**

  • Run targeted tests first
  • Run broader validation when the batch changes shared primitives
  • Track residual manual fixes separately from the codemod logic

6. **Advance or stop**

  • Continue if the batch is stable
  • Shrink the batch if review or validation gets noisy
  • Stop and redesign the transform if repeated manual cleanup dominates

Batch Ledger

Track at least:

Batch ID
Files included
Transform rule
Validation run
Known exceptions

Verification

  • [ ] The transform was defined precisely — what changes, what does not — before the first file edit
  • [ ] Each batch held one migration theme and passed validation before the next began
  • [ ] The batch ledger records files, transform rule, validation run, and exceptions for every batch
  • [ ] No already-migrated file was touched twice; no auto-commit, auto-push, or auto-PR occurred
Read more
@yeaight7
Ships withagent-powerups

Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more

8114 skills46 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8
Star history of yeaight7/agent-powerups on GitHub, a chart by star-history.com

Other skills on agent-powerups.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about codebase-migration-batches.

Which coding agents can use codebase-migration-batches?
codebase-migration-batches installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.