← 返回 Skills 市场
redisread

article-images-gen

作者 Alex Redisread · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
205
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install article-images-gen
功能描述
文案插图专家,为文章生成手绘风格插图。风格:手绘、简约、整洁、留白、构图平衡、色调统一。Use when user asks to generate illustrations for articles, "为文章配图", "生成插图", or needs hand-drawn style images for...
使用说明 (SKILL.md)

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+张)

工作流程

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

环境要求

  • 运行时bun (bun run / bunx)
  • API KeyDASHSCOPE_API_KEY 环境变量

输出目录

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

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

安全使用建议
Before installing or running: (1) Understand that the scripts will send generated prompts (which include extracted terms from your article) to DashScope's API — your article content will leave your machine. Only provide DASHSCOPE_API_KEY if you trust that service. (2) Ensure you have bun installed; the manifest metadata currently omits this requirement. (3) The tool will modify your article in-place and creates a .bak timestamped backup — test on a copy first. (4) Verify the expected DASHSCOPE_BASE_URL if you use a non-standard endpoint. (5) Prefer to inspect the repository origin (homepage/source unknown) and vet the API endpoint before providing credentials. If you are uncomfortable with automatic uploads or in-place edits, do not run the illustrator script or run it on a local copy instead.
功能分析
Type: OpenClaw Skill Name: article-images-gen Version: 1.0.2 The skill bundle is a legitimate tool designed to generate hand-drawn illustrations for articles using the AliCloud DashScope (Qwen-Image) API. The code in `scripts/illustrator.ts` and `scripts/article-analyzer.ts` performs article structure analysis, generates image prompts based on section headings, and updates the original Markdown file with image references after creating a backup. No evidence of data exfiltration, unauthorized execution, or malicious prompt injection was found; the file system and network operations are strictly aligned with the stated purpose of image generation and article modification.
能力评估
Purpose & Capability
The skill claims to be an article illustration generator and the code implements that using DashScope (Qwen-Image). However the registry/manifest metadata says 'required binaries: none' and 'required env vars: none', while SKILL.md and the code require the bun runtime and the DASHSCOPE_API_KEY (and optionally DASHSCOPE_BASE_URL). This metadata omission is an inconsistency that could mislead users about what secrets and tooling are needed.
Instruction Scope
Runtime instructions and scripts analyze the article file, build prompts that include extracted article terms, call the DashScope image-generation API with those prompts, download images, and then modify the original article (creating a timestamped .bak). Sending article-derived text to the external API and automatically editing the article are expected for this purpose, but are important side effects the user should be aware of.
Install Mechanism
There is no install spec and the skill is instruction+script based (invoked via bun). No external downloads or extract steps are used, so nothing arbitrary is written to disk beyond the script's normal output.
Credentials
The code requires DASHSCOPE_API_KEY (and optionally DASHSCOPE_BASE_URL) and expects the bun runtime, but the registry metadata does not declare these. Requesting an API key for the external DashScope service is proportionate to the stated purpose, but the omission from declared requirements is a red flag — it makes it easy to miss that your article text will be sent to an external service and that you must provide credentials.
Persistence & Privilege
The skill is not marked always:true and does not request elevated platform privileges, which is good. It does modify user files (writes backups and overwrites the article with image references) and writes output under /tmp/imageGen/{date}/{articleName}/; these are expected behaviors but the automatic in-place edits are a persistent change the user should review.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install article-images-gen
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /article-images-gen 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- 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`.
v1.0.1
No file or documentation changes detected in this version. - No visible updates; contents remain identical to the previous release.
v1.0.0
Initial release of Article Images Generator. - Generates hand-drawn style illustrations for articles with a focus on minimalism, balance, and unified colors. - Supports automatic analysis of content to determine optimal illustration positions and density. - Integrates with 阿里百炼 DashScope Qwen-Image for image generation. - Includes API retry logic for rate limiting and Chinese filename support (pinyin slug). - Step-by-step workflow: analyze article, confirm density, build outline, generate prompts and images, and update article with illustrations.
元数据
Slug article-images-gen
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

article-images-gen 是什么?

文案插图专家,为文章生成手绘风格插图。风格:手绘、简约、整洁、留白、构图平衡、色调统一。Use when user asks to generate illustrations for articles, "为文章配图", "生成插图", or needs hand-drawn style images for... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 205 次。

如何安装 article-images-gen?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install article-images-gen」即可一键安装,无需额外配置。

article-images-gen 是免费的吗?

是的,article-images-gen 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

article-images-gen 支持哪些平台?

article-images-gen 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 article-images-gen?

由 Alex Redisread(@redisread)开发并维护,当前版本 v1.0.2。

💬 留言讨论