Token导航 LogoToken导航TokenDH.com
图像处理需要联网clawhub未标认证来源可访问clear审计提醒

xhs-images-generatorxhs 图像生成器

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

6,558

周安装

276

GitHub Stars

公开资料未说明

下载量

2,296
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:xhs-images-generator(xhs 图像生成器)
来源仓库:https://github.com/dhready/xhs-images-generator
安装命令:
openclaw skills install xhs-images-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install xhs-images-generator

简介

生成具有 11 种视觉风格和 8 种布局的小红书信息图表系列。将内容分解为针对 X 进行优化的 1-10 个卡通风格图像

SKILL.md

name
baoyu-xhs-images
description
Generates Xiaohongshu (Little Red Book) infographic series with 11 visual styles and 8 layouts. Breaks content into 1-10 cartoon-style images optimized for XHS engagement. Use when user mentions "小红书图片", "XHS images", "RedNote infographics", "小红书种草", or wants social media infographics for Chinese platforms.
version
1.56.1
metadata
openclaw
homepage
https://github.com/JimLiu/baoyu-skills#baoyu-xhs-images

Xiaohongshu Infographic Series Generator

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

Usage

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

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

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

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

# Use preset (style + layout shorthand)
/baoyu-xhs-images posts/ai-future/article.md --preset knowledge-card

# Preset with override
/baoyu-xhs-images posts/ai-future/article.md --preset poster --layout quadrant

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

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

Options

OptionDescription
--style <name>Visual style (see Style Gallery)
--layout <name>Information layout (see Layout Gallery)
--preset <name>Style + layout shorthand (see Style Presets)

Two Dimensions

DimensionControlsOptions
StyleVisual aesthetics: colors, lines, decorationscute, fresh, warm, bold, minimal, retro, pop, notion, chalkboard, study-notes, screen-print
LayoutInformation structure: density, arrangementsparse, balanced, dense, list, comparison, flow, mindmap, quadrant

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

Or use presets: --preset knowledge-card → style + layout in one flag. See Style Presets.

Style Gallery

StyleDescription
cute (Default)Sweet, adorable, girly - classic Xiaohongshu aesthetic
freshClean, refreshing, natural
warmCozy, friendly, approachable
boldHigh impact, attention-grabbing
minimalUltra-clean, sophisticated
retroVintage, nostalgic, trendy
popVibrant, energetic, eye-catching
notionMinimalist hand-drawn line art, intellectual
chalkboardColorful chalk on black board, educational
study-notesRealistic handwritten photo style, blue pen + red annotations + yellow highlighter
screen-printBold poster art, halftone textures, limited colors, symbolic storytelling

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

Preset Gallery

Quick-start presets by content scenario. Use --preset <name> or recommend during Step 2.

Knowledge & Learning:

PresetStyleLayoutBest For
knowledge-cardnotiondense干货知识卡、概念科普
checklistnotionlist清单、排行榜、必备清单
concept-mapnotionmindmap概念图、知识脉络
swotnotionquadrantSWOT分析、四象限分类
tutorialchalkboardflow教程步骤、操作流程
classroomchalkboardbalanced课堂笔记、知识讲解
study-guidestudy-notesdense学习笔记、考试重点

Lifestyle & Sharing:

PresetStyleLayoutBest For
cute-sharecutebalanced少女风分享、日常种草
girlycutesparse甜美封面、氛围感
cozy-storywarmbalanced生活故事、情感分享
product-reviewfreshcomparison产品对比、测评
nature-flowfreshflow健康流程、自然主题

Impact & Opinion:

PresetStyleLayoutBest For
warningboldlist避坑指南、重要提醒
versusboldcomparison正反对比、强烈对照
clean-quoteminimalsparse金句、极简封面
pro-summaryminimalbalanced专业总结、商务内容

Trend & Entertainment:

PresetStyleLayoutBest For
retro-rankingretrolist复古排行、经典盘点
throwbackretrobalanced怀旧分享、老物件
pop-factspoplist趣味冷知识、好玩的事
hypepopsparse炸裂封面、惊叹分享

Poster & Editorial:

