agentleFS
however-yirhowever-yir/claude-skills/xhs-cover-studio/SKILL.md

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).

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
  1. Distinctive:

    If style is unspecified, choose a suitable one and state the assumption.

    line 16
  2. Very specific:

    Use scripts/build_cover.py to output HTML and PNG.

    line 19
  3. Distinctive:

    Always return absolute paths for generated HTML and PNG files.

    line 22
  4. Very specific:

    Use \\n in text fields to force line breaks.

    line 68
  5. Very specific:

    Use --copy-text --auto-variants 3 for long-copy multi-output mode.

    line 69
  6. Very specific:

    Use --no-png when only HTML is needed.

    line 70
  7. Very specific:

    Ensure output PNG is exactly 1500x2000.

    line 76
  8. Distinctive:

    Ensure headline remains readable (usually 2-3 lines).

    line 77
  9. Distinctive:

    Ensure Chinese copy reads naturally for Xiaohongshu.

    line 78
  10. Distinctive:

    Keep the selected style's visual language unchanged unless user requests design edits.

    line 79

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.