# wewrite-wechat-ai-publishing

Runs a WeChat Official Account article from trending topics to a saved draft: topic pick, copy, SEO, cover art, formatting.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 882 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/wewrite-wechat-ai-publishing/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/wewrite-wechat-ai-publishing

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/wewrite-wechat-ai-publishing/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/wewrite-wechat-ai-publishing/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/wewrite-wechat-ai-publishing/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/wewrite-wechat-ai-publishing/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills wewrite-wechat-ai-publishing
```

2. **Manually: put the files in place**
- File: `.github/skills/wewrite-wechat-ai-publishing/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/wewrite-wechat-ai-publishing
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/wewrite-wechat-ai-publishing/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill wewrite-wechat-ai-publishing -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/wewrite-wechat-ai-publishing/SKILL.md

## When to use it
- 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
- Pull today's trending topics and give me ten angles for the `clients/tech-blog` client
- Write the article in the `clients/demo` voice, make a cover, and format it with the `tech-modern` theme
- Publish `article.md` to the WeChat draft box with `output/cover.png` as the cover

## Similar
- [seo-audit](https://affpapa.org/en/nevibecode/skills/coreyhaines31-seo-audit.md) — skill · 237600 installs
- [programmatic-seo](https://affpapa.org/en/nevibecode/skills/coreyhaines31-programmatic-seo.md) — skill · 149700 installs
- [copy-editing](https://affpapa.org/en/nevibecode/skills/coreyhaines31-copy-editing.md) — skill · 149100 installs
- [marketing-ideas](https://affpapa.org/en/nevibecode/skills/coreyhaines31-marketing-ideas.md) — skill · 146900 installs
- [sales-enablement](https://affpapa.org/en/nevibecode/skills/sales-enablement.md) — skill · 118800 installs
- [revops](https://affpapa.org/en/nevibecode/skills/revops.md) — skill · 113500 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 139 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
