article-images-gen
/install article-images-gen
Article Images Generator (文案插图专家)
专为文章生成手绘风格插图,使用阿里百炼 DashScope Qwen-Image API。
调用脚本
# 为文章生成配图(全自动:分析 → 生成大纲 → 生成提示词 → 生成图片 → 插入文章)
bun scripts/illustrator.ts path/to/article.md [--density \x3Clevel>] [--output-dir \x3Cpath>]
# 单张图片(直接 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+张)
工作流程
- 分析文案:识别章节结构、核心论点、适合插图的位置
- 分析判断:AI 根据文章章节数量和内容自动选择密度(默认 per-section)
- 生成大纲:保存
{outputDir}/outline.md - 生成提示词:保存
{outputDir}/prompts/NN-hand-drawn-{slug}.md - 生成图片:调用 DashScope API,保存到
{outputDir}/ - 更新文章:在对应章节后插入图片引用

环境要求
- 运行时:bun (
bun run/bunx) - API Key:
DASHSCOPE_API_KEY环境变量
输出目录
固定输出到 /tmp/imageGen/{YYYYMMDD}/{articleName}/,例如:
/tmp/imageGen/20260410/my-article/01-hand-drawn-concept.png
articleName 取文章文件名(不含扩展名),日期取当天日期。
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install article-images-gen - After installation, invoke the skill by name or use
/article-images-gen - Provide required inputs per the skill's parameter spec and get structured output
What is article-images-gen?
文案插图专家,为文章生成手绘风格插图。风格:手绘、简约、整洁、留白、构图平衡、色调统一。Use when user asks to generate illustrations for articles, "为文章配图", "生成插图", or needs hand-drawn style images for... It is an AI Agent Skill for Claude Code / OpenClaw, with 205 downloads so far.
How do I install article-images-gen?
Run "/install article-images-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is article-images-gen free?
Yes, article-images-gen is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does article-images-gen support?
article-images-gen is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created article-images-gen?
It is built and maintained by Alex Redisread (@redisread); the current version is v1.0.2.