wechat-formatter

wechat-formatter is a skill for Claude Code from HeroAshacker/wechat-content-pipeline. It costs 227 tokens per session (2,372 once invoked), scanned A, original, MIT.

A tool that turns Markdown into HTML formatted for WeChat public articles, a publishing format used for posts on WeChat. It also supports themes, diagrams, mathematical formulas, AI-assisted editing, image generation, web-page collection, and publishing.

In plain words
What is it for?
It helps style articles, normalize Chinese text, add tables of contents and visuals, polish writing, collect web pages, preview output, and publish to WeChat.
Why use it?
It handles the formatting and conversion work needed to move a Markdown article into WeChat's article editor or publishing workflow.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node index.js xhs article.md --count 3 --style warm -o ./xhs-cards/.

Good fit It helps style articles, normalize Chinese text, add tables of contents and visuals, polish writing, collect web pages, preview output, and publish to WeChat.

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/HeroAshacker/wechat-content-pipeline
agentmods
npx agentmods add skills/heroashacker/wechat-content-pipeline/wechat-formatter

Made for: Claude Code.

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-formatter

README.md
[![agentmods](https://agentmods.dev/badge/skills/heroashacker/wechat-content-pipeline/wechat-formatter.svg)](https://agentmods.dev/skills/heroashacker/wechat-content-pipeline/wechat-formatter)
Your own site
<a href="https://agentmods.dev/skills/heroashacker/wechat-content-pipeline/wechat-formatter"><img src="https://agentmods.dev/badge/skills/heroashacker/wechat-content-pipeline/wechat-formatter.svg" alt="Measured on agentmods" height="20"></a>
Per session 227 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,372 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.00227 $0.02372
Opus 5 $0.00113 $0.01186
Sonnet 5 $0.00045 $0.00474
Haiku 4.5 $0.00023 $0.00237

Measured 8d ago against content hash ec35280677de, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

wechat-formatter 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 8d 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.

skills/wechat-formatter/SKILL.md · 253 lines

How it starts

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

微信公众号排版工具 (wechat-formatter v3.0)

Instructions

将 Markdown 转换为微信公众号兼容的内联样式 HTML,支持封面图、增强渲染、信息图、小红书系列图、网页采集和微信发布。

Step 1: 获取输入

  • 文件路径: .md 文件 → 直接使用
  • 内联文本: 保存为 /tmp/wx-format-temp.md
  • URL 采集: 使用 scrape 子命令先转换为 Markdown
  • 无输入: 提示用户提供内容

Step 2: 确定参数

基础参数
参数 默认值 说明
theme simple simple/business/tech 或 JSON 路径
output 输出 HTML 文件路径 (-o)
clipboard true 复制到剪贴板 (-c),--no-clipboard 禁用
preview false 在浏览器中预览 (-p)
list-themes false 列出所有可用主题 (-l)
normalize false 中文文本规范化
normalize-full false 全量规范化 (引号/标题/空行/列表/标点/间距)
important false 样式添加 !important
AI 润色参数
参数 默认值 说明
polish AI provider: gemini/deepseek/openai/claude
polish-type grammar grammar/style/title/structure/deai/readability/summary/seo
api-key AI API Key
dry-run false 仅打印 prompt,不调用 API
prompt-file 自定义 prompt 文件路径
polish-only false 仅润色,输出 Markdown
封面图参数
参数 默认值 说明
cover false 生成 AI 封面图
cover-style hero/conceptual/typography/metaphor/minimal
cover-palette warm/cool/dark/vivid/pastel/mono
cover-ratio 2.35:1 2.35:1/16:9/1:1
配图参数
参数 默认值 说明
images false 生成 AI 配图 (Gemini)
image-model gemini-3-pro-image-preview 图像生成模型
image-density balanced minimal/balanced/rich
image-style notion/warm/minimal/blueprint/watercolor
增强渲染参数
参数 默认值 说明
math false KaTeX 数学公式渲染 ($..$ 行内, $$...$$ 块级)
mermaid false Mermaid 图表渲染
toc false 生成目录导航
发布参数
参数 默认值 说明
publish 发布目标平台 (wechat)
publish-method api 发布方式
publish-title 文章标题 (可从 frontmatter 读取)
publish-author 文章作者
draft-only true 仅保存为草稿

Step 3: 执行转换

基础排版:

cd ~/Claude/🧪\ 小项目与测试/wx-format
node index.js <input.md> -t <theme> -o <output.html> --no-clipboard [--normalize] [--important]

Read the full file on GitHub · 253 lines

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. 8d ago First seen · 253 lines · 227 tokens per session scan A ec35280677de

Subscribe to this mod's changes

wechat-formatter is a skill published in the GitHub repository HeroAshacker/wechat-content-pipeline (11 stars, last pushed 6mo ago), licensed MIT. It adds 227 tokens to every session and 2,372 once invoked, about $0.0011 per session on Opus 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens