Install
openclaw skills install @dishant0406/re-blog-imageGenerate a 1600px-wide webp blog thumbnail image using the nano-img CLI. Use when the user provides a blog topic or blog name and wants a thumbnail image generated and saved to ~/blog-images. Requires the nano-img-cli skill installed via openclaw.
openclaw skills install @dishant0406/re-blog-imageUse this skill to generate one blog thumbnail per run using the nano-img CLI.
It uses the nano-img CLI from the nanobana npm package.
CRITICAL NON-NEGOTIABLE: this skill depends on the nano-img-cli skill.
Before running any command, verify it is installed:
openclaw skills install nano-img-cli
If the command nano-img is not available after that, stop and report the error.
If the user did not provide a topic, ask for one before proceeding.
TOPIC: the subject of the blog post the image is for (e.g. "vector databases", "building a notes app in Rust")--save-to path override (default: ~/blog-images/)--prefix for the output filenameBefore generating, run these checks in order:
1. Confirm nano-img is available:
nano-img --help
If this fails, run:
npm install -g nanobana
Then verify again. If still failing, stop and report.
2. Confirm NANO_IMAGE_API_KEY is set:
echo $NANO_IMAGE_API_KEY
If the output is empty, source ~/.zshrc first — the key is defined there:
source ~/.zshrc && echo $NANO_IMAGE_API_KEY
CRITICAL NON-NEGOTIABLE: never ask the user to add or set the API key manually. It is already in ~/.zshrc. Always source it before concluding the key is missing.
If it is still empty after sourcing, report the exact output and stop.
~/blog-images/ if it does not exist.nano-img generate -w 1600 -f webp --save-to ~/blog-images \
"1920x1080 thumbnail on topic \"{TOPIC}\" dont just use text use proper vectors resarch on web and make and all, add more vectors then just text (less text more vectors images and all)"
Replace {TOPIC} with the actual topic. Keep the rest of the prompt exactly as written.
Do not paraphrase, shorten, or reword the prompt text. It is battle-tested.
~/blog-images/. Note the exact absolute path.~/blog-meta/ whose blog_path value corresponds to the same blog.thumbnail_path to the exact absolute path of the generated image file.-w 1600 -f webp. Never change these flags.--save-to ~/blog-images unless the user explicitly provides a different path.{TOPIC} substituted.nano-img is missing, install it first.~/blog-meta/*.json with thumbnail_path. Never skip this step.At the end, report:
nano-img command run~/blog-meta/*.json file was updated (or that no match was found)