PresetStyleLayoutBest For
posterscreen-printsparse海报风封面、影评书评
editorialscreen-printbalanced观点文章、文化评论
cinematicscreen-printcomparison电影对比、戏剧张力

Full preset definitions: references/style-presets.md

Layout Gallery

LayoutDescription
sparse (Default)Minimal information, maximum impact (1-2 points)
balancedStandard content layout (3-4 points)
denseHigh information density, knowledge card style (5-8 points)
listEnumeration and ranking format (4-7 items)
comparisonSide-by-side contrast layout
flowProcess and timeline layout (3-6 steps)
mindmapCenter radial mind map layout (4-8 branches)
quadrantFour-quadrant / circular section layout

Detailed layout definitions: references/elements/canvas.md

Auto Selection

Content SignalsStyleLayoutRecommended Preset
Beauty, fashion, cute, girl, pinkcutesparse/balancedcute-share, girly
Health, nature, clean, fresh, organicfreshbalanced/flowproduct-review, nature-flow
Life, story, emotion, feeling, warmwarmbalancedcozy-story
Warning, important, must, criticalboldlist/comparisonwarning, versus
Professional, business, elegant, simpleminimalsparse/balancedclean-quote, pro-summary
Classic, vintage, old, traditionalretrobalancedthrowback, retro-ranking
Fun, exciting, wow, amazingpopsparse/listhype, pop-facts
Knowledge, concept, productivity, SaaSnotiondense/listknowledge-card, checklist
Education, tutorial, learning, teaching, classroomchalkboardbalanced/densetutorial, classroom
Notes, handwritten, study guide, knowledge, realistic, photostudy-notesdense/list/mindmapstudy-guide
Movie, album, concert, poster, opinion, editorial, dramatic, cinematicscreen-printsparse/comparisonposter, editorial, cinematic

Outline Strategies

Three differentiated outline strategies for different content goals:

Strategy A: Story-Driven (故事驱动型)

AspectDescription
ConceptPersonal experience as main thread, emotional resonance first
FeaturesStart from pain point, show before/after change, strong authenticity
Best forReviews, personal shares, transformation stories
StructureHook → Problem → Discovery → Experience → Conclusion

Strategy B: Information-Dense (信息密集型)

AspectDescription
ConceptValue-first, efficient information delivery
FeaturesClear structure, explicit points, professional credibility
Best forTutorials, comparisons, product reviews, checklists
StructureCore conclusion → Info card → Pros/Cons → Recommendation

Strategy C: Visual-First (视觉优先型)

AspectDescription
ConceptVisual impact as core, minimal text
FeaturesLarge images, atmospheric, instant appeal
Best forHigh-aesthetic products, lifestyle, mood-based content
StructureHero image → Detail shots → Lifestyle scene → CTA

File Structure

Each session creates an independent directory named by content slug:

xhs-images/{topic-slug}/
├── source-{slug}.{ext}             # Source files (text, images, etc.)
├── analysis.md                     # Deep analysis + questions asked
├── outline-strategy-a.md           # Strategy A: Story-driven
├── outline-strategy-b.md           # Strategy B: Information-dense
├── outline-strategy-c.md           # Strategy C: Visual-first
├── outline.md                      # Final selected/merged outline
├── prompts/
│   ├── 01-cover-[slug].md
│   ├── 02-content-[slug].md
│   └── ...
├── 01-cover-[slug].png
├── 02-content-[slug].png
└── NN-ending-[slug].png

Slug Generation:

  1. Extract main topic from content (2-4 words, kebab-case)
  2. Example: "AI工具推荐" → ai-tools-recommend

Conflict Resolution: If xhs-images/{topic-slug}/ already exists:

  • Append timestamp: {topic-slug}-YYYYMMDD-HHMMSS
  • Example: ai-tools exists → ai-tools-20260118-143052

Source Files: Copy all sources with naming source-{slug}.{ext}:

  • source-article.md, source-photo.jpg, etc.
  • Multiple sources supported: text, images, files from conversation

Workflow

Progress Checklist

Copy and track progress:

XHS Infographic Progress:
- [ ] Step 0: Check preferences (EXTEND.md) ⛔ BLOCKING
  - [ ] Found → load preferences → continue
  - [ ] Not found → run first-time setup → MUST complete before Step 1
