About xhs-cover-skill
A skill that turns raw content into image-generation prompts for Xiaohongshu covers, aimed at creators making visual posts. It structures cover, content, and end slides using templates, then outputs titles, polished text, tags, and prompts as JSON.
Key features
- 01Analyze supplied content
- 02Select a style from reference templates
- 03Prepare titles, summaries, and tags
- 04Create prompts for each slide
- 05Output results as JSON
Use cases
- 01Adapt an article into a Xiaohongshu post
- 02Plan cover and content slides from a template
- 03Create prompts for an image-generation tool
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ cclank/ xhs-cover-skill --skill xhs-cover-skillAfter installing, type/xhs-cover-skillin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
README.mdreferences/xiaohongshu_style_guide.mdreferences/templates/style_infographic_pro.mdstyle_infographic_cartoon.mdDetails
From the project READMEXiaohongshu Cover Generator (xhs-cover-skill)
This skill helps you turn raw content into a high-quality image generation prompt suitable for a Xiaohongshu cover.
Workflow
- Analyze Content: Read the user's provided content.
- Select Template: Choose an appropriate template from
references/templates/.- Default:
references/templates/style_infographic_cartoon.md(unless user specifies otherwise).
- Default:
- Process Content:
- Polish: Create a catchy, click-baity title and summary text.
- Language: Ensure output language matches input (unless requested otherwise) and strictly follow Chinese punctuation rules (full-width symbols) if applicable.
- Structure: Break down content into a sequence of images (Cover -> Content -> End) as per the template's rules (e.g., 2-10 slides).
- Generate JSON: Output the final result in the strict JSON format below.
Output Format
The output must be a single JSON object.
{
"title": "The Main Title 🌟",
"content_polished": "The polished caption text for the post...",
"tags": ["#Tag1", "#Tag2"],
"image_prompts": [
{
"index": 1,
"type": "Cover | Content | End",
"text_overlays": {
"title": "Text on image",
"subtitle": "Subtitle on image",
"notes": "Any extra text"
},
"prompt": "Full English image generation prompt...",
"negative_prompt": "..."
}
]
}
Example Interaction (Infographic Style)
User: "Explain how to make perfect scrambled eggs."
Model:
{
"title": "🍳 Perfect Eggs Every Time! Secret Revealed! 😋",
"content_polished": "Stop making rubbery eggs! 🛑 These simple tips will change your breakfast game forever. Creamy, fluffy, and delicious! #BreakfastHacks #ScrambledEggs #Foodie",
"tags": ["#CookingTips", "#Breakfast"],
"image_prompts": [
{
"index": 1,
"type": "Cover",
"text_overlays": {
"title": "PERFECT SCRAMBLED EGGS",
"subtitle": "Creamy & Fluffy!"
},
"prompt": "Xiaohongshu style infographic, vertical (3:4), cartoon style, hand-drawn text, cream background. Illustration of a plate of fluffy yellow scrambled eggs with steam rising. Cute chef character giving a thumbs up. Title 'PERFECT SCRAMBLED EGGS' in bold playful font at top. Watermark '岚叔' at bottom right.",
"negative_prompt": "photorealistic, dark, messy"
},
{
"index": 2,
"type": "Content",
"text_overlays": {
"title": "Step 1: Low Heat",
"subtitle": "Don't rush it!"
},
"prompt": "Xiaohongshu style infographic, vertical (3:4), cartoon style. Illustration of a frying pan on a stove with a small flame. Text 'Step 1: Low Heat'. Cute egg character sweating. Pastel colors.",
"negative_prompt": "photorealistic"
}
]
}
Resources
references/templates/: Contains the style templates (e.g.,style_infographic_cartoon.md,style_infographic_pro.md).references/xiaohongshu_style_guide.md: Tips for Xiaohongshu stylization.
Comments
Markdown supported