← 返回
未分类 中文

clawgo-clone

Download a zip from clawgo.me by key, back up current workspace Markdown, then copy zip contents into the local OpenClaw workspace. Use when the user gives a...
通过密钥从 clawgo.me 下载 zip,备份当前工作区的 Markdown,然后将 zip 内容复制到本地 OpenClaw 工作区。使用时机为用户提供...
chenjunyeee chenjunyeee 来源
未分类 clawhub v1.0.1 1 版本 99823.9 Key: 无需
★ 1
Stars
📥 547
下载
💾 0
安装
1
版本
#latest

概述

ClawGo workspace sync skill

Download a zip from clawgo.me, back up existing files, and copy Markdown from the archive into the local OpenClaw workspace.

Service limits

  • Base URL: https://clawgo.me
  • Key: 12 alphanumeric characters (server normalizes to uppercase)
  • Only .zip payloads; require status: ready before download
  • Target folder: ~/.openclaw/workspace/

Workflow

Step 1 — Check key readiness

curl -s https://clawgo.me/api/clones/{key}/availability
  • available: true and status: ready → continue
  • status: pending → stop with error: "No zip uploaded for this key yet"
  • Missing key (404) → stop with error: "Key not found"

Step 2 — Download zip to a temp path

curl -s -L -o /tmp/clone-{key}.zip \
  https://clawgo.me/api/clones/{key}/download

Verify: file size must be greater than zero.

Step 3 — Extract and inspect

mkdir -p /tmp/clone-{key}
unzip -o /tmp/clone-{key}.zip -d /tmp/clone-{key}/

Run these safety checks after extraction. If anything looks wrong, warn the user clearly and ask whether to proceed:

  • List archive contents
  • Require at least one of: SOUL.md, AGENTS.md, TOOLS.md
  • If empty or none of the expected Markdown files → stop with error

Step 4 — Back up current workspace files

BACKUP_DIR="/tmp/backup-before-clone-$(date +%Y%m%d-%H%M%S)"
mkdir -p "$BACKUP_DIR"
WORKSPACE="$HOME/.openclaw/workspace"

for f in SOUL.md AGENTS.md TOOLS.md IDENTITY.md USER.md HEARTBEAT.md; do
    [ -f "$WORKSPACE/$f" ] && cp "$WORKSPACE/$f" "$BACKUP_DIR/$f"
done

Tell the user the backup path so they can roll back manually if needed.

Step 5 — Write archive files into the workspace

WORKSPACE="$HOME/.openclaw/workspace"
SRC="/tmp/clone-{key}"

for f in SOUL.md AGENTS.md TOOLS.md IDENTITY.md USER.md HEARTBEAT.md; do
    [ -f "$SRC/$f" ] && cp "$SRC/$f" "$WORKSPACE/$f"
done

Only files present in the zip are copied; local files missing from the zip are left unchanged (not removed).

Step 6 — Report results

Tell the user:

  • Files successfully written from the zip
  • Files skipped because they were absent from the zip
  • Backup directory path
  • Suggestion: run /reset to restart the session so new workspace content loads

Workspace file reference

FileRole
------------
SOUL.mdPrimary identity, reasoning style, behavioral guardrails
AGENTS.mdSession bootstrap, tool policy, hard limits
TOOLS.mdLocal tooling notes and proxy routing
IDENTITY.mdDisplay name, role, emoji metadata
USER.mdUser profile and session context
HEARTBEAT.mdScheduled task notes

Errors

SituationAction
-------------------
status: pendingStop; ask the user to upload a zip first
Key missing (404)Stop; invalid key
No expected Markdown in zipStop; archive content does not match expectations
Downloaded file size is 0Stop; retry or report failure
Copy failed (permissions, etc.)Report error; backup remains available

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-03 07:17 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

suspicious
查看报告

🔗 相关推荐

office-efficiency

clawgo-upload

chenjunyeee
压缩本地文件或文件夹,上传至 clawgo.me,并获取可分享的克隆链接。适用于用户希望分享、备份或迁移本地工作区 Markdown 内容的场景。
★ 1 📥 630
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,671
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,886