xhs-cover

xhs-cover is a skill for Claude Code from DuckWu/xhs-claude-skills. It costs 22 tokens per session (2,011 once invoked), scanned A, a copy of xhs-cover, MIT.

A tool for creating Xiaohongshu cover images from HTML and CSS, then capturing them as screenshots. Xiaohongshu, also called RedNote, is a Chinese social platform where posts commonly use designed cover images.

In plain words
What is it for?
Use it to create covers for Xiaohongshu posts, such as knowledge notes, academic explanations, programming content, recommendations, or personal updates. It accepts a title and supports several named visual styles.
Why use it?
It turns short post content and an optional visual style into a prepared cover image without requiring manual design work.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the rednote-to-obsidian plugin — 5 skills shipped together

Good fit Use it to create covers for Xiaohongshu posts, such as knowledge notes, academic explanations, programming content, recommendations, or personal updates. It accepts a title and supports several named visual styles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/duckwu/xhs-claude-skills/xhs-cover
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DuckWu/xhs-claude-skills --skill xhs-cover
Clone the repo
git clone --depth 1 https://github.com/DuckWu/xhs-claude-skills

Made for: Claude Code.

Or install rednote-to-obsidian, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xhs-cover

README.md
[![agentmods](https://agentmods.dev/badge/skills/duckwu/xhs-claude-skills/xhs-cover/github.svg)](https://agentmods.dev/skills/duckwu/xhs-claude-skills/xhs-cover)
Your own site
<a href="https://agentmods.dev/skills/duckwu/xhs-claude-skills/xhs-cover"><img src="https://agentmods.dev/badge/skills/duckwu/xhs-claude-skills/xhs-cover/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xhs-cover

Your own site · 80×15
<a href="https://agentmods.dev/skills/duckwu/xhs-claude-skills/xhs-cover"><img src="https://agentmods.dev/badge/skills/duckwu/xhs-claude-skills/xhs-cover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,011 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.02011
Opus 5 $0.00011 $0.01006
Sonnet 5 $0.00004 $0.00402
Haiku 4.5 $0.00002 $0.00201

Measured 12d ago against content hash 0bf030834fb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

xhs-cover scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to xhs-cover — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/xhs-cover/SKILL.md · 179 lines

How it starts

The opening of the file, as written. The whole thing — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.

为用户生成一张小红书风格封面图。

输入

用户提供的内容: $ARGUMENTS

解析输入:

  • 标题文案(必须):从输入中提取核心文案,不超过 30 字
  • 风格(可选):--style 风格名,默认自动选择

可用风格

1. morandi(莫兰迪)

温柔高级,低饱和度,适合知识分享、方法论、生活方式

背景: linear-gradient(155deg, #f0e6d8, #e8dcd0, #d6cfc8)
主色: #c45c4a(暖红)
副色: #5b5080(灰紫)
辅助: #4a7a6a(灰绿)
文字: #3d3328(深棕)
标签背景: rgba(255,255,255,0.55)

2. academic(学术蓝)

冷静专业,适合论文解读、科研分享、技术分析

背景: linear-gradient(155deg, #e4eaf2, #d8e2ee, #cdd8e8)
主色: #2563eb(学术蓝)
副色: #7c3aed(紫)
辅助: #0891b2(青)
文字: #1e293b(深蓝灰)
标签背景: rgba(255,255,255,0.6)

3. dark(暗夜科技)

硬核科技感,适合 AI/编程/开源项目、技术深度内容

背景: linear-gradient(155deg, #1a1a2e, #16213e, #0f3460)
主色: #a78bfa(亮紫)
副色: #38bdf8(天蓝)
辅助: #34d399(绿)
文字: #f1f5f9(近白)
标签背景: rgba(255,255,255,0.08), border: rgba(255,255,255,0.2)

4. mint(薄荷清新)

清爽自然,适合工具推荐、效率方法、学习笔记

背景: linear-gradient(155deg, #ecfdf5, #e0f7ed, #d1f0e4)
主色: #059669(翠绿)
副色: #7c3aed(紫)
辅助: #d97706(琥珀)
文字: #1a3a2a(深绿灰)
标签背景: rgba(255,255,255,0.6)

5. sunset(日落暖橘)

温暖有活力,适合个人感悟、项目发布、里程碑分享

背景: linear-gradient(155deg, #fef3e2, #fde8d0, #fcdcc4)
主色: #ea580c(橘红)
副色: #7c3aed(紫)
辅助: #0891b2(青)
文字: #431407(深棕)
标签背景: rgba(255,255,255,0.55)

6. bw(极简黑白)

高级克制,适合观点输出、争议话题、深度思考

背景: linear-gradient(155deg, #f5f5f5, #ebebeb, #e0e0e0)
主色: #18181b(纯黑)
副色: #52525b(灰)
辅助: #a1a1aa(浅灰)
文字: #18181b(纯黑)
标签背景: rgba(255,255,255,0.7), border: #d4d4d8

生成流程

步骤 1:设计文案

从用户输入提取:

  • 主标题(最大字,1 行,核心概念/产品名/关键词)
  • 副标题(次大字,1-2 行,核心洞察或 tagline)
  • 标签(3 个功能/关键词标签,每个 2-4 字)
  • 角标(左上小字,身份标签如 OPEN SOURCE / 论文解读 / 工具推荐)
  • 底部(小字,3 个关键词用 · 分隔)

步骤 2:选择风格

  • 如果用户指定了 --style,使用对应风格
  • 否则根据内容自动选择:
    • 论文/科研 → academic
    • AI/编程/开源 → dark 或 morandi
    • 工具/效率 → mint
    • 个人感悟/发布 → sunset
    • 观点/思考 → bw

步骤 3:生成 HTML

写入 /tmp/xhs-cover.html,遵循以下模板结构:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { width: 1080px; height: 1440px; overflow: hidden;
         font-family: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif; }
  .canvas {
    width: 1080px; height: 1440px;
    background: {风格背景};
    display: flex; flex-direction: column; justify-content: center;
    padding: 60px 70px; gap: 36px; position: relative;
  }
  /* 角标 */
  .badge { display: inline-flex; align-items: center; gap: 10px;
           background: {主色 alpha 0.12}; border: 1.5px solid {主色 alpha 0.2};
           border-radius: 10px; padding: 12px 24px; font-size: 28px;
           font-weight: 700; color: {主色}; letter-spacing: 3px; width: fit-content; }
  /* 主标题行 */
  .title-row { display: flex; align-items: baseline; gap: 20px; white-space: nowrap; }
  .title-main { font-size: 120-130px; font-weight: 900; color: {主色}; letter-spacing: -2px; }
  .title-secondary { font-size: 110-120px; font-weight: 900; color: {副色}; }
  /* 分隔线 */
  .divider { width: 80px; height: 5px;
             background: linear-gradient(90deg, {主色}, {副色});
             border-radius: 3px; margin: 10px 0; }
  /* 副标题 */
  .tagline { font-size: 76-82px; font-weight: 800; color: {文字色};
             letter-spacing: 8px; line-height: 1.4; }
  .tagline .accent { color: {主色 或副色 淡化}; }
  /* 标签 */
  .chip { background: {标签背景}; border-radius: 14px; padding: 18px 32px;
          font-size: 34px; font-weight: 700; letter-spacing: 2px; }
  /* 底部 */
  .footer { font-size: 30px; color: {文字色 淡化}; font-weight: 600; letter-spacing: 2px; }
</style>
</head>
<body>
  <!-- 按上面的结构填充内容 -->
</body>
</html>

Read the full file on GitHub · 179 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 179 lines · 22 tokens per session scan A 0bf030834fb8

Subscribe to this mod's changes

xhs-cover is a skill published in the GitHub repository DuckWu/xhs-claude-skills (5 stars, last pushed 3mo ago), licensed MIT. It adds 22 tokens to every session and 2,011 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to xhs-cover, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

accessibility

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

microsoft/hve-core · 47 tokens

make-resume

A Chinese-language tool for creating editable HTML resumes that can be changed in a browser and printed to PDF. It uses available resume templates when they are installed and otherwise provides a simpler fallback.

Hisn00w/ASu-skills · 86 tokens