Wechat Article Formatter
BND-1/wechat_article_skills
将Markdown文章转换为美化的HTML格式,适配微信公众号发布。应用专业CSS样式、代码高亮、优化排版。当用户说"美化这篇文章"、"转换为HTML"、"优化公众号格式"、"生成公众号HTML"时使用。
微信公众号文章的发布管道——封面生成、本地图片上传素材库、创建草稿、发布草稿、以及从 mp.weixin URL 提取原文。触发场景:用户说 "发到公众号草稿箱" / "推送到公众号" / "做张公众号封面" / "上传图片到微信" / "把这篇文章提取成 markdown" / "改写这篇 mp.weixin 链接(的提取部分)" / 任何提到「发布 / 草稿 / 封面 / 推送 /…
$ npx skills add YiShu5/claude-skills --skill wechat-publisher -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install YiShu5/claude-skills wechat-publisher --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/YiShu5/claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/wechat-publisher .claude/skills/wechat-publisher && 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 "wechat-publisher" agent skill from https://github.com/YiShu5/claude-skills/tree/master/skills/wechat-publisher into .claude/skills/wechat-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-publisher", 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/YiShu5/claude-skills/tree/master/skills/wechat-publisherType 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 YiShu5/claude-skills --skill wechat-publisher -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install YiShu5/claude-skills wechat-publisher --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/YiShu5/claude-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/wechat-publisher .agents/skills/wechat-publisher && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "wechat-publisher" agent skill from https://github.com/YiShu5/claude-skills/tree/master/skills/wechat-publisher into .agents/skills/wechat-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-publisher", 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 YiShu5/claude-skills --skill wechat-publisher -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install YiShu5/claude-skills wechat-publisher --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/YiShu5/claude-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/wechat-publisher .cursor/skills/wechat-publisher && 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 "wechat-publisher" agent skill from https://github.com/YiShu5/claude-skills/tree/master/skills/wechat-publisher into .cursor/skills/wechat-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-publisher", 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/YiShu5/claude-skills.git --path skills/wechat-publisher--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 YiShu5/claude-skills --skill wechat-publisher -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install YiShu5/claude-skills wechat-publisher --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/YiShu5/claude-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/wechat-publisher .gemini/skills/wechat-publisher && 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 "wechat-publisher" agent skill from https://github.com/YiShu5/claude-skills/tree/master/skills/wechat-publisher into .gemini/skills/wechat-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-publisher", 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 YiShu5/claude-skills wechat-publisherInstalls 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 YiShu5/claude-skills --skill wechat-publisher -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/YiShu5/claude-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/wechat-publisher .github/skills/wechat-publisher && 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 "wechat-publisher" agent skill from https://github.com/YiShu5/claude-skills/tree/master/skills/wechat-publisher into .github/skills/wechat-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-publisher", 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 YiShu5/claude-skills --skill wechat-publisher -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install YiShu5/claude-skills wechat-publisher --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/YiShu5/claude-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/wechat-publisher .opencode/skills/wechat-publisher && 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 "wechat-publisher" agent skill from https://github.com/YiShu5/claude-skills/tree/master/skills/wechat-publisher into .opencode/skills/wechat-publisher/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "wechat-publisher", 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.
wechat-publisher微信公众号文章的发布管道——封面生成、本地图片上传素材库、创建草稿、发布草稿、以及从 mp.weixin URL 提取原文。触发场景:用户说 "发到公众号草稿箱" / "推送到公众号" / "做张公众号封面" / "上传图片到微信" / "把这篇文章提取成 markdown" / "改写这篇 mp.weixin 链接(的提取部分)" / 任何提到「发布 / 草稿 / 封面 / 推送 /…
Wechat Publisher is an agent skill from YiShu5/claude-skills. 微信公众号文章的发布管道——封面生成、本地图片上传素材库、创建草稿、发布草稿、以及从 mp.weixin URL 提取原文。触发场景:用户说 "发到公众号草稿箱" / "推送到公众号" / "做张公众号封面" / "上传图片到微信" / "把这篇文章提取成 markdown" / "改写这篇 mp.weixin 链接(的提取部分)" / 任何提到「发布 / 草稿 / 封面 / 推送 / 提取微信文章」的请求。本 skill 不写文章(交给 wechat-writer),不做 markdown → html 排版(交给 wechat-formatter)——它只处理图片生成、文件上传、微信 API 调用。
Its SKILL.md is about 950 tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files, including scripts and reference files (for example `reader/extract_and_convert.js`, `reader/package-lock.json` and `reader/package.json`).
It sits in Productivity & Automation, covering Messaging and chat bots and Linting and formatting. It works with WeChat. The repository describes itself as: Battle-tested coding-agent skills for product, content, writing, presentations, and workflow automation. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 38bd735. 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 7 files in scripts/ (Python and JavaScript), which the agent can run.
Shell commands in SKILL.md call:
python3From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
mp.weixin.qq.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
WECHAT_APP_SECRETDASHSCOPE_API_KEYDOUBAO_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Wechat Publisher loads about 951 tokens when it runs, and up to ~5.2k if it reads all its reference files. Until then it costs about 84 tokens; SKILL.md has 223 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 noted patterns worth knowing about, such as sudo or a known installer.
source <(grep -E '^WECHAT_' .env | sed 's/^/export /')凭证只写进 `.env`(已 gitignore)。### 脚本对 `.env` 的支持| 脚本 | 支持 `.env` | 不支持 → CLI 必传 |t.py` 前,**先 `source <(grep -E '^WECHAT_' .env | sed 's/^/export /')`** 把凭证拼成环境变量,不要让用户重复输。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 YiShu5/claude-skills at commit 38bd735, republished under its MIT licence (© YiShu5). 223 words, ~951 tokens.
.claude/skills/wechat-publisher/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.只负责跟微信 API 打交道的部分:封面生成 / 图片上传 / 草稿创建 / 草稿发布 / 文章提取。
前提:你已经用 wechat-writer 写好 markdown,用 wechat-formatter 转成了 html。
# 0. 加载凭证
source <(grep -E '^WECHAT_' .env | sed 's/^/export /')
# 1. 生成封面图(五要素 prompt 见 references/image-prompts.md)
python3 scripts/generate_cover.py \
--prompt "<五要素 prompt>" \
--output cover.jpg
# 2. 上传封面到微信永久素材
python3 scripts/upload_material.py \
--app_id "$WECHAT_APP_ID" --app_secret "$WECHAT_APP_SECRET" \
--image_path cover.jpg
# 输出: thumb_media_id=THUMB_XXX
# 3. 创建草稿
python3 scripts/create_draft.py \
--title "文章标题" \
--content "$(cat drafts/article.html)" \
--thumb_media_id "THUMB_XXX" \
--author "意疏"
# 4. (可选)直接发布
python3 scripts/publish_draft.py \
--app_id "$WECHAT_APP_ID" --app_secret "$WECHAT_APP_SECRET" \
--media_id "MEDIA_XXX"**默认到 step 3 就停——保留为草稿,让用户登录公众号后台预览再决定是否发布。**只有用户明确说"直接发"才执行 step 4。
python3 scripts/extract_to_markdown.py \
"https://mp.weixin.qq.com/s/xxx" \
-o drafts/extracted.md输出为 Markdown,交给 wechat-writer 改写——本 skill 不负责改写,只负责提取。
python3 scripts/publish_article.py \
--input article.md \
--title "文章标题" \
--author "意疏"这个脚本会内部调用排版 + 封面 + 上传 + 草稿。适合用户明确说"一条命令直接给我发草稿箱"时用。
如果用户对中间产物(封面 / 配图 / 排版)有要求,不要走 orchestrator,改用工作流 1 分步执行。
禁止写「科技风格插画」「为文章 XX 生成封面」这种空泛 prompt。详见 references/image-prompts.md。
五要素(中文逗号分隔,顺序固定):
references/image-prompts.md 的 9 种风格映射表2.35:1 横向构图,主体居中偏左,右上角嵌入小字「意疏的AI口袋」,中部区域小字「<标题关键词 3-5 字>」(避开底部 15% 遮挡区)画面主体不要出现任何文字、字母、汉字,水印、logo、签名如果用户明确要"发布模式 + 配图",生成 3 张配图,按故事弧线:
| 序号 | 定位 | 元素 |
|---|---|---|
| 1 | 痛点 | 文章开头的困境/焦虑具象化 |
| 2 | 转折 | 解决方案出现的关键时刻/工具 |
| 3 | 升华 | 文章结尾的理想状态/成果 |
3 张 prompt 必须互不相同,禁止复用模板。
凭证只写进 .env(已 gitignore)。
| 变量 | 必填 | 来源 |
|---|---|---|
WECHAT_APP_ID | ✅ | mp.weixin.qq.com → 开发 → 基本配置 |
WECHAT_APP_SECRET | ✅ | 同上 |
DASHSCOPE_API_KEY | 二选一 | 千问(推荐),dashscope.console.aliyun.com |
DOUBAO_API_KEY | 二选一 | 豆包,console.volc.com/iam/keylist |
IMAGE_PROVIDER | 可选 | qwen(默认) / doubao |
.env 的支持| 脚本 | 支持 .env | 不支持 → CLI 必传 |
|---|---|---|
generate_cover.py | ✅ 完全免参 | — |
create_draft.py | ✅ 回退 | — |
publish_article.py | ✅ 全部 | — |
extract_to_markdown.py | ✅ 不需要凭证 | — |
upload_material.py | ❌ | --app_id --app_secret |
publish_draft.py | ❌ | --app_id --app_secret |
Agent 实践:调 upload_material.py / publish_draft.py 前,先 source <(grep -E '^WECHAT_' .env | sed 's/^/export /') 把凭证拼成环境变量,不要让用户重复输。
如果 Markdown 里有  这种本地图片路径:
upload_material.py 把图片上传到微信永久素材url,替换 Markdown 里的本地路径否则 HTML 粘到微信编辑器图片会裂。
| 文档 | 何时读 |
|---|---|
references/image-prompts.md | 写封面 / 配图 prompt 时 |
references/wechat-api.md | 微信 API 返回错误码,看不懂时 |
references/examples.md | 想看完整 bash 例子时 |
© YiShu5, MIT. 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 13 other files (scripts, references) in skills/wechat-publisher of YiShu5/claude-skills.
Open the folder on GitHubat commit 38bd735
Wechat 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 Publisher this skillYiShu5/claude-skills | 132 | — | ~951 | Automated safety check: Notes | MIT | |
| Wechat Article FormatterBND-1/wechat_article_skills | 318 | — | ~1.5k | Automated safety check: Notes | None | |
| Wechat FormatterJianing1117/jianing-skills | 329 | — | ~4.5k | Automated safety check: Pass | None | |
| Wechat Article Formatterhuangserva/servasyy_skills | 168 | — | ~688 | Automated safety check: Notes | None | |
| She Love Me863401402/she-love-me | 931 | 1 repos | ~1.3k | Automated safety check: Pass | MIT | |
| Wechat Article Extractorfreestylefly/wechat-article-extractor-skill | 136 | 1 repos | ~1k | Automated safety check: Pass | None |
BND-1/wechat_article_skills
将Markdown文章转换为美化的HTML格式,适配微信公众号发布。应用专业CSS样式、代码高亮、优化排版。当用户说"美化这篇文章"、"转换为HTML"、"优化公众号格式"、"生成公众号HTML"时使用。
Jianing1117/jianing-skills
把一篇 Markdown 格式的文章转成可直接粘贴到微信公众号编辑器的 HTML 推文 + 900x383px 封面图片,严格遵循「加宁慢慢来」品牌视觉规范 v7.0。当用户说"排版公众号""帮我生成推文""把这篇文章转成公众号格式""做微信封面""WeChat Article Formatter""WeChat…
huangserva/servasyy_skills
将 Markdown 文章转换为微信公众号 HTML 格式,支持自动插入配图、微信样式优化. An agent skill from huangserva/servasyy_skills.
863401402/she-love-me
Acquire, import, and analyze WeChat or QQ chat histories, including installing supported exporters, guiding required login or contact selection, converting exports, assessing relationship dynamics…
freestylefly/wechat-article-extractor-skill
Extract metadata and content from WeChat Official Account articles.
chenjin-cmd/wechat-miniprogram-builder
This skill should be used when the user wants to build, launch, monetize, or promote a WeChat mini-program with AI (vibe coding) — including topic selection, account registration & ICP filing…
YiShu5/claude-skills
Low-noise self-improvement skill. An agent skill from YiShu5/claude-skills.
YiShu5/claude-skills
把 Markdown 文稿转换成微信公众号可用的内联样式 HTML。触发场景:用户说 "把 markdown 转成公众号能用的 HTML" / "排版一下这篇文章" / "套个主题" / "微信编辑器不识别我的样式" / 任何提到「公众号排版 / 微信 HTML / md 转 html / doocs 主题」的请求。微信编辑器不识别 <style 标签,必须把所有 CSS 内联到每个 HTML…
YiShu5/claude-skills
Clawd 像素风动画生成器。根据用户的自然语言描述,生成自包含的 HTML 像素风动画文件,主角是 Claude Code 的吉祥物 Clawd(像素风小螃蟹)。当用户提到 clawd、clawd 动画、像素动画、pixel animation、给 clawd 做一个小动画、让小螃蟹做某事、或任何涉及为 Clawd 角色创建动画场景的需求时,务必使用此…
YiShu5/claude-skills
A skill your agent uses when drafting, rewriting, reviewing, or planning Chinese long-form content for public accounts, blogs, newsletters, professional analysis, product or technical writing…
YiShu5/claude-skills
协助意疏写「意疏的AI口袋」公众号文章。Claude 是协作者不是写手——voice 必须从意疏嘴里出来,AI 负责结构化、扩写、降 AI 味。触发:写公众号文章 / 帮我整理口述 / 有素材但想不清 / 这段 AI 味太重 / 看看有没有意疏味道 / 帮我把骨架写成文章。输出 Markdown,排版找 wechat-formatter,发布找 wechat-publisher。
YiShu5/claude-skills
Clawd 像素风动画生成器(轻量版)。根据用户的自然语言描述,生成1-3秒的简短clawd动画,当用户的需求的互动场景较为具体和单一,请采用轻量版本生成token消耗少、生成速度快的HTML像素风动画文件。主角是 Claude Code 的吉祥物 Clawd(像素风小螃蟹)。当用户提到 clawd、clawd 动画、像素动画、pixel animation、给 clawd…
Works with
Categories
微信公众号文章的发布管道——封面生成、本地图片上传素材库、创建草稿、发布草稿、以及从 mp.weixin URL 提取原文。触发场景:用户说 "发到公众号草稿箱" / "推送到公众号" / "做张公众号封面" / "上传图片到微信" / "把这篇文章提取成 markdown" / "改写这篇 mp.weixin 链接(的提取部分)" / 任何提到「发布 / 草稿 / 封面 / 推送 /…. Wechat Publisher is an agent skill from YiShu5/claude-skills.
Wechat Publisher fits situations like: tasks that involve Messaging and chat bots; tasks that involve Linting and formatting.
Run `npx skills add YiShu5/claude-skills --skill wechat-publisher -a claude-code`. Or copy the skill folder (skills/wechat-publisher in YiShu5/claude-skills) into .claude/skills/wechat-publisher in your project. Claude Code loads it when a task matches its description.
Run `npx skills add YiShu5/claude-skills --skill wechat-publisher -a codex`. Or copy the skill folder (skills/wechat-publisher in YiShu5/claude-skills) into .agents/skills/wechat-publisher 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 YiShu5/claude-skills --skill wechat-publisher -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wechat-publisher, .gemini/skills/wechat-publisher, .github/skills/wechat-publisher and .opencode/skills/wechat-publisher in your project.
Going by SKILL.md and its folder, Wechat Publisher needs Python and JavaScript for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named WECHAT_APP_SECRET, DASHSCOPE_API_KEY and DOUBAO_API_KEY. Our summary lists: Python 3; Node.js; A credential in WECHAT_APP_SECRET; A credential in DASHSCOPE_API_KEY.
SKILL.md names 1 domain. In commands or code: mp.weixin.qq.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. 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 Publisher is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 951 tokens (SKILL.md is roughly 3.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.3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Wechat Publisher: Wechat Article Formatter (BND-1/wechat_article_skills, 318 stars), Wechat Formatter (Jianing1117/jianing-skills, 329 stars), Wechat Article Formatter (huangserva/servasyy_skills, 168 stars) and She Love Me (863401402/she-love-me, 931 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
YiShu5 (a GitHub user) maintains it in YiShu5/claude-skills, which has 132 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 20, 2026.
Source: YiShu5/claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.