Install
openclaw skills install @yangchao228/md-img-r2Prepare local image references in Markdown for Cloudflare R2 or another S3-compatible object store, upload them only after explicit confirmation, and replace...
openclaw skills install @yangchao228/md-img-r2Prepare Markdown image references for public distribution without exposing private configuration or changing files by default.
Use this skill after reviewed local images have been inserted into the target Markdown with relative paths. It is the image transport and URL-rewrite layer; illustration decisions, image generation, captions, tags, and final publish approval belong to upstream or downstream content skills.
When an image manifest exists, compare its target Markdown files, local paths, and R2 states with the generated plan. Return the plan or replacement report to the final publish check.
--apply first. It writes an image-publish plan and predicts stable public URLs without uploading or rewriting.--apply --confirm-upload.--apply --confirm-write --url-map.verified, and hand the report to the final publish check.# Default: plan only. No upload and no Markdown rewrite.
./run.sh path/to/article.md
# Scan a directory.
./run.sh path/to/posts --recursive
# Upload only after an explicit confirmation gate.
# Set reviewed R2_* values through your secure shell environment first.
./run.sh path/to/article.md --apply --confirm-upload
# Apply a previously reviewed URL map without contacting object storage.
./run.sh path/to/article.md --apply --confirm-write --url-map replacements.json
The script uses R2_REGION=auto and R2_KEY_PREFIX=md-assets when they are not supplied. R2_ACCOUNT_ID is optional when R2_ENDPOINT is set.
<article>.image-publish-plan.json and leaves the Markdown unchanged.<article>.bak, writes the same plan with result details, and changes only successful local-image references.--apply until the user has reviewed the plan and explicitly confirmed the upload or write path.AI生命克劳德