Guides code migrations, framework upgrades (React 17→18, Vue 2→3), language shifts (JS→TS, Python 2→3), DB changes, and build tool swaps. Provides risk assessment, phased workflows, rollback strategies.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin asiaostrich-universal-dev-standardsThis skill is limited to using the following tools:
Guide systematic code migration, framework upgrades, and technology modernization.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Guide systematic code migration, framework upgrades, and technology modernization.
引導系統性程式碼遷移、框架升級與技術現代化。
| Command | Purpose | 用途 |
|---|---|---|
/migrate | Start interactive migration guide | 啟動互動式遷移引導 |
/migrate --assess | Risk assessment only | 僅風險評估 |
/migrate "Vue 2 to 3" | Guide specific migration | 引導特定遷移 |
/migrate --deps | Dependency upgrade analysis | 依賴升級分析 |
/migrate --rollback | Plan rollback strategy | 規劃回滾策略 |
| Type | Examples | Risk | 風險 |
|---|---|---|---|
| Framework Upgrade | React 17→18, Vue 2→3, Angular 15→17 | Medium-High | 中高 |
| Language Migration | JS→TS, Python 2→3, Java 8→17 | High | 高 |
| API Version | REST v1→v2, GraphQL schema update | Medium | 中 |
| Database Migration | MySQL→PostgreSQL, SQL→NoSQL | Very High | 極高 |
| Build Tool | Webpack→Vite, Grunt→ESBuild | Low-Medium | 低中 |
| Package Manager | npm→pnpm, pip→poetry | Low | 低 |
| Low Impact | Medium Impact | High Impact | |
|---|---|---|---|
| Low Complexity | Safe (proceed) | Caution | Plan carefully |
| Medium Complexity | Caution | Plan + test | Staged rollout |
| High Complexity | Plan + test | Staged rollout | Full SDD spec |
| 低影響 | 中影響 | 高影響 | |
|---|---|---|---|
| 低複雜度 | 安全(直接進行) | 謹慎 | 仔細規劃 |
| 中複雜度 | 謹慎 | 規劃 + 測試 | 分階段發布 |
| 高複雜度 | 規劃 + 測試 | 分階段發布 | 完整 SDD 規格 |
| Approach | When to Use | 使用時機 |
|---|---|---|
| Git revert | Small, atomic changes | 小型、原子性變更 |
| Feature flag | Gradual rollout needed | 需要逐步發布 |
| Dual-run | Critical systems, zero downtime | 關鍵系統、零停機 |
| Branch freeze | Full migration in one go | 一次性完整遷移 |
User: /migrate "Vue 2 to 3"
AI: Migration Assessment: Vue 2 → Vue 3
Breaking changes found: 12
- Options API → Composition API (47 components)
- Filters removed (8 usages)
- Event bus removed (3 usages)
Risk: Medium-High
Estimated effort: 2-3 weeks
Recommended: Staged migration with @vue/compat
After /migrate completes, the AI assistant should suggest:
遷移分析完成。建議下一步 / Migration analysis complete. Suggested next steps:
- 執行
/reverse深入理解現有程式碼 — Understand current codebase- 執行
/testing確保遷移後測試通過 ⭐ Recommended / 推薦 — Verify post-migration tests- 執行
/commit提交遷移變更 — Commit migration changes
| Version | Date | Changes | 變更 |
|---|---|---|---|
| 1.0.0 | 2026-03-24 | Initial release | 初始版本 |
完整的 AI 行為定義請參閱對應的命令文件:
/migrateFor complete AI agent behavior definition, see the corresponding command file:
/migrate
CC BY 4.0