Overview
- Skill Key
- hexiaochun/upload-to-catbox
- Author
- hexiaochun
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/hexiaochun/upload-to-catbox
- Latest Commit SHA
- 5fcc2ba5391f556ae165b5932a5bc1317cb7acfc
上传本地图片到 catbox.moe 免费图床,获取公开访问的 URL 链接。当用户需要将本地图片转换为 URL、上传图片到图床、获取图片链接、提到 catbox、或进行图像编辑(如改背景、换脸等)但提供的是本地图片路径时使用此 skill。
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 upload-to-catbox 技能。 若已安装,则直接安装 upload-to-catbox 技能。
# Catbox 图床上传 将本地图片上传到 catbox.moe 免费图床,获取永久 URL 链接。 ## 自动触发条件 当以下情况发生时,**必须自动触发此 skill**: 1. **图像编辑任务 + 本地图片**:用户要求编辑图片(换背景、改风格、修图等),但提供的是本地图片路径 2. **AI 模型需要图片 URL**:用户要使用需要图片 URL 的 AI 模型(如 Seedream、Flux、Sora 等),但输入是本地文件 3. **用户附加了图片**:对话中包含 `<image_files>` 标签,里面有本地图片路径 ### 识别本地图片路径 本地图片路径通常具有以下特征: - 以 `/` 开头的绝对路径 - 包含 `.cursor/projects/` - 包含 `/Users/` 或 `/home/` - 以 `./` 或 `../` 开头的相对路径 - 文件扩展名为 `.png`、`.jpg`、`.jpeg`、`.gif`、`.webp` ## 特点 - 免费、无需登录 - 支持直接二进制上传(无需 base64) - 永久存储(不会自动删除) - 支持格式:png, jpg, gif, webp 等 ## 上传命令 ```bash curl -F'reqtype=fileupload' -F'fileToUpload=@/path/to/image.png' https://catbox.moe/user/api.php ``` 返回值直接是图片 URL,例如:`https://files.catbox.moe/abc123.png` ## 使用流程 ### 场景 1:直接上传请求 1. 获取用户提供的本地图片路径 2. 执行 curl 命令上传 3. 返回生成的 URL 给用户 ### 场景 2:图像编辑任务(重要) 当用户请求图像编辑但提供本地图片时: 1. **先上传图片**:执行 curl 命令上传本地图片到 catbox 2. **获取 URL**:从返回结果获取图片 URL 3. **继续原任务**:使用获取的 URL 调用图像编辑模型(如 Seedream) **示例**:用户说「把这张图片的背景改成室内」,并附带了本地图片路径 ```bash # 步骤 1:上传图片 curl -F'reqtype=fileupload' -F'fileToUpload=@/Users/xxx/.cursor/projects/xxx/assets/image.png' https://catbox.moe/user/api.php # 返回:https://files.catbox.moe/abc123.png # 步骤 2:使用返回的 URL 调用图像编辑模型 # (调用 Seedream 等模型的 submit_task) ``` ## 示例 ### 示例 1:直接上传 **用户请求**:帮我上传 `/tmp/screenshot.png` 到图床 **执行**: ```bash curl -F'reqtype=fileupload' -F'fileToUpload=@/tmp/screenshot.png' https://catbox.moe/user/api.php ``` **返回**: ``` https://files.catbox.moe/x7ppwg.png ``` ### 示例 2:图像编辑 + 本地图片 **用户请求**:把这个图片的背景改...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.