Smart Article Illustration Skill
Analyze article structure and content, identify positions requiring visual aids, and generate illustrations with flexible style options.
Usage
# Auto-select style based on content
/baoyu-article-illustrator path/to/article.md
# Specify a style
/baoyu-article-illustrator path/to/article.md --style warm
/baoyu-article-illustrator path/to/article.md --style minimal
/baoyu-article-illustrator path/to/article.md --style watercolor
# Combine with other options
/baoyu-article-illustrator path/to/article.md --style playful
Options
| Option |
Description |
--style <name> |
Specify illustration style (see Style Gallery below) |
Style Gallery
| Style |
Description |
Best For |
notion (Default) |
Minimalist hand-drawn line art, intellectual |
Knowledge sharing, SaaS, productivity |
elegant |
Refined, sophisticated, professional |
Business, thought leadership |
warm |
Friendly, approachable, human-centered |
Personal growth, lifestyle, education |
minimal |
Ultra-clean, zen-like, focused |
Philosophy, minimalism, core concepts |
playful |
Fun, creative, whimsical |
Tutorials, beginner guides, fun topics |
nature |
Organic, calm, earthy |
Sustainability, wellness, outdoor |
sketch |
Raw, authentic, notebook-style |
Ideas, brainstorming, drafts |
watercolor |
Soft artistic with natural warmth |
Lifestyle, travel, creative |
vintage |
Nostalgic aged-paper aesthetic |
Historical, biography, heritage |
scientific |
Academic precise diagrams |
Biology, chemistry, technical |
chalkboard |
Classroom chalk drawing style |
Education, tutorials, workshops |
editorial |
Magazine-style infographic |
Tech explainers, journalism |
flat |
Modern flat vector illustration |
Startups, digital, contemporary |
retro |
80s/90s vibrant nostalgic |
Pop culture, gaming, entertainment |
blueprint |
Technical schematics, engineering precision |
Architecture, system design |
vector-illustration |
Flat vector with black outlines, retro colors |
Educational, creative, brand content |
sketch-notes |
Soft hand-drawn, warm educational feel |
Knowledge sharing, tutorials |
pixel-art |
Retro 8-bit gaming aesthetic |
Gaming, tech, developer content |
intuition-machine |
Technical briefing with bilingual labels |
Academic, technical, bilingual |
fantasy-animation |
Ghibli/Disney whimsical style |
Storytelling, children's, creative |
Full style specifications in references/styles/<style>.md
Auto Style Selection
When no --style is specified, analyze content to select the best style:
| Content Signals |
Selected Style |
| Personal story, emotion, growth, life, feeling, relationship |
warm |
| Simple, zen, focus, essential, core, minimalist |
minimal |
| Fun, easy, beginner, tutorial, guide, how-to, learn |
playful |
| Nature, eco, wellness, health, organic, green, outdoor |
nature |
| Idea, thought, concept, draft, brainstorm, sketch |
sketch |
| Business, professional, strategy, analysis, corporate |
elegant |
| Knowledge, concept, productivity, SaaS, notion, tool |
notion |
| Lifestyle, travel, food, art, creative, artistic |
watercolor |
| History, heritage, vintage, biography, classic, expedition |
vintage |
| Biology, chemistry, medical, scientific, research, academic |
scientific |
| Education, classroom, teaching, school, lecture, workshop |
chalkboard |
| Explainer, journalism, magazine, in-depth, investigation |
editorial |
| Modern, startup, app, product, digital marketing, saas |
flat |
| 80s, 90s, retro, pop culture, music, nostalgia |
retro |
| Architecture, system, infrastructure, engineering, technical |
blueprint |
| Brand, explainer, children, cute, toy, geometric |
vector-illustration |
| Notes, doodle, friendly, warm tutorial, onboarding |
sketch-notes |
| Gaming, 8-bit, pixel, developer, retro tech |
pixel-art |
| Bilingual, briefing, academic, research, documentation |
intuition-machine |
| Fantasy, story, magical, Ghibli, Disney, children |
fantasy-animation |
| Default |
notion |
File Management
Output Directory
Each session creates an independent directory named by content slug:
illustrations/{topic-slug}/
├── source-{slug}.{ext} # Source files (text, images, etc.)
├── outline.md
├── outline-{style}.md # Style variant outlines
├── prompts/
│ ├── illustration-concept-a.md
│ ├── illustration-concept-b.md
│ └── ...
├── illustration-concept-a.png
├── illustration-concept-b.png
└── ...
Slug Generation:
- Extract main topic from content (2-4 words, kebab-case)
- Example: "The Future of AI" →
future-of-ai
Conflict Resolution
If illustrations/{topic-slug}/ already exists:
- Append timestamp:
{topic-slug}-YYYYMMDD-HHMMSS
- Example:
ai-future exists → ai-future-20260118-143052
Source Files
Copy all sources with naming source-{slug}.{ext}:
source-article.md (main text content)
source-photo.jpg (image from conversation)
source-reference.pdf (additional file)
Multiple sources supported: text, images, files from conversation.
Workflow
Step 1: Analyze Content & Select Style
- Read article content
- If
--style specified, use that style
- Otherwise, scan for style signals and auto-select
- Language detection:
- Detect source language from article content
- Detect user language from conversation context
- Note if source_language ≠ user_language (will ask in Step 4)
- Extract key information:
- Main topic and themes
- Core messages per section
- Abstract concepts needing visualization
Step 2: Identify Illustration Positions
Three Purposes of Illustrations:
- Information Supplement: Help understand abstract concepts
- Concept Visualization: Transform abstract ideas into concrete visuals
- Imagination Guidance: Create atmosphere, enhance reading experience
Content Suitable for Illustrations:
- Abstract concepts needing visualization
- Processes/steps needing diagrams
- Comparisons needing visual representation
- Core arguments needing reinforcement
- Scenarios needing imagination guidance
Illustration Count:
- Normal articles (< 3000 words): Generate 3 illustrations
- Long articles (3000-5000 words): Generate 4 illustrations
- Very long articles (> 5000 words): Generate 5 illustrations
- Prioritize core arguments and abstract concepts
- Principle: Quality over quantity - avoid over-illustrating
Step 3: Generate Illustration Plan
Before creating the plan, record path information:
- Article absolute path: [full path to article]
- Article relative path from project root: [e.g., content/drafts/article.md]
- Illustration output directory: illustrations/[topic-slug]/
- Relative path from article to illustrations: [calculated path, e.g., ../../illustrations/[topic-slug]/]
This information will be used in Step 7 to ensure correct image paths.
# Illustration Plan
**Article**: [article path]
**Article location**: [relative path from project root]
**Illustration directory**: illustrations/[topic-slug]/
**Relative path for markdown**: [../../illustrations/[topic-slug]/ or correct path]
**Style**: [selected style]
**Illustration Count**: N images
---
## Illustration 1
**Insert Position**: [section name] / [paragraph description]
**Purpose**: [why illustration needed here]
**Visual Content**: [what the image should show]
**Filename**: illustration-[slug].png
---
## Illustration 2
...
Step 4: Review & Confirm
Purpose: Let user confirm all options in a single step before image generation.
IMPORTANT: Present ALL options in a single confirmation step using AskUserQuestion. Do NOT interrupt workflow with multiple separate confirmations.
Generate 3 style variants:
- Analyze content to select 3 most suitable styles
- Generate complete illustration plan for each style variant
- Save as
outline-{style}.md (e.g., outline-notion.md, outline-tech.md, outline-warm.md)
Determine which questions to ask:
| Question |
When to Ask |
| Style variant |
Always (required) |
| Language |
Only if source_language ≠ user_language |
Present options (use AskUserQuestion with all applicable questions):
Question 1 (Style) - always:
- Style A (recommended): [style name] - [brief description]
- Style B: [style name] - [brief description]
- Style C: [style name] - [brief description]
- Custom: Provide custom style reference
Question 2 (Language) - only if source ≠ user language:
- [Source language] (matches article language)
- [User language] (your preference)
Language handling:
- If source language = user language: Just inform user (e.g., "Prompts will be in Chinese")
- If different: Ask which language to use for prompts
Apply selection:
- Copy selected
outline-{style}.md to outline.md
- If custom style provided, generate new plan with that style
- If different language selected, regenerate outline in that language
- User may edit
outline.md directly for fine-tuning
- If modified, reload plan before proceeding
Proceed only after explicit user confirmation
Step 5: Create Prompt Files
Save prompts to prompts/ directory with style-specific details.
All prompts are written in the user's confirmed language preference.
Prompt Format:
Illustration theme: [concept in 2-3 words]
Style: [style name]
Visual composition:
- Main visual: [description matching style]
- Layout: [element positioning]
- Decorative elements: [style-appropriate decorations]
Color scheme:
- Primary: [style primary color]
- Background: [style background color]
- Accent: [style accent color]
Text content (if any):
- [Any labels or captions in content language]
Style notes: [specific style characteristics]
Step 6: Generate Images
Image Generation Skill Selection:
- Check available image generation skills
- If multiple skills available, ask user to choose
Generation Flow:
- Call selected image generation skill with prompt file and output path
- Generate images sequentially
- After each image, output progress: "Generated X/N"
- On failure, auto-retry once
- If retry fails, log reason, continue to next
Step 7: Update Article
CRITICAL: Calculate Correct Relative Path
Before inserting images, you MUST calculate the correct relative path:
Get absolute paths:
- Article absolute path (e.g.,
/project/content/drafts/article.md)
- Illustration directory absolute path (e.g.,
/project/illustrations/topic-slug/)
Calculate relative path:
- Count directory levels from article to project root
- Example:
content/drafts/article.md → needs ../../ to reach root
- Then append illustration path:
../../illustrations/topic-slug/image.png
Verify the path calculation:
# Get article directory
ARTICLE_DIR=$(dirname /path/to/article.md)
# Calculate relative path from article to illustration
# Use realpath or Python to calculate if needed
Common patterns:
- Article in
content/drafts/ → use ../../illustrations/
- Article in
content/ → use ../illustrations/
- Article in root → use
illustrations/
Insert images with CORRECT relative path:

