ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified media Safety 4/5

xiaohongshu-image-generator

根据小红书文章内容自动生成配图。使用PIL将文章标题、副标题、内容生成在图片上,适合小红书笔记配图。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/binsonhao/redbook-image-generator
Or

What This Skill Does

The xiaohongshu-image-generator is a specialized utility designed for social media content creators who need to produce high-quality, aesthetically pleasing cover images for Xiaohongshu (Red) posts. By leveraging the Python Imaging Library (PIL), this tool automates the process of overlaying stylized text—including titles, subtitles, and body text—onto images. It removes the friction of manual image editing, allowing users to generate consistent, brand-aligned visual assets directly from their textual content, significantly streamlining the social media production workflow.

Installation

To install this skill within your OpenClaw environment, execute the following command in your terminal: clawhub install openclaw/skills/skills/binsonhao/redbook-image-generator Ensure you have the Python Imaging Library (Pillow) installed in your environment, as it serves as the core engine for the image processing capabilities of this skill.

Use Cases

This skill is perfect for creators maintaining active social media profiles. It is particularly useful for:

  • Batch generating covers for a series of educational or lifestyle posts.
  • Quickly creating "before and after" or "listicle" style thumbnails that require consistent text placement.
  • Maintaining a uniform aesthetic across a portfolio of notes without needing professional graphic design software.
  • Automating the creation of "daily check-in" or "mood board" style images for consistent engagement.

Example Prompts

  1. "Generate a cover for my Xiaohongshu post titled 'My Morning Routine', with the subtitle 'Productivity Tips' and content 'Wake up early\nDeep work session\nHealthy breakfast'."
  2. "Create an image for my new recipe post. Title: 'Healthy Smoothie', Subtitle: 'Easy to make', Body: 'Fresh ingredients\n5 minutes total\nDelicious results'."
  3. "Make a cover for my travel diary. Title: 'Weekend Trip', Subtitle: 'Hidden Gem', Body: 'Beautiful scenery\nGreat weather\nHighly recommend'."

Tips & Limitations

  • Text Formatting: Since the script uses newlines (\n) for line breaks, ensure your content is structured clearly before passing it to the generator.
  • Image Assets: Ensure the directory where the script is executed has sufficient write permissions, as the tool outputs a file named 'xhs_cover.jpg'.
  • Customization: While the current version automates layout, experiment with different text lengths to ensure the text overlays do not overlap with image edges. For advanced branding, you may wish to edit the source script to customize font sizes or background color schemes to better match your unique style.

Metadata

Author@binsonhao
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-binsonhao-redbook-image-generator": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#social-media#content-creation#image-generation#automation
Safety Score: 4/5

Flags: file-write