How to auto-illustrate a long-form blog post
Когда использовать: You have a finished markdown article that needs 4-8 illustrations before publishing, and you don't want to hand-prompt each one.
Предварительные требования
- Skill installed under ~/.claude/skills/smart-illustrator — git clone https://github.com/axtonliu/smart-illustrator into that path
- Gemini API key (for creative visuals) — Export GEMINI_API_KEY; skill reads from env
- Mermaid CLI if you want diagram rendering — npm i -g @mermaid-js/mermaid-cli
Поток
-
Point the skill at your articleRun smart-illustrator on posts/2026-04-launch.md in article mode. Pick 5 illustration points.✓ Скопировано→ Skill echoes chosen positions with one-line rationale each
-
Review engine choicesShow me which engine you picked for each illustration and why. Let me override any.✓ Скопировано→ Per-position table: position → engine → reason
-
Generate and embedGenerate all images and write the updated markdown back to the same file.✓ Скопировано→ Article updated with inline image references; PNGs saved under assets/
Итог: A publishable markdown file with 5 context-appropriate illustrations and a cover image.
Подводные камни
- Gemini returns a stock-looking image for an abstract concept — Re-run that single position with --engine excalidraw for a sketchy metaphor instead
- Mermaid syntax fails to render because LLM mis-escaped quotes — Use --prompt-only for diagrams, paste into mermaid.live to debug, then re-inject