← 返回
未分类 Key 中文

Re Blog Image

Generate 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 gen...
使用 nano-img CLI 生成 1600px 宽的 webp 博客缩略图。当用户提供博客主题或博客名称并想要生成缩略图时使用。
dishant0406 dishant0406 来源
未分类 clawhub v1.1.4 2 版本 100000 Key: 需要
★ 0
Stars
📥 521
下载
💾 0
安装
2
版本
#latest

概述

Blog Image

Use 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.

Inputs to infer

  • TOPIC: the subject of the blog post the image is for (e.g. "vector databases", "building a notes app in Rust")
  • Optional: --save-to path override (default: ~/blog-images/)
  • Optional: --prefix for the output filename

Prerequisite check

Before 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.

Workflow

  1. Confirm the topic with the user or infer it from the blog name they provided.
  2. Create ~/blog-images/ if it does not exist.
  3. Run the generation command using this exact structure:
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.

  1. Confirm the output file was written to ~/blog-images/. Note the exact absolute path.
  2. Update the blog-meta JSON with the image path.
    • Look for a matching JSON file in ~/blog-meta/ whose blog_path value corresponds to the same blog.
    • If found, set thumbnail_path to the exact absolute path of the generated image file.
    • Write the updated JSON back to the same file. Do not change any other field.
    • If no matching JSON file is found, note it in the completion report but do not fail the run.
  3. Report the full output file path.

Quality bar

  • CRITICAL NON-NEGOTIABLE: always use -w 1600 -f webp. Never change these flags.
  • CRITICAL NON-NEGOTIABLE: always use --save-to ~/blog-images unless the user explicitly provides a different path.
  • CRITICAL NON-NEGOTIABLE: never modify the prompt text. Use it verbatim with only {TOPIC} substituted.
  • CRITICAL NON-NEGOTIABLE: do not skip the prerequisite check. If nano-img is missing, install it first.
  • CRITICAL NON-NEGOTIABLE: after a successful generation, always attempt to update the matching ~/blog-meta/*.json with thumbnail_path. Never skip this step.

Completion report

At the end, report:

  • Topic used
  • Full nano-img command run
  • Output file path
  • Whether the file exists at that path after generation
  • Which ~/blog-meta/*.json file was updated (or that no match was found)

版本历史

共 2 个版本

  • v1.1.4 当前
    2026-06-01 12:27
  • v1.1.2
    2026-05-03 10:13 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

content-creation

Re Blog Writer

dishant0406
使用浏览器研究主题,然后撰写完整的博客文章并保存为 .md 文件到 ~/blogs。当用户提供主题并希望获得完整文章时使用。
★ 0 📥 764
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 331 📥 93,751
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 429 📥 116,894