xhs-cover-studio
Skill2 starsChanged 7 months agoMITView on GitHub
Generate Xiaohongshu (小红书) cover images (1500x2000, 3:4) from prebuilt brand templates. Use this skill whenever the user asks for 小红书封面, XHS cover, 图文封面, 封面模板, DESIGN.md 风格封面, or wants one-click HTML+PNG exports. Also use this skill when the user provides long copy and asks for multiple cover variants (up to 3 images).
In this repository18 other files it gives its agents.
- last30days-cn-skill/CLAUDE.mdCLAUDE.md
- skills/ai-agent-workflow/CLAUDE.mdCLAUDE.md
- skills/github-job-showcase/CLAUDE.mdCLAUDE.md
- skills/java-fullstack-engineering/CLAUDE.mdCLAUDE.md
- skills/local-ai-systems-studio/CLAUDE.mdCLAUDE.md
- skills/office-doc-presentation/CLAUDE.mdCLAUDE.md
- skills/xiaohongshu-content-studio/CLAUDE.mdCLAUDE.md
- bishe-manualSkill
- last30daysSkill
- ai-agent-workflowSkill
- create-bestieSkill
- create-digital-selfSkill
- github-job-showcaseSkill
- java-fullstack-engineeringSkill
- local-ai-systems-studioSkill
- office-doc-presentationSkill
- wc26-predict-text-onlySkill
- xiaohongshu-content-studioSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
If style is unspecified, choose a suitable one and state the assumption.
- Very specific: line 19
Use scripts/build_cover.py to output HTML and PNG.
- Distinctive: line 22
Always return absolute paths for generated HTML and PNG files.
- Very specific: line 68
Use \\n in text fields to force line breaks.
- Very specific: line 69
Use --copy-text --auto-variants 3 for long-copy multi-output mode.
- Very specific: line 70
Use --no-png when only HTML is needed.
- Very specific: line 76
Ensure output PNG is exactly 1500x2000.
- Distinctive: line 77
Ensure headline remains readable (usually 2-3 lines).
- Distinctive: line 78
Ensure Chinese copy reads naturally for Xiaohongshu.
- Distinctive: line 79
Keep the selected style's visual language unchanged unless user requests design edits.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
XHS Cover Studio
Overview
This skill turns style templates into ready-to-post Xiaohongshu covers. It supports 58 brand styles, deterministic PNG export, and auto-generation of up to 3 cover variants from long copy.
Workflow
- Confirm style and copy direction. If style is unspecified, choose a suitable one and state the assumption.
- Generate cover files.
Use
scripts/build_cover.pyto output HTML and PNG. - Return artifacts. Always return absolute paths for generated HTML and PNG files.
Quick Start
List available styles:
python /Users/liuzhuoran/.codex/skills/xhs-cover-studio/scripts/build_cover.py --list-stylesGenerate one cover:
python /Users/liuzhuoran/.codex/skills/xhs-cover-studio/scripts/build_cover.py \
--style apple \
--series-tag "AI Cover Lab · Demo" \
--author-name "Codex × You" \
--author-desc "From DESIGN.md to publish-ready cover" \
--headline "One template\\nBrand-level look\\nXHS cover" \
--subheadline "Pick style, change copy, export 1500x2000 in one shot" \
--feature "Template-first|58 styles ready to edit" \
--feature "Copy-fast|Headline, cards, tags in one command" \
--feature "Export-ready|Auto PNG at 1500x2000" \
--output-dir /Users/liuzhuoran/Documents/Playground/xhs-cover-md/output \
--filename-prefix demo-appleGenerate 3 covers from long copy:
python /Users/liuzhuoran/.codex/skills/xhs-cover-studio/scripts/build_cover.py \
--style apple \
--series-tag "选题实验室" \
--author-name "Codex" \
--copy-text "把你的长文案放这里。脚本会自动拆成三个版本的标题、副标题和卖点卡片。适合一次想尝试多种角度时使用。" \
--auto-variants 3 \
--output-dir /Users/liuzhuoran/Documents/Playground/xhs-cover-md/output \
--filename-prefix long-copy-demoScript Notes
- Script:
/Users/liuzhuoran/.codex/skills/xhs-cover-studio/scripts/build_cover.py - Capture helper:
/Users/liuzhuoran/.codex/skills/xhs-cover-studio/scripts/capture.sh - Templates:
/Users/liuzhuoran/.codex/skills/xhs-cover-studio/assets/covers/<style>/template.html --featureformat isTitle|Descriptionand can be repeated.- Use
\\nin text fields to force line breaks. - Use
--copy-text --auto-variants 3for long-copy multi-output mode. - Use
--no-pngwhen only HTML is needed.
Quality Checks
Before finalizing:
- Ensure output PNG is exactly
1500x2000. - Ensure headline remains readable (usually 2-3 lines).
- Ensure Chinese copy reads naturally for Xiaohongshu.
- Keep the selected style's visual language unchanged unless user requests design edits.
References
- Style index:
references/style-catalog.md - Original upstream project:
/Users/liuzhuoran/Documents/Playground/xhs-cover-md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

