A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Claude Code skill for writing and publishing 微信公众号 articles — light-polish editorial + AI cover (题图) + AI illustration (
写并发布微信公众号文章的 Claude Code skill。AI 生成题图和解释图,一行命令把草稿推到公众号后台。
三条原则:
upload-draft.sh 走 md2wechat API:上传封面、生成正文 HTML、建/更新草稿,自动打开后台草稿箱。手机预览后点发布。直接跟 Claude Code 说「写一篇公众号文章,思路是…」或 /wjs-publishing-wechat,把草稿粘进来。skill 会问 1–2 个问题,然后产出文章目录:
articles/2026-05-09-my-slug/
├── original.md # 你的原始输入(备份)
├── article.md # 轻润色后的 markdown
├── cover.png # 题图 900×383(严格 2.35:1)
├── illustration.png # 解释图(比例由模型按内容定)
├── meta.json # title / summary / author / slug
├── content.html # 生成的正文 HTML
└── draft.json # 提交给 md2wechat 的草稿体
三个脚本分别管配图和发布:
DIR=articles/YYYY-MM-DD-slug
# 题图(2.35:1,自动裁到 900×383)
~/.claude/skills/wjs-publishing-wechat/scripts/gen-cover-ai.sh "$DIR" "目标字词"
# 解释图(比例自由,不裁)
~/.claude/skills/wjs-publishing-wechat/scripts/gen-illustration.sh "$DIR"
# 发布:建/更新草稿到 mp.weixin.qq.com 后台
~/.claude/skills/wjs-publishing-wechat/scripts/upload-draft.sh "$DIR"
图片脚本是幂等的——再跑一次得到不同结果(生成有随机性)。
git clone https://github.com/jianshuo/wjs-publishing-wechat ~/.claude/skills/wjs-publishing-wechat
之后在 Claude Code 里说「写一篇公众号」「润色」「准备发布」或 /wjs-publishing-wechat 就会触发。
macOS / Linux(open / xdg-open 打开浏览器)
Python 3、Node.js
md2wechat CLI — 发草稿用。需配好 WECHAT_APPID + WECHAT_SECRET(md2wechat config show),并把当前公网 IP 加进公众号后台 IP 白名单(设置与开发 → 基本配置 → IP 白名单),否则报 errcode=40164。
gpt-image-2-skill — AI 配图用:
git clone https://github.com/Wangnov/gpt-image-2-skill /tmp/g
cp -r /tmp/g/skills/gpt-image-2-skill ~/.claude/skills/
鉴权:OPENAI_API_KEY(gpt-image-2 需 OpenAI 组织认证)或 Codex ~/.codex/auth.json(任意 ChatGPT Plus 账号即可,免认证,推荐)。
两个图片生成器读可编辑的 prompt 模板:
prompts/cover-prompt.md — 题图设计哲学,含 [目标字词] 占位符,锁定 2.35:1prompts/illustration-prompt.md — 解释图风格指南,含 [文章内容] 占位符,比例由模型按内容选upload-draft.sh 的环境变量:
WECHAT_PUBLISH_FORCE_NEW=1 — 强制建新草稿(不复用 draft_media_id)WECHAT_PUBLISH_NO_OPEN=1 — 不自动打开浏览器WECHAT_PUBLISH_NO_PUSH=1 — 不自动 push 文章目录到 git.
├── SKILL.md # skill 的行为(它的 prompt)
├── prompts/
│ ├── cover-prompt.md # 题图 prompt 模板
│ └── illustration-prompt.md # 解释图 prompt 模板
└── scripts/
├── gen-cover-ai.sh # gpt-image-2 题图 → 900×383
├── gen-illustration.sh # 解释图,不裁
├── upload-draft.sh # 生成 content.html + 经 md2wechat API 建/更新草稿
├── pangu.py # 盘古之白(中英间加空格)
├── update-draft-via-api.py # 草稿原地更新
└── … # 留言抓取 / 群发等辅助脚本
题图是读者在公众号信息流里点开之前看到的封面,要在 2.35:1(900×383,公众号封面槽的精确尺寸)里一击命中,靠的是字体和构图。
解释图在文章里,要帮读者在读文字前先抓住概念。把它硬塞进封面比例会毁掉它。不同的活,不同的比例。
MIT — 见 LICENSE。
王建硕 — 为自己的公众号工作流而做,分享给有同样问题的人。
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
AI image generation skill for Claude Code -- Creative Director powered by Gemini