# Yichen Wechat Mp Batch Exporter

批量下载微信公众号文章正文、历史文章列表、原创文章筛选、历史计数口径、阅读量、点赞/转发等指标、评论和评论回复。Use when the user asks to batch...

- Repository: https://github.com/mcncarl/yichen-skills (5140 stars)
- Category: Writing
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add mcncarl/yichen-skills --skill yichen-wechat-mp-batch-exporter -g -a claude-code -y`
Codex: `npx skills add mcncarl/yichen-skills --skill yichen-wechat-mp-batch-exporter -g -a codex -y`
Cursor: `npx skills add mcncarl/yichen-skills --skill yichen-wechat-mp-batch-exporter -g -a cursor -y`
Gemini CLI: `npx skills add mcncarl/yichen-skills --skill yichen-wechat-mp-batch-exporter -g -a gemini-cli -y`

## Description

批量下载微信公众号文章正文、历史文章列表、原创文章筛选、历史计数口径、阅读量、点赞/转发等指标、评论和评论回复。Use when the user asks to batch fetch mp.weixin.qq.com articles, export WeChat public-account history, distinguish publish groups vs expanded article URLs vs original articles, use wechat-article-exporter, use wxdown-service credentials, collect read/comment metrics, or create an archive for Obsidian/Feishu/local analysis. Do not use for ordinary one-off article summarization unless batch/enhanced data is requested.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# WeChat MP Batch Exporter

## Core Rule

Never operate the user's WeChat UI. Do not publish, delete, mass-send, follow, unfollow, send messages, or click inside WeChat. For any workflow requiring WeChat desktop, tell the user exactly what to do and wait for confirmation.

Never print raw cookies, auth-key, token, pass_ticket, key, uin, credentials JSON, or QR login secrets in chat or saved reports.

Downloaded article content belongs to the original authors or rights holders. Use exports only within the user's lawful/private-use scope unless the user confirms they have permission to republish or redistribute.

## First Step

Run the local doctor before choosing a workflow:

```bash
python3 {baseDir}/scripts/doctor.py
```

Use `--check-network` only when the task needs the public exporter API or online download endpoint.

## Decision Tree

- User provides known article URLs and only needs正文/Markdown: use `scripts/download_urls.py`; no login or WeChat action is required.
- User wants a public account's历史文章列表 or latest N articles: use exporter mode from `wechat-article-exporter`; this requires a user-owned WeChat Official Account backend login/auth-key.
- User needs阅读量、点赞、转发、评论、评论回复: use `wxdown-service` credentials flow first, then export enhanced fields from `wechat-article-exporter`.
- User says“不登录”“代理模式” or exporter mode fails: use the proxy/history fallback only after explicit confirmation; read `references/manual-gates.md` first.

For simple single-URL extraction without batch/enhanced needs, prefer the existing `$wechat-article` skill.

## Count Discipline

Never report a public account total as just “N 篇文章” until the count scope is clear.

After any history sync or imported history JSON, run:

```bash
python3 {baseDir}/scripts/analyze_history.py --history-json /path/to/history.dedup.json
python3 {baseDir}/scripts/analyze_history.py --chunk-dir /path/to/chunks --output-dir /path/to/output
```

Use these labels in user-facing answers:

The rest: https://github.com/mcncarl/yichen-skills/blob/HEAD/yichen-wechat-mp-batch-exporter/SKILL.md
