openclaw-wechat-article-workflow
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "openclaw-wechat-article-workflow":https://skillpi.com/zh/skills/deepskill-f8a0beabb3d88eea13d35d377e922007398dfbe715fe7e9873da4f682fe9a685。安装前核对上游来源和版本:https://skillhub.cn/skills/user_ec86b020/openclaw-gzh-public-workflow。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
OpenClaw 微信公众号文章端到端工作流:用于生成公众号文章的全流程工作流,涵盖内容采集、选题判断、资料调研、Khazix 风格长文撰写、图片规划、微信 CDN 上传、Markdown 转 HTML 渲染、草稿/发布操作及问题排查;适用于撰写、打包、迁移、发布或自动化公众号文章工作流,尤其在需要可重复步骤且最少配置以创建微信草稿时使用。
介绍来源: third_party · user_ec86b020 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- End-to-end OpenClaw workflow for producing Chinese WeChat Official Account articles: intake, topic judgment, research, Khazix-style longform drafting, image planning, WeChat CDN upload, Markdown-to-HTML rendering, draft/add publication, and troubleshooting. Use this whenever the user asks to write, package, migrate, publish, or automate a 公众号 article workflow, especially when another agent needs repeatable steps and minimal configuration to create a WeChat draft.
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- When this skill is used for publishing and no valid `.env` exists, run this setup flow before draft publication: 1. Ask the user for: - `WECHAT_APP_ID` - `WECHAT_APP_SECRET`, also called "开发密钥 / AppSecret" in the WeChat backend. Some users may call this the "password"; treat it as a secret. - `WECHAT_AUTHOR`, optional. 2. Show the current public IPv4 to the user: 3. Tell the user to add that IP to the WeChat Official Account IP allowlist. If WeChat later returns `40164`, use the IP shown in WeChat's error message as the authoritative API-observed IP; it can differ from generic IP lookup results because of proxy, carrier, VPN, NAT, or platform routing. Use these current navigation steps: - Op
- 实测状态
- 未测试
文件浏览
Frontmatter
name: openclaw-wechat-article-workflow
description: "End-to-end OpenClaw workflow for producing Chinese WeChat Official Account articles: intake, topic judgment, research, Khazix-style longform drafting, image planning, WeChat CDN upload, Markdown-to-HTML rendering, draft/add publication, and troubleshooting. Use this whenever the user asks to write, package, migrate, publish, or automate a 公众号 article workflow, especially when another agent needs repeatable steps and minimal configuration to create a WeChat draft."OpenClaw WeChat Article Workflow
This skill turns raw material into a WeChat Official Account draft. It is designed for agents that must execute the whole pipeline with minimal setup.
Required Inputs
Ask for missing items only when they cannot be inferred:
- Article material: topic, links, notes, transcript, PDF, GitHub repo, product brief, or existing draft.
- Intended output: draft only, final Markdown only, or both.
- WeChat account credentials, supplied through environment variables or a local
.envfile. - Confirmation that the API-observed public IPv4 is in the WeChat Official Account IP allowlist if publishing to draft.
- Desired writing depth: direct/practical, normal commentary, or deep reflective essay. Default to direct/practical for tool/project recommendation articles unless the user explicitly asks for deeper analysis.
First-Time Publishing Setup
When this skill is used for publishing and no valid .env exists, run this setup flow before draft publication:
- Ask the user for:
WECHAT_APP_IDWECHAT_APP_SECRET, also called "开发密钥 / AppSecret" in the WeChat backend. Some users may call this the "password"; treat it as a secret.WECHAT_AUTHOR, optional.
- Show the current public IPv4 to the user:
curl -4 ifconfig.me
- Tell the user to add that IP to the WeChat Official Account IP allowlist. If WeChat later returns
40164, use the IP shown in WeChat's error message as the authoritative API-observed IP; it can differ from generic IP lookup results because of proxy, carrier, VPN, NAT, or platform routing. Use these current navigation steps:- Open
https://developers.weixin.qq.com/platformand scan to log in. - Go to
我的业务与服务 -> 公众号 / 服务号, then choose the target account. - Find
基础信息 -> 开发密钥. - Enable / reset / freeze AppSecret as needed.
- Add the public IPv4 shown by the agent to the IP allowlist.
- Open
- Create
.envinWECHAT_ARTICLE_DIRusing.env.example. - Run a small dry-run before attempting draft publication:
python3 /path/to/openclaw-wechat-article-workflow/scripts/publish_wechat_draft.py \
--markdown article.md \
--meta article.meta.json \
--env .env \
--dry-run
Dry-run validates local files only. The real API check happens during publish. Use scripts/publish_wechat_draft.py as the source of truth because it fetches access tokens with the stable cgi-bin/stable_token endpoint first, then falls back to old cgi-bin/token only when appropriate. If publication returns 40164, add the IP shown in WeChat's error message and retry with the same script before asking for new credentials.
Minimal Configuration
Use .env.example as the template. Do not hardcode secrets in the skill or article files.
Required for draft publication:
WECHAT_APP_ID=...
WECHAT_APP_SECRET=...
WECHAT_AUTHOR=...
WECHAT_ARTICLE_DIR=/root/.openclaw/workspace/wechat-articles
WECHAT_DEFAULT_COVER=cover.png
Before publishing, verify the server's public IPv4:
curl -4 ifconfig.me
That IP must be added in:
微信公众平台 -> 设置与开发 -> 基本配置 -> IP 白名单
If the API returns 40164, treat the IP in the WeChat error message as authoritative. Do not keep retrying the old token endpoint manually; the bundled script uses cgi-bin/stable_token first.
Deliverables
For every article task, produce these artifacts in WECHAT_ARTICLE_DIR:
article.md: final Markdown, with relative image paths only.imgs/: local images used by the article.article.meta.json: title, digest, author, cover image, source URLs, and publish status.quality-report.md: writing and publication checks.- If publishing succeeds, record the draft
media_idinarticle.meta.json.
End-to-End Procedure
1. Intake
Identify the article type and source material.
Supported inputs:
- Topic or rough idea.
- Links, news, GitHub repo, product page, PDF, transcript, screenshots.
- Existing draft for rewriting or continuation.
If material is too thin, ask for:
- Main point the user wants to express.
- Personal experience or emotional reaction.
- Intended article type: investigation, product experience, phenomenon analysis, tool sharing, or methodology.
2. Topic Judgment
Score the topic with HKR:
- H, Happy: curiosity, tension, or click appeal.
- K, Knowledge: new information or useful insight.
- R, Resonance: emotional recognition.
If fewer than two dimensions are strong, propose a sharper angle before drafting.
3. Research And Fact Checking
Verify concrete facts before writing.
For GitHub projects, use GitHub API for stars, forks, repo metadata, and images. Do not rely on rendered GitHub pages for counts.
curl -s "https://api.github.com/repos/USER/REPO" \
| python3 -c "import json,sys; d=json.load(sys.stdin); print('stars:', d['stargazers_count'], 'forks:', d['forks_count'])"
For current products, model names, prices, dates, or policies, verify from primary sources where possible. Mark uncertainty instead of inventing.
4. Choose Article Archetype
Pick one primary archetype:
- Investigation: the author personally tries something and reports the process.
- Product experience: the author uses a product with the reader.
- Phenomenon analysis: a concrete phenomenon leads to layered interpretation.
- Tool sharing: a useful tool is wrapped in a personal discovery story.
- Methodology: accumulated experience becomes actionable steps.
The archetype determines the structure and what evidence is needed.
5. Draft In Khazix Style
Write as "a knowledgeable ordinary person seriously talking about something that moved him."
Before drafting, choose the depth:
- Direct/practical: state the core point quickly, then explain what it does, who should use it, how to use it, and what to watch out for. Do not add philosophy, industry reflection, or broad cultural interpretation.
- Normal commentary: add light judgment and context, but keep the article anchored to the practical topic.
- Deep reflective essay: use cultural, historical, philosophical, or industry extension only when the user asks for it or the topic clearly needs it.
For GitHub tool/project recommendations, default to direct/practical unless the user asks for a deeper essay. Example: if the core point is "视频号终于能在 PC 端直接点击下载了", keep the article centered on that claim.
Core rules:
- Start from a concrete event, scene, strange fact, or curiosity.
- Avoid grand opening claims.
- Use short paragraphs and alternating sentence lengths.
- Use conversational transitions.
- Use real details, people, scenes, and personal judgment.
- Avoid unnecessary Markdown headings unless the article is explicitly a numbered methodology.
- Avoid report-like bullet lists in the main article.
Hard avoids:
- Empty phrases such as "本质上", "不可否认", "综上所述", "首先/其次/最后".
- Title emoji.
- Citation dump at the end.
- Fake first-person experience.
See references/writing-style.md for the full writing checklist.
6. Plan And Insert Images
Images are planned during writing, not pasted at the end.
Create:
mkdir -p "$WECHAT_ARTICLE_DIR/imgs"
Use relative paths only:

