zhy-markdown2wechat

zhy-markdown2wechat is a skill for Claude Code, Codex from zhylq/yuan-skills. It costs 32 tokens per session (624 once invoked), scanned A, original, MIT.

A converter that turns Markdown into styled HTML suitable for articles in WeChat Official Accounts, the publishing platform commonly used for WeChat public posts.

In plain words
What is it for?
Use it to create a previewable HTML file from a Markdown article, apply a chosen theme, and copy the result into the WeChat editor.
Why use it?
WeChat's editor needs styles written directly into the HTML, so ordinary Markdown or regular web CSS may not paste correctly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create a previewable HTML file from a Markdown article, apply a chosen theme, and copy the result into the WeChat editor.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhylq/yuan-skills/zhy-markdown2wechat
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zhylq/yuan-skills --skill zhy-markdown2wechat
Clone the repo
git clone --depth 1 https://github.com/zhylq/yuan-skills

Made for: Claude Code, Codex.

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 zhy-markdown2wechat

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhylq/yuan-skills/zhy-markdown2wechat/github.svg)](https://agentmods.dev/skills/zhylq/yuan-skills/zhy-markdown2wechat)
Your own site
<a href="https://agentmods.dev/skills/zhylq/yuan-skills/zhy-markdown2wechat"><img src="https://agentmods.dev/badge/skills/zhylq/yuan-skills/zhy-markdown2wechat/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 zhy-markdown2wechat

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhylq/yuan-skills/zhy-markdown2wechat"><img src="https://agentmods.dev/badge/skills/zhylq/yuan-skills/zhy-markdown2wechat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 624 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.00032 $0.00624
Opus 5 $0.00016 $0.00312
Sonnet 5 $0.00006 $0.00125
Haiku 4.5 $0.00003 $0.00062

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

Security

Grade A, and why

zhy-markdown2wechat 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/convert.js), 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/zhy-markdown2wechat/SKILL.md · 39 lines

What it actually says

概述

这是一个用于将标准的 Markdown 文本,转换成能够直接复制粘贴给微信公众号文章编辑器的 HTML 文件的 Skill。微信公众号的 HTML 结构要求所有样式必须是内联的(Inline CSS)。

此 Skill 的核心优势是 零部署。只要用户的环境中安装了 Node.js,即可通过执行本 Skill 自带的转换脚本极其轻量地完成转换任务,它会自动在临时目录加载所需依赖并在完成后清理,不留任何环境垃圾,无需用户预先执行 npm install

适用场景

当用户希望你:

  • 把 md、markdown 格式的文件转为微信公众号文章。
  • 根据 Markdown 生成带 CSS 样式的公众号排版 HTML。

详细执行步骤

当你收到用户的转换请求时,如果不指定主题,默认使用 resources/themes/default.css

请你直接代用户执行以下命令,调用本 Skill 自带的 scripts/convert.js。如果你在使用工具(例如 Terminal / run_command),请直接调用即可。

执行转换脚本

使用 node 执行转换:

node <当前skill路径>/scripts/convert.js <用户指定的markdown文件> <选择的主题css文件> <输出目标html文件路径>

(例如将 input.md 转换为带默认主题的 output.htmlnode wechat-markdown-skill/scripts/convert.js input.md wechat-markdown-skill/resources/themes/default.css output.html)

脚本将会自动安全地处理 Markdown 转换、增加 <section id="MdWechat"> 微信容器、内联注入指定的 CSS 主题。

注意:当前主题体系会在容器根节点中携带 CSS 变量(如 --text-color),以便多主题共享配色语义。若后续要通过 zhy-wechat-publish 上传到草稿箱,应使用其最新发布脚本,它会在上传前自动展开 var(--xxx),避免微信后台丢失颜色样式。

交付输出结果

完成后,直接告诉用户:"您的公众号 HTML 已生成在 [目标文件] 中,可直接在浏览器打开预览效果,或用编辑器/浏览器打开后全选复制,粘贴到微信公众号后台即可。"

主题支持 (Themes)

本目录下的 resources/themes/ 可以存放多套不同的 CSS 主题方案。 如果用户要求更换主题风格,你可以查看并读取该目录下存在的 CSS 文件路径并传递给脚本,这使得该 Skill 天然支持“换肤”功能。

Files

What ships with it

9 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. 11d ago First seen · 39 lines · 32 tokens per session scan A 78d41ff1bd6c

Subscribe to this mod's changes

zhy-markdown2wechat is a skill published in the GitHub repository zhylq/yuan-skills (36 stars, last pushed 6mo ago), licensed MIT. It adds 32 tokens to every session and 624 once invoked, about $0.0002 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

tong-jincheng-perspective

A Chinese-language framework for thinking about relationships, attraction, social situations, and personal growth from the perspective of a livestream relationship creator.

863401402/she-love-me · 160 tokens

design-taste-frontend

Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.

Leonxlnx/taste-skill · 61 tokens

stitch-design-taste

Semantic Design System Skill for Google Stitch. Generates agent-friendly DESIGN.md files that enforce premium, anti-generic UI standards — strict typography, calibrated color, asymmetric layouts, perpetual micro-motion, and hardware-accelerated performance.

Leonxlnx/taste-skill · 50 tokens

imagegen-frontend-mobile

Elite mobile app image-generation skill for creating premium, app-native screen concepts and flows. Designed for iOS, Android, and cross-platform mobile products. Prioritizes clean hierarchy, comfortably readable text, strong multi-screen consistency, controlled color palettes, non-generic creative direction, textured…

Leonxlnx/taste-skill · 126 tokens

image-to-code

Elite website image-to-code skill for Codex. For visually important web tasks, it must first generate the design image(s) itself, deeply analyze them, then implement the website to match them as closely as possible. In Codex, it must prefer large, readable, section-specific images instead of tiny compressed boards…

Leonxlnx/taste-skill · 116 tokens

imagegen-frontend-web

Elite frontend image-direction skill for generating premium, conversion-aware website design references. CRITICAL OUTPUT RULE — generate ONE separate horizontal image FOR EVERY section. A landing page with 8 sections produces 8 images. Never compress multiple sections into one image. Enforces composition variety (not…

Leonxlnx/taste-skill · 126 tokens