xiaohongshu-cover-generator

Installation
Summary

Generate Xiaohongshu-style cover images from user topics with automatic formatting.

  • Accepts a topic as input and produces vertically-oriented 3:4 cover images optimized for mobile viewing
  • Requires API key from https://api.canghe.ai/ (via CANGHE_API_KEY environment variable or direct argument)
  • Saves generated images to the current working directory with timestamped filenames (xiaohongshu-cover-{timestamp}.png)
  • Applies clean, youthful aesthetic with automatic watermark removal and readable text sizing
SKILL.md

Xiaohongshu Cover Generator

This skill generates Xiaohongshu-style cover images based on user-provided topics.

Usage

When a user requests a Xiaohongshu cover image:

  1. Confirm the topic with the user if not clear
  2. Check for API key (CANGHE_API_KEY environment variable or ask user to provide it)
  3. Run the generation script with the topic
  4. The image will be saved to the current working directory with filename format: xiaohongshu-cover-{timestamp}.png

Running the Script

The script is located at scripts/handler.ts and requires:

  • Topic (required): The subject for the cover image
  • API Key (required): Either via environment variable CANGHE_API_KEY or passed as argument
Installs
1.4K
GitHub Stars
84
First Seen
Jan 27, 2026