Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Clawmerge

v3.0.9

OpenClaw workspace 备份/恢复/合并工具。 支持:完整备份、合并恢复(不覆盖已有)、Cron 任务备份、会话记录备份、配置导出。 触发词:「备份」「恢复」「迁移」「换电脑」「导出配置」「合并记忆」。 当 workspace 需要迁移、定期备份、或从另一台设备恢复时使用。

0· 276·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for sinoslug/clawmerge.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Clawmerge" (sinoslug/clawmerge) from ClawHub.
Skill page: https://clawhub.ai/sinoslug/clawmerge
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install clawmerge

ClawHub CLI

Package manager switcher

npx clawhub@latest install clawmerge
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Suspicious
high confidence
Purpose & Capability
The name/description (workspace backup/merge/restore) aligns with the included scripts: backup, restore, cron export/restore, script discovery, session handling. Actions such as reading ~/.openclaw, packaging workspace files, and restoring into the workspace are coherent with the stated purpose.
!
Instruction Scope
The runtime scripts scan system crontab, common system directories (/opt/scripts, ~/scripts, ~/bin), and read multiple OpenClaw files (e.g., ~/.openclaw/openclaw.json, ~/.openclaw/cron/jobs.json). They also can modify system crontab, copy scripts into ~/scripts, set execute permissions, and write to ~/.openclaw/openclaw.json when --merge-auth is used. While some of this is expected for a migration tool, the scripts collect and may write machine-level credentials (gateway token) and scan broad filesystem locations beyond the workspace, which expands the scope beyond simple file packaging.
Install Mechanism
This is instruction-only with included scripts (no external install spec, no remote downloads). Nothing in the install channel pulls remote code or writes arbitrary binaries—risk from install mechanism is low.
!
Credentials
The skill requests no environment variables, but it directly reads and can write sensitive local configuration files (e.g., ~/.openclaw/openclaw.json, agents auth files, system crontab). Notably, backup-cron-tasks.py populates an 'auth_token' field from ~/.openclaw/openclaw.json (contradicting script output claiming tokens are not included), and restore-cron-tasks.sh contains logic to fill the local gateway token from the backup when --merge-auth is used. Exporting auth tokens into backup artifacts or automatically filling local tokens increases the risk surface and is not fully consistent with the doc's stated exclusions.
Persistence & Privilege
The skill is not force-installed (always: false) and does not request platform-level privileges. However, its scripts intentionally modify local files (workspace, configs, system crontab) and may modify ~/.openclaw/openclaw.json in merge mode. That behavior is expected for a restore tool but amplifies risk if backups contain sensitive tokens.
What to consider before installing
This tool largely does what it says, but inspect and test before trusting it with real backups. Specific recommendations: - Review the scripts yourself (especially backup-cron-tasks.sh, restore-cron-tasks.sh, one-click-restore.sh) to confirm how tokens and credentials are handled. - Do a dry-run first (scripts support --dry-run) and inspect the generated backup archive contents before restoring anywhere. - Back up your current ~/.openclaw/openclaw.json and any agent credential files before running a restore. - Avoid using --merge-auth unless you understand where the backup's token comes from and you trust the source; prefer manual token copy if uncertain. - Note the scripts scan system crontab and common dirs (/opt, ~/scripts); if you have sensitive scripts outside the workspace, consider running discovery/backup in a constrained environment or removing those entries first. - Because some messages in scripts claim tokens are excluded while code writes an auth_token field, assume tokens may leak into backup artifacts unless you verify the produced archive contents. If you're unsure, install and run the skill in an isolated/test account first.

Like a lobster shell, security has layers — review code before you run it.

latestvk978j8xtyn977wkvppq7f278gh853s65
276downloads
0stars
21versions
Updated 1w ago
v3.0.9
MIT-0

Clawmerge - Workspace 备份/恢复工具

换电脑不丢记忆,备份不覆盖重要文件。

核心能力

功能说明
完整备份打包整个 workspace(可排除敏感文件)
合并恢复解压时不覆盖已有文件,适合从另一台设备增量恢复
--merge-auth备份里有但本地没有 gateway token 时,自动填充(additive only)
Cron 备份自动备份 cron 任务配置
会话备份可选包含会话记录(.jsonl)
配置导出导出脱敏后的公开配置

使用场景

场景 1:定期备份(手动)

cd ~/.openclaw/workspace
./skills/clawmerge/scripts/one-click-backup.sh /tmp/backup-$(date +%Y%m%d).tar.gz

场景 2:换电脑后恢复(合并模式)

# 从备份文件恢复,不覆盖已有文件
./skills/clawmerge/scripts/one-click-restore.sh /path/to/backup.tar.gz --merge

场景 3:查看备份内容(不解压)

tar -tzf backup.tar.gz | head -50

场景 4:只备份 Cron 任务

./skills/clawmerge/scripts/backup-cron-tasks.sh

脚本清单

脚本用途
one-click-backup.sh一键备份 workspace
one-click-restore.sh解压恢复(支持 --merge 合并模式)
backup-cron-tasks.sh单独备份 cron 配置
restore-cron-tasks.sh恢复 cron 配置
discover-scripts.py扫描 workspace 中的自定义脚本
gen-requirements.py生成 requirements.txt
post-restore-check.sh恢复后检查完整性
workspace-manager.shworkspace 空间管理(查看大小/清理)

备份排除规则

以下文件默认排除(不备份):

排除原因
*.pyc编译缓存
__pycache__/Python 缓存
.session/临时会话
node_modules/npm 包(可从 package.json 恢复)
secrets.json密钥文件
openclaw.json包含 bot token 等敏感信息

配置备份:敏感配置用 configs/public-config.json 代替(含股票列表、推送目标等公开部分,密钥用占位符)。


合并恢复逻辑(--merge)

# 合并模式:遇到同名文件
# - 若原文件与备份不同 → 保留原文件(不覆盖)
# - 若原文件不存在 → 从备份解压
# - 备份中有、原文件没有 → 恢复

使用 --merge 的场景

  • 从另一台设备的备份恢复(避免覆盖本机已有的配置)
  • 合并两台设备的工作成果

不使用 --merge 的场景

  • 全新环境直接恢复 → 直接解压覆盖

Dry Run 预览

# 先看会备份哪些文件,不实际执行
./one-click-backup.sh --dry-run /tmp/test.tar.gz

输出物

备份成功后生成:

  • backup.tar.gz:主备份文件
  • backup-manifest.txt:备份文件清单
  • backup-cron-config.json:Cron 任务配置(JSON格式)

恢复后生成:

  • restore-report.txt:恢复报告(含跳过/覆盖/新增文件列表)

故障处理

问题解决方案
备份文件过大使用 --exclude 排除大文件/目录
恢复失败检查 .tar.gz 是否损坏;尝试 tar -tzf 验证
Cron 未恢复手动运行 restore-cron-tasks.sh
会话记录丢失下次启动 agent 时会自动重建空会话

依赖

  • bash
  • tar
  • python3(用于 discover-scripts.py 和 gen-requirements.py)

备份不是为了恢复,是为了放心地往前走。 📦

Comments

Loading comments...