← 返回 Skills 市场
Markdown 图片直传 R2
作者
Sundy Yang
· GitHub ↗
· v1.0.3
· MIT-0
56
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install md-img-r2
功能描述
Upload local images in Markdown directly to Cloudflare R2 and replace paths with public URLs.
使用说明 (SKILL.md)
md-img-r2
将 Markdown 文件中的本地图片直接上传到 Cloudflare R2,并把本地路径替换为公开 URL。
适用场景
- 你已经有 Cloudflare R2 桶和可公开访问域名
- 你不想依赖 PicList Desktop
- 你希望把这个能力作为可分发 skill 交给别人使用
前置条件
- 已有可写入的 Cloudflare R2 凭证
- 已有桶名和公开访问域名或 CDN 域名
- 运行环境有
python3
推荐配置
优先用环境变量或项目根目录的 .env 提供配置:
CF_R2_ACCOUNT_IDCF_R2_ACCESS_KEY_IDCF_R2_SECRET_ACCESS_KEYCF_R2_BUCKETCF_R2_PUBLIC_BASE_URLCF_R2_REGION,默认autoCF_R2_ENDPOINT,默认https://\x3Caccount_id>.r2.cloudflarestorage.comCF_R2_KEY_PREFIX,默认md-assets--env-file可显式指定.env路径;不传时会优先读取 skill 目录下的.env,再从目标目录向上查找
用法
单文件
bash run.sh path/to/article.md
目录批处理
bash run.sh path/to/dir --recursive
Dry run
bash run.sh path/to/article.md --dry-run
临时覆盖 key 前缀
bash run.sh path/to/article.md --key-prefix posts/2026-04
输出
- 默认原地修改,并生成备份:
xxx.md.bak - 生成报告:
xxx.md.replace-report.json
安全使用建议
Treat this result as inconclusive: the review found no evidence of suspicious behavior, but the local artifact inspection failed before metadata.json and artifact contents could be read.
能力评估
Purpose & Capability
Artifact files were not readable through the available command sandbox, so purpose and capability coherence could not be verified from SKILL.md or metadata.json.
Instruction Scope
No artifact-backed instruction-scope issue was identified, but the actual skill instructions could not be inspected.
Install Mechanism
No artifact-backed install risk was identified, but install specs and package contents could not be reviewed.
Credentials
No evidence showed disproportionate environment access, but artifact inspection was blocked.
Persistence & Privilege
No evidence showed persistence or privilege abuse, but artifact files were unavailable for review.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install md-img-r2 - 安装完成后,直接呼叫该 Skill 的名称或使用
/md-img-r2触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
Document bash run.sh usage so ClawHub zip installs work without executable permissions.
v1.0.2
Ship the R2 config template as r2-config.env so it is included in ClawHub packages.
v1.0.1
Include a non-hidden env.example template for ClawHub packages and update setup guidance.
v1.0.0
Initial release: upload local Markdown images to Cloudflare R2 and replace them with public URLs.
元数据
常见问题
Markdown 图片直传 R2 是什么?
Upload local images in Markdown directly to Cloudflare R2 and replace paths with public URLs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 56 次。
如何安装 Markdown 图片直传 R2?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install md-img-r2」即可一键安装,无需额外配置。
Markdown 图片直传 R2 是免费的吗?
是的,Markdown 图片直传 R2 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Markdown 图片直传 R2 支持哪些平台?
Markdown 图片直传 R2 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Markdown 图片直传 R2?
由 Sundy Yang(@yangchao228)开发并维护,当前版本 v1.0.3。
推荐 Skills