返回顶部
a

article-images-gen文案插图生成

文案插图专家,为文章生成手绘风格插图。风格:手绘、简约、整洁、留白、构图平衡、色调统一。Use when user asks to generate illustrations for articles, "为文章配图", "生成插图", or needs hand-drawn style images for content.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
161
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

article-images-gen

Article Images Generator (文案插图专家)

专为文章生成手绘风格插图,使用阿里百炼 DashScope Qwen-Image API。

调用脚本

bash

为文章生成配图(全自动:分析 → 生成大纲 → 生成提示词 → 生成图片 → 插入文章)


bun scripts/illustrator.ts path/to/article.md [--density ] [--output-dir ]

单张图片(直接 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+张)

工作流程

  1. 1. 分析文案:识别章节结构、核心论点、适合插图的位置
  2. 分析判断:AI 根据文章章节数量和内容自动选择密度(默认 per-section)
  3. 生成大纲:保存 {outputDir}/outline.md
  4. 生成提示词:保存 {outputDir}/prompts/NN-hand-drawn-{slug}.md
  5. 生成图片:调用 DashScope API,保存到 {outputDir}/
  6. 更新文章:在对应章节后插入图片引用 描述

环境要求

  • - 运行时bun (bun run / bunx)
  • API Key:DASHSCOPEAPI_KEY 环境变量

输出目录

固定输出到 /tmp/imageGen/{YYYYMMDD}/{articleName}/,例如:
/tmp/imageGen/20260410/my-article/01-hand-drawn-concept.png

articleName 取文章文件名(不含扩展名),日期取当天日期。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 article-images-gen-1776112042 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 article-images-gen-1776112042 技能

通过命令行安装

skillhub install article-images-gen-1776112042

下载

⬇ 下载 article-images-gen v1.0.2(免费)

文件大小: 10.23 KB | 发布时间: 2026-4-14 13:09

v1.0.2 最新 2026-4-14 13:09
- Simplified workflow and documentation for easier usage.
- Now automatically saves all outputs to `/tmp/imageGen/{YYYYMMDD}/{articleName}/`.
- Updated instructions for running scripts using bun and new parameters.
- Script auto-selects illustration density based on article content (default: per-section).
- Environment setup clarified: requires bun runtime and `DASHSCOPE_API_KEY`.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部