smart-illustratorlisted
Install: claude install-skill axtonliu/smart-illustrator
# 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 dark` | `styles/style-dark.md` |
| `--style bento` | `styles/style-bento.md` |
**禁止自己编写 System Prompt。**
❌ 错误:`"你是一个专业的信息图设计师..."`(自己编的)
✅ 正确:从 style 文件的代码块中提取 System Prompt
---
## 使用方式
### 文章配图模式(默认)
```bash
/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 模式
```bash
# 默认:直接生成图片
/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` 时输出):
```json
{
"instruction": "请逐条生成以下 N 张独立信息图。",
"batch_rules": { "total": "N", "one_item_one_image": true, "aspect_ratio": "16:9" },
"style": "[从 styles/style-light.md 读取完整内容]",
"pictures": [
{ "id": 1, "topi