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.
git clone --depth 1 https://github.com/wpsnote/wpsnote-skillsnpx agentmods add skills/wpsnote/wpsnote-skills/wechat-publisherWrote 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.
[](https://agentmods.dev/skills/wpsnote/wpsnote-skills/wechat-publisher)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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 格式。这是创作流程的最后一步:内容已完成,只需排版发布。
使用场景
典型工作流:
- 用
content-creator创作文章内容 - 保存到 WPS 笔记
- 用本 skill 导出排版好的 HTML ← 你在这里
- 粘贴到公众号后台直接发布
Contract(契约)
Input Contract
触发条件:
- "发公众号"
- "排版公众号"
- "导出到公众号"
- "我要发布了"
- "文章排版"
- "生成公众号 HTML"
- "这篇可以发了"
- "帮我排版一下"
输入类型:
- WPS 笔记 ID(必填):内容已完成的笔记
- 模板名称(可选):
default/minimal/elegant,默认blue-theme - 输出路径(可选):默认生成
{标题}_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 "文章标题"
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.
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.
- 1mo ago First seen · 477 lines · 154 tokens per session scan A 4eb31b05e941
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.
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"…
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…
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.
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…
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.
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.