Agent skill

Wechat Mp Writer

by th3ee9ine in th3ee9ine/wechat-claw-skill

微信公众号文章全自动写作与发布。从信息搜集、AI配图规划、报刊级 HTML 排版、到草稿创建和发布的完整流程。适用于 AI 日报、财经周报、深度分析、新闻资讯类文章。内置多种模板,并提供本地渲染、校验、图片规划和发布流水线脚本。

MITAuto-check passedProductivity & Automation

Install Wechat Mp Writer

skills CLI
$ npx skills add th3ee9ine/wechat-claw-skill --skill wechat-mp-writer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install th3ee9ine/wechat-claw-skill wechat-mp-writer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wechat-mp-writer
GitHub stars
207
Token cost
~1.4k tokens
SKILL.md length
233 words
Files
33 (incl. scripts, references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

微信公众号文章全自动写作与发布。从信息搜集、AI配图规划、报刊级 HTML 排版、到草稿创建和发布的完整流程。适用于 AI 日报、财经周报、深度分析、新闻资讯类文章。内置多种模板,并提供本地渲染、校验、图片规划和发布流水线脚本。

  • Works in 5 steps: 信息搜集:scripts/collect_sources.py… → AI配图规划:scripts/plan_images.py 自动补封面图和正文图… → 世界级排版:scripts/render_article.py 渲染报刊级… → …
  • Tasks that involve Messaging and chat bots
  • SKILL.md covers openClaw 路径约束, 快速入口, 核心能力 and 脚本清单, plus 8 more sections
  • Calls python3; reaches cnbc.com

What it does

Wechat Mp Writer is an agent skill from th3ee9ine/wechat-claw-skill. 微信公众号文章全自动写作与发布。从信息搜集、AI配图规划、报刊级 HTML 排版、到草稿创建和发布的完整流程。适用于 AI 日报、财经周报、深度分析、新闻资讯类文章。内置多种模板,并提供本地渲染、校验、图片规划和发布流水线脚本。

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 35 other files, including scripts and reference files (for example `README.md`, `docs/README.en.md` and `docs/README.zh.md`). Compatibility notes: {"platforms":["openclaw"]}

It sits in Productivity & Automation, covering Messaging and chat bots. It works with WeChat. The repository describes itself as: 一键爆款微信公众号文章发布。微信公众号技能库,整合多种公众号能力,便于快速调用。 The licence is MIT.

When your agent uses it

  • Tasks that involve Messaging and chat bots

Example prompts

  • “/wechat-mp-writer”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): {"platforms":["openclaw"]}

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 信息搜集:scripts/collect_sources.py 归并本地文件、URL、原始文本
  2. AI配图规划:scripts/plan_images.py 自动补封面图和正文图 prompt、caption、文件路径
  3. 世界级排版:scripts/render_article.py 渲染报刊级 HTML 模板
  4. 硬约束校验:scripts/validate_article.py 校验标题、摘要、图片 URL、正文大小
  5. 自动发布:scripts/run_pipeline.py 串联渲染、校验、上传封面、上传正文图、建草稿、发布

What it can do on your machine

Read from SKILL.md and the folder at commit 566d36c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • cnbc.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    {"platforms":["openclaw"]}

    From compatibility in the SKILL.md frontmatter.

Context cost

Wechat Mp Writer loads about 1.4k tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 33 tokens; SKILL.md has 233 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from th3ee9ine/wechat-claw-skill at commit 566d36c, republished under its MIT licence (© th3ee9ine). 233 words, ~1,399 tokens.

