wechat-publisher

wechat-publisher is a skill for Claude Code, Codex from Zhangs-11/zs-skills. It costs 147 tokens per session (3,920 once invoked), scanned A, original, MIT.

A tool for turning Markdown articles into drafts in a WeChat public account, a Chinese publishing platform for articles and updates.

In plain words
What is it for?
Use it to format Markdown as WeChat-compatible HTML, upload a cover image when needed, and create a draft through the WeChat API.
Why use it?
It removes the need to manually copy and format an article before saving it to the WeChat draft box, while keeping account credentials in a local configuration file.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to format Markdown as WeChat-compatible HTML, upload a cover image when needed, and create a draft through the WeChat API.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhangs-11/zs-skills/wechat-publisher
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 Zhangs-11/zs-skills --skill wechat-publisher
Clone the repo
git clone --depth 1 https://github.com/Zhangs-11/zs-skills

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhangs-11/zs-skills/wechat-publisher"><img src="https://agentmods.dev/badge/skills/zhangs-11/zs-skills/wechat-publisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,920 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00147 $0.03920
Opus 5 $0.00073 $0.01960
Sonnet 5 $0.00029 $0.00784
Haiku 4.5 $0.00015 $0.00392

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

Security

Grade A, and why

wechat-publisher scanned grade A 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 12d ago.

The scan reads SKILL.md. This mod also ships 21 executable files (scripts/generate_wechat_images.py, tests/test_generate_images_script.py, tools/wechat-publisher/tests/test_assets.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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s ip.sb
wechat-publisher/SKILL.md · 279 lines

How it starts

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

wechat-publisher 公众号发布工具

作者在「卡卡罗特学AI」公众号写文章,写完后需要一键存到微信草稿箱,不用手动复制粘贴。

架构概览

kakarot-writer skill 生成 markdown 文章
       │
       ▼
复用 writer 已交付的正文图 + 21:9 封面
       │(素材缺失时才补图)
       ▼
guizang-social-card-skill 或 scripts/generate_wechat_images.py
       │
       ▼
wechat-publisher create --title "xxx" --content-file xxx.md --cover-file images/<文章名>/cover.jpg
       │
       ├─ formatter.py  →  Markdown → 微信兼容 HTML
       ├─ token.py      →  access_token 缓存管理
       ├─ client.py     →  微信 API HTTP 调用
       └─ 微信服务器     →  草稿箱 +1

安装

仅首次安装时执行。如果用户已经装过,跳过这一步。

1. 安装 Python 包

cd tools/wechat-publisher
python3 -m venv venv
venv/bin/pip install -e .

2. 创建配置文件

~/.wechat-publisher/.env 中写入:

WECHAT_APP_ID=wx你的AppID
WECHAT_APP_SECRET=你的AppSecret
WECHAT_AUTHOR=卡卡罗特学AI
WECHAT_DEFAULT_COVER_MEDIA_ID=你的封面media_id

注意: 密钥在用户本地 ~/.wechat-publisher/.env,不在仓库里。WECHAT_DEFAULT_COVER_MEDIA_ID 先用 wechat-publisher upload-cover 上传一张封面图获取 media_id 再填入。

3. 添加 PATH

如果 wechat-publisher 命令找不到,用全路径:

# 或建立软链接
ln -sf $(pwd)/tools/wechat-publisher/venv/bin/wechat-publisher ~/.local/bin/wechat-publisher

4. IP 白名单

微信 API 要求调用方的公网 IP 在公众号后台白名单中。如果遇到 40164 错误,告诉用户当前 IP 并让用户去 mp.weixin.qq.com → 开发 → 基本配置 → IP 白名单 添加。

工作流

当用户说"写一篇 XX 文章存到公众号"时,必须按以下步骤执行:

第一步:写作

调用 kakarot-writer skill 生成 markdown 文章。

标题、事实边界、文章主线和口语风格以 kakarot-writer 的完整规则为准。发布 skill 不再重复发明另一套写作规则,避免两个 skill 互相冲突。

发布前编辑检查

进入配图前,确认文章已经完成 kakarot-writer 的自检,尤其检查:

  • 标题承诺能被正文证据兑现,没有暗示不存在的实测或独家经历。
  • 没有把推测写成亲历;数据、发布日期、榜单和引用没有未说明的事实缺口。
  • 前三段已经建立事件、阅读理由或作者关系,全文围绕同一条主线推进。
  • 口语来自真实语境,没有为了模仿作者批量堆叠口癖和夸张标点。

如果存在事实缺口,先向用户确认或收窄断言,不要带着问题进入发布流程。

如果 kakarot-writer 已交付正文图片、截图和封面,直接复用,不重新生成或覆盖。仍缺少素材时才保留下列占位标记:

[插图:图片内容描述]
[绘图提示:可复制的英文 prompt,适合 Midjourney / DALL-E / 即梦 等生图工具]

例:

[插图:传统RAG工作流程图]
[绘图提示:A clean technical diagram showing the classic RAG pipeline, flat design with blue and white color scheme, modern minimalist style.]

Read the full file on GitHub · 279 lines

Files

What ships with it

27 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. 12d ago First seen · 279 lines · 147 tokens per session scan A fc76a96c15e9

Subscribe to this mod's changes

wechat-publisher is a skill published in the GitHub repository Zhangs-11/zs-skills (2 stars, last pushed 5d ago), licensed MIT. It adds 147 tokens to every session and 3,920 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

jacky-motion2-0-srt

A workflow for turning a Chinese spoken script and matching SRT subtitle file into a single 16:9 HTML information animation. SRT is a subtitle file that stores text with start and end times; the animation follows those times and adds recorded-screen placeholders when needed.

Jackywxsz/Jacky-motion · 127 tokens

ally-skill

A Chinese-language content-writing guide based on anonymized experiences, observations, and opinions, with business analysis and comedy-style pacing.

allyorfoe7-commits/ALLY-Skill · 136 tokens

create-xiaohongshu-knowledge-carousel

Create complete Chinese Xiaohongshu educational carousel images from a topic, source document, notes, or an existing page concept. Use when Codex must plan every definition and meaning without compressing knowledge points, maintain a recurring character and visual system, directly render fully typeset 3:4 final pages…

Jaimo-so/xiaohongshu-knowledge-carousel-skill · 89 tokens

content-score-and-fix-cn

A Chinese-language content review and editing role for short-video scripts, spoken copy, titles, product content, cover images, and videos up to 60 seconds.

caoproAI/content-score-and-fix-cn · 166 tokens

chinese-git-workflow

A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.

jnMetaCode/superpowers-zh · 69 tokens

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens