Wechat Publisher logo

Wechat Publisher

Community
zrt-ai-lab
wechat-publisher

This skill should be used when preparing Markdown articles for a WeChat Official Account draft box, selecting wenyan-cli themes, processing article images, or troubleshooting authentication and whitelist failures.

Overview

Publisherzrt-ai-lab
Repositoryopencode-skills
Skill namewechat-publisher
Stars
293
Forks
75
Bundled files
11
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.

  • 11 bundled files

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

  • Open source

    Published by zrt-ai-lab on GitHub. Read the source before you install it.

Installation

Install the Wechat Publisher 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/zrt-ai-lab/opencode-skills/tree/main/wechat-publisher
  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/zrt-ai-lab/opencode-skills.git /tmp/opencode-skills
mkdir -p .claude/skills
cp -r /tmp/opencode-skills/wechat-publisher .claude/skills/wechat-publisher
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wechat Publisher 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 Wechat Publisher 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 Wechat Publisher 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 文章转换为微信公众号格式并提交到草稿箱。基于 wenyan-cli,支持主题、代码高亮和本地/网络图片上传。

触发场景

  • 要求“发到公众号”“推送公众号”“提交公众号草稿”。
  • 需要把 Markdown 排版为微信公众号图文。
  • 需要选择文章主题、代码高亮或排查图片/API/白名单问题。

安全边界

  • 默认只提交草稿箱,不代替公众号后台的审核和正式发布。
  • 只有明确要求时才执行联网发布;先运行 --dry-run。
  • 从当前 shell、CI Secret 或外部密钥管理器读取 WECHAT_APP_ID、WECHAT_APP_SECRET;禁止把凭证写入仓库、模板、文章或命令历史。
  • 发布前运行 scripts/validate_article.py。发现疑似凭证、私钥或本机路径时停止并要求清理,不回显匹配值。
  • 不读取宿主环境私有配置、个人配置或固定绝对路径;不自动安装全局依赖。

标准流程

  1. 准备带 frontmatter 的 Markdown 文件,优先复制 assets/templates/article-template.md。

  2. 在 frontmatter 中填写 title 和 cover;正文至少保留一张可访问的图片作为后备封面。

  3. 使用 python3 scripts/validate_article.py ARTICLE.md 检查结构和敏感信息。

  4. 使用 scripts/publish.sh --dry-run ARTICLE.md 预览命令。

  5. 明确获得“提交草稿”意图后,设置凭证并执行:

    bash
    export WECHAT_APP_ID='从密钥管理器注入的值'
    export WECHAT_APP_SECRET='从密钥管理器注入的值'
    ./scripts/publish.sh ARTICLE.md lapis solarized-light
  6. 到微信公众号后台审核草稿;需要正式发布时由操作者在后台完成。

模板与参考资料

  • assets/templates/article-template.md:通用文章骨架。
  • assets/templates/technical-tutorial.md:技术教程模板。
  • assets/templates/product-update.md:产品/版本更新模板。
  • assets/templates/weekly-digest.md:周报或资讯汇总模板。
  • assets/templates/cover-prompt.txt:封面图生成提示词模板。
  • references/themes.md:主题与代码高亮选型。
  • references/content-checklist.md:发布前内容检查单。
  • references/troubleshooting.md:常见错误和排查路径。

命令速查

bash
./scripts/publish.sh --help
./scripts/publish.sh --dry-run path/to/article.md
./scripts/publish.sh path/to/article.md
./scripts/setup.sh

publish.sh 默认使用 lapis 主题和 solarized-light 代码高亮,也可通过参数或环境变量 WECHAT_PUBLISH_THEME、WECHAT_PUBLISH_HIGHLIGHT 覆盖。

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 Wechat Publisher AI skill do?

This skill should be used when preparing Markdown articles for a WeChat Official Account draft box, selecting wenyan-cli themes, processing article images, or troubleshooting authentication and whitelist failures.

Why use Wechat Publisher on TypingMind?

Because you install it once and use it with any model. Wechat Publisher 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 Wechat Publisher in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zrt-ai-lab/opencode-skills/tree/main/wechat-publisher. 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 Wechat Publisher?

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 Wechat Publisher?

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

Is the Wechat Publisher AI skill free?

It is published on GitHub by zrt-ai-lab. Check the repository for licensing terms. 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 👇