# xiaohongshu-cover-generator

This skill turns a topic into a Xiaohongshu-style cover image and drops the PNG into your current project folder.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1800 installs · ★ 97
- Author: freestylefly
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/freestylefly/xiaohongshu-skills/tree/HEAD/SKILL.md
- Updated: 2026-01-26
- HTML: https://affpapa.org/en/nevibecode/skills/xiaohongshu-cover-generator

## What it does

Give the skill a topic and it generates a vertical 3:4 cover in a clean, youthful style. Watermarks and logos are stripped automatically, and the text is sized to stay readable on a phone. The file lands in the directory you invoked the skill from, not in the skill's own folder. Names follow `xiaohongshu-cover-{timestamp}.png`, with the timestamp in milliseconds.

Everything runs through one script, `scripts/handler.ts`, launched with `npx tsx`. It takes two required arguments: the topic and the API key. You can pass the key as the second argument or set it in the `CANGHE_API_KEY` environment variable. No valid key means no image, so grab one from api.canghe.ai before you start.

If your topic is vague, the skill asks you to clarify it first. Then it checks the key, runs the script and hands back the finished file. Node and `npx` are enough to launch it — the command pulls in `tsx` on its own.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add freestylefly/xiaohongshu-skills --skill xiaohongshu-cover-generator -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/xiaohongshu-cover-generator/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/xiaohongshu-cover-generator/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add freestylefly/xiaohongshu-skills --skill xiaohongshu-cover-generator -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/xiaohongshu-cover-generator/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add freestylefly/xiaohongshu-skills --skill xiaohongshu-cover-generator -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/xiaohongshu-cover-generator/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install freestylefly/xiaohongshu-skills xiaohongshu-cover-generator
```

2. **Manually: put the files in place**
- File: `.github/skills/xiaohongshu-cover-generator/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add freestylefly/xiaohongshu-skills --skill xiaohongshu-cover-generator -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/freestylefly/xiaohongshu-skills
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/xiaohongshu-cover-generator/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add freestylefly/xiaohongshu-skills --skill xiaohongshu-cover-generator -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/freestylefly/xiaohongshu-skills/tree/HEAD/SKILL.md

## When to use it
- produce a 3:4 vertical cover from a post headline
- get a cover image without watermarks or third-party logos
- save the finished PNG straight into the project directory
- mock up a cover when no designer is available
- clarify a fuzzy topic and generate the cover in one go

## Example prompts
- generate a Xiaohongshu cover about morning routines
- I need a 小红书 cover for a home workout post
- make an xiaohongshu cover about budget travel

## Similar
- [xiaohongshu-cli](https://affpapa.org/en/nevibecode/skills/xiaohongshu-cli.md) — skill · 1400 installs
- [canghe-cover-image](https://affpapa.org/en/nevibecode/skills/canghe-cover-image.md) — skill · 541 installs
- [image-editing](https://affpapa.org/en/nevibecode/skills/image-editing.md) — skill · 432 installs
- [baoyu-cover-image](https://affpapa.org/en/nevibecode/skills/baoyu-cover-image.md) — skill · 32100 installs
- [traffic-acquisition](https://affpapa.org/en/nevibecode/skills/traffic-acquisition.md) — skill · 341 installs
- [baoyu-xhs-images](https://affpapa.org/en/nevibecode/skills/baoyu-xhs-images.md) — skill · 31300 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
