image-url-qiniu

Download an image from a user-supplied HTTP(S) URL and upload it to Qiniu cloud. Use when the user gives an image link and wants it stored on Qiniu (backup, CDN, stable link, or Feishu-friendly delivery).

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "image-url-qiniu" with this command: npx skills add lubin1127/image-url-qiniu

Image URL → Qiniu

公网可访问的图片 URL 拉取到本地内存并上传到七牛对象存储,标准输出末尾会打印 MEDIA_URL: 行(七牛公网地址),与览客/飞书交付约定一致。

前置条件(运维)

在运行环境的进程环境中配置(写入对话或用户资料):

变量说明
QINIU_ACCESS_KEY七牛 AccessKey
QINIU_SECRET_KEY七牛 SecretKey
QINIU_BUCKET存储空间名
QINIU_PUBLIC_BASE_URLHTTPS 访问基址,如 https://cdn.example.com不要末尾 /
QINIU_KEY_PREFIX可选,对象名前缀,默认 openclaw/url-import

目标 Bucket 需公开读(或你方自行改用私有空间 + 下载凭证,本脚本仅输出直链)。

用法

uv run {baseDir}/scripts/url_image_to_qiniu.py --url "https://example.com/path/to/image.png"

可选参数:

  • --max-mb N:单图最大体积(默认 25),超限则失败,防止误抓大文件。
  • --no-verify-ssl:下载时关闭 SSL 校验(仅在内网/代理异常时慎用)。
  • --timeout SEC:下载超时秒数(默认 60)。

Agent 工作流

  1. 从用户消息中取得完整图片地址http://https://)。
  2. 在技能目录下执行:
    uv run {baseDir}/scripts/url_image_to_qiniu.py --url "<URL>"
  3. 在输出中查找 MEDIA_URL: 行,将其后 URL 交给用户;若渠道为飞书,须另起一行输出完整 URL 纯文本(与览客规则一致)。
  4. 若失败:根据脚本 stderr 提示检查 URL 是否可直连、是否为图片、七牛配置与 Bucket 域名。

合规与安全

  • 仅处理用户明确提供且有权使用的链接;不要对未授权版权素材主动批量镜像。
  • 脚本会校验响应 Content-Typeimage/* 或部分源站使用的 application/octet-stream;后者会按文件头魔数识别 PNG/JPEG/GIF/WebP/BMP。

输出约定

  • 成功:打印一行 MEDIA_URL: https://...(七牛上的新地址)。
  • 失败:非零退出码,错误信息在 stderr。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated