huashu-wechat-image

huashu-wechat-image is a skill for Claude Code, Codex from alchaincyf/huashu-skills. It costs 103 tokens per session (4,528 once invoked), scanned B, original, MIT.

An image-making tool for WeChat Official Accounts, a Chinese publishing platform. It creates article covers, illustrations, and infographics either with AI or with HTML when text must be exact.

In plain words
What is it for?
Use it to make WeChat article covers, in-article images, and infographics.
Why use it?
It helps prepare the different image formats needed for a WeChat article while keeping data-heavy graphics accurate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

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 WeChat article covers, in-article images, and infographics.

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-wechat-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-wechat-image

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alchaincyf/huashu-skills/huashu-wechat-image"><img src="https://agentmods.dev/badge/skills/alchaincyf/huashu-skills/huashu-wechat-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,528 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.00103 $0.04528
Opus 5.5 $0.00041 $0.01811
Sonnet 5.5 $0.00021 $0.00906
Haiku 4.5 $0.00010 $0.00453

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

Security

Grade B, and why

huashu-wechat-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-wechat-image/SKILL.md · 433 lines

How it starts

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

公众号配图工作流

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

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

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

设计审美画像和提案格式见姊妹skill xhs-image/SKILL.md,公众号配图同样适用。

核心参数

图片类型 尺寸 比例 Playwright viewport AI Prompt 长宽比声明
头条封面 1800 x 766 px 2.35:1 --viewport-size=1800,766 2.35:1 ultra-wide landscape, 1800x766 pixels
正文宽图 1920 x 1080 px 16:9 --viewport-size=1920,1080 16:9 landscape, 1920x1080 pixels
正文方图 1440 x 1080 px 4:3 --viewport-size=1440,1080 4:3 landscape, 1440x1080 pixels
信息图 1080 x 自由 自由 --viewport-size=1080,N 按内容定

Step 0: 确定配图需求 ✅ 用户确认

向用户展示选项,等待确认:

类型 说明 图片数量 推荐路径
A. 仅封面 头条封面图 1张 AI 生成
B. 正文配图 章节配图,辅助阅读理解 3-8张 AI 生成为主
C. 全套配图 封面 + 正文全部 4-10张 AI 生成为主
D. 纯信息图 数据对比、流程图、清单 1-5张 AI 生成(精确数据表格用HTML兜底)

问用户:

  1. 做封面、正文插图、还是全套?
  2. 文章路径/内容是什么?(分析内容确定配图位置)
  3. 总共需要几张图?

配图数量建议

文章长度 推荐配图数 包含
< 1500字 2-3张 封面 + 1-2张正文
1500-3000字 4-6张 封面 + 每个核心章节1张
3000-5000字 6-8张 封面 + 章节图 + 信息图
> 5000字 8-10张 不超过10张,避免过度打断

Step 1: 风格选择 ✅ 用户确认

根据用户的文章类型,推荐 3 种风格供选择。

按文章类型自动推荐

文章类型 第一推荐 第二推荐 第三推荐
AI工具评测 极简专业 编辑杂志 数据信息图
技术教程 极简专业 手绘白板 编辑杂志
产品发布 编辑杂志 大字报 极简专业
深度分析 编辑杂志 数据信息图 极简专业
个人故事 Snoopy温暖漫画 温暖叙事 编辑杂志
行业观察 大字报 编辑杂志 数据信息图

向用户展示 3 个推荐风格,每个包含:

  • 风格名 + 一句话描述
  • 适用场景
  • 色彩倾向

问用户:选哪个风格?或者你有自己想要的参考?

完整风格库: references/style-gallery.md


Step 2: 选择生成路径 ✅ 用户确认

根据内容特征推荐路径,向用户展示对比:

Path A: HTML → 截图 Path B: AI 生成
文字准确度 100%(代码控制) 中文可能出错(需验证)
布局控制 像素级精确 AI 自由发挥
视觉创意 中(靠设计能力) 高(AI 有创造力)
API 成本 零(纯本地) 每张消耗 Gemini API
速度 快(几秒) 慢(10-30秒/张)
适合 文字多、数据多、清单、信息图 封面、氛围图、创意插画
可编辑性 改 HTML 重新截图即可 需要重新生成
深色模式 CSS 直接控制配色 需在 prompt 中声明

Read the full file on GitHub · 433 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 ae55f35424e4
  2. 3mo ago First seen · 432 lines · 103 tokens per session scan B a0012a13dcdb

Subscribe to this mod's changes

huashu-wechat-image is a skill published in the GitHub repository alchaincyf/huashu-skills (2,363 stars, last pushed 2d ago), licensed MIT. It adds 103 tokens to every session and 4,528 once invoked, about $0.0004 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-wechat-image compared with skills from other repositories

huashu-wechat-image next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
huashu-wechat-imagealchaincyf/huashu-skillsSkill2.4k2d agoMITB103Claude 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