Blog Image Embedder
Analyzes polished zh-CN markdown, generates consistent image prompts (hero + 1 per section), embeds [image:x] placeholders, saves illustrated version.
When to Use
Use after blog-polish-zhcn completes. Input is polishedPath from first skill. Triggers: "add images to my polished blog", "generate image prompts for sections".
Defaults
- -
style: INLINECODE4 - INLINECODE5 :
default:
white background with subtle grid
- -
aspectRatioHero: INLINECODE8 - INLINECODE9 : INLINECODE10
Workflow Summary
- 1. Read polished markdown from INLINECODE11
- Parse structure: Extract title + ## section headings (expect 3-4 sections)
- Generate prompts:
- Hero:
[Hero of {title}]: {topic summary}, {style}, {background}, 16:9
- Section N:
[Section {N} of {title}]: {section summary}, {style}, {background}, 16:9
- 4. Embed placeholders: Insert
\n\n[image:0]\n\n after title, \n\n[image:1]\n\n after first section, etc. - Save: INLINECODE16
- Return: INLINECODE17
Output Format
```json
{
"illustratedPath": "/home/jeff/.openclaw/workspace/contentPolished/2603142145-illustrated.md",
"imagePrompts": ["Hero prompt...", "Section 1 prompt...", "Section 2 prompt..."],
"imagePaths": ["2603142145-main.png", "2603142145-section1.png", "2603142145-section2.png"]
}
博客图片嵌入器
分析精炼的中文Markdown,生成一致的图片提示(主图+每节一张),嵌入[image:x]占位符,保存带插图的版本。
使用时机
在blog-polish-zhcn完成后使用。输入为第一个技能的polishedPath。触发词:为我的精炼博客添加图片、为各节生成图片提示。
默认设置
- - 风格:简洁扁平矢量插画,最小等距风格,软件工程图解风格
- 背景:
默认:带浅色网格的白色背景
- - 主图宽高比:16:9 横向
- 节图宽高比:16:9
工作流程摘要
- 1. 读取input.polishedPath中的精炼Markdown
- 解析结构:提取标题 + ## 章节标题(预计3-4节)
- 生成提示:
- 主图:[{标题}的主图]:{主题摘要},{风格},{背景},16:9
- 第N节:[{标题}的第N节]:{章节摘要},{风格},{背景},16:9
- 4. 嵌入占位符:在标题后插入\n\n[image:0]\n\n,在第一节后插入\n\n[image:1]\n\n,以此类推
- 保存:${outputDir}/${ts}-illustrated.md
- 返回:{ illustratedPath, imagePrompts: [...], imagePaths: [...] }
输出格式
json
{
illustratedPath: /home/jeff/.openclaw/workspace/contentPolished/2603142145-illustrated.md,
imagePrompts: [主图提示..., 第一节提示..., 第二节提示...],
imagePaths: [2603142145-main.png, 2603142145-section1.png, 2603142145-section2.png]
}