Install
openclaw skills install article-images-gen文案插图专家,为文章生成手绘风格插图。风格:手绘、简约、整洁、留白、构图平衡、色调统一。Use when user asks to generate illustrations for articles, "为文章配图", "生成插图", or needs hand-drawn style images for content.
openclaw skills install article-images-gen专为文章生成手绘风格插图,使用阿里百炼 DashScope Qwen-Image API。
# 为文章生成配图(全自动:分析 → 生成大纲 → 生成提示词 → 生成图片 → 插入文章)
bun scripts/illustrator.ts path/to/article.md [--density <level>] [--output-dir <path>]
# 单张图片(直接 prompt)
bun scripts/main.ts --prompt "your prompt" [--image output.png]
# 批量 prompt 文件
bun scripts/main.ts --promptfiles prompt1.md,prompt2.md
密度选项:minimal (1-2张) | balanced (3-4张) | per-section(推荐)| rich (5+张)
{outputDir}/outline.md{outputDir}/prompts/NN-hand-drawn-{slug}.md{outputDir}/bun run / bunx)DASHSCOPE_API_KEY 环境变量固定输出到 /tmp/imageGen/{YYYYMMDD}/{articleName}/,例如:
/tmp/imageGen/20260410/my-article/01-hand-drawn-concept.png
articleName 取文章文件名(不含扩展名),日期取当天日期。