安全扫描
OpenClaw
安全
high confidence该技能的文件和指令与一个需要本地高级文件访问的本地代理迁移工具一致;包中没有尝试未解释的网络访问或请求无关的凭证。
评估建议
该包与其声明的目的相符,但执行高影响力的本地文件操作。使用前:(1)审查三个包含的脚本以确保它们符合您的期望;(2)备份 `~/.openclaw` 和任何工作区目录;(3)先运行检查/摘要模式(复制脚本支持摘要模式)以预览更改;(4)确保以正确的用户身份运行命令(避免使用 root 用户,除非您了解原因);(5)如果计划使用验证(`openclaw doctor`),确认 OpenClaw CLI 的存在;(6)在手动验证新代理并有明确备份/同意之前,永远不要删除旧代理。如果您想要额外的保证,请提供一个沙盒测试代理并在那里进行试运行。...详细分析 ▾
✓ 用途与能力
Name/description match the actual behavior: scripts and docs operate on ~/.openclaw, agent directories, sessions.json and workspace paths to copy and verify session data and update config. The declared high local-permission requirement in README/metadata is appropriate for the actions performed.
ℹ 指令范围
SKILL.md confines actions to migration tasks and references the included scripts for inspect/copy/verify. It reads/writes OpenClaw config, agent dirs, workspace and session metadata — which is expected. One minor note: verify script calls an external command (openclaw doctor) that is not declared in required binaries; the runtime will need that binary available. Guardrails (no hard-edit of locks, require confirmation before deletion) are present.
✓ 安装机制
No install spec; this is instruction-only with included shell scripts. No downloads or external installers are used, so nothing arbitrary is fetched or executed from remote URLs.
✓ 凭证需求
The skill requests no environment variables or credentials. It does require elevated local file permissions to modify ~/.openclaw and workspace paths, which is proportional to migration behavior and is documented in README/metadata.
✓ 持久化与权限
always is false and the skill does not request persistent or system-wide privileges beyond modifying its own agent-related files. It does not modify other skills' configs or assert permanent presence.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.12026/3/27
压缩指令并验证了迁移流程,包含一个真实的重命名测试。
● Pending
安装命令 点击复制
官方npx clawhub@latest install agent-migration
镜像加速npx clawhub@latest install agent-migration --registry https://cn.clawhub-mirror.com
技能文档
使用此技能当用户想要安全地重命名或迁移 OpenClaw 代理。
作用范围
此技能处理:- 代理 ID 重命名
- 工作区重命名
- 配置/路径更新
- 之前会话内容迁移
- 会话显示元数据更新
- 重启和验证
- 对旧代理的单独删除确认
默认值和边界
- 确认旧 ID、新 ID、新工作区,并且是否也改变模型。
- 默认迁移之前的会话内容,除非用户明确表示不迁移。
- 即使会话看起来不活跃,也不要跳过迁移。
- 不要硬编码活跃的锁文件或强制重写活跃的会话 shell。
- 迁移后重启是必需的。
- 永远不要在没有单独用户确认的情况下删除旧代理。
涉及的文件
- 配置:
~/.openclaw/openclaw.json - 代理目录:
~/.openclaw/agents//... - 工作区:
/home/yln/claw-workspace/ - 会话元数据,如
sessions.json
使用包含的文件
references/checklist.mdreferences/cleanup.mdscripts/inspect_agent_migration.shscripts/copy_session_content.shscripts/verify_agent_migration.sh
推荐命令
bash skills/agent-migration/scripts/inspect_agent_migration.sh
bash skills/agent-migration/scripts/copy_session_content.sh
bash skills/agent-migration/scripts/verify_agent_migration.sh
守护规则
- 保持配置、工作区和命名变化的一致性。
- 作为迁移的一部分更新会话显示层元数据。
- 在提供旧代理删除选项之前验证新代理。
- 只在用户单独确认删除后使用
references/cleanup.md。
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制