Xiaohongshu Infographic Series Generator

Xiaohongshu (Little Red Book) infographic series generator with multiple style options. Breaks down content into 1-10 cartoon-style infographics. Use when user asks to create "小红书图片", "XHS images", or

Break down complex content into eye-catching infographic series for Xiaohongshu with multiple style options.

Usage

# Auto-select style and layout based on content
/michi-xhs-images posts/ai-future/article.md

# Specify style
/michi-xhs-images posts/ai-future/article.md --style notion

# Specify layout
/michi-xhs-images posts/ai-future/article.md --layout dense

# Combine style and layout
/michi-xhs-images posts/ai-future/article.md --style tech --layout list

# Direct content input
/michi-xhs-images
[paste content]

# Direct input with options
/michi-xhs-images --style bold --layout comparison
[paste content]

Options

Option
Description

--style <name>

Visual style (see Style Gallery)

--layout <name>

Information layout (see Layout Gallery)

Two Dimensions

Dimension
Controls
Options

Style

Visual aesthetics: colors, lines, decorations

cute, fresh, tech, warm, bold, minimal, retro, pop, notion, michi

Layout

Information structure: density, arrangement

sparse, balanced, dense, list, comparison, flow

Style × Layout can be freely combined. Example: --style notion --layout dense creates an intellectual-looking knowledge card with high information density.

Style
Description

cute (Default)

Sweet, adorable, girly - classic Xiaohongshu aesthetic

fresh

Clean, refreshing, natural

tech

Modern, smart, digital

warm

Cozy, friendly, approachable

bold

High impact, attention-grabbing

minimal

Ultra-clean, sophisticated

retro

Vintage, nostalgic, trendy

pop

Vibrant, energetic, eye-catching

notion

Minimalist hand-drawn line art, intellectual

michi

Cute calico cat in Japanese manga style, cozy

Detailed style definitions: references/styles/<style>.md

Layout
Description

sparse (Default)

Minimal information, maximum impact (1-2 points)

balanced

Standard content layout (3-4 points)

dense

High information density, knowledge card style (5-8 points)

list

Enumeration and ranking format (4-7 items)

comparison

Side-by-side contrast layout

flow

Process and timeline layout (3-6 steps)

Detailed layout definitions: references/layouts/<layout>.md

Auto Selection

Content Signals
Style
Layout

Beauty, fashion, cute, girl, pink

cute

sparse/balanced

Health, nature, clean, fresh, organic

fresh

balanced/flow

Tech, AI, code, digital, app, tool

tech

dense/list

Life, story, emotion, feeling, warm

warm

balanced

Warning, important, must, critical

bold

list/comparison

Professional, business, elegant, simple

minimal

sparse/balanced

Classic, vintage, old, traditional

retro

balanced

Fun, exciting, wow, amazing

pop

sparse/list

Knowledge, concept, productivity, SaaS

notion

dense/list

Tutorial, learning, cozy, mascot, friendly, cat

michi

balanced/sparse

File Structure

Target directory:

  • With source path: [source-dir]/[source-name-no-ext]/xhs-images/

    • Example: /tests-data/article.md/tests-data/article/xhs-images/

  • Without source: ./xhs-images/[topic-slug]/

Directory backup:

  • If target directory exists, rename existing to <dirname>-backup-YYYYMMDD-HHMMSS

Workflow

Step 1: Analyze Content → analysis.md

Read source content, save it if needed, and perform deep analysis.

Actions:

  1. Save source content (if not already a file):

    • If user provides a file path: use as-is

    • If user pastes content: save to source.md in target directory

  2. Read source content

  3. Deep analysis following references/analysis-framework.md:

    • Content type classification (种草/干货/测评/教程/避坑...)

    • Hook analysis (爆款标题潜力)

    • Target audience identification

    • Engagement potential (收藏/分享/评论)

    • Visual opportunity mapping

    • Swipe flow design

  4. Detect source language

  5. Determine recommended image count (2-10)

  6. Select 3 style+layout combinations

  7. Save to analysis.md

