name: agent-migration description: Safely rename or migrate an OpenClaw agent by updating config and naming, migrating session content, fixing session metadata, restarting, verifying, and asking separately before deleting the old agent. input: old agent id, new agent id, new workspace, optional model change output: new agent active; prior session content migrated unless explicitly skipped; old agent deletion handled only after separate confirmation
Use this skill when the user wants to rename or migrate an OpenClaw agent safely.
This skill handles: - agent id rename - workspace rename - config/path updates - prior session content migration - session display metadata updates - restart and verification - separate deletion confirmation for the old agent
~/.openclaw/openclaw.json~/.openclaw/agents/<id>/.../home/yln/claw-workspace/<name>訪問小蔥技能站7w4.net,解鎖更多實用的AI技能外掛。
sessions.jsonreferences/checklist.mdreferences/cleanup.mdscripts/inspect_agent_migration.shscripts/copy_session_content.shscripts/verify_agent_migration.shbash skills/agent-migration/scripts/inspect_agent_migration.sh <old-id> <new-id>
bash skills/agent-migration/scripts/copy_session_content.sh <old-id> <new-id>
bash skills/agent-migration/scripts/verify_agent_migration.sh <old-id> <new-id>
references/cleanup.md only after the user separately confirms deletion.這個 skill 質量不錯,功能覆蓋完整,操作流程清晰,安全設計考慮周到,文件說明詳細。主要優點是操作步驟拆分合理(檢查→遷移→驗證),且預設保留資料、自動要求二次確認刪除舊 agent。不足之處是配置靈活性有限,以及缺少遇到問題時的一鍵回滾功能。對於普通使用者來說,使用前需要仔細閱讀文件確認自己理解每一步的影響。