aws-wechat-article-publish

aws-wechat-article-publish is a skill for Claude Code, Codex from aiworkskills/wechat-article-skills. It costs 150 tokens per session (2,473 once invoked), scanned A, original, Apache-2.0.

A publishing tool that connects to the official WeChat public-account API to upload article images and place an article in the draft box or publish it. WeChat is the Chinese platform where public accounts distribute articles to followers.

In plain words
What is it for?
Use it to upload a cover and illustrations, create a WeChat draft, run pre-publication checks, or submit an article for direct distribution using configured account credentials.
Why use it?
It removes the need to upload and submit each article manually through WeChat’s interface. A draft mode lets you check the result before switching to direct publication.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to upload a cover and illustrations, create a WeChat draft, run pre-publication checks, or submit an article for direct distribution using configured account credentials.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiworkskills/wechat-article-skills/aws-wechat-article-publish
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 aiworkskills/wechat-article-skills --skill aws-wechat-article-publish
Clone the repo
git clone --depth 1 https://github.com/aiworkskills/wechat-article-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 aws-wechat-article-publish

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiworkskills/wechat-article-skills/aws-wechat-article-publish"><img src="https://agentmods.dev/badge/skills/aiworkskills/wechat-article-skills/aws-wechat-article-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,473 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. Third-party audits
  • NVIDIA SkillSpector pass 7 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.00150 $0.02473
Opus 5.5 $0.00060 $0.00989
Sonnet 5.5 $0.00030 $0.00495
Haiku 4.5 $0.00015 $0.00247

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

Security

Grade A, and why

aws-wechat-article-publish 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 2mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/article_init.py, scripts/getdraft.py, scripts/publish.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.

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.

skills/aws-wechat-article-publish/SKILL.md · 133 lines

How it starts

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

发布

公众号 API 直连发布 —— 图文入草稿箱或直接群发,素材上传、发布前检查一站式完成。

套件说明 · 本 skill 属 aws-wechat-article-* 一条龙套件(共 9 个 slug,入口 aws-wechat-article-main)。跨 skill 的相对引用依赖同一 skills/ 目录,建议一并 clawhub install 全套。源码:https://github.com/aiworkskills/wechat-article-skills

能力披露(Capabilities)

本 skill 调 publish.py 直连微信公众号官方 API 发布图文。会把本篇 article.html 与 imgs/* 文件作为 POST body 上传到微信服务器。

  • 凭证读取:aws.env 的 WECHAT_{N}_APPID / WECHAT_{N}_APPSECRET(多槽位,N≥1)
  • 凭证外发:APPID / APPSECRET 以 query string 发给 api.weixin.qq.com/cgi-bin/token 换 access_token;后续请求带 access_token。微信返回的 token 只在进程内存短期缓存,不落盘
  • 内容外发:封面与正文插图以 multipart 发给 material/add_material;article.html 正文与标题/摘要以 JSON POST 发给 draft/add、freepublish/submit
  • 网络目标:默认 api.weixin.qq.com;可用 WECHAT_{N}_API_BASE / config.yaml.wechat_api_base 自配反代
  • 文件读:.aws-article/config.yaml、aws.env、本篇 article.yaml、article.html、imgs/*
  • 文件写:
    • publish.py 不写 article.yaml——media_id / publish_id / publish_completed 只打印,写回由智能体做(见下「publish_completed 门禁」)
    • 图片超过微信大小限制时会在源图旁生成压缩缓存 <原名>_compressed.jpg(需 Pillow)。这个文件不会被自动清理,也不会被当作正文图上传
    • article_init.py 写本篇 article.yaml 与可选 closing.md
  • shell:{python} {baseDir}/scripts/ 下的 publish.py、getdraft.py、article_init.py

建议:首次运行用 publish_method: draft 只入草稿箱确认效果,再切 published 真正群发。

路由

从选题到发出整条流程 → aws-wechat-article-main。本 skill 单独触发适用于已有 article.html 与封面、只差最后一步上传的场景。

配置检查 ⛔

任何操作前先按 首次引导 · 检测顺序 执行,通过后才继续(或用户明确书面确认「本次不检查」)。单独安装本 skill 时的口径见 branches.md「六」。

脚本与子命令

{baseDir} = 本 SKILL.md 所在目录,所有命令在仓库根执行。

脚本 / 子命令 用途
article_init.py 初始化或更新本篇 article.yaml(及可选 closing.md)。{python} {baseDir}/scripts/article_init.py <文章目录> [--title … --author … --digest …]
getdraft.py 查已群发文章(published-list / published-fields / publish-get / article-get),用于补齐往期推荐链接。见 branches.md「五」
check-screening 校验 config.yaml 的 publish_method
check-wechat-env 按 config.yaml 槽位检查 aws.env 的 WECHAT_N_APPID / APPSECRET 是否已填
check 环境检查:aws.env、各槽位、依赖、可选探测 token
accounts 列出 config.yaml 中各槽位名称,并标记 aws.env 缺项
full 一键全流程(上传封面 → 上传正文图 → 建草稿 → 视配置提交发布)
token / upload-thumb / upload-content-image / create-draft / publish / status 分步操作,见 usage.md

Read the full file on GitHub · 133 lines

Files

What ships with it

9 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. 2mo ago Changed · -35 lines f14d21012c63
  2. 2mo ago Changed · +6 lines 3faf8c609791
  3. 3mo ago First seen · 162 lines · 150 tokens per session scan A 17e3fffaef9a

Subscribe to this mod's changes

aws-wechat-article-publish is a skill published in the GitHub repository aiworkskills/wechat-article-skills (778 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 150 tokens to every session and 2,473 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

aws-wechat-article-publish compared with skills from other repositories

aws-wechat-article-publish next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aws-wechat-article-publishaiworkskills/wechat-article-skillsSkill7782mo agoApache-2.0A150Claude Code, Codex
larry-playbookoyi77/1ai-skillsSkill19todayMITA50Claude Code
stop-slop-zhpencil20388-eng/stop-slop-zhSkill546mo agoMITA0Claude Code, Codex
shuorenhuatentenco/shuorenhua-zh-twSkill124mo agoMITA130Claude Code, Codex
anti-slop-uaEverdarkk/anti-slop-uaSkill13mo agoMITA84Claude Code, Codex
thothNirvanaGuha/thothSkill45mo agoMITA211Claude Code
article-qaweitzu-com/ai-article-factorySkill55mo agoApache-2.0A105Claude Code