Step 2: Generate 3 Outline Variants

Based on analysis, create three distinct style variants.

For each variant:

  1. Generate outline (outline-style-[slug].md):

    • YAML front matter with style, layout, image_count

    • Cover design with hook

    • Each image: layout, core message, text content, visual concept

    • Written in user's preferred language

    • Reference: references/outline-template.md

Variant
Selection Logic
Example Filename

A

Primary recommendation

outline-style-tech.md

B

Alternative style

outline-style-notion.md

C

Different audience/mood

outline-style-minimal.md

All variants are preserved after selection for reference.

Step 3: User Confirms All Options

IMPORTANT: Present ALL options in a single confirmation step using AskUserQuestion. Do NOT interrupt workflow with multiple separate confirmations.

Determine which questions to ask:

Question
When to Ask

Style variant

Always (required)

Default layout

Only if user might want to override

Language

Only if source_language ≠ user_language

Language handling:

  • If source language = user language: Just inform user (e.g., "Images will be in Chinese")

  • If different: Ask which language to use

AskUserQuestion format:

After confirmation:

  1. Copy selected outline-style-[slug].mdoutline.md

  2. Update YAML front matter with confirmed options

  3. If custom style: regenerate outline with that style

  4. User may edit outline.md directly for fine-tuning

Step 4: Generate Images

With confirmed outline + style + layout:

For each image (cover + content + ending):

  1. Save prompt to prompts/NN-{type}-[slug].md (in user's preferred language)

  2. Generate image using confirmed style and layout

  3. Report progress after each generation

Image Generation Skill Selection:

  • Check available image generation skills

  • If multiple skills available, ask user preference

Session Management: If image generation skill supports --sessionId:

  1. Generate unique session ID: xhs-{topic-slug}-{timestamp}

  2. Use same session ID for all images

  3. Ensures visual consistency across generated images

Step 5: Completion Report

Image Modification

Edit Single Image

  1. Identify image to edit (e.g., 03-content-chatgpt.png)

  2. Update prompt in prompts/03-content-chatgpt.md if needed

  3. Regenerate image using same session ID

Add New Image

  1. Specify insertion position (e.g., after image 3)

  2. Create new prompt with appropriate slug

  3. Generate new image

  4. Renumber files: All subsequent images increment NN by 1

  5. Update outline.md with new image entry

Delete Image

  1. Remove image file and prompt file

  2. Renumber files: All subsequent images decrement NN by 1

  3. Update outline.md to remove image entry

Content Breakdown Principles

  1. Cover (Image 1): Hook + visual impact → sparse layout

  2. Content (Middle): Core value per image → balanced/dense/list/comparison/flow

  3. Ending (Last): CTA / summary → sparse or balanced

Style × Layout Matrix (✓✓ = highly recommended, ✓ = works well):

sparse
balanced
dense
list
comparison
flow

cute

✓✓

✓✓

✓✓

fresh

✓✓

✓✓

✓✓

tech

✓✓

✓✓

✓✓

✓✓

✓✓

warm

✓✓

✓✓

✓✓

bold

✓✓

✓✓

✓✓

minimal

✓✓

✓✓

✓✓

retro

✓✓

✓✓

✓✓

pop

✓✓

✓✓

✓✓

✓✓

notion

✓✓

✓✓

✓✓

✓✓

✓✓

✓✓

michi

✓✓

✓✓

✓✓

References

Detailed templates and guidelines in references/ directory:

  • analysis-framework.md - XHS-specific content analysis

  • outline-template.md - Outline format and examples

  • styles/<style>.md - Detailed style definitions

  • layouts/<layout>.md - Detailed layout definitions

  • base-prompt.md - Base prompt template

Notes

  • Image generation typically takes 10-30 seconds per image

  • Auto-retry once on generation failure

  • Use cartoon alternatives for sensitive public figures

  • All prompts and text use confirmed language preference

  • Maintain style consistency across all images in series

Last updated