Home/自媒体运营/xiaohongshu-cover-generator
X

xiaohongshu-cover-generator

by @freestyleflyv
4.5(12)

Automatically generates eye-catching cover images in the Xiaohongshu style based on user-provided themes, helping content creators quickly produce engaging covers.

XiaohongshuCover DesignSocial Media GraphicsContent CreationImage GenerationGitHub
Installation
npx skills add freestylefly/xiaohongshu-skills --skill xiaohongshu-cover-generator
compare_arrows

Before / After Comparison

1
Before

Manually designing Xiaohongshu covers requires a significant amount of time to brainstorm ideas, select materials, and arrange text and images. The entire process is time-consuming and labor-intensive, and it's difficult to ensure professional quality every time.

After

Using the `xiaohongshu-cover-generator` skill, you only need to provide a theme to quickly generate beautiful cover images that match the Xiaohongshu style. This greatly enhances content creation efficiency, allowing creators to focus more on the content itself.

description SKILL.md

xiaohongshu-cover-generator

Xiaohongshu Cover Generator

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

Usage

When a user requests a Xiaohongshu cover image:

  • Confirm the topic with the user if not clear

  • Check for API key (CANGHE_API_KEY environment variable or ask user to provide it)

  • Run the generation script with the topic

  • 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

Execute with:

cd ~/.codebuddy/skills/xiaohongshu-cover-generator
npx tsx scripts/handler.ts "<topic>" "<api-key-optional>"

Or with environment variable:

cd ~/.codebuddy/skills/xiaohongshu-cover-generator
CANGHE_API_KEY="your-api-key" npx tsx scripts/handler.ts "<topic>"

API Key

Users need a valid API key from https://api.canghe.ai/

If the API key is missing or invalid, provide the user with clear instructions to obtain one.

Output

The generated image will be saved to the directory where the skill was invoked (current working directory), not the skill's directory. The filename format is xiaohongshu-cover-{timestamp}.png where timestamp is in milliseconds.

Style Specifications

The generated images follow these specifications:

  • Aspect ratio: 3:4 (vertical, mobile-friendly)

  • Style: Clean, refined, youthful aesthetic

  • Automatic removal of watermarks and logos

  • High-quality output suitable for mobile viewing

  • Text should be clear and readable with appropriate sizing

Weekly Installs746Repositoryfreestylefly/xi…u-skillsGitHub Stars68First SeenJan 27, 2026Security AuditsGen Agent Trust HubFailSocketPassSnykFailInstalled onopencode701gemini-cli677codex676cursor666github-copilot648openclaw635

forumUser Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs245
Rating4.5 / 5.0
Version
Updated2026年3月17日
Comparisons1

User Rating

4.5(12)
5
0%
4
0%
3
0%
2
0%
1
0%

Rate this Skill

0.0

Compatible Platforms

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

Timeline

Created2026年3月17日
Last Updated2026年3月17日