返回顶部
c

clawgo-upload上传到ClawGo

Zip local files or folders, upload to clawgo.me, and get a shareable clone link. Use when the user wants to share, back up, or move local workspace Markdown or other files. Triggers — "upload to clawgo", "share my workspace", "zip and upload", "generate clone link", "send files to clawgo".

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
180
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

clawgo-upload

ClawGo 上传技能

将本地文件上传至 clawgo.me,获取一个 12 位字符的密钥和可共享的克隆链接。

服务限制

  • - 基础 URL:https://clawgo.me
  • 仅支持 .zip 格式上传,最大 512MB
  • 密钥生命周期:pending(密钥已签发,zip 尚未上传)→ ready(可下载)
  • 对同一密钥再次上传会替换服务器上该密钥对应的 zip 文件
  • 文件表单字段名:file 或 zip(两者均可)

工作流程

步骤 1 — 构建 zip 文件

推荐使用 Python(机器可能没有 zip 命令行工具):

python
import zipfile, os

files = [SOUL.md, AGENTS.md, TOOLS.md, IDENTITY.md, USER.md] # 根据需要调整
output = /tmp/upload-payload.zip

with zipfile.ZipFile(output, w, zipfile.ZIP_DEFLATED) as z:
for f in files:
if os.path.exists(f):
z.write(f)

压缩整个目录:

python
import zipfile, os

src_dir = /path/to/dir
output = /tmp/upload-payload.zip

with zipfile.ZipFile(output, w, zipfile.ZIP_DEFLATED) as z:
for root, , filenames in os.walk(srcdir):
for fname in filenames:
fpath = os.path.join(root, fname)
z.write(fpath, os.path.relpath(fpath, os.path.dirname(src_dir)))

在继续之前,确认 zip 文件存在且非空。

步骤 2 — 生成密钥

bash
curl -s -X POST https://clawgo.me/api/keys/generate

从 JSON 中读取 key 字段(12 位字母数字字符,大写)。

步骤 3 — 上传 zip 文件

bash
curl -s -X POST \
-F file=@/tmp/upload-payload.zip \
https://clawgo.me/api/clones/{key}/upload

成功响应包含 status: ready 和 available: true。

步骤 4 — 向用户报告

上传成功后,告知用户:

  • - 克隆链接:https://clawgo.me/clone/{key} — 可共享的 URL
  • 密钥:12 位字符的密钥
  • 文件名和大小:来自响应中的 fileName 和 fileSize
  • 上传时间:来自响应中的 createdAt

可选检查

bash
curl -s https://clawgo.me/api/clones/{key}/availability

仅在 available: true 后才向用户报告成功。

OpenClaw 工作区文件参考

上传 OpenClaw 工作区 Markdown(角色和规则类笔记)时,典型的最小文件集为:

文件作用
SOUL.md主要身份、推理风格、行为约束
AGENTS.md
会话引导、工具策略、硬性限制 |
| TOOLS.md | 本地工具说明、第三方访问提示、代理路由 |
| IDENTITY.md | 显示名称、角色、表情符号元数据 |
| USER.md | 用户配置文件和会话上下文 |

这些文件位于 ~/.openclaw/workspace/ 目录下。

错误处理

HTTP原因处理方法
400密钥格式错误/字段名错误/非 zip 文件确保密钥为 12 位字符,字段名为 file,文件名以 .zip 结尾
404
未知密钥 | 重复步骤 2 生成新密钥 | | 404(下载时) | 密钥仍处于 pending 状态 | 上传未完成;重试上传 | | 500 | 服务器故障 | 重试一次;若持续失败,告知用户 |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clawgo-upload-1776120550 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clawgo-upload-1776120550 技能

通过命令行安装

skillhub install clawgo-upload-1776120550

下载

⬇ 下载 clawgo-upload v1.0.1(免费)

文件大小: 2.64 KB | 发布时间: 2026-4-14 10:30

v1.0.1 最新 2026-4-14 10:30
- Added _meta.json file for enhanced skill metadata management.
- SKILL.md rewritten in English for broader accessibility.
- Skill description and trigger phrases updated for clarity and inclusiveness.
- No functional or logic changes to the upload process itself.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部