- [ ] Step 1: Analyze content → analysis.md
- [ ] Step 2: Smart Confirm ⚠️ REQUIRED
  - [ ] Path A: Quick confirm → generate recommended outline
  - [ ] Path B: Customize → adjust then generate outline
  - [ ] Path C: Detailed → 3 outlines → second confirm → generate outline
- [ ] Step 3: Generate images (sequential)
- [ ] Step 4: Completion report

Flow

Input → [Step 0: Preferences] ─┬─ Found → Continue
                               │
                               └─ Not found → First-Time Setup ⛔ BLOCKING
                                              │
                                              └─ Complete setup → Save EXTEND.md → Continue
                                                                                      │
        ┌───────────────────────────────────────────────────────────────────────────┘
        ↓
Analyze → [Smart Confirm] ─┬─ Quick: confirm recommended → outline.md → Generate → Complete
                           │
                           ├─ Customize: adjust options → outline.md → Generate → Complete
                           │
                           └─ Detailed: 3 outlines → [Confirm 2] → outline.md → Generate → Complete

Step 0: Load Preferences (EXTEND.md) ⛔ BLOCKING

Purpose: Load user preferences or run first-time setup.

CRITICAL: If EXTEND.md not found, MUST complete first-time setup before ANY other questions or steps. Do NOT proceed to content analysis, do NOT ask about style, do NOT ask about layout — ONLY complete the preferences setup first.

Check EXTEND.md existence (priority order):

# macOS, Linux, WSL, Git Bash
test -f .baoyu-skills/baoyu-xhs-images/EXTEND.md && echo "project"
test -f "${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-xhs-images/EXTEND.md" && echo "xdg"
test -f "$HOME/.baoyu-skills/baoyu-xhs-images/EXTEND.md" && echo "user"
# PowerShell (Windows)
if (Test-Path .baoyu-skills/baoyu-xhs-images/EXTEND.md) { "project" }
$xdg = if ($env:XDG_CONFIG_HOME) { $env:XDG_CONFIG_HOME } else { "$HOME/.config" }
if (Test-Path "$xdg/baoyu-skills/baoyu-xhs-images/EXTEND.md") { "xdg" }
if (Test-Path "$HOME/.baoyu-skills/baoyu-xhs-images/EXTEND.md") { "user" }

┌────────────────────────────────────────────────────┬───────────────────┐ │ Path │ Location │ ├────────────────────────────────────────────────────┼───────────────────┤ │ .baoyu-skills/baoyu-xhs-images/EXTEND.md │ Project directory │ ├────────────────────────────────────────────────────┼───────────────────┤ │ $HOME/.baoyu-skills/baoyu-xhs-images/EXTEND.md │ User home │ └────────────────────────────────────────────────────┴───────────────────┘

┌───────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Result │ Action │ ├───────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ Found │ Read, parse, display summary → Continue to Step 1 │ ├───────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ Not found │ ⛔ BLOCKING: Run first-time setup ONLY (see below) → Complete and save EXTEND.md → Then Step 1 │ └───────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────┘

First-Time Setup (when EXTEND.md not found):

Language: Use user's input language or saved language preference.

Use AskUserQuestion with ALL questions in ONE call. See references/config/first-time-setup.md for question details.

EXTEND.md Supports: Watermark | Preferred style/layout | Custom style definitions | Language preference

Schema: references/config/preferences-schema.md

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 - Backup rule: If source.md exists, rename to source-backup-YYYYMMDD-HHMMSS.md

  1. Read source content
  2. Deep analysis following references/workflows/analysis-framework.md:

- Content type classification (种草/干货/测评/教程/避坑...) - Hook analysis (爆款标题潜力) - Target audience identification - Engagement potential (收藏/分享/评论) - Visual opportunity mapping - Swipe flow design

  1. Detect source language
  2. Determine recommended image count (2-10)
  3. Auto-recommend best strategy + style + layout based on content signals
  4. Save to analysis.md

Step 2: Smart Confirm ⚠️

Purpose: Present auto-recommended plan, let user confirm or adjust. Do NOT skip.

