Install
openclaw skills install @golikegod/yuanzi-wechat-suiteOrchestrates the full WeChat article workflow: extracting, writing, generating images, and publishing for Official Account posts from start to finish.
openclaw skills install @golikegod/yuanzi-wechat-suite🦞 yuanzi-wechat-series · v2.1.2 1 装即用 — 4 站流水线 + 知识库 + 全套脚本
5 个独立 yuanzi-* 技能 → 1 个整合技能。装 1 个 = 装 5 个的功能。
| 站 | 原独立技能 | 现整合路径 | 职能 |
|---|---|---|---|
| 1/4 写作舵 | yuanzi-article-master | references/写作舵-master v7 散文体铁律.md | 散文体铁律 v7 + 三问定调 |
| 2/4 读稿锚 | yuanzi-article-extractor | scripts/extractor/ | mp.weixin.qq.com 解析 |
| 3/4 配图帆 | yuanzi-image-generator | scripts/image-gen/ | 零 token 封面/对比/数据图 |
| 4/4 发布桨 | yuanzi-wechat-publisher | scripts/publisher/ | Markdown/HTML → 草稿箱 |
| 知识 | yuanzi-wechat-kb | references/00~10*.md | 11 段 Markdown 知识库 |
注:5 个独立 yuanzi-* 技能已在 clawhub 隐藏。用户升级装本整合版即可。
yuanzi-wechat-suite/ <- 装到这里
├── SKILL.md # 本文件(主入口)
├── # 一键调用脚本
│ ├── yuanzi-extract # → node scripts/extractor/...
│ ├── yuanzi-image # → python scripts/image-gen/...
│ └── yuanzi-publish # → python scripts/publisher/...
├── references/ # 11 段 + 写作舵
│ ├── 00-quick-reference.md
│ ├── 01-v7-master-4-laws.md
│ ├── 02-v8-prose-8-laws.md
│ ├── 03-tail-structure.md
│ ├── 04-image-publish-iron-laws.md
│ ├── 05-ip-whitelist-pitfalls.md
│ ├── 06-end-to-end-workflow.md
│ ├── 07-prose-word-count.md
│ ├── 08-publish-pitfalls.md
│ ├── 09-case-hugou-xiebian.md
│ ├── 10-clawhub-publish-pitfalls.md
│ └── 写作舵-master v7 散文体铁律.md
├── scripts/
│ ├── extractor/ # 读稿锚 (Node.js)
│ │ ├── extract.js # 主解析器
│ │ ├── errors.js # 错误码
│ │ ├── package.json # npm 依赖
│ │ └── README.md
│ ├── image-gen/ # 配图帆 (Python)
│ │ ├── generate.py # 主生成器
│ │ ├── serve.py # 本地预览服务
│ │ ├── auto_screenshot.py # 自动截图
│ │ ├── assets/ # 3 模板
│ │ ├── output/ # 3 样例
│ │ └── README.md
│ └── publisher/ # 发布桨 (Python)
│ ├── publish_wechat.py # 主脚本
│ ├── config.json # app_id + USE_KEYRING
│ ├── requirements.txt # pip 依赖
│ └── assets/ # 默认封面兜底
├── install-requirements.sh # macOS/Linux 一键装依赖
├── install-requirements.ps1 # Windows 一键装依赖
└── agents/
└── openai.yaml # OpenAI agent 接口
# CLI 装(推荐)
clawhub install yuanzi-wechat-suite
# → 自动到 ~/.openclaw/workspace/skills/yuanzi-wechat-suite/
# macOS / Linux
bash install-requirements.sh
# Windows
powershell -ExecutionPolicy Bypass -File install-requirements.ps1
# 或手动
pip install markdown requests Pillow beautifulsoup4 pyyaml keyring
cd scripts/extractor && npm install
[读稿锚] → [写作舵] → [配图帆] → [发布桨]
extractor master image-gen publisher
↓ ↓ ↓ ↓
解析 URL 散文体 v7 封面/对比 草稿箱
提炼选题 800-3500 字 数据图 老板群发
# 4 站自检
python scripts/yuanzi.py --check
# 读稿
python scripts/yuanzi.py extract --url "<mp.weixin.qq.com URL>"
# 散文体自动校验
python scripts/yuanzi.py check article.md
# 配图(封面 / 对比 / 数据图)
python scripts/yuanzi.py image cover --title "标题" --output cover.png
# 发布
python scripts/yuanzi.py publish article.html --dry-run
| 原独立技能 | 替代为 |
|---|---|
| yuanzi-article-master | references/写作舵-master v7 散文体铁律.md + scripts/yuanzi.py check |
| yuanzi-article-extractor | scripts/extractor/extract.js |
| yuanzi-image-generator | scripts/image-gen/generate.py |
| yuanzi-wechat-publisher | scripts/publisher/publish_wechat.py |
| yuanzi-wechat-kb | 11 段 references/*.md |
# 推荐用 keyring (Windows Credential Manager)
python -c "import keyring; keyring.set_password('wechat-article-publisher', '<your-app-id>', '<your-app-secret>')"
# 或临时环境变量
export WECHAT_APP_ID=<your-app-id>
export WECHAT_APP_SECRET=<your-app-secret>
references/00-quick-reference.mdreferences/01-v7-master-4-laws.md + 02-v8-prose-8-laws.mdreferences/06-end-to-end-workflow.mdscripts/image-gen/generate.py ASSETS_DIR 缺 image-gen/ 层级;(2) scripts/publisher/publish_wechat.py skill_dir 多取一层scripts/yuanzi.py 总调度(extract/image/publish/check/all/--check/--help)scripts/master/v7_check.py 散文体自动校验(句长/短句/字数/4 禁句/谁在说话)🦞 元子公众号图文系列 · 整合版 · MIT-0 协议 · 一键装即用