SkillHub

blog-image-embedder

v1.0.4

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

Sourced from ClawHub, Authored by Jeff Yang

Installation

Please help me install the skill `blog-image-embedder` from SkillHub official store. npx skills add j3ffyang/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:
  4. Hero: [Hero of {title}]: {topic summary}, {style}, {background}, 16:9
  5. Section N: [Section {N} of {title}]: {section summary}, {style}, {background}, 16:9
  6. Embed placeholders: Insert nn[image:0]nn after title, nn[image:1]nn after first section, etc.
  7. Save: ${outputDir}/${ts}-illustrated.md
  8. Return: { illustratedPath, imagePrompts: [...], imagePaths: [...] }

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