Insertion Rules:
- CRITICAL: Verify relative path is correct before inserting
- Insert image after corresponding paragraph
- Leave one blank line before and after image
- Alt text uses concise description in article's language
- After inserting ALL images, verify each path exists relative to article location
Step 8: Output Summary
Final Verification:
Before completing, verify all image paths are correct:
# Verify each image path exists relative to article location
cd $(dirname /path/to/article.md)
ls ../../illustrations/topic-slug/illustration-1.png
ls ../../illustrations/topic-slug/illustration-2.png
# ... verify all paths
If any path verification fails, recalculate and fix the paths in the article.
Output Summary:
Article Illustration Complete!
Article: [article path]
Article location: [relative from project root]
Illustration directory: illustrations/[topic-slug]/
Relative path used: ../../illustrations/[topic-slug]/
Style: [style name]
Generated: X/N images successful
✅ Image paths verified: All paths exist and are accessible from article location
Illustration Positions:
- illustration-xxx.png → After section "Section Name"
- illustration-yyy.png → After section "Another Section"
...
[If any failures]
Failed:
- illustration-zzz.png: [failure reason]
Illustration Modification
Support for modifying individual illustrations after initial generation.
Edit Single Illustration
Regenerate a specific illustration with modified prompt:
- Identify illustration to edit (e.g.,
illustration-concept-overview.png)
- Update prompt in
prompts/illustration-concept-overview.md if needed
- If content changes significantly, update slug in filename
- Regenerate image
- Update article if image reference changed
Add New Illustration
Add a new illustration to the article:
- Identify insertion position in article
- Create new prompt with appropriate slug (e.g.,
illustration-new-concept.md)
- Generate new illustration image
- Update
outline.md with new illustration entry
- Insert image reference in article at the specified position
Delete Illustration
Remove an illustration from the article:
- Identify illustration to delete (e.g.,
illustration-concept-overview.png)
- Remove image file and prompt file
- Remove image reference from article
- Update
outline.md to remove illustration entry
File Naming Convention
Files use meaningful slugs for better readability:
illustration-[slug].png
illustration-[slug].md (in prompts/)
Examples:
illustration-concept-overview.png
illustration-workflow-diagram.png
illustration-key-benefits.png
Slug rules:
- Derived from illustration purpose/content (kebab-case)
- Must be unique within the article
- When content changes significantly, update slug accordingly
References
| File |
Content |
references/styles/<style>.md |
Full style specifications with colors, elements, rules |
Notes
- Illustrations serve the content: supplement information, visualize concepts
- Maintain selected style consistency across all illustrations in one article
- Image generation typically takes 10-30 seconds per image
- Sensitive figures should use cartoon alternatives
- Prompts written in user's confirmed language preference
- Illustration text (labels, captions) should match article language
Extension Support
Custom styles and configurations via EXTEND.md.
Check paths (priority order):
.baoyu-skills/baoyu-article-illustrator/EXTEND.md (project)
~/.baoyu-skills/baoyu-article-illustrator/EXTEND.md (user)
If found, load before Step 1. Extension content overrides defaults.
1---2name: baoyu-article-illustrator3description: Smart article illustration skill. Analyzes article content and generates illustrations at positions requiring visual aids with multiple style options. Use when user asks to "add illustrations to article", "generate images for article", or "illustrate article".4---56# Smart Article Illustration Skill78Analyze article structure and content, identify positions requiring visual aids, and generate illustrations with flexible style options.910## Usage1112```bash13# Auto-select style based on content14/baoyu-article-illustrator path/to/article.md1516# Specify a style17/baoyu-article-illustrator path/to/article.md --style warm18/baoyu-article-illustrator path/to/article.md --style minimal19/baoyu-article-illustrator path/to/article.md --style watercolor2021# Combine with other options22/baoyu-article-illustrator path/to/article.md --style playful23```2425## Options2627| Option | Description |28|--------|-------------|29| `--style <name>` | Specify illustration style (see Style Gallery below) |3031## Style Gallery3233| Style | Description | Best For |34|-------|-------------|----------|35| `notion` (Default) | Minimalist hand-drawn line art, intellectual | Knowledge sharing, SaaS, productivity |36| `elegant` | Refined, sophisticated, professional | Business, thought leadership |37| `warm` | Friendly, approachable, human-centered | Personal growth, lifestyle, education |38| `minimal` | Ultra-clean, zen-like, focused | Philosophy, minimalism, core concepts |39| `playful` | Fun, creative, whimsical | Tutorials, beginner guides, fun topics |40| `nature` | Organic, calm, earthy | Sustainability, wellness, outdoor |41| `sketch` | Raw, authentic, notebook-style | Ideas, brainstorming, drafts |42| `watercolor` | Soft artistic with natural warmth | Lifestyle, travel, creative |43| `vintage` | Nostalgic aged-paper aesthetic | Historical, biography, heritage |44| `scientific` | Academic precise diagrams | Biology, chemistry, technical |45| `chalkboard` | Classroom chalk drawing style | Education, tutorials, workshops |46| `editorial` | Magazine-style infographic | Tech explainers, journalism |47| `flat` | Modern flat vector illustration | Startups, digital, contemporary |48| `retro` | 80s/90s vibrant nostalgic | Pop culture, gaming, entertainment |49| `blueprint` | Technical schematics, engineering precision | Architecture, system design |50| `vector-illustration` | Flat vector with black outlines, retro colors | Educational, creative, brand content |51| `sketch-notes` | Soft hand-drawn, warm educational feel | Knowledge sharing, tutorials |52| `pixel-art` | Retro 8-bit gaming aesthetic | Gaming, tech, developer content |53| `intuition-machine` | Technical briefing with bilingual labels | Academic, technical, bilingual |54| `fantasy-animation` | Ghibli/Disney whimsical style | Storytelling, children's, creative |5556Full style specifications in `references/styles/<style>.md`5758## Auto Style Selection5960When no `--style` is specified, analyze content to select the best style:6162| Content Signals | Selected Style |63|----------------|----------------|64| Personal story, emotion, growth, life, feeling, relationship | `warm` |65| Simple, zen, focus, essential, core, minimalist | `minimal` |66| Fun, easy, beginner, tutorial, guide, how-to, learn | `playful` |67| Nature, eco, wellness, health, organic, green, outdoor | `nature` |68| Idea, thought, concept, draft, brainstorm, sketch | `sketch` |69| Business, professional, strategy, analysis, corporate | `elegant` |70| Knowledge, concept, productivity, SaaS, notion, tool | `notion` |71| Lifestyle, travel, food, art, creative, artistic | `watercolor` |72| History, heritage, vintage, biography, classic, expedition | `vintage` |73| Biology, chemistry, medical, scientific, research, academic | `scientific` |74| Education, classroom, teaching, school, lecture, workshop | `chalkboard` |75| Explainer, journalism, magazine, in-depth, investigation | `editorial` |76| Modern, startup, app, product, digital marketing, saas | `flat` |77| 80s, 90s, retro, pop culture, music, nostalgia | `retro` |78| Architecture, system, infrastructure, engineering, technical | `blueprint` |79| Brand, explainer, children, cute, toy, geometric | `vector-illustration` |80| Notes, doodle, friendly, warm tutorial, onboarding | `sketch-notes` |81| Gaming, 8-bit, pixel, developer, retro tech | `pixel-art` |82| Bilingual, briefing, academic, research, documentation | `intuition-machine` |83| Fantasy, story, magical, Ghibli, Disney, children | `fantasy-animation` |84| Default | `notion` |8586## File Management8788### Output Directory8990Each session creates an independent directory named by content slug:9192```93illustrations/{topic-slug}/94├── source-{slug}.{ext} # Source files (text, images, etc.)95├── outline.md96├── outline-{style}.md # Style variant outlines97├── prompts/98│ ├── illustration-concept-a.md99│ ├── illustration-concept-b.md100│ └── ...101├── illustration-concept-a.png102├── illustration-concept-b.png103└── ...104```105106**Slug Generation**:1071. Extract main topic from content (2-4 words, kebab-case)1082. Example: "The Future of AI" → `future-of-ai`109110### Conflict Resolution111112If `illustrations/{topic-slug}/` already exists:113- Append timestamp: `{topic-slug}-YYYYMMDD-HHMMSS`114- Example: `ai-future` exists → `ai-future-20260118-143052`115116### Source Files117118Copy all sources with naming `source-{slug}.{ext}`:119- `source-article.md` (main text content)120- `source-photo.jpg` (image from conversation)121- `source-reference.pdf` (additional file)122123Multiple sources supported: text, images, files from conversation.124125## Workflow126127### Step 1: Analyze Content & Select Style1281291. Read article content1302. If `--style` specified, use that style1313. Otherwise, scan for style signals and auto-select1324. **Language detection**:133 - Detect **source language** from article content134 - Detect **user language** from conversation context135 - Note if source_language ≠ user_language (will ask in Step 4)1365. Extract key information:137 - Main topic and themes138 - Core messages per section139 - Abstract concepts needing visualization140141### Step 2: Identify Illustration Positions142143**Three Purposes of Illustrations**:1441. **Information Supplement**: Help understand abstract concepts1452. **Concept Visualization**: Transform abstract ideas into concrete visuals1463. **Imagination Guidance**: Create atmosphere, enhance reading experience147148**Content Suitable for Illustrations**:149- Abstract concepts needing visualization150- Processes/steps needing diagrams151- Comparisons needing visual representation152- Core arguments needing reinforcement153- Scenarios needing imagination guidance154155**Illustration Count**:156- **Normal articles (< 3000 words)**: Generate 3 illustrations157- **Long articles (3000-5000 words)**: Generate 4 illustrations158- **Very long articles (> 5000 words)**: Generate 5 illustrations159- Prioritize core arguments and abstract concepts160- **Principle: Quality over quantity - avoid over-illustrating**161162### Step 3: Generate Illustration Plan163164**Before creating the plan, record path information**:1651661. **Article absolute path**: [full path to article]1672. **Article relative path from project root**: [e.g., content/drafts/article.md]1683. **Illustration output directory**: illustrations/[topic-slug]/1694. **Relative path from article to illustrations**: [calculated path, e.g., ../../illustrations/[topic-slug]/]170171This information will be used in Step 7 to ensure correct image paths.172173```markdown174# Illustration Plan175176**Article**: [article path]177**Article location**: [relative path from project root]178**Illustration directory**: illustrations/[topic-slug]/179**Relative path for markdown**: [../../illustrations/[topic-slug]/ or correct path]180**Style**: [selected style]181**Illustration Count**: N images182183---184185## Illustration 1186187**Insert Position**: [section name] / [paragraph description]188**Purpose**: [why illustration needed here]189**Visual Content**: [what the image should show]190**Filename**: illustration-[slug].png191192---193194## Illustration 2195...196```197198### Step 4: Review & Confirm199200**Purpose**: Let user confirm all options in a single step before image generation.201202**IMPORTANT**: Present ALL options in a single confirmation step using AskUserQuestion. Do NOT interrupt workflow with multiple separate confirmations.2032041. **Generate 3 style variants**:205 - Analyze content to select 3 most suitable styles206 - Generate complete illustration plan for each style variant207 - Save as `outline-{style}.md` (e.g., `outline-notion.md`, `outline-tech.md`, `outline-warm.md`)2082092. **Determine which questions to ask**:210211 | Question | When to Ask |212 |----------|-------------|213 | Style variant | Always (required) |214 | Language | Only if `source_language ≠ user_language` |2152163. **Present options** (use AskUserQuestion with all applicable questions):217218 **Question 1 (Style)** - always:219 - Style A (recommended): [style name] - [brief description]220 - Style B: [style name] - [brief description]221 - Style C: [style name] - [brief description]222 - Custom: Provide custom style reference223224 **Question 2 (Language)** - only if source ≠ user language:225 - [Source language] (matches article language)226 - [User language] (your preference)227228 **Language handling**:229 - If source language = user language: Just inform user (e.g., "Prompts will be in Chinese")230 - If different: Ask which language to use for prompts2312324. **Apply selection**:233 - Copy selected `outline-{style}.md` to `outline.md`234 - If custom style provided, generate new plan with that style235 - If different language selected, regenerate outline in that language236 - User may edit `outline.md` directly for fine-tuning237 - If modified, reload plan before proceeding2382395. **Proceed only after explicit user confirmation**240241### Step 5: Create Prompt Files242243Save prompts to `prompts/` directory with style-specific details.244245**All prompts are written in the user's confirmed language preference.**246247**Prompt Format**:248249```markdown250Illustration theme: [concept in 2-3 words]251Style: [style name]252253Visual composition:254- Main visual: [description matching style]255- Layout: [element positioning]256- Decorative elements: [style-appropriate decorations]257258Color scheme:259- Primary: [style primary color]260- Background: [style background color]261- Accent: [style accent color]262263Text content (if any):264- [Any labels or captions in content language]265266Style notes: [specific style characteristics]267```268269### Step 6: Generate Images270271**Image Generation Skill Selection**:2721. Check available image generation skills2732. If multiple skills available, ask user to choose274275**Generation Flow**:2761. Call selected image generation skill with prompt file and output path2772. Generate images sequentially2783. After each image, output progress: "Generated X/N"2794. On failure, auto-retry once2805. If retry fails, log reason, continue to next281282### Step 7: Update Article283284**CRITICAL: Calculate Correct Relative Path**285286Before inserting images, you MUST calculate the correct relative path:2872881. **Get absolute paths**:289 - Article absolute path (e.g., `/project/content/drafts/article.md`)290 - Illustration directory absolute path (e.g., `/project/illustrations/topic-slug/`)2912922. **Calculate relative path**:293 - Count directory levels from article to project root294 - Example: `content/drafts/article.md` → needs `../../` to reach root295 - Then append illustration path: `../../illustrations/topic-slug/image.png`2962973. **Verify the path calculation**:298 ```bash299 # Get article directory300 ARTICLE_DIR=$(dirname /path/to/article.md)301302 # Calculate relative path from article to illustration303 # Use realpath or Python to calculate if needed304 ```3053064. **Common patterns**:307 - Article in `content/drafts/` → use `../../illustrations/`308 - Article in `content/` → use `../illustrations/`309 - Article in root → use `illustrations/`310311**Insert images with CORRECT relative path**:312313```markdown314315```316317**Insertion Rules**:318- **CRITICAL**: Verify relative path is correct before inserting319- Insert image after corresponding paragraph320- Leave one blank line before and after image321- Alt text uses concise description in article's language322- After inserting ALL images, verify each path exists relative to article location323324### Step 8: Output Summary325326**Final Verification**:327328Before completing, verify all image paths are correct:329330```bash331# Verify each image path exists relative to article location332cd $(dirname /path/to/article.md)333ls ../../illustrations/topic-slug/illustration-1.png334ls ../../illustrations/topic-slug/illustration-2.png335# ... verify all paths336```337338If any path verification fails, recalculate and fix the paths in the article.339340**Output Summary**:341342```343Article Illustration Complete!344345Article: [article path]346Article location: [relative from project root]347Illustration directory: illustrations/[topic-slug]/348Relative path used: ../../illustrations/[topic-slug]/349Style: [style name]350Generated: X/N images successful351352✅ Image paths verified: All paths exist and are accessible from article location353354Illustration Positions:355- illustration-xxx.png → After section "Section Name"356- illustration-yyy.png → After section "Another Section"357...358359[If any failures]360Failed:361- illustration-zzz.png: [failure reason]362```363364## Illustration Modification365366Support for modifying individual illustrations after initial generation.367368### Edit Single Illustration369370Regenerate a specific illustration with modified prompt:3713721. Identify illustration to edit (e.g., `illustration-concept-overview.png`)3732. Update prompt in `prompts/illustration-concept-overview.md` if needed3743. If content changes significantly, update slug in filename3754. Regenerate image3765. Update article if image reference changed377378### Add New Illustration379380Add a new illustration to the article:3813821. Identify insertion position in article3832. Create new prompt with appropriate slug (e.g., `illustration-new-concept.md`)3843. Generate new illustration image3854. Update `outline.md` with new illustration entry3865. Insert image reference in article at the specified position387388### Delete Illustration389390Remove an illustration from the article:3913921. Identify illustration to delete (e.g., `illustration-concept-overview.png`)3932. Remove image file and prompt file3943. Remove image reference from article3954. Update `outline.md` to remove illustration entry396397### File Naming Convention398399Files use meaningful slugs for better readability:400```401illustration-[slug].png402illustration-[slug].md (in prompts/)403```404405Examples:406- `illustration-concept-overview.png`407- `illustration-workflow-diagram.png`408- `illustration-key-benefits.png`409410**Slug rules**:411- Derived from illustration purpose/content (kebab-case)412- Must be unique within the article413- When content changes significantly, update slug accordingly414415## References416417| File | Content |418|------|---------|419| `references/styles/<style>.md` | Full style specifications with colors, elements, rules |420421## Notes422423- Illustrations serve the content: supplement information, visualize concepts424- Maintain selected style consistency across all illustrations in one article425- Image generation typically takes 10-30 seconds per image426- Sensitive figures should use cartoon alternatives427- Prompts written in user's confirmed language preference428- Illustration text (labels, captions) should match article language429430## Extension Support431432Custom styles and configurations via EXTEND.md.433434**Check paths** (priority order):4351. `.baoyu-skills/baoyu-article-illustrator/EXTEND.md` (project)4362. `~/.baoyu-skills/baoyu-article-illustrator/EXTEND.md` (user)437438If found, load before Step 1. Extension content overrides defaults.