Download SKILL.mdSave it as .claude/skills/wechat-mp-writer/SKILL.md (or your agent's skills folder). This skill also uses 32 other files; get the full folder from GitHub.
name
wechat-mp-writer
description
微信公众号文章全自动写作与发布。从信息搜集、AI配图规划、报刊级 HTML 排版、到草稿创建和发布的完整流程。适用于 AI 日报、财经周报、深度分析、新闻资讯类文章。内置多种模板,并提供本地渲染、校验、图片规划和发布流水线脚本。
compatibility
{"platforms":["openclaw"]}
version
1.1.0
author
39Claw
license
MIT

微信公众号文章全自动写作与发布

从素材归并到排版发布的一站式公众号文章制作技能。

openClaw 路径约束

如果这个 skill 是从 OpenClaw 的 workspace skills 目录加载的,不要假设当前工作目录就是 skill 根目录。执行本仓库内置脚本、模板或参考文件时,优先先定位 SKILL.md 所在目录,再从该目录拼绝对路径访问 scripts/、templates/、references/。

人类用户的接入步骤见 docs/openclaw.zh.md。

快速入口

优先用仓库自带脚本,不要手工替换模板占位符:

bash
# 渲染 HTML
python3 scripts/render_article.py article.json -o build/article.html --check

# 单独校验
python3 scripts/validate_article.py article.json --html build/article.html

# 规划封面图和正文配图
python3 scripts/plan_images.py article.json --write-article build/article.with-images.json

# 跑完整本地流水线
python3 scripts/run_pipeline.py article.json --output-dir build --dry-run

如果要接入外部技能完成配图生成、上传和发布,再追加脚本路径:

bash
python3 scripts/run_pipeline.py article.json \
  --output-dir build \
  --nanobanana-script /abs/path/to/generate_image.py \
  --wechat-script /abs/path/to/wechat_mp.py \
  --create-draft \
  --publish

核心能力

  1. 信息搜集:scripts/collect_sources.py 归并本地文件、URL、原始文本
  2. AI配图规划:scripts/plan_images.py 自动补封面图和正文图 prompt、caption、文件路径
  3. 世界级排版:scripts/render_article.py 渲染报刊级 HTML 模板
  4. 硬约束校验:scripts/validate_article.py 校验标题、摘要、图片 URL、正文大小
  5. 自动发布:scripts/run_pipeline.py 串联渲染、校验、上传封面、上传正文图、建草稿、发布

脚本清单

  • scripts/collect_sources.py 输入 source spec JSON,或直接通过命令行指定数据源,输出统一的 source bundle JSON。
  • scripts/plan_images.py 根据文章 JSON 自动规划封面图和正文图。
  • scripts/render_article.py 根据 template 和 sections 渲染 HTML。
  • scripts/validate_article.py 校验 JSON 和已渲染 HTML 是否符合微信限制。
  • scripts/run_pipeline.py 执行本地 dry-run,或串接外部图片生成/微信发布脚本。

输入格式

文章统一使用 JSON。最小结构:

json
{
  "template": "daily-intelligence",
  "meta": {
    "title": "AI日报3.15|亮点1·亮点2·亮点3",
    "digest": "摘要,128字以内",
    "author": "39Claw",
    "date": "2026-03-15"
  },
  "headline": {
    "title": "头条标题",
    "body": ["第一段", "第二段"],
    "source": "CNBC"
  },
  "sections": [
    {
      "en": "BRIEFING",
      "cn": "要闻",
      "blocks": [
        {
          "type": "card",
          "style": "highlight",
          "number": 1,
          "title": "卡片标题",
          "body": ["正文段落"],
          "source": "财联社"
        }
      ]
    }
  ],
  "conclusion": "适用于 deep-analysis 的结论段",
  "cta": "你最关注哪一点?欢迎留言。"
}

支持的 template:

  • daily-intelligence
  • weekly-financial
  • deep-analysis
  • breaking-watch
  • product-release
  • industry-radar
  • studio-brief
  • neo-brutalism

支持的 block.type:

  • card
  • opinion
  • week-ahead
  • image
  • quote
  • takeaways
  • paragraph

模板

使用 templates/ 目录下的模板:

  • templates/daily-intelligence.html — AI日报模板
  • templates/weekly-financial.html — 财经周报模板
  • templates/deep-analysis.html — 深度分析模板
  • templates/breaking-watch.html — 快讯追踪模板
  • templates/product-release.html — 产品发布模板
  • templates/industry-radar.html — 行业雷达模板
  • templates/studio-brief.html — 极简生活方式 / 编辑风模板
  • templates/neo-brutalism.html — Neo Brutalism 高对比模板

模板由脚本自动注入这些核心占位符:

  • {{HEADLINE_BODY}}
  • {{HEADLINE_IMAGE}}
  • {{BODY_SECTIONS}}

完整流程

第一步:信息搜集

先确认用户是否已经指定数据源。

  • 如果用户已经指定数据源:严格按用户给的文件、URL、原始文本或关键词处理
  • 如果用户没有指定数据源:先提示用户指定数据源,不要默认抓取或自行猜测来源

先把素材归并成统一 bundle,再整理成 article JSON:

bash
python3 scripts/collect_sources.py source-spec.json -o build/sources.json

也可以直接让用户指定数据源,不必先手写 spec 文件:

bash
python3 scripts/collect_sources.py \
  --source-file "飞书导出::/path/to/daily.md" \
  --source-url "CNBC::https://www.cnbc.com/world/" \
  --source-text "补充备注::今天重点看模型价格战和 Agent 落地" \
  -o build/sources.json

推荐来源:

  • 本地 markdown / txt
  • 直接 URL
  • 已整理好的原始文本

如果素材来自飞书,先导出或复制成文本文件,再交给 collect_sources.py。 如果用户没有提供任何 source-spec.json 或 --source-* 参数,脚本会直接报错并提示用户先指定数据源。

第二步:规划封面图和正文图
bash
python3 scripts/plan_images.py article.json \
  --write-article build/article.with-images.json \
  --output-dir build/images

生成后的 JSON 会补上:

  • meta.cover_image
  • headline.image
  • section.image
第三步:渲染 HTML
bash
python3 scripts/render_article.py build/article.with-images.json \
  -o build/article.html \
  --check
第四步:发布前校验
bash
python3 scripts/validate_article.py build/article.with-images.json --html build/article.html
第五步:建草稿与发布
bash
python3 scripts/run_pipeline.py article.json \
  --output-dir build \
  --nanobanana-script /abs/path/to/generate_image.py \
  --wechat-script /abs/path/to/wechat_mp.py \
  --create-draft \
  --publish

如果返回 48001,通知用户改为手动去草稿箱发布。

排版核心规范

项目设置
字体-apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC'
正文字号14-15px
正文颜色#555 或 #3f3f3f
标题颜色#1a1a2e
行高1.9-2.0
强调数据<strong style="color: #e94560;">数据</strong>

写作原则

参考 references/writing-guide.md:

  • "说人话",避免行业黑话
  • 每条新闻精简到 2-3 句话,保留核心信息
  • 关键数据用红色加粗突出
  • 设计"留言诱因",留言权重最高
  • 结尾引导互动 + 引导关注

标题公式

参考 references/title-formulas.md:

  • 关键词法:带核心关键词,利于搜索推荐
  • 反差法:制造认知冲突
  • 问号式:激发好奇心
  • 数据法:用具体数字吸引眼球
  • 禁止"震惊体",会被判标题党限流

发布时段

  • 最佳:17:00-23:00
  • 通勤:8:00-9:00
  • 午休:12:00-13:00
  • 分享朋友圈最佳:21:00后

注意事项

  • 标题严格 ≤ 32 字
  • 摘要严格 ≤ 128 字
  • 正文大小不超过 1MB
  • 正文图片必须使用 upload-content-image 后得到的微信 CDN URL
  • 封面图必须先 upload-image,再写入 meta.thumb_media_id
  • 草稿发布后会从草稿箱移除
  • 发布是异步的,需要用 publish-status 查询结果
  • 流量周期:前 48 小时是巅峰,第 3 天明显衰减

© th3ee9ine, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 32 other files (scripts, references) in the repository root of th3ee9ine/wechat-claw-skill.

  • SKILL.md
  • .gitignore
  • LICENSE
  • README.md
  • docs/README.en.md
  • docs/README.zh.md
  • docs/img/介绍1.jpeg
  • docs/img/介绍2.jpeg
  • docs/img/介绍3.jpeg
  • docs/img/样例1.jpeg
  • docs/img/样例2.jpeg
  • docs/img/赞赏码.png
  • docs/openclaw.en.md
  • docs/openclaw.zh.md
  • references/image-prompts.md
  • references/title-formulas.md
  • references/writing-guide.md
  • scripts
  • … and 15 more

Open the folder on GitHubat commit 566d36c

Compare with similar skills

Wechat Mp Writer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wechat Mp Writer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wechat Mp Writer this skillth3ee9ine/wechat-claw-skill207—~1.4kAutomated safety check: PassMIT
She Love Me863401402/she-love-me9311 repos~1.3kAutomated safety check: PassMIT
Wechat Article Extractorfreestylefly/wechat-article-extractor-skill1361 repos~1kAutomated safety check: PassNone
Wechat Miniprogram Builderchenjin-cmd/wechat-miniprogram-builder356—~634Automated safety check: PassMIT
Skill Wechat PublisherZJU-REAL/Easel3.4k—~1.8kAutomated safety check: PassApache-2.0
Qiaomu Wx Videojoeseesun/qiaomu-wx-video135—~751Automated safety check: PassMIT

Similar skills

  • She Love Me

    863401402/she-love-me

    Acquire, import, and analyze WeChat or QQ chat histories, including installing supported exporters, guiding required login or contact selection, converting exports, assessing relationship dynamics…

    931 GitHub starsUsed in 1 repo~1.3k tokens
    Productivity & AutomationAuto-check passed
  • Wechat Article Extractor

    freestylefly/wechat-article-extractor-skill

    Extract metadata and content from WeChat Official Account articles.

    136 GitHub starsUsed in 1 repo~1k tokens
    Productivity & AutomationAuto-check passed
  • Wechat Miniprogram Builder

    chenjin-cmd/wechat-miniprogram-builder

    This skill should be used when the user wants to build, launch, monetize, or promote a WeChat mini-program with AI (vibe coding) — including topic selection, account registration & ICP filing…

    356 GitHub stars~634 tokensUpdated 2 mo ago
    Productivity & AutomationAuto-check passed
  • 微信公众号文章自动创作与发布工具。给定参考文章、文字或文档,自动搜索整理全网相关信息、生成图文并茂的公众号文章,并发布到微信公众号草稿箱。特别强调反 AI 检测写作。

    3.4k GitHub stars~1.8k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Qiaomu Wx Video

    joeseesun/qiaomu-wx-video

    Qiaomu skill and workflow for downloading a WeChat Channels / 视频号 video or generated live replay when the user provides a weixin.qq.com/sph share link.

    135 GitHub stars~751 tokensUpdated 2 mo ago
    Productivity & AutomationAuto-check passed
  • Xiaohu Wechat Cover

    xiaohuailabs/xiaohu-wechat-format

    公众号封面图生成器。一步出图,输入文章路径或主题即可。当用户要求'公众号封面''微信封面''文章封面'时使用. An agent skill from xiaohuailabs/xiaohu-wechat-format.

    699 GitHub stars~545 tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check passed

Works with

Questions about Wechat Mp Writer

What does Wechat Mp Writer do?

微信公众号文章全自动写作与发布。从信息搜集、AI配图规划、报刊级 HTML 排版、到草稿创建和发布的完整流程。适用于 AI 日报、财经周报、深度分析、新闻资讯类文章。内置多种模板,并提供本地渲染、校验、图片规划和发布流水线脚本。. Wechat Mp Writer is an agent skill from th3ee9ine/wechat-claw-skill.

When should I use Wechat Mp Writer?

Wechat Mp Writer fits situations like: tasks that involve Messaging and chat bots.

How do I install Wechat Mp Writer in Claude Code?

Run `npx skills add th3ee9ine/wechat-claw-skill --skill wechat-mp-writer -a claude-code`. Or copy the skill folder (the th3ee9ine/wechat-claw-skill repository) into .claude/skills/wechat-mp-writer in your project. Claude Code loads it when a task matches its description.

How do I install Wechat Mp Writer in Codex?

Run `npx skills add th3ee9ine/wechat-claw-skill --skill wechat-mp-writer -a codex`. Or copy the skill folder (the th3ee9ine/wechat-claw-skill repository) into .agents/skills/wechat-mp-writer in your project. Codex loads it when a task matches its description.

Can I use Wechat Mp Writer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add th3ee9ine/wechat-claw-skill --skill wechat-mp-writer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wechat-mp-writer, .gemini/skills/wechat-mp-writer, .github/skills/wechat-mp-writer and .opencode/skills/wechat-mp-writer in your project.

What does Wechat Mp Writer need to run?

Going by SKILL.md and its folder, Wechat Mp Writer needs the command-line tools its instructions call (python3). Our summary lists: Python 3. Compatibility (from SKILL.md): {"platforms":["openclaw"]}.

Does Wechat Mp Writer access the network?

SKILL.md names 1 domain. In commands or code: cnbc.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Wechat Mp Writer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Wechat Mp Writer use?

Wechat Mp Writer is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wechat Mp Writer use?

About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.9k tokens, read only when the agent opens those files.

What are the alternatives to Wechat Mp Writer?

Skills that share tags, products or a category with Wechat Mp Writer: She Love Me (863401402/she-love-me, 931 stars), Wechat Article Extractor (freestylefly/wechat-article-extractor-skill, 136 stars), Wechat Miniprogram Builder (chenjin-cmd/wechat-miniprogram-builder, 356 stars) and Skill Wechat Publisher (ZJU-REAL/Easel, 3.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wechat Mp Writer?

th3ee9ine (a GitHub user) maintains it in th3ee9ine/wechat-claw-skill, which has 207 GitHub stars. The repository was last updated on March 22, 2026.

Source: th3ee9ine/wechat-claw-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.