Auto-Recommendation Logic:

  1. Use Auto Selection table to match content signals → best strategy + style + layout
  2. Infer optimal image count from content density
  3. Load style's default elements from preset

Display (analysis summary + recommended plan):

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 内容分析
  主题:[topic] | 类型:[content_type]
  要点:[key points summary]
  受众:[target audience]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 推荐方案(自动匹配)
  策略:[A/B/C] [strategy name]([reason])
  风格:[style] · 布局:[layout] · 预设:[preset]
  图片:[N]张(封面+[N-2]内容+结尾)
  元素:[background] / [decorations] / [emphasis]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Use AskUserQuestion with single question:

OptionDescription
1. ✅ 确认,直接生成(推荐)Trust auto-recommendation, proceed immediately
2. 🎛️ 自定义调整Modify strategy/style/layout/count in one step
3. 📋 详细模式Generate 3 outlines, then choose (two confirmations)

Path A: Quick Confirm (Option 1)

Generate single outline using recommended strategy + style → save to outline.md → Step 3.

Path B: Customize (Option 2)

Use AskUserQuestion with adjustable options (leave blank = keep recommended):

  1. 策略风格: Current: [strategy + style]. Options: A Story-Driven(warm) | B Information-Dense(notion) | C Visual-First(screen-print). Or specify style directly: cute/fresh/warm/bold/minimal/retro/pop/notion/chalkboard/study-notes/screen-print. Or use preset: knowledge-card / checklist / tutorial / poster / cinematic / etc.
  2. 布局: Current: [layout]. Options: sparse | balanced | dense | list | comparison | flow | mindmap | quadrant
  3. 图片数量: Current: [N]. Range: 2-10
  4. 补充说明(可选): Selling point emphasis, audience adjustment, color preference, etc.

After response: Generate single outline with user's choices → save to outline.md → Step 3.

Path C: Detailed Mode (Option 3)

Full two-confirmation flow for maximum control:

Step 2a: Content Understanding

Use AskUserQuestion for:

  1. Core selling point (multiSelect: true)
  2. Target audience
  3. Style preference: Authentic sharing / Professional review / Aesthetic mood / Auto
  4. Additional context (optional)

After response: Update analysis.md.

Step 2b: Generate 3 Outline Variants

StrategyFilenameOutlineRecommended Style
Aoutline-strategy-a.mdStory-driven: emotional, before/afterwarm, cute, fresh
Boutline-strategy-b.mdInformation-dense: structured, factualnotion, minimal, chalkboard
Coutline-strategy-c.mdVisual-first: atmospheric, minimal textbold, pop, retro, screen-print

Outline format (YAML front matter + content):

---
strategy: a  # a, b, or c
name: Story-Driven
style: warm  # recommended style for this strategy
style_reason: "Warm tones enhance emotional storytelling and personal connection"
elements:  # from style preset, can be customized
  background: solid-pastel
  decorations: [clouds, stars-sparkles]
  emphasis: star-burst
  typography: highlight
layout: balanced  # primary layout
image_count: 5
---

## P1 Cover
**Type**: cover
**Hook**: "入冬后脸不干了🥹终于找到对的面霜"
**Visual**: Product hero shot with cozy winter atmosphere
**Layout**: sparse

## P2 Problem
**Type**: pain-point
**Message**: Previous struggles with dry skin
**Visual**: Before state, relatable scenario
**Layout**: balanced

...

Differentiation requirements:

  • Each strategy MUST have different outline structure AND different recommended style
  • Adapt page count: A typically 4-6, B typically 3-5, C typically 3-4
  • Include style_reason explaining why this style fits the strategy

Reference: references/workflows/outline-template.md

Step 2c: Outline & Style Selection

Use AskUserQuestion with three questions:

Q1: Outline Strategy: A / B / C / Combine (specify pages from each)

Q2: Visual Style: Use recommended | Select preset | Select style | Custom description

Q3: Visual Elements: Use defaults (Recommended) | Adjust background | Adjust decorations | Custom

After response: Save selected/merged outline to outline.md with confirmed style and elements → Step 3.

Step 3: Generate Images

With confirmed outline + style + layout:

