huashu-xhs-image

huashu-xhs-image is a skill for Claude Code, Codex from alchaincyf/huashu-skills. It costs 84 tokens per session (3,192 once invoked), scanned B, original, MIT.

An image-making tool for Xiaohongshu, a Chinese social platform for lifestyle and product posts. It usually creates images with AI and uses HTML when exact tables or data are needed.

In plain words
What is it for?
Use it to make Xiaohongshu post images, cover images, and data-focused graphics.
Why use it?
It helps create post graphics and covers without designing each image manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 tools/upload_image.py "[图片路径]".

Good fit Use it to make Xiaohongshu post images, cover images, and data-focused graphics.

Compare 6 skills from other repositories ↓
About the project

huashu-skills is a catalogue of Agent Skills, which are reusable instruction packages that extend coding agents such as Claude Code, Codex, and Kimi Code for particular tasks. It organizes skills for design, research, document conversion, content creation, and other workflows, and includes machine-readable metadata and update checking. The catalogue entries are the skills and related tools that agents install and use.

alchaincyf/huashu-skills · 2,363 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/alchaincyf/huashu-skills
agentmods
npx agentmods add skills/alchaincyf/huashu-skills/huashu-xhs-image

Made for: Claude Code, Codex.

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 huashu-xhs-image

README.md
[![agentmods](https://agentmods.dev/badge/skills/alchaincyf/huashu-skills/huashu-xhs-image/github.svg)](https://agentmods.dev/skills/alchaincyf/huashu-skills/huashu-xhs-image)
Your own site
<a href="https://agentmods.dev/skills/alchaincyf/huashu-skills/huashu-xhs-image"><img src="https://agentmods.dev/badge/skills/alchaincyf/huashu-skills/huashu-xhs-image/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 huashu-xhs-image

Your own site · 80×15
<a href="https://agentmods.dev/skills/alchaincyf/huashu-skills/huashu-xhs-image"><img src="https://agentmods.dev/badge/skills/alchaincyf/huashu-skills/huashu-xhs-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,192 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 15 Sept 2026
  • Snyk pass 15 Sept 2026
How audits are shown
Origin original No closer match found 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.00084 $0.03192
Opus 5.5 $0.00034 $0.01277
Sonnet 5.5 $0.00017 $0.00638
Haiku 4.5 $0.00008 $0.00319

Measured 14d ago against content hash a554991dca43, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

huashu-xhs-image scanned grade B with 1 finding 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 14d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate_image.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

export $(grep GEMINI_API_KEY ~/.claude/.env) && \
huashu-xhs-image/SKILL.md · 297 lines

How it starts

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

小红书配图工作流

⚠️ 核心原则:先提案,后生成

绝对不能跳过设计提案直接出图。 正确流程:

理解内容 → 设计提案(2-3个方向)→ 用户选择 → 生成 → 预览确认 → 上传

花叔设计审美画像

喜欢的

  • 质感和温度 — 纸张褶皱、手写笔触、印章、胶带等有机元素
  • 手绘/书法字体 — 笔记感、个人分享场景尤其适合
  • 文字撑满画面 — 小红书是手机竖屏,文字要大到一眼看清
  • 核心元素强化 — 关键数字/关键词做视觉hero(放大3倍、变色、加装饰)
  • 结构清晰 — 主标题 > 副标题 > 列表,层次分明
  • 暖色调 — 奶油色、暖橙、暖金表现好

不喜欢的

  • HTML截图 — 太平面、像PPT模板、没有灵魂(仅精确数据表格兜底)
  • 赛博霓虹/深蓝底 — #0D1117等深蓝色底属于审美禁区
  • 署名/水印 — 封面图不出现「花生」「花叔」「@花生」
  • 过度留白 — 宁可满一点,不要空荡荡

验证过的好风格

风格 表现 适用
手绘笔记(暖色纸张+书法字+手绘图标) ⭐⭐⭐⭐⭐ 教程、干货、个人分享
暗金海报(深色底+金色大字) ⭐⭐⭐⭐ 产品发布、震撼标题(需搭配好内容)
极简信息图(浅底+大数字+简洁层次) ⭐⭐⭐⭐ 数据驱动、对比

核心参数

参数 值
标准尺寸 1080 x 1440 px (3:4)
AI 生成分辨率 --resolution 2K
AI Prompt 长宽比声明 3:4 portrait aspect ratio, 1080x1440 pixels
HTML viewport(兜底用) --viewport-size=1080,1440

Step 1: 理解内容

读取用户提供的内容,快速提炼:

  • 主题:这篇讲什么?
  • 核心关键词:哪些词/数字需要做视觉hero?
  • 情绪/调性:悬念?干货?温暖?震撼?
  • 图片数量和类型:单封面 / 轮播套图 / 信息图?

不需要向用户展示分析结果,直接进入Step 2。


Step 2: 设计提案 ✅ 必须等用户选择

这是整个流程最关键的一步。禁止跳过。

提案格式

向用户展示 2-3个设计方向,每个方向包含:

### 方向A:[风格名]
- 视觉风格:[一句话描述画面感,如"暖色笔记本纸张+毛笔书法大字+手绘小图标"]
- 色彩:[底色 + 主色 + 强调色]
- 文案布局:[哪些文字放大做hero、哪些做副标题、整体排列方式]
- 情绪:[用户看到后的第一感受]

提案原则

  1. 每个方向要有明确差异(风格、情绪、色彩至少有一个完全不同)
  2. 标注推荐(基于内容特征说明为什么推荐某个方向)
  3. 文案要具体(不是"标题放大",而是「"28"做200px的hero元素,橙色强调」)
  4. 不要超过3个方向(选择太多反而难选)

提案示例

方向A:手绘笔记风(推荐)

  • 视觉风格:奶油色方格纸底 + 毛笔书法大标题 + 手绘科技小图标
  • 色彩:底色#FDF6EC + 主色#D97706(暖橙)+ 强调圈线
  • 文案布局:「阿里C4楼」「来了一群广东人」撑满上半区做hero,「AI开源冠军」橙色高亮做视觉锚点,右下角「千问APP」印章
  • 情绪:亲切、真实、像朋友分享内幕

方向B:暗金揭秘风

  • 视觉风格:深色磨砂底 + 金色大字 + 徽章装饰
  • 色彩:底色#1A1A1A + 主色#E2B714(金)+ 白色辅助
  • 文案布局:「全球AI开源冠军」金色巨字撑满画面,上方「大厂内幕」金色徽章,下方副标题白色
  • 情绪:震撼、内幕、有分量感

等用户选择后才进入 Step 3。 用户可能会:

  • 直接选一个 → 进入生成
  • 要求混合/调整 → 修改方向后再确认
  • 都不满意 → 追问偏好后重新提案

Step 3: 生成图片

构建 Prompt

基于用户选择的方向,构建完整prompt。

Prompt 模板:

Create a [style] cover for a Xiaohongshu post. 3:4 portrait aspect ratio, 1080x1440 pixels, high quality rendering.

VISUAL STYLE: [从提案中的视觉风格描述展开]
COLOR PALETTE: [具体色彩描述]
TYPOGRAPHY: text fills most of the canvas, oversized bold typography, clear visual hierarchy.

TEXT TO RENDER:
- [主标题 — hero元素,视觉dominant]
- [副标题]
- [其他文字元素]

The word/number "[核心关键词]" is visually dominant, 3x larger than other text, with decorative emphasis.

IMPORTANT: Do NOT include any personal signature, watermark, or author name like "花生" or "花叔".

[1-2句画面情绪描述]

Read the full file on GitHub · 297 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 14d ago Changed · +1 lines a554991dca43
  2. 3mo ago First seen · 296 lines · 84 tokens per session scan B 18c0f74a2a8a

Subscribe to this mod's changes

huashu-xhs-image is a skill published in the GitHub repository alchaincyf/huashu-skills (2,363 stars, last pushed 2d ago), licensed MIT. It adds 84 tokens to every session and 3,192 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

huashu-xhs-image compared with skills from other repositories

huashu-xhs-image next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
huashu-xhs-imagealchaincyf/huashu-skillsSkill2.4k2d agoMITB84Claude Code, Codex
weekly-retroserejaris/personal-corp-osSkill2519d agoMITA49Claude Code
corp-newserejaris/personal-corp-osSkill2519d agoMITA96Claude Code
make-landingserejaris/personal-corp-osSkill2519d agoMITA110Claude Code
audit-agent-rulesserejaris/personal-corp-osSkill2519d agoMITA86Claude Code
sdlc-milestonesserejaris/personal-corp-osSkill2519d agoMITA162Claude Code
art-directorserejaris/personal-corp-osSkill2519d agoMITA26Claude Code