WeChat Article Publisher
iamzifei/wechat-article-publisher-skill
Publishes Markdown or HTML articles as drafts to a WeChat Official Account through an API client, with a first-time user walkthrough.
Publishes a finished article and its images directly to a WeChat official account through its official API, as a draft or a live broadcast.
SKILL.md written in Chinese; this summary is our English description.
$ npx skills add aiworkskills/wechat-article-skills --skill aws-wechat-article-publish -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install aiworkskills/wechat-article-skills aws-wechat-article-publish --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/aiworkskills/wechat-article-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/aws-wechat-article-publish .claude/skills/aws-wechat-article-publish && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "aws-wechat-article-publish" agent skill from https://github.com/aiworkskills/wechat-article-skills/tree/main/skills/aws-wechat-article-publish into .claude/skills/aws-wechat-article-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aws-wechat-article-publish", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/aiworkskills/wechat-article-skills/tree/main/skills/aws-wechat-article-publishType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add aiworkskills/wechat-article-skills --skill aws-wechat-article-publish -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install aiworkskills/wechat-article-skills aws-wechat-article-publish --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aiworkskills/wechat-article-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/aws-wechat-article-publish .agents/skills/aws-wechat-article-publish && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "aws-wechat-article-publish" agent skill from https://github.com/aiworkskills/wechat-article-skills/tree/main/skills/aws-wechat-article-publish into .agents/skills/aws-wechat-article-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aws-wechat-article-publish", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aiworkskills/wechat-article-skills --skill aws-wechat-article-publish -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install aiworkskills/wechat-article-skills aws-wechat-article-publish --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aiworkskills/wechat-article-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/aws-wechat-article-publish .cursor/skills/aws-wechat-article-publish && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "aws-wechat-article-publish" agent skill from https://github.com/aiworkskills/wechat-article-skills/tree/main/skills/aws-wechat-article-publish into .cursor/skills/aws-wechat-article-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aws-wechat-article-publish", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/aiworkskills/wechat-article-skills.git --path skills/aws-wechat-article-publish--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add aiworkskills/wechat-article-skills --skill aws-wechat-article-publish -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install aiworkskills/wechat-article-skills aws-wechat-article-publish --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aiworkskills/wechat-article-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/aws-wechat-article-publish .gemini/skills/aws-wechat-article-publish && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "aws-wechat-article-publish" agent skill from https://github.com/aiworkskills/wechat-article-skills/tree/main/skills/aws-wechat-article-publish into .gemini/skills/aws-wechat-article-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aws-wechat-article-publish", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install aiworkskills/wechat-article-skills aws-wechat-article-publishInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add aiworkskills/wechat-article-skills --skill aws-wechat-article-publish -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/aiworkskills/wechat-article-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/aws-wechat-article-publish .github/skills/aws-wechat-article-publish && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "aws-wechat-article-publish" agent skill from https://github.com/aiworkskills/wechat-article-skills/tree/main/skills/aws-wechat-article-publish into .github/skills/aws-wechat-article-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aws-wechat-article-publish", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aiworkskills/wechat-article-skills --skill aws-wechat-article-publish -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install aiworkskills/wechat-article-skills aws-wechat-article-publish --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aiworkskills/wechat-article-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/aws-wechat-article-publish .opencode/skills/aws-wechat-article-publish && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "aws-wechat-article-publish" agent skill from https://github.com/aiworkskills/wechat-article-skills/tree/main/skills/aws-wechat-article-publish into .opencode/skills/aws-wechat-article-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aws-wechat-article-publish", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
aws-wechat-article-publishPublishes a finished article and its images directly to a WeChat official account through its official API, as a draft or a live broadcast.
It uploads the article's HTML and image files straight to WeChat's servers, exchanging an app id and secret for an access token that is cached in memory only for the process's lifetime and never written to disk; cover and body images go up through the material-upload endpoint while the article body, title and summary go up as a JSON post to the draft or publish endpoint. Credentials come from named slots in a local environment file, and the API host can be repointed at a proxy through a config setting when needed.
Before any upload it runs through a shared first-time setup check across the whole article toolkit, unless the user has explicitly said in writing to skip that check for this run. Oversized images get a compressed copy written alongside the original, which a bundled dependency produces but which the script never cleans up or uploads as the real content image. The documented recommendation is a first run with draft-only publishing to confirm the result before switching to a real broadcast, and a separate full command chains cover upload, body-image upload, draft creation and publishing together depending on configuration.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ca036f7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 3 files in scripts/ (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
WeChat Official Account Publisher loads about 1.5k tokens when it runs, and up to ~5.6k if it reads all its reference files. Until then it costs about 79 tokens; SKILL.md has 284 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from aiworkskills/wechat-article-skills at commit ca036f7, republished under its Apache-2.0 licence (© aiworkskills). 284 words, ~1,456 tokens.
.claude/skills/aws-wechat-article-publish/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.公众号 API 直连发布 —— 图文入草稿箱或直接群发,素材上传、发布前检查一站式完成。
套件说明 · 本 skill 属
aws-wechat-article-*一条龙套件(共 9 个 slug,入口aws-wechat-article-main)。跨 skill 的相对引用依赖同一skills/目录,建议一并clawhub install全套。源码:https://github.com/aiworkskills/wechat-article-skills
本 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 只在进程内存短期缓存,不落盘material/add_material;article.html 正文与标题/摘要以 JSON POST 发给 draft/add、freepublish/submitapi.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{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 |
publish_method(以 .aws-article/config.yaml 为准)⛔| 值 | 含义 | full 的行为 |
|---|---|---|
draft(默认) | 只进草稿箱 | 创建草稿后不调 freepublish |
published | 草稿 + 提交发布 | 创建草稿后继续提交发布(异步)。full --publish 可在 draft 下单次强制带发布 |
none | 用户明确不填微信 | 立即退出,不调任何微信接口(--publish 也被忽略)。其它子命令仍要凭证 |
{python} {baseDir}/scripts/publish.py accounts,把 config.yaml 的 wechat_accounts + wechat_{i}_name 列给用户(例如「您有 2 个账号:1. xiaoming,2. xiaoz」)。必须请用户选一个,不要替他挑。config.yaml 的 wechat_publish_slot: <整数>,或命令行 --account <序号或名称>(CLI 优先)。槽位的数量与名称只来自 config.yaml;aws.env 里只有凭证。字段说明见 articlescreening-schema.md。
publish_completed 门禁 ⛔字段在本篇 article.yaml。publish.py 不读、不改,由智能体维护:false = 发布流程未闭环,true = 已视为发布完成。
写回 true 之前,四项缺一不可:
article.html 存在;cover.(png|jpg|jpeg|webp)(不在 imgs/ 里);article.md 与 article.html 中均不含 placeholder;media_id 或 publish_id)。任一不满足:只可标记为「已提交草稿,未闭环」,不得写回 publish_completed: true。
封面裁剪框(2.35:1 / 1:1)的细则见 branches.md「三」。
发布进度:
- [ ] 第0步:⛔ 配置检查;用户未给路径 → 先定目录并读 publish_completed 分流
- [ ] 第1步:读 config.yaml 的 publish_method(及是否 full --publish)
- [ ] 第2步:accounts 列账号 → ⛔ 请用户选槽位 → check-wechat-env 校验凭证
- [ ] 第3步:发布前检查(pre-publish-checklist + check-screening + check)
- [ ] 第4步:确认本篇目录产物齐全(article.html、cover.*、无 placeholder)
- [ ] 第5步:full(仅草稿或含发布,视第 1 步)
- [ ] 第6步:确认回执并向用户说明
- [ ] 第7步:⛔ 四项门禁全过 → 写回 publish_completed: true第 0 步的分流表见 branches.md「一」;第 3 步清单见 references/pre-publish-checklist.md;第 5/6 步失败时的四类处理见 branches.md「二」。
{python} {baseDir}/scripts/publish.py check-screening
{python} {baseDir}/scripts/publish.py check-wechat-env
{python} {baseDir}/scripts/publish.py accounts
{python} {baseDir}/scripts/publish.py check
{python} {baseDir}/scripts/publish.py --account 1 full drafts/YYYYMMDD-标题slug/
{python} {baseDir}/scripts/getdraft.py published-fields注意 --account 是全局选项,放在子命令之前。
未给路径的分流、发布失败四分类、封面裁剪框、几处回退、往期链接补齐、单独安装 → references/branches.md。
更多用法:usage.md、submit-guide.md、api-reference.md。
| 读取 | 产出 |
|---|---|
article.html、cover.*、imgs/、本篇 article.yaml、.aws-article/config.yaml、aws.env | 公众号草稿或已提交发布;成功后由智能体把 publish_completed: true 写回 article.yaml(publish.py 不改此键) |
© aiworkskills, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 9 other files (scripts, references) in skills/aws-wechat-article-publish of aiworkskills/wechat-article-skills.
Open the folder on GitHubat commit ca036f7
WeChat Official Account Publisher next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| WeChat Official Account Publisher this skillaiworkskills/wechat-article-skills | 672 | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| WeChat Article Publisheriamzifei/wechat-article-publisher-skill | 157 | — | ~2.6k | Automated safety check: Notes | MIT | |
| Wechat Publishersakuraoxo-clio/wechat-publisher | 115 | — | ~1.4k | Automated safety check: Notes | MIT | |
| Media WritershareAI-lab/lab-skills | 315 | — | ~870 | Automated safety check: Pass | Apache-2.0 | |
| Baoyu Post To Wechataiskillstore/marketplace | 433 | — | ~649 | Automated safety check: Pass | None | |
| Canghe Post To Wechatfreestylefly/canghe-skills | 461 | 3 repos | ~3.4k | Automated safety check: Notes | None |
iamzifei/wechat-article-publisher-skill
Publishes Markdown or HTML articles as drafts to a WeChat Official Account through an API client, with a first-time user walkthrough.
sakuraoxo-clio/wechat-publisher
把文章排版成微信公众号合规 HTML、自动上传图片、可选自动生成封面图,并通过官方 API 一键写入公众号草稿箱,用户只需在后台预览后发布。优先用组件化手写 HTML 做精排版,也支持 Markdown 快速排版。当用户提到「发布公众号」「推送到草稿箱」「公众号排版」「post to wechat」「微信公众号文章」时使用。
shareAI-lab/lab-skills
Create platform-native content that resonates with each community's culture.
aiskillstore/marketplace
Post content to WeChat Official Account (微信公众号). An agent skill from aiskillstore/marketplace.
freestylefly/canghe-skills
Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP.
flaqai/backlink_skills
微信公众号文章的选题、研究、写作、改稿、审稿与交付工作流。Use when creating, outlining, researching, rewriting, auditing, or packaging Chinese WeChat Official Account articles, 微信文章, 公众号推文, 公众号长文, 热点解读, 干货教程, 观点文, 故事文, 对比测评…
aiworkskills/wechat-article-skills
Manages a local business-material library and .aws preset packs for a WeChat official-account article workflow, including product images and theme presets.
aiworkskills/wechat-article-skills
Converts a Markdown WeChat article draft into themed, paste-ready HTML, with no network calls or credentials and a choice of built-in visual templates.
aiworkskills/wechat-article-skills
Chinese-language skill that generates a WeChat article's cover image and in-body illustrations by calling an external image API, matching art style to the article's content.
aiworkskills/wechat-article-skills
Orchestrates the full WeChat official account workflow from topic to draft, chaining sub-skills for writing, review, layout, images and publishing.
aiworkskills/wechat-article-skills
Rewrites, continues, or polishes an existing WeChat article draft using a configurable language model, sending the full draft text to that endpoint.
aiworkskills/wechat-article-skills
Local, offline pre-publish review for a WeChat official account article: sensitive words, typos and platform compliance, producing an actionable fix list.
Works with
Categories
Publishes a finished article and its images directly to a WeChat official account through its official API, as a draft or a live broadcast. It uploads the article's HTML and image files straight to WeChat's servers, exchanging an app id and secret for an access token that is cached in memory only for the process's lifetime and never written to disk; cover and body images go up through the material-upload endpoint while the article body, title and summary go up as a JSON post to the draft or publish endpoint. Credentials come from named slots in a local environment file, and the API host can be repointed at a proxy through a config setting when needed.
WeChat Official Account Publisher fits situations like: publishing a finished WeChat article and its images via the API; pushing an article into the official account's draft box first; checking the WeChat API credentials and slots before publishing.
Run `npx skills add aiworkskills/wechat-article-skills --skill aws-wechat-article-publish -a claude-code`. Or copy the skill folder (skills/aws-wechat-article-publish in aiworkskills/wechat-article-skills) into .claude/skills/aws-wechat-article-publish in your project. Claude Code loads it when a task matches its description.
Run `npx skills add aiworkskills/wechat-article-skills --skill aws-wechat-article-publish -a codex`. Or copy the skill folder (skills/aws-wechat-article-publish in aiworkskills/wechat-article-skills) into .agents/skills/aws-wechat-article-publish in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aiworkskills/wechat-article-skills --skill aws-wechat-article-publish -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aws-wechat-article-publish, .gemini/skills/aws-wechat-article-publish, .github/skills/aws-wechat-article-publish and .opencode/skills/aws-wechat-article-publish in your project.
Going by SKILL.md and its folder, WeChat Official Account Publisher needs Python for the scripts in its folder. Our summary lists: A WeChat official account with API access; App id and secret stored in a local environment file; Pillow, for compressing oversized images.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
WeChat Official Account Publisher is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.1k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with WeChat Official Account Publisher: WeChat Article Publisher (iamzifei/wechat-article-publisher-skill, 157 stars), Wechat Publisher (sakuraoxo-clio/wechat-publisher, 115 stars), Media Writer (shareAI-lab/lab-skills, 315 stars) and Baoyu Post To Wechat (aiskillstore/marketplace, 433 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
aiworkskills (a GitHub user) maintains it in aiworkskills/wechat-article-skills, which has 672 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on September 23, 2026.
Source: aiworkskills/wechat-article-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.