.gemini/skills/migration-assistant/SKILL.md
[UDS] 引導程式碼遷移、框架升級與技術現代化
npx skillsauth add asiaostrich/universal-dev-standards migrateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
語言: English | 繁體中文
引導系統性程式碼遷移、框架升級與技術現代化。
| 命令 | 用途 |
|------|------|
| /migrate | 啟動互動式遷移引導 |
| /migrate --assess | 僅風險評估 |
| /migrate "Vue 2 to 3" | 引導特定遷移 |
| /migrate --deps | 依賴升級分析 |
| /migrate --rollback | 規劃回滾策略 |
| 類型 | 範例 | 風險 | |------|------|------| | 框架升級 | React 17→18, Vue 2→3 | 中高 | | 語言遷移 | JS→TS, Python 2→3 | 高 | | API 版本 | REST v1→v2, GraphQL 更新 | 中 | | 資料庫遷移 | MySQL→PostgreSQL | 極高 | | 建構工具 | Webpack→Vite | 低中 | | 套件管理器 | npm→pnpm | 低 |
| | 低影響 | 中影響 | 高影響 | |---|--------|--------|--------| | 低複雜度 | 安全(直接進行) | 謹慎 | 仔細規劃 | | 中複雜度 | 謹慎 | 規劃 + 測試 | 分階段發布 | | 高複雜度 | 規劃 + 測試 | 分階段發布 | 完整 SDD 規格 |
| 方式 | 使用時機 | |------|---------| | Git revert | 小型、原子性變更 | | 功能旗標 | 需要逐步發布 | | 雙運行 | 關鍵系統、零停機 | | 分支凍結 | 一次性完整遷移 |
/migrate 完成後,AI 助手應建議:
遷移分析完成。建議下一步:
- 執行
/reverse深入理解現有程式碼- 執行
/testing確保遷移後測試通過- 執行
/commit提交遷移變更
development
[UDS] 扫描代码库的调试残留与代码质量问题;可自动修正安全模式。 Use when: before committing, during PR review, or periodic codebase cleanup. Keywords: sweep, debug cleanup, console.log, debugger, TODO, ts-any, code quality, 扫描, 清理.
tools
[UDS] 从规格衍生 BDD 场景、TDD 骨架或 ATDD 表格
development
[UDS] 识别重复流程并以正确的开发深度构建 Skill
tools
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.