Placement rules:
- Overview screenshot after the introduction of the product/project.
- Feature screenshot near the feature paragraph.
- Data screenshot near the data paragraph.
- Configuration screenshot near setup instructions.
- CLI screenshot near command explanation.
Do not use absolute paths in Markdown.
7. Render And Publish Draft
Use scripts/publish_wechat_draft.py from this skill.
Recommended command:
cd "$WECHAT_ARTICLE_DIR"
python3 /path/to/openclaw-wechat-article-workflow/scripts/publish_wechat_draft.py \
--markdown article.md \
--meta article.meta.json \
--env .env
The script performs:
- Load config from env and
.env. - Fetch WeChat
access_tokenwith stablecgi-bin/stable_tokenfirst, falling back to oldcgi-bin/tokenonly when the stable endpoint fails for a non-IP reason. - Convert Markdown to HTML.
- Upload local body images with
media/uploadimg. - Replace local image paths with
mmbiz.qpic.cnURLs. - Upload cover with permanent material API to get fresh
thumb_media_id. - Call
draft/add. - Write the resulting draft
media_idto metadata.
If wenyan or another renderer is available and required by the local publishing style, render Markdown to HTML before calling the script with --html.
8. Quality Gate
Before reporting completion, run these checks:
article.mdexists.- Every image path is relative and points to an existing file.
- No body image URL is non-WeChat after publication.
- Cover image exists and was freshly uploaded.
article.meta.jsoncontains title, digest, author, cover, and draft media_id if published.- GitHub or product facts were verified.
- Writing passed the four-layer quality check in
references/quality-gate.md.
9. Troubleshooting
Use references/troubleshooting.md for API failures. Common causes:
40164: API-observed public IP is not in the WeChat IP allowlist, or the old token endpoint is being used. Use the bundled script, which preferscgi-bin/stable_token, and add the IP from WeChat's error message.40013: invalid AppID.40001/ token error: wrong AppSecret, stale credential, or account mismatch.40007: stale or invalidthumb_media_id; upload a fresh cover.- Body images blank after publication: used
media/uploador external URLs instead ofmedia/uploadimg. - Wrong article published:
--markdown,MD_FILE, or metadata points to an old article.
Migration Notes
For a new VPS:
- Install OpenClaw and Python dependencies.
- Restore memory, skills, workspace files, and channel config.
- Place this skill directory under the agent's skills directory.
- Copy
.env.exampleto.envinWECHAT_ARTICLE_DIRand fill credentials. - Add the new VPS public IPv4 to WeChat IP allowlist.
- Run the script with a small test article and check WeChat draft box.
When moving between machines, repeat the IP allowlist step. The AppID/AppSecret can stay the same, but the allowed public IP must match the machine that calls WeChat APIs.
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供端到端微信公众号文章生成与发布完整工作流,解决用户核心痛点
- 涵盖内容采集、选题判断、资料调研、撰写、图片规划、CDN上传、渲染、草稿/发布及问题排查全流程
- 适用于撰写、打包、迁移、发布或自动化公众号文章等多种高频场景
亮点
- 触发词精准覆盖撰写、打包、迁移、发布、自动化公众号文章工作流等核心场景
- 明确指出在其他智能体需要可重复步骤且配置最少时触发,边界清晰
- 支持多种输入类型和输出格式,适用性强
亮点
- Phase/步骤清晰,从Intake到Troubleshooting共9个完整阶段
- 每个阶段都有明确的出口条件和操作指引
- 包含端到端示例和具体命令,frontmatter完整规范
- 文档结构良好,易于理解和执行
待提升项
-
极端异常处理未完全覆盖 原报告严重程度:轻微
未明确说明如何处理网络超时、API限流等极端情况
改进建议:建议在troubleshooting部分增加对网络超时、API限流等极端情况的处理建议
亮点
- 工具来源明确,使用官方WeChat API和稳定token端点
- 参数配置清晰,支持环境变量和.env文件
- 覆盖主要异常情况,如40164、40013等常见错误码
- 不可逆操作有确认机制,包含dry-run验证步骤
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 16, 26, 37, 51, 216 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- api.github.com
- developers.weixin.qq.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
When this skill is used for publishing and no valid `.env` exists, run this setup flow before draft publication: 1. Ask the user for: - `WECHAT_APP_ID` - `WECHAT_APP_SECRET`, also called "开发密钥 / AppSecret" in the WeChat backend. Some users may call this the "password"; treat it as a secret. - `WECHAT_AUTHOR`, optional. 2. Show the current public IPv4 to the user: 3. Tell the user to add that IP to the WeChat Official Account IP allowlist. If WeChat later returns `40164`, use the IP shown in WeChat's error message as the authoritative API-observed IP; it can differ from generic IP lookup results because of proxy, carrier, VPN, NAT, or platform routing. Use these current navigation steps: - Op
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。