SkillsGrove
SkillsGrove/숏폼 영상 및 크리에이터/however-yir/claude-skills/xhs-cover-studio

xhs-cover-studio

설치

$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
이 Agent Skill을 설치해 주세요: https://github.com/however-yir/claude-skills/tree/73766455ec8f0c2bcf34fa41ca55238f727b5b9f/xhs-cover-studio — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · 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).
아래 SKILL.md는 however-yir/claude-skills(커밋 7376645)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 元气菌.AI. 라이선스: xhs-cover-studio/LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

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
라이선스 전문 보기(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.