wechat-publisher

wechat-publisher is a skill for Claude Code from wpsnote/wpsnote-skills. It costs 154 tokens per session (4,816 once invoked), scanned A, original, MIT.

A publishing helper that turns a finished WPS Note into HTML for WeChat Official Accounts, a platform for publishing articles and updates. It applies a layout template, converts placeholder tags into styles, and creates inline-styled HTML.

In plain words
What is it for?
Use it as the final step for formatting and exporting an existing WPS Note for publication. It is not for writing the article itself.
Why use it?
It removes the repetitive formatting work needed before pasting a completed article into WeChat.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/create-content.py --topic "AI 工具介绍".

Part of the content-skills plugin — 10 skills shipped together

Good fit Use it as the final step for formatting and exporting an existing WPS Note for publication. It is not for writing the article itself.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/wpsnote/wpsnote-skills
agentmods
npx agentmods add skills/wpsnote/wpsnote-skills/wechat-publisher

Made for: Claude Code.

Or install content-skills, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wechat-publisher

README.md
[![agentmods](https://agentmods.dev/badge/skills/wpsnote/wpsnote-skills/wechat-publisher/github.svg)](https://agentmods.dev/skills/wpsnote/wpsnote-skills/wechat-publisher)
Your own site
<a href="https://agentmods.dev/skills/wpsnote/wpsnote-skills/wechat-publisher"><img src="https://agentmods.dev/badge/skills/wpsnote/wpsnote-skills/wechat-publisher/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wechat-publisher

Your own site · 80×15
<a href="https://agentmods.dev/skills/wpsnote/wpsnote-skills/wechat-publisher"><img src="https://agentmods.dev/badge/skills/wpsnote/wpsnote-skills/wechat-publisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00154 $0.04816
Opus 5.5 $0.00062 $0.01926
Sonnet 5.5 $0.00031 $0.00963
Haiku 4.5 $0.00015 $0.00482

Measured 1mo ago against content hash 4eb31b05e941, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wechat-publisher scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/export-to-html.py, scripts/md_to_html.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/wechat-publisher/SKILL.md · 477 lines

How it starts

The opening of the file, as written. The whole thing — 477 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WeChat Publisher - 公众号发布助手

将已完成的 WPS 笔记内容,一键排版并导出为微信公众号 HTML 格式。这是创作流程的最后一步:内容已完成,只需排版发布。

使用场景

典型工作流:

  1. 用 content-creator 创作文章内容
  2. 保存到 WPS 笔记
  3. 用本 skill 导出排版好的 HTML ← 你在这里
  4. 粘贴到公众号后台直接发布

Contract(契约)

Input Contract

触发条件:

  • "发公众号"
  • "排版公众号"
  • "导出到公众号"
  • "我要发布了"
  • "文章排版"
  • "生成公众号 HTML"
  • "这篇可以发了"
  • "帮我排版一下"

输入类型:

  1. WPS 笔记 ID(必填):内容已完成的笔记
  2. 模板名称(可选):default/minimal/elegant,默认 blue-theme
  3. 输出路径(可选):默认生成 {标题}_formatted.html

前置条件:

  • 笔记内容已完成(不是空笔记)
  • 笔记已保存并同步到云端
  • 内容建议 < 20000 字符

Output Contract

文件 说明
{标题}_formatted.html 带内联样式的公众号排版文件,可直接粘贴到公众号编辑器

排版特性:

  • WPS 笔记 XML 直接转 HTML(无 Markdown 中间层,样式精度更高)
  • WPS 预设颜色(fontColor / fontHighlightColor)完整映射到内联样式
  • 代码块语法高亮
  • 图片自适应处理
  • 移动端阅读优化

Error Contract

错误场景 错误码 处理方式
笔记不存在 NOTE_NOT_FOUND 检查 note_id 是否正确
笔记为空 EMPTY_CONTENT 提示先完成内容创作
内容过长 CONTENT_TOO_LONG 建议拆分为多篇发布
图片处理失败 IMAGE_ERROR 检查图片链接有效性

工具优先级策略

优先使用 CLI,降级到 MCP:

检查 wpsnote-cli 是否可用
    ↓ 可用(推荐路径)
wpsnote-cli current / find  → 获取笔记 ID
wpsnote-cli read --note_id <id> --json → 获取笔记内容(XML)
    ↓ CLI 不可用(命令不存在 / 认证失败)
[降级] MCP: get_current_note / search_notes
[降级] MCP: read_note

AI 操作决策树:

用户触发「排版发布」
    │
    ├─ 检测 wpsnote-cli
    │       ↓ 可用
    │   ① 无 note_id → wpsnote-cli current --json
    │     有 note_id → 直接跳到 ③
    │       ↓ 不可用
    │   ① 无 note_id → MCP: get_current_note()
    │
    ├─ ② 搜索确认(用户给了关键词)
    │     CLI:  wpsnote-cli find --keyword "xxx" --json
    │     MCP:  search_notes({ keyword: "xxx" })
    │
    ├─ ③ 读取笔记内容
    │     CLI:  wpsnote-cli read --note_id <id> --json
    │     MCP:  read_note({ note_id: <id> })
    │
    └─ ④ 执行导出脚本
          python scripts/export-to-html.py --note-id <id>
          → 生成 "{标题}_formatted.html"

快速开始

方式一:CLI 读取 + 脚本转换(推荐)

# 获取当前笔记并导出
python scripts/export-to-html.py --current

# 通过 note_id 直接导出
python scripts/export-to-html.py --note-id "abc123"

# 指定模板风格
python scripts/export-to-html.py --note-id "abc123" --template "elegant"

# 搜索笔记并导出
python scripts/export-to-html.py --search "文章标题"

Read the full file on GitHub · 477 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 477 lines · 154 tokens per session scan A 4eb31b05e941

Subscribe to this mod's changes

wechat-publisher is a skill published in the GitHub repository wpsnote/wpsnote-skills (183 stars, last pushed today), licensed MIT. It adds 154 tokens to every session and 4,816 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gap-to-topic

Turn a research area into a go/no-go decision dossier for candidate thesis/proposal topics (zero or multiple justified options) — a 3-gate verdict (is the gap open? is it a contribution? is it feasible?) with the evidence laid out so the researcher can verify it. Use when the user asks "is this gap worth pursuing"…

WenyuChiou/research-hub · 188 tokens

manage-taskboard

Manage work in the native DeepSeek Harness Taskboard with exact task ids and optimistic versions. Use when an Agent must inspect project work, claim an eligible todo, record progress or blockers, verify an implementation, submit it for human review, or release its own claim; also use when a human asks how to accept…

shengsheng90/DSH-taskboard · 88 tokens

research-workflow-orchestrator

Run a resumable end-to-end research workflow that automates low-risk work, pauses at explicit human decision gates, records provenance, and routes each stage to the appropriate research-hub skill or MCP tool.

WenyuChiou/research-hub · 48 tokens

literature-triage-matrix

Turn a list of papers (Zotero collection, Obsidian cluster, manual list) into a compact comparison matrix written to .research/literaturematrix.md, instead of generic per-paper summaries. Use when the user asks to "make a literature matrix", "compare these papers by method/data/limitations", or "decide which papers…

WenyuChiou/research-hub · 162 tokens

company-research-method

A documented process for researching a company using supplied files and selected public sources. It produces a company overview with business details, sourced financial figures, and stated risks.

PerryLink/dsh-industry-research · 83 tokens

ccgui-plugin-creator

A plugin-building workflow for CC GUI, a desktop client that can be extended with plugins written as configuration or JavaScript modules.

zhukunpenglinyutong/desktop-cc-gui · 132 tokens