← 返回 Skills 市场
克隆龙虾
作者
LiPingjiang
· GitHub ↗
· v1.0.0
363
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install clone-lobster
功能描述
OpenClaw/CatPaw 配置与上下文自动备份恢复工具。在使用 OpenClaw 过程中自动保留配置变更、工作区文件、对话上下文、已安装 Skills 和系统改动到 Git 仓库。 触发场景:(1) 用户要求备份/保存当前配置 (2) 用户要求恢复之前的配置 (3) 对话中产生了重要的配置变更、skill...
使用说明 (SKILL.md)
🦞 克隆龙虾 - OpenClaw 配置自动备份
将 OpenClaw/CatPaw 的配置、上下文、Skills 和系统改动自动备份到 Git 仓库。
前置要求
- 已配置 SSH 密钥可访问 Git 仓库
- 设置备份仓库地址环境变量:
CLONE_LOBSTER_REPO_URL
备份内容
| 类别 | 路径 | 说明 |
|---|---|---|
| 工作区 | ~/.openclaw/workspace/ |
AGENTS.md, SOUL.md, USER.md, MEMORY.md, memory/ 等 |
| 配置 | ~/.openclaw/ |
openclaw.json, exec-approvals.json |
| Skills | ~/.openclaw/skills/ |
所有用户安装的 skills |
| 系统 | /etc/supervisor/ 等 |
supervisord.conf, 桌面启动脚本, SSH 配置 |
| 上下文 | ~/.openclaw/data/ |
session 数据库和 memory 索引 |
使用方式
自动备份(推荐)
在对话中检测到以下变更时,自动触发备份:
- 修改了 AGENTS.md, SOUL.md, USER.md 等工作区文件
- 安装了新的 skill
- 修改了 openclaw.json 配置
- 修改了系统配置(supervisor, 桌面环境等)
- 用户明确要求"备份"
执行备份:
export CLONE_LOBSTER_REPO_URL="ssh://[email protected]/~lipingjiang/catclaw_configuration.git"
bash scripts/backup.sh "描述本次变更"
手动恢复
export CLONE_LOBSTER_REPO_URL="ssh://[email protected]/~lipingjiang/catclaw_configuration.git"
# 恢复全部
bash scripts/restore.sh --all
# 仅恢复工作区
bash scripts/restore.sh --workspace
# 仅恢复配置
bash scripts/restore.sh --config
# 仅恢复 Skills
bash scripts/restore.sh --skills
自动触发规则
Agent 在以下情况下应主动运行备份脚本:
- 配置变更后:修改了 openclaw.json、workspace 文件、或安装了 skill
- 系统变更后:修改了 supervisor 配置、安装了新软件包、修改了桌面环境
- 对话结束前:如果本次对话中有重要变更,在结束前执行一次备份
- 用户请求时:用户说"备份"、"保存"、"同步"等关键词
- 心跳检查时:可在 HEARTBEAT.md 中添加定期备份任务
注意事项
- 备份脚本会自动排除
node_modules、__pycache__等无需备份的目录 - 敏感信息(API keys、密码)在 openclaw.json 中,确保仓库访问权限受控
- 首次使用需确保 Git 仓库已创建且 SSH 密钥有读写权限
- 备份脚本是幂等的,重复运行不会产生问题
安全使用建议
This skill implements a full backup to a Git repo and will copy session DBs, openclaw.json (which may contain API keys/passwords), ~/.ssh/config and system info and push them to whatever repo you configure. Before installing or enabling it: (1) Ensure CLONE_LOBSTER_REPO_URL is set to a trusted, private repo and use a deploy key with minimal scope; (2) Review and, if needed, edit scripts to exclude sensitive files (or add filtering/encryption) — e.g., avoid backing up openclaw.json or strip secrets first; (3) Prefer manual invocation until you verify behavior; disable automatic triggers or limit them in SKILL.md; (4) Add explicit registry metadata for required env vars/credentials so users can see what will be used; (5) Test in a safe environment (temp account/repo) to confirm no unintended data is uploaded. If you cannot verify the destination repo and its access controls, do not enable autonomous backups.
功能分析
Type: OpenClaw Skill
Name: clone-lobster
Version: 1.0.0
The 'clone-lobster' skill is designed to automatically back up OpenClaw configurations, including highly sensitive files such as 'openclaw.json' (which contains API keys and passwords), '~/.ssh/config', and session databases to a remote Git repository. While presented as a legitimate backup utility, the 'scripts/backup.sh' script performs automated exfiltration of credentials and private system configurations to a user-defined URL (with an internal example 'git.sankuai.com'), and 'SKILL.md' instructs the agent to trigger these backups autonomously. The lack of encryption for sensitive data before transmission to a remote endpoint poses a significant security risk.
能力评估
Purpose & Capability
Name, description, SKILL.md, and the scripts all align: the tool collects OpenClaw/CatPaw workspace, config, skills, system files and context and pushes them to a Git repo. However the registry metadata did not declare the CLONE_LOBSTER_REPO_URL env var or the expectation of an SSH deploy key, which is an omission (not necessarily malicious) and reduces transparency.
Instruction Scope
The runtime instructions and backup.sh explicitly read many files beyond simple user configs: session databases, memory files, ~/.ssh/config, /etc/supervisor files, installed package lists, supervisor status, and whole skills directories (including code). Those actions match a broad backup goal but also collect highly sensitive data (API keys, secrets in openclaw.json or session DBs). The SKILL.md does warn about sensitive info, but the automatic-trigger rules (run on many change events) could cause repeated uploads without explicit per-run consent.
Install Mechanism
This is an instruction-only skill with included shell scripts; there is no install spec or remote download. That minimizes installer risk because no external binary is fetched during installation.
Credentials
The scripts require a CLONE_LOBSTER_REPO_URL and an SSH key with write access to the repo, but the registry entry lists no required env vars or primary credential. The skill also uses optional OPENCLAW_WORKSPACE/OPENCLAW_DIR env vars. Expectation of SSH keys and a writable Git repo is reasonable for a backup tool, but the missing declaration in metadata is an inconsistency and the set of data accessed is high-impact (secrets & local system state).
Persistence & Privilege
The skill is not marked 'always:true' and does not request elevated/install-time persistence. It can be invoked autonomously (platform default); combined with the broad data access this increases blast radius if the agent runs backups automatically and the configured repo is untrusted. The scripts themselves do not attempt to modify other skills or global agent configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install clone-lobster - 安装完成后,直接呼叫该 Skill 的名称或使用
/clone-lobster触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of clone-lobster skill for OpenClaw/CatPaw automated configuration backup and recovery.
- Automatically backs up configuration, workspace files, installed Skills, and system changes to a Git repository on key events (changes, installs, direct user requests).
- Allows full or partial restore (workspace, config, or Skills) via simple scripts.
- Supports event-driven triggers for backup (e.g., file changes, system modifications, user keywords).
- Requires configuring an SSH-accessible Git repository and setting a backup repository URL.
- Excludes unnecessary files and advises on security for sensitive data.
元数据
常见问题
克隆龙虾 是什么?
OpenClaw/CatPaw 配置与上下文自动备份恢复工具。在使用 OpenClaw 过程中自动保留配置变更、工作区文件、对话上下文、已安装 Skills 和系统改动到 Git 仓库。 触发场景:(1) 用户要求备份/保存当前配置 (2) 用户要求恢复之前的配置 (3) 对话中产生了重要的配置变更、skill... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 363 次。
如何安装 克隆龙虾?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install clone-lobster」即可一键安装,无需额外配置。
克隆龙虾 是免费的吗?
是的,克隆龙虾 完全免费(开源免费),可自由下载、安装和使用。
克隆龙虾 支持哪些平台?
克隆龙虾 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 克隆龙虾?
由 LiPingjiang(@lipingjiang)开发并维护,当前版本 v1.0.0。
推荐 Skills