SkillsGrove
SkillsGrove/Short video & creators/however-yir/claude-skills/xhs-cover-studio

xhs-cover-studio

Installation

$npx skills add https://github.com/however-yir/claude-skills --skill xhs-cover-studio
$git clone --depth 1 https://github.com/however-yir/claude-skills.git /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/xhs-cover-studio ~/.claude/skills/xhs-cover-studio
Please install this Agent Skill for me: https://github.com/however-yir/claude-skills/tree/73766455ec8f0c2bcf34fa41ca55238f727b5b9f/xhs-cover-studio — read its SKILL.md and scripts first, and only install it into my skills folder once you have confirmed it is safe.

Summary

Original description · MITGenerate 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).
The SKILL.md below is reproduced from however-yir/claude-skills (commit 7376645) under the MIT license. The text is unchanged; only the file header metadata is omitted, images are shown as links, and very long files are truncated. Copyright 2026 元气菌.AI. License: xhs-cover-studio/LICENSE. Only the instructions file is shown; see the original repository for any scripts.

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

  1. Confirm style and copy direction. If style is unspecified, choose a suitable one and state the assumption.

  2. Generate cover files. Use scripts/build_cover.py to output HTML and PNG.

  3. 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-styles

Generate 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-apple

Generate 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-demo

Script 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
  • --feature format is Title|Description and can be repeated.
  • Use \\n in text fields to force line breaks.
  • Use --copy-text --auto-variants 3 for long-copy multi-output mode.
  • Use --no-png when 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
View full license text (MIT)
MIT License

Copyright (c) 2026 元气菌.AI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.