ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

smart-illustrator

智能配图与 PPT 信息图生成器。支持三种模式:(1) 文章配图模式 - 分析文章内容,生成插图;(2) PPT/Slides 模式 - 生成批量信息图;(3) Cover 模式 - 生成封面图。所有模式默认生成图片,`--prompt-only` 只输出 prompt。支持 Bento Grid 功能展示图风格(--style bento)。触发词:配图、插图、PPT、slides、封面图、thumbnail、cover、bento grid、功能展示图、feature showcase。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/axtonliu/smart-illustrator
Or

Smart Illustrator - 智能配图与 PPT 生成器

⛔ 强制规则(违反即失败)

规则 1:用户提供的文件 = 要处理的文章

/smart-illustrator SKILL_05.md      → SKILL_05.md 是文章,为它配图
/smart-illustrator README.md        → README.md 是文章,为它配图
/smart-illustrator whatever.md      → whatever.md 是文章,为它配图

无论文件名叫什么,都是要配图的文章,不是 Skill 配置。

规则 2:必须读取 style 文件

生成任何图片 prompt 前,必须读取对应的 style 文件:

模式必须读取的文件
文章配图(默认)styles/style-light.md
Cover 封面图styles/style-cover.md
--style darkstyles/style-dark.md
--style bentostyles/style-bento.md

禁止自己编写 System Prompt。

❌ 错误:"你是一个专业的信息图设计师..."(自己编的) ✅ 正确:从 style 文件的代码块中提取 System Prompt


使用方式

文章配图模式(默认)

/smart-illustrator path/to/article.md
/smart-illustrator path/to/article.md --prompt-only    # 只输出 prompt
/smart-illustrator path/to/article.md --style dark     # 深色风格
/smart-illustrator path/to/article.md --no-cover       # 不生成封面图

PPT/Slides 模式

# 默认:直接生成图片
/smart-illustrator path/to/script.md --mode slides

# 只输出 JSON prompt(不调用 API)
/smart-illustrator path/to/script.md --mode slides --prompt-only

默认行为:调用 Gemini API 生成批量信息图。 --prompt-only:输出 JSON prompt 并自动复制到剪贴板,可直接粘贴到 Gemini Web 手动生成。

PPT JSON 格式--prompt-only 时输出):

{
  "instruction": "请逐条生成以下 N 张独立信息图。",
  "batch_rules": { "total": "N", "one_item_one_image": true, "aspect_ratio": "16:9" },
  "style": "[从 styles/style-light.md 读取完整内容]",
  "pictures": [
    { "id": 1, "topic": "封面", "content": "系列名称\n\n第N节:标题" },
    { "id": 2, "topic": "主题", "content": "原始内容" }
  ]
}

Cover 模式

/smart-illustrator path/to/article.md --mode cover --platform youtube
/smart-illustrator --mode cover --platform youtube --topic "Claude 4 深度评测"

平台尺寸(输出均为 2K 分辨率):

平台代码宽高比
YouTubeyoutube16:9
公众号wechat2.35:1
Twittertwitter1.91:1
小红书xiaohongshu3:4

参数说明

参数默认值说明
--modearticlearticle / slides / cover
--platformyoutube封面图平台(仅 cover 模式)
--topic-封面图主题(仅 cover 模式)
--prompt-onlyfalse输出 prompt 到剪贴板,不调用 API(适用于所有模式)
--stylelight风格:light / dark / minimal / bento
--no-coverfalse不生成封面图
--ref-参考图路径(可多次使用)
-c, --candidates1候选图数量(最多 4)
-a, --aspect-ratio-宽高比:16:9(正文配图/封面图默认)、3:2(备选横版)、3:4(仅竖屏平台)
--engineauto引擎选择:auto(自动)/ mermaid / gemini / excalidraw
--mermaid-embedfalseMermaid 输出为代码块而非 PNG(旧行为)
--save-config-保存到项目配置
--no-configfalse禁用 config.json

--no-config 范围:只禁用 config.json不影响 styles/style-*.md


配置文件

优先级:CLI 参数 > 项目级 > 用户级

位置路径
项目级.smart-illustrator/config.json
用户级~/.smart-illustrator/config.json
{ "references": ["./refs/style-ref-01.png"] }

Metadata

Author@axtonliu
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-axtonliu-smart-illustrator": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.