Zhy Markdown2wechat logo

Zhy Markdown2wechat

Community
zhylq
zhy-markdown2wechat

Use when converting Markdown into WeChat-compatible inline HTML with theme styles for preview, copy-paste, or downstream draft publishing.

Overview

Publisherzhylq
Repositoryyuan-skills
Skill namezhy-markdown2wechat
Stars
35
Forks
9
Bundled files
8
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zhylq on GitHub. Read the source before you install it.

Installation

Install the Zhy Markdown2wechat AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zhylq/yuan-skills/tree/main/skills/zhy-markdown2wechat
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zhylq/yuan-skills.git /tmp/yuan-skills
mkdir -p .claude/skills
cp -r /tmp/yuan-skills/skills/zhy-markdown2wechat .claude/skills/zhy-markdown2wechat
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Zhy Markdown2wechat in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Zhy Markdown2wechat on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Zhy Markdown2wechat is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

概述

这是一个用于将标准的 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 执行转换:

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

(例如将 input.md 转换为带默认主题的 output.html:node 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 天然支持“换肤”功能。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Zhy Markdown2wechat AI skill do?

Use when converting Markdown into WeChat-compatible inline HTML with theme styles for preview, copy-paste, or downstream draft publishing.

Why use Zhy Markdown2wechat on TypingMind?

Because you install it once and use it with any model. Zhy Markdown2wechat is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Zhy Markdown2wechat in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zhylq/yuan-skills/tree/main/skills/zhy-markdown2wechat. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Zhy Markdown2wechat?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Zhy Markdown2wechat?

As many as you like. As long as a model supports skills, you can use Zhy Markdown2wechat with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Zhy Markdown2wechat AI skill free?

Yes. It is published on GitHub by zhylq under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