SkillAgentSearch skills...

md2wechat-skill

面向 AI Agent 的微信公众号创作与发布 CLI:Markdown 排版、AI 配图、预览与草稿创建;支持由浏览器 Agent 保存知乎、CSDN、头条未发布草稿。

Install / Use

claude mcp add geekjourneyx -- npx -y github:geekjourneyx/md2wechat-skill

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

91/100

Supported Platforms

Claude Code
Claude Desktop

Tags

Our assessment of md2wechat-skill

md2wechat-skill scores 91/100 on our quality scale, 319th of 1,173 Content & Media skills we index (top 28%).

Its MCP Server is 8.0 KB long, well organised into 9 sections with 8 code examples: a thorough specification that gives an agent plenty to work with.

With 3,780 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
29/30
Structure
20/20
Description
12/15
Adoption
15/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 22 days ago, so md2wechat-skill is actively maintained.
  • Our last check on 2026-10-21 found the source still online.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 83/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

md2wechat-skill compared with similar skills

All 4 of these similar skills score higher than md2wechat-skill; compare them before choosing.

SkillScoreStarsUpdatedFormat
md2wechat-skill (this skill)by geekjourneyx913.8k22d agoMCP Server
Agent-Reachby Panniantong100109.3ktodayCLAUDE.md
headroomby headroomlabs-ai10079.0ktodayCLAUDE.md
CowAgentby zhayujie10047.8ktodayCLAUDE.md
Scraplingby D4Vinci10098.3ktodayMCP Server

Frequently asked questions

How do I install md2wechat-skill?
Run claude mcp add geekjourneyx -- npx -y github:geekjourneyx/md2wechat-skill. The install tabs above show the steps for each supported agent.
Which AI agents does md2wechat-skill work with?
It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
Is md2wechat-skill safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 83/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is md2wechat-skill still maintained?
The repository was last updated 22 days ago, so md2wechat-skill is actively maintained.
<div align="center"> <h1> <img src="assets/favicon.ico" alt="md2wechat logo" width="28" /> md2wechat </h1> <img src="assets/readme-header.gif" alt="md2wechat CLI demo" width="720" />

面向 AI Agent 的微信公众号创作与发布 CLI

写 Markdown,生成公众号排版,制作封面和文章配图,预览校验后推送草稿箱。

支持 Claude Code、Codex、WorkBuddy、Kimi Work、Hermes Agent、OpenClaw 等 Agent 通过 JSON discovery 稳定调用。

Go Version License GitHub Release Agent Ready API

<p> <a href="https://trendshift.io/repositories/26638?utm_source=trendshift-badge&amp;utm_medium=badge&amp;utm_campaign=badge-trendshift-26638" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/26638/daily?language=Go" alt="geekjourneyx%2Fmd2wechat-skill | Trendshift" width="250" height="55"/></a> <a href="https://trendshift.io/repositories/26638?utm_source=trendshift-badge&amp;utm_medium=badge&amp;utm_campaign=badge-trendshift-26638" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/26638/weekly?language=Go" alt="geekjourneyx%2Fmd2wechat-skill | Trendshift" width="250" height="55"/></a> </p>

快速开始 · 专业 API · Agent 工作流 · 高级排版 · 文档

</div>

这个项目解决什么问题

md2wechat 把公众号发布流程拆成一组可验证的 CLI 命令:

| 场景 | md2wechat 提供 | |---|---| | Markdown 转微信 HTML | convert,支持预览、上传图片、创建草稿 | | 发布前检查 | inspect --json 输出标题、摘要、图片、cover、draft readiness | | 稳定排版 | API 模式成功时返回最终 HTML,覆盖 68 个主推高级排版场景条目和 53 个主推 ::: 语法名 | | Agent 自动化 | capabilities、doctor、themes、layout、providers 等 discovery 命令 | | 内容生产 | write、humanize、title suggest、generate_cover、generate_infographic | | 多账号发布 | 命名公众号账号,本地只读发现,不输出 Secret | | 微信白名单 | 高级 API 服务可提供微信接口固定出口能力 |


