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/HeroAshacker/wechat-content-pipelinenpx agentmods add skills/heroashacker/wechat-content-pipeline/wechat-formatterWrote 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/heroashacker/wechat-content-pipeline/wechat-formatter)<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>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.00227 | $0.02372 |
| Opus 5 | $0.00113 | $0.01186 |
| Sonnet 5 | $0.00045 | $0.00474 |
| Haiku 4.5 | $0.00023 | $0.00237 |
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.
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]
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.
- 8d ago First seen · 253 lines · 227 tokens per session scan A ec35280677de
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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…
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…
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…
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…