incremental-migration

incremental-migration is a skill for Claude Code from yeaight7/agent-powerups. It costs 34 tokens per session (716 once invoked), scanned A, original, Apache-2.0.

A controlled method for replacing an API, library, or coding pattern across a large codebase. A codebase is the full collection of source files for a software project.

In plain words
What is it for?
Use it for framework upgrades, library replacements, API changes, or other migrations with many affected files or call sites.
Why use it?
It avoids risky all-at-once changes by tracking remaining uses and migrating small, tested parts of the project.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the codebase-maintenance plugin — 8 skills, 4 commands, 3 agents shipped together

Good fit Use it for framework upgrades, library replacements, API changes, or other migrations with many affected files or call sites.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yeaight7/agent-powerups/incremental-migration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yeaight7/agent-powerups --skill incremental-migration
Clone the repo
git clone --depth 1 https://github.com/yeaight7/agent-powerups

Made for: Claude Code.

Or install codebase-maintenance, the plugin that ships this one along with the rest of its 8 skills, 4 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for incremental-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/yeaight7/agent-powerups/incremental-migration/github.svg)](https://agentmods.dev/skills/yeaight7/agent-powerups/incremental-migration)
Your own site
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/incremental-migration"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/incremental-migration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for incremental-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/incremental-migration"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/incremental-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00716
Opus 5.5 $0.00014 $0.00286
Sonnet 5.5 $0.00007 $0.00143
Haiku 4.5 $0.00003 $0.00072

Measured 1mo ago against content hash b9e6995a9779, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

incremental-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/codebase-maintenance/skills/incremental-migration/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

Never attempt to migrate an entire codebase in a single step. Mega-commits are impossible to review and dangerous to merge. Migrate in verified, committed slices, tracking the remaining inventory to zero.

When to Use

  • Replacing an API, library, or pattern with many call sites
  • A framework or major-version upgrade touches a wide surface area
  • A previous big-bang migration attempt stalled or was reverted

Inputs

  • The "Old Way" and "New Way" definitions
  • The repo's test command

Workflow

  1. Define the target pattern. Clearly establish the "Old Way" and the "New Way".

  2. Build the inventory. Make the migration measurable:

    git grep -ln "oldApiCall(" -- "src/"                # files still on the Old Way
    git grep -c "oldApiCall(" -- "src/" | sort -t: -k2 -nr   # hotspots first
    
  3. Implement side-by-side. Create the "New Way" implementation alongside the old one. Do not delete the old one yet.

  4. Migrate one vertical slice. Pick exactly one feature, route, or component; update it to use the new pattern. Mechanical rewrites can be scripted per slice:

    # codemod sketch — scoped to one slice; review the diff before committing
    git grep -l "oldApiCall(" -- "src/feature-x/" | xargs sed -i "s/oldApiCall(/newApiCall(/g"
    git diff --stat    # confirm the change stayed inside the slice
    

    (For syntax-aware rewrites, AST codemod tools such as jscodeshift or comby are safer than sed, when available.)

  5. Test and commit. Verify the slice works. Commit this step.

  6. Repeat. Move to the next slice, re-running the inventory to watch the count fall.

  7. Deprecate and remove. Only once all usages of the "Old Way" are gone (inventory at zero) can you safely delete the old implementation.

If a migration is too large for a single session, leave a clear handoff document summarizing progress and the next files to migrate.

Output

  • A series of slice-sized commits, each tested
  • The shrinking inventory count per slice
  • A handoff document if the migration spans sessions

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 72 lines · 34 tokens per session scan A b9e6995a9779

Subscribe to this mod's changes

incremental-migration is a skill published in the GitHub repository yeaight7/agent-powerups (6 stars, last pushed 22d ago), licensed Apache-2.0. It adds 34 tokens to every session and 716 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.