executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
content-illustrator内容插图规划工具。当用户说"给文章配图"、"为文章生成插图"、"文章配图"、 "分析文章并配图"、"自动插图"、"为文章生成配图"时触发此技能。 工作流程: 1. 读取文章内容(read_file) 2. 分析需要插图的位置 3. 选择合适的风格(14种风格可选) 4. 调用 image-generation 技能生成图片 5. 更新文章,插入图片引用 支持风格:tech、fresh、minimal、warm、business、elegant、bold、 playful、nature、sketch、notion(默认)
Independent GitHub snapshot · Automated classification · Original documentation governs
name: content-illustrator description: | 内容插图规划工具。当用户说"给文章配图"、"为文章生成插图"、"文章配图"、 "分析文章并配图"、"自动插图"、"为文章生成配图"时触发此技能。
工作流程:
AI 驱动的插图规划系统,自动分析文章结构,识别需要视觉辅助的位置,并调用项目内置的豆包 Seedream 4.5 API 生成高质量插图。
支持 14 种精细风格:
读取文章内容
read_file 工具读取文章文件自动风格匹配
内容类型识别
插图三大目的:
适合插图的内容:
插图数量原则:
创建结构化的插图计划(markdown 格式):
# 插图计划
## 元信息
- 文章路径:`{{article_path}}`
- 风格:{{matched_style}}
- 插图数量:{{count}} 张
- 生成时间:{{timestamp}}
## 插图列表
### 插图 1:{{illustration_title}}
- **插入位置**:{{chapter_name}} 章节,第 X 段落后
- **用途**:{{purpose}}(如:解释微服务的三层架构)
- **视觉内容**:{{visual_description}}(如:从上到下依次是API网关、业务服务、数据层,箭头表示数据流向)
- **尺寸**:1792x1024(16:9横版)
- **文件名**:`assets/images/01-{{slug}}.png`
- **提示词草稿**:{{prompt_draft}}
---
### 插图 2:...
对于每一张需要生成的图片:
重要:必须使用 run_command 工具执行命令,不能只生成脚本。
python resources/skills/image-generation/scripts/doubao_image_gen.py \
--prompt "{{从插图计划提取的提示词}}" \
--size "1792x1024" \
--quality "hd" \
--output "assets/images/01-{{slug}}.png"
调用格式:
使用 run_command 工具执行上述命令
如果提示 "DOUBAO_API_KEY environment variable is not set":
如果提示 "No such file or directory":
run_command 创建目录:mkdir -p assets/images如果提示其他错误:
环境变量注入:
DOUBAO_API_KEY:从 ConfigStore 自动读取在文章的指定位置插入图片引用:
## 微服务架构概述
微服务是一种架构风格...

如上图所示,微服务架构分为三层...
生成完成后的总结报告:
✅ 插图生成完成
**文章**:{{article_path}}
**风格**:{{matched_style}}
**生成数量**:{{count}} 张
**生成清单**:
1. ✅ {{illustration_1}} - assets/images/01-xxx.png
2. ✅ {{illustration_2}} - assets/images/02-xxx.png
...
**插图计划**:`assets/illustration-plan.md`
**文章已更新**:图片已插入到指定位置
assets/images/ 目录{序号}-{slug}.png,便于管理用户输入:
为我的文章《深入理解微服务架构》生成配图
AI 执行流程:
用户输入:
给文章《我的2023年成长总结》配图,使用温暖治愈风格
AI 执行流程:
resources/skills/image-generation/SKILL.md