Visual Consistency — Reference Image Chain: To ensure character/style consistency across all images in a series:

  1. Generate image 1 (cover) FIRST — without --ref
  2. Use image 1 as --ref for ALL remaining images (2, 3, ..., N)

- This anchors the character design, color rendering, and illustration style - Command pattern: --ref <path-to-image-01.png> added to every subsequent generation

This is critical for styles that use recurring characters, mascots, or illustration elements. Image 1 becomes the visual anchor for the entire series.

For each image (cover + content + ending):

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

- Backup rule: If prompt file exists, rename to prompts/NN-{type}-[slug]-backup-YYYYMMDD-HHMMSS.md

  1. Generate image:

- Image 1: Generate without --ref (this establishes the visual anchor) - Images 2+: Generate with --ref <image-01-path> for consistency - Backup rule: If image file exists, rename to NN-{type}-[slug]-backup-YYYYMMDD-HHMMSS.png

  1. Report progress after each generation

Watermark Application (if enabled in preferences): Add to each image generation prompt:

Include a subtle watermark "[content]" positioned at [position].
The watermark should be legible but not distracting from the main content.

Reference: references/config/watermark-guide.md

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. Combined with reference image chain, ensures maximum visual consistency

Step 4: Completion Report

Xiaohongshu Infographic Series Complete!

Topic: [topic]
Mode: [Quick / Custom / Detailed]
Strategy: [A/B/C/Combined]
Style: [style name]
Layout: [layout name or "varies"]
Location: [directory path]
Images: N total

✓ analysis.md
✓ outline.md
✓ outline-strategy-a/b/c.md (detailed mode only)

Files:
- 01-cover-[slug].png ✓ Cover (sparse)
- 02-content-[slug].png ✓ Content (balanced)
- 03-content-[slug].png ✓ Content (dense)
- 04-ending-[slug].png ✓ Ending (sparse)

Image Modification

ActionSteps
EditUpdate prompt file FIRST → Regenerate with same session ID
AddSpecify position → Create prompt → Generate → Renumber subsequent files (NN+1) → Update outline
DeleteRemove files → Renumber subsequent (NN-1) → Update outline

IMPORTANT: When updating images, ALWAYS update the prompt file (prompts/NN-{type}-[slug].md) FIRST before regenerating. This ensures changes are documented and reproducible.

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):

sparsebalanceddenselistcomparisonflowmindmapquadrant
cute✓✓✓✓✓✓
fresh✓✓✓✓✓✓
warm✓✓✓✓✓✓
bold✓✓✓✓✓✓✓✓
minimal✓✓✓✓✓✓
retro✓✓✓✓✓✓
pop✓✓✓✓✓✓✓✓
notion✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓
chalkboard✓✓✓✓✓✓✓✓✓✓✓✓
study-notes✓✓✓✓✓✓
screen-print✓✓✓✓✓✓✓✓

References

Detailed templates in references/ directory:

Elements (Visual building blocks):

  • elements/canvas.md - Aspect ratios, safe zones, grid layouts
  • elements/image-effects.md - Cutout, stroke, filters
  • elements/typography.md - Decorated text (花字), tags, text direction
  • elements/decorations.md - Emphasis marks, backgrounds, doodles, frames

Presets (Style presets):

  • presets/<name>.md - Element combination definitions (cute, notion, warm...)
  • style-presets.md - Preset shortcuts (style + layout combos)

Workflows (Process guides):

  • workflows/analysis-framework.md - Content analysis framework
  • workflows/outline-template.md - Outline template with layout guide
  • workflows/prompt-assembly.md - Prompt assembly guide

Config (Settings):

  • config/preferences-schema.md - EXTEND.md schema
  • config/first-time-setup.md - First-time setup flow
  • config/watermark-guide.md - Watermark configuration

Notes

  • Auto-retry once on failure | Cartoon alternatives for sensitive figures
  • Use confirmed language preference | Maintain style consistency
  • Smart Confirm required (Step 2) - do not skip; detailed mode uses two sub-confirmations

Extension Support

Custom configurations via EXTEND.md. See Step 0 for paths and supported options.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.76%
按下载量换算1,946

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills