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.
npx skills add Zhangs-11/zs-skills --skill wechat-publishergit clone --depth 1 https://github.com/Zhangs-11/zs-skillsWrote 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.
[](https://agentmods.dev/skills/zhangs-11/zs-skills/wechat-publisher)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 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.]
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.
- .gitignore 97 B
- LICENSE 1.0 KB
- README.md 7.3 KB
- scripts/generate_wechat_images.py 19 KB runs code
- tests/test_generate_images_script.py 12 KB runs code
- tools/wechat-publisher/.env.example 129 B
- tools/wechat-publisher/.gitignore 49 B
- tools/wechat-publisher/pyproject.toml 380 B
- tools/wechat-publisher/tests/test_assets.py 4.0 KB runs code
- tools/wechat-publisher/tests/test_cli_helpers.py 7.5 KB runs code
- tools/wechat-publisher/tests/test_client.py 6.0 KB runs code
- tools/wechat-publisher/tests/test_formatter.py 2.9 KB runs code
- tools/wechat-publisher/tests/test_linkcheck.py 2.8 KB runs code
- tools/wechat-publisher/tests/test_publication.py 5.1 KB runs code
- tools/wechat-publisher/tests/test_secure_download.py 4.4 KB runs code
- tools/wechat-publisher/tests/test_token.py 1.2 KB runs code
- tools/wechat-publisher/wechat_publisher/__init__.py 22 B runs code
- tools/wechat-publisher/wechat_publisher/cli.py 9.7 KB runs code
- tools/wechat-publisher/wechat_publisher/client.py 10.0 KB runs code
- tools/wechat-publisher/wechat_publisher/config.py 389 B runs code
- tools/wechat-publisher/wechat_publisher/formatter.py 10 KB runs code
- tools/wechat-publisher/wechat_publisher/image.py 6.1 KB runs code
- tools/wechat-publisher/wechat_publisher/linkcheck.py 2.2 KB runs code
- tools/wechat-publisher/wechat_publisher/models.py 665 B runs code
- tools/wechat-publisher/wechat_publisher/publication.py 4.3 KB runs code
- tools/wechat-publisher/wechat_publisher/secure_download.py 8.0 KB runs code
- tools/wechat-publisher/wechat_publisher/token.py 1.9 KB runs code
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.
- 12d ago First seen · 279 lines · 147 tokens per session scan A fc76a96c15e9
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.
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.
ally-skill
A Chinese-language content-writing guide based on anonymized experiences, observations, and opinions, with business analysis and comedy-style pacing.
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…
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.
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.
chinese-documentation
A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.