wewrite-wechat-ai-publishing — Claude Code skill: WeChat articles
Runs a WeChat Official Account article from trending topics to a saved draft: topic pick, copy, SEO, cover art, formatting.
npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a claude-codeWhat wewrite-wechat-ai-publishing does
This skill covers the whole publishing chain for a WeChat Official Account. It starts by pulling trending topics from Weibo, Toutiao and Baidu with scripts/fetch_hotspots.py, then scores keywords against Baidu and 360 suggestions through scripts/seo_keywords.py. From there it drafts ten candidate topics, ranked by trending heat, how well they fit the client and how much they differ from what is already out there, and writes the piece using one of five frameworks plus the style rules in references/writing-guide.md.
Artwork comes from toolkit/image_gen.py: a 900×383 cover or an 800×600 inline image, generated by doubao or openai. WeChat wants inline styles, so toolkit/converter.py adds them during the markdown-to-HTML step; themes live in toolkit/themes/ and include professional-clean, tech-modern, warm-editorial and minimal. Publishing goes through toolkit/cli.py publish, and the result lands in the draft box rather than the live feed.
You need a config.yaml copied from config.example.yaml holding the account appid and secret, plus an API key for whichever image provider you pick. The skill suggests keeping those in WECHAT_APPID, WECHAT_SECRET, DOUBAO_API_KEY and OPENAI_API_KEY environment variables. Python packages come from requirements.txt. Each client is described in clients/{name}/style.yaml — topics, tone, theme — and without that profile the pipeline has no idea who it is writing for.
What it helps with
- produce a WeChat Official Account draft in a single pass
- find a trending topic and size up its search demand
- generate a 900×383 cover for a given headline
- turn markdown into inline-styled HTML the WeChat editor accepts
- learn style rules from an editor's changes and append them to a client profile
Example prompts for the agent
- Pull today's trending topics and give me ten angles for the
clients/tech-blogclient - Write the article in the
clients/demovoice, make a cover, and format it with thetech-moderntheme - Publish
article.mdto the WeChat draft box withoutput/cover.pngas the cover
How to install wewrite-wechat-ai-publishing
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a claude-code2Manually: put the files in place
~/.claude/skills/wewrite-wechat-ai-publishing/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/wewrite-wechat-ai-publishing/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a codex2Manually: put the files in place
.agents/skills/wewrite-wechat-ai-publishing/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a cursor2Manually: put the files in place
.cursor/skills/wewrite-wechat-ai-publishing/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/trending-skills wewrite-wechat-ai-publishing2Manually: put the files in place
.github/skills/wewrite-wechat-ai-publishing/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/trending-skills --path skills/wewrite-wechat-ai-publishingManually: put the files in place
.devin/skills/wewrite-wechat-ai-publishing/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about wewrite-wechat-ai-publishing
How do I install wewrite-wechat-ai-publishing in Claude Code?
Run npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a claude-code, then confirm the skill file sits at ~/.claude/skills/wewrite-wechat-ai-publishing/SKILL.md.
What does wewrite-wechat-ai-publishing do?
It walks a WeChat Official Account article through every stage: hotspot fetching, topic selection, writing, SEO keywords, image generation, inline-styled HTML formatting and draft box publishing.
What has to be set up before the first run?
Copy config.example.yaml to config.yaml and fill in the WeChat account appid and secret along with an image provider key. Environment variables are the suggested place for those secrets, and dependencies install from requirements.txt.