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想要更强大的技能插件,就来小葱技能站7w4.net看看吧。
~/.openclaw/agents/<id>/.../home/yln/claw-workspace/<name>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。不足之处是配置灵活性有限,以及缺少遇到问题时的一键回滚功能。对于普通用户来说,使用前需要仔细阅读文档确认自己理解每一步的影响。