快速开始

npm install -g @geekjourneyx/md2wechat
md2wechat version --json
md2wechat config init --json
md2wechat config validate --json

API 模式预览和转换需要 md2wechat API Key;完成详细凭证配置后,先检查文章,再把 HTML 明确写入本地文件:

md2wechat inspect article.md --json
md2wechat preview article.md --output preview.html
md2wechat convert article.md --output article.html

以上命令不会上传图片或创建草稿。需要创建微信草稿时,先按同一目标检查,再显式执行副作用:

md2wechat inspect article.md --draft --cover cover.jpg --json
md2wechat convert article.md --draft --cover cover.jpg

如果使用可选的 --wechat-account,必须在 inspect 和 convert 两条命令中传入同一个账号名。

安装方式、微信凭证和 IP 白名单配置见:


专业 API

API 模式适合需要稳定输出、多人协作、批量发布或 Agent 自动化的场景。

| 能力 | 免费 AI 模式 | 专业 API 模式 | |---|---|---| | 输出方式 | 生成 prompt,由外部 LLM 继续处理 | 直接返回微信 HTML | | 主题 | 3 个基础主题 | 48 个专业主题 | | 高级排版模块 | 不解析,:::module 作为普通段落输出 | API renderer 解析 53 个推荐 :::module 语法 | | 转换结果 | 需要外部 LLM 完成 HTML | converter 成功时返回最终 HTML | | 发布自动化 | 适合实验 | 适合团队、客户号、矩阵号 |

专业能力包括:

申请 API 服务:关注公众号「极客杰尼」,备注「API咨询」。

<p align="center"> <img src="assets/wechat.png" alt="公众号:极客杰尼" width="160" /> </p>

Agent 工作流

md2wechat 给 Agent 提供可机读接口,减少猜测和误操作。

md2wechat capabilities --json
md2wechat doctor --json
md2wechat inspect article.md --json
md2wechat themes list --json
md2wechat layout list --json
md2wechat title suggest article.md --json
md2wechat title suggest article.md --json --hook-level 2
md2wechat skills list --json
md2wechat skills read md2wechat --json

按任务选择 discovery:用 capabilities 获取聚合路由事实,用资源的 list 做选择,用 show 查看单个资源的完整定义,仅在该资源支持时使用 render。JSON stdout 是单行紧凑对象并以换行结束;人类阅读时可在命令后加 | jq,不要要求 CLI 改成缩进输出。

文章命令边界固定为:inspect 返回结构化 metadata、checks、readiness targets 和 blockers;preview 只把成功的 API converter 最终 HTML 原样写入文件;convert 执行转换,并且只在用户明确请求时执行 upload/draft 副作用。AI preview 返回 PREVIEW_ACTION_REQUIRED 且不创建输出文件,需要 readiness 时使用 inspect --json。

这些命令适合 Claude Code、Codex、WorkBuddy、Kimi Work、Hermes Agent、OpenClaw 以及其他能调用本地 CLI 的 Agent 使用。

Agent 可以据此判断:

  • 当前 CLI 支持哪些命令
  • API、草稿、上传是否具备执行条件
  • 某篇文章能不能发草稿
  • 当前主题和排版模块是否可用
  • 标题建议是否应交给宿主 Agent / 外部模型完成
  • 当前二进制内置的 Agent SOP 是什么

Brand Profile 支持把长期风格偏好写入 ~/.config/md2wechat/brand.md,由 Agent 在写作和排版时读取。详见 docs/BRAND-PROFILE.md。


图片生成

md2wechat 支持两条图片路径。

先从当前二进制发现可用 preset,再调用图片 provider:

md2wechat prompts list --kind image --archetype cover --json
md2wechat prompts list --kind image --archetype infographic --json

md2wechat generate_cover --article article.md
md2wechat generate_cover --article article.md --preset cover-semantic-concept
md2wechat generate_infographic --article article.md --preset infographic-claude-warm

