Back to Skills

xiaohongshu-cover-generator

Generate Xiaohongshu (小红书) style cover images based on user topics. Use when the user wants to create a social media cover image in Xiaohongshu style, or mentions keywords like "小红书封面", "Xiaohongshu cover", "封面生成", or provides a topic for cover image generation. The generated image will be saved to the current project directory.

93stars9forksUpdated 7/14/2026

Security Assessment

Low Risk(70/100)

Detected risks:

Secret Exposure([SKILL.md] API_KEY=, [README.md] API_KEY=)
Security Score70/100

About xiaohongshu-cover-generator

xiaohongshu-cover-generator creates Xiaohongshu (小红书) style cover images from a user-provided topic. It solves the problem of quickly producing polished, platform-native social-media covers by wrapping an image-generation script that returns a ready-to-post PNG, triggered when a user asks for a Xiaohongshu cover or mentions keywords such as "小红书封面", "Xiaohongshu cover", or "封面生成".

The skill runs a bundled TypeScript script at `scripts/handler.ts` using `npx tsx`, taking the topic as the primary argument and an API key either from the `CANGHE_API_KEY` environment variable or passed directly. It requires a valid API key from api.canghe.ai and, if the key is missing or invalid, gives the user clear instructions to obtain one. Generated images follow a consistent set of style specifications: a 3:4 vertical, mobile-friendly aspect ratio; a clean, refined, youthful aesthetic; automatic removal of watermarks and logos; high-quality output suited to mobile viewing; and clear, appropriately sized, readable text. The resulting file is saved to the directory where the skill was invoked — the current working directory, not the skill's own folder — using the filename pattern `xiaohongshu-cover-{timestamp}.png`, where the timestamp is in milliseconds.

The skill targets content creators, social-media managers, and marketers who publish on Xiaohongshu and want on-style cover art without manual design work. It is most useful when the topic is confirmed up front and a Canghe API key is available, after which a single command produces a cover image ready for review and posting.

FAQ

What triggers this skill?

A request to create a Xiaohongshu-style cover image, or mentions of keywords like "小红书封面", "Xiaohongshu cover", or "封面生成", or providing a topic for cover-image generation.

What API key does it need and where does it come from?

It needs a valid key from https://api.canghe.ai/, supplied via the `CANGHE_API_KEY` environment variable or passed as an argument. If the key is missing or invalid, the skill provides instructions to obtain one.

Where is the generated image saved?

To the directory where the skill was invoked (the current working directory), not the skill's own directory, using the filename format `xiaohongshu-cover-{timestamp}.png` with a millisecond timestamp.

What style do the covers follow?

A 3:4 vertical, mobile-friendly aspect ratio with a clean, refined, youthful aesthetic; watermarks and logos are removed automatically; output is high-quality with clear, readable text.

All Files

6 files
package.json0.5 KB
View
scripts/handler.ts6.6 KB
View
package-lock.json20.0 KB
View
SKILL.md2.1 KB
View
README.md1.0 KB
View
.DS_Store6.0 KB
View

Install xiaohongshu-cover-generator

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill