blog-image-embedder

Analyze polished zh-CN blog markdown, generate hero + per-section image prompts, embed image placeholders into the markdown, and save updated version.

Audits

Pass

Install

openclaw skills install blog-image-embedder

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: clean flat vector illustration, minimal isometric, software-engineering diagram vibe
  • background: default: white background with subtle grid
  • aspectRatioHero: 16:9 horizontal
  • aspectRatioSection: 16:9

Workflow Summary

  1. Read polished markdown from input.polishedPath
  2. Parse structure: Extract title + ## section headings (expect 3-4 sections)
  3. 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.
  5. Save: ${outputDir}/${ts}-illustrated.md
  6. Return: { illustratedPath, imagePrompts: [...], imagePaths: [...] }

Output Format

{
  "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"]
}