完整 preset 清单、用途和默认画幅以 prompts list/show --json 为准,文档只保留代表性示例。

支持 Volcengine、ModelScope、OpenRouter、OpenAI、Gemini 等服务。配置见 docs/IMAGE_PROVISIONERS.md。

使用宿主 Agent 的 Image Gen:

md2wechat generate_cover --article article.md --plan --json
md2wechat generate_infographic --article article.md --plan --json

计划模式返回 IMAGE_PLAN_READY,不请求图片 provider,不要求 IMAGE_API_KEY,也不会上传到微信。仅当当前宿主运行时实际暴露 Image Gen 工具时,Agent 才能继续执行图片生成。详见 docs/AGENT_IMAGE_GEN.md。


高级排版

API 模式支持 :::module 语法,用 Markdown 写结构化公众号排版。

:::hero
eyebrow: 深度观察
title: AI 时代的公众号写作
subtitle: 为什么读者愿意继续读下去
:::

:::callout
高级排版模块只在 API 模式渲染。
:::

查看和验证模块:

md2wechat layout list --json
md2wechat layout show hero --json
md2wechat layout validate --file article.md --json

本地 layout validate 只验证语法,不能证明远端 renderer 已部署;需要通过 API preview 或 convert 验证实际渲染。

<p align="center"> <img src="assets/theme-showcase/theme-showcase-default.png" alt="default 主题效果" width="180" /> <img src="assets/theme-showcase/theme-showcase-bytedance.png" alt="bytedance 主题效果" width="180" /> <img src="assets/theme-showcase/theme-showcase-elegant-gold.png" alt="elegant-gold 主题效果" width="180" /> </p>

完整教程见 docs/LAYOUT.md。

这里的计数不是同一维度:68 是上游使用场景条目,一个语法名可以覆盖多个结构变体;53 是 layout list --json 默认返回的推荐语法名。兼容模块默认不混入推荐列表。


常用命令

| 命令 | 用途 | |---|---| | inspect | 返回结构化 metadata、checks、readiness targets 和 blockers | | advise | 为已有文章推荐可选的最小增强动作 | | preview | 只写入成功 API 转换的最终 HTML;失败或 AI handoff 不新建或覆盖 | | convert | 转换 Markdown,并按显式请求执行 upload/draft 副作用 | | write | 从想法生成文章 | | humanize | 重写 AI 文章,支持 authentic 强度 | | title suggest | 生成公众号标题建议的 AI 请求 | | generate_cover | 生成封面图或图片计划 | | generate_infographic | 生成信息图或图片计划 | | upload_image | 上传图片到微信素材库 | | create_image_post | 创建微信图片消息(小绿书/newspic) | | config wechat-accounts | 查看本地多公众号账号配置 | | doctor | 本地配置体检 |


文档

| 文档 | 内容 | |---|---| | QUICKSTART | 新手主路径 | | USAGE | 命令完整说明 | | DISCOVERY | Agent discovery 契约 | | WORKBUDDY | WorkBuddy 安装、检查、预览与草稿确认流程 | | ADVISE | 已有文章的可选增强建议 | | LAYOUT | 高级排版模块教程与 discovery 用法 | | HUMANIZE | AI 去痕与 authentic 写作 | | AGENT_IMAGE_GEN | 宿主 Agent Image Gen 工作流 | | CONFIG | 配置字段和环境变量 | | FAQ | 常见问题 | | TROUBLESHOOTING | 故障排查 |


许可与商业使用

本项目采用 Source Available License。个人使用、学习、评估、非营利使用免费。商业使用、SaaS、客户交付、白标、再分发和训练数据用途需要商业授权。

商业授权和 API 服务:关注公众号「极客杰尼」备注「API咨询」,或联系 skrphper@gmail.com。


<div align="center">

文档 · Issues · Commercial licensing

Made by geekjourneyx

</div>

Related Skills

View on GitHub
GitHub Stars3.8k
CategoryContent
Updated22d ago
Forks422

Languages

Go

Trust signals

83/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium1 low