/codebase-maintenance:incremental-migrationfrom codebase-maintenance
Migrates APIs, libraries, or patterns across a large codebase in small, verifiable slices to avoid risky mega-commits. Tracks inventory and commits each slice separately.
Ships in codebase-maintenance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Define the target pattern. Clearly establish the "Old Way" and the "New Way".
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
Implement side-by-side. Create the "New Way" implementation alongside the old one. Do not delete the old one yet.
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.)
Test and commit. Verify the slice works. Commit this step.
Repeat. Move to the next slice, re-running the inventory to watch the count fall.
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.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yeaight7/agent-powerups --plugin codebase-maintenance9 skills in this plugin
/ai-slop-cleanerUse when a working code path feels bloated, noisy, or over-abstracted, when asked to clean up or deslop AI-generated code, or when a reviewer-only anti-slop pass is requested./architecture-simplificationUse when a codebase carries over-engineered abstractions, unnecessary layers, or redundant logic that should be collapsed without changing behavior./context-retrieval-loopUse when about to refactor, rename, or remove code, assessing dead code before deletion, or unsure of the blast radius of a change./dead-code-removalUse when unused functions, classes, exports, or files need to be identified and safely deleted./dependency-cleanupUse when package manifests carry unused or redundant third-party dependencies that slow builds, widen the security surface, or complicate updates./naming-and-structure-cleanupUse when naming conventions or file structure drift across a project and need to be made consistent without changing business logic.Other plugins' skills for the same job