acedergren/agentic-tools/migrate
Claude Code and agent skill by acedergren/agentic-tools
- community
Checking that the SKILL.md file is still in the repository.
Use when bulk-migrating import paths, renaming workspace packages, or reorganizing modules across many files in a monorepo. Uses scripted bulk operations with verification gates and atomic commits. Keywords: migrate imports, rename package, bulk import path change, module reorganization, monorepo refactor. Triggers on "migrate imports" or "rename package".
Install
npx vskill@latest install acedergren/agentic-tools/migrateSKILL.md
Migrate
When to Use
Load this skill when the user request matches the frontmatter description for Migrate.
Orchestrates monorepo migrations: import path changes, package renames, module moves. Uses scripted bulk operations (never file-by-file edits), deduplicates against existing work, verifies types at each step, and commits atomically.
Do NOT load this skill when the change only touches one or two files, the user wants exploratory refactoring, or the package boundary decision is still unresolved.
NEVER
- Never use the Edit tool file-by-file for bulk migrations — use
grep | xargs sedinstead (10x faster, no missed files). - Never start without a deduplication check — duplicate migrations cause import conflicts that are hard to debug.
- Never commit without typecheck — silent import breakage is worse than a failed commit.
- Never skip the residual check — 2 files left pointing to the old path cause subtle runtime errors.
- Never migrate without a manifest — you must know the blast radius before touching anything.
- Never run bulk sed without confirming the manifest count with the user if > 20 files or if
packages/is touched.
Decision Tree
Scripts
Pipeline
Step 1: Deduplication Check
If migration is already complete or partial: report what exists, ask whether to verify/clean up or skip.
Step 2: Build Migration Manifest
Print summary grouped by workspace. Ask user to confirm before proceeding if > 20 files or packages/ is affected.
Step 3: Scripted Bulk Replacement
macOS note: sed -i '' (empty string required for in-place edit without backup). Linux uses sed -i without the empty string.
Step 4: Verification Gate
Common causes of type errors after migration:
- Import path changed but exported symbol name also differs → check the actual export
- Package not yet built →
pnpm --filter <package-name> build - Circular dependency introduced →
pnpm run check:circular
Step 5: Residual Check
Remaining occurrences may be in:
- Dynamically constructed import strings → manual inspection required
- Test fixture data (strings, not imports) → may be intentional
- Comments or docs → update if they describe the API
Step 6: Run Tests
If tests fail: check if mock paths still point to the old module path (common missed case in test files).
Step 7: Atomic Commit
Stage only migrated files — never git add -A.
Common Migration Patterns
| Pattern | From | To | |
|---|---|---|---|
| Package rename | @company/old-pkg | @company/new-pkg | |
| Path restructure | @app/shared/utils | @app/core/utils | |
| Index consolidation | ./auth/helpers | ./auth/index | |
| Framework alias | $lib/server/* | src/lib/server/* |
Arguments
$ARGUMENTS: Migration description"@old/pkg/utils → @new/pkg/utils"— import path migration"move packages/server/src/auth.ts to packages/server/src/auth/index.ts"— file move"rename @company/old-shared → @company/core"— package rename- If empty: ask for source and target
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/migrate/SKILL.md
Popularity
- Repository stars
- 8
- 7-day trend score
- 11
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/acedergren/agentic-tools/migrate)