# md2wechat > 面向 AI Agent 的微信公众号创作与发布 CLI。它把 Markdown 转成微信公众号可用 HTML,并提供在线编辑器、稳定 API、主 CLI 与 Agent Skill。 ## Canonical Facts - Primary site: https://www.md2wechat.cn - Stable API: POST https://www.md2wechat.cn/api/convert - Publishing API: https://md2wechat.com/api/v1 - CLI command: md2wechat - Main CLI package: @geekjourneyx/md2wechat - Full Agent context: https://www.md2wechat.cn/llms-full.txt - Updated: 2026-10-28 ## Product Map CLI and Skill are the core product entry points. Convert API and Publishing API are distinct service-layer products. - dsh-md2wechat / DeepSeek Harness 插件: 在 DSH 内创作、预览并确认导出或保存公众号草稿. Entry: https://www.md2wechat.cn/dsh - Obsidian 插件 / MD2WeChat Publisher: 基于主 CLI,在 Obsidian 内预览排版并确认创建公众号草稿. Entry: https://www.md2wechat.cn/obsidian - 主 CLI: 通过 md2wechat 命令执行创作与发布工作流. Entry: https://www.npmjs.com/package/@geekjourneyx/md2wechat - Agent Skill: 让 Agent 发现并正确调用 md2wechat. Entry: https://github.com/geekjourneyx/md2wechat-skill - Convert API: 程序化调用 Markdown 转公众号 HTML 服务. Entry: https://www.md2wechat.cn/api-docs - Publishing API: 程序化调用发布服务. Entry: https://www.md2wechat.com/zh/docs/quickstart - 在线编辑器: 浏览器内编辑、预览并复制公众号 HTML. Entry: https://www.md2wechat.cn/editor - 能力发现协议: 让 Agent 读取并发现可用工作流能力. Entry: https://www.md2wechat.cn/docs/md2wechat/skill.md - md2wechat-lite / md2wx: 独立的轻量工具,不是主 CLI 的别名. Entry: https://github.com/geekjourneyx/md2wechat-lite ## DeepSeek Harness / DSH plugin dsh-md2wechat 2.0.0-rc.3(预发布版),核验于 2026-10-28。在 DeepSeek Harness(DSH)中写作、润色、调整标题、选择主题与配图,预览确认后导出 HTML 或保存公众号草稿。 需要匹配的 DSH 宿主与网页客户端 0.2.0-rc.2 或 0.2.1-rc.2、独立安装的 md2wechat CLI 和有效排版 API Key。 插件只保存未发布草稿,不发布、不群发;当前使用 DSH 中配置的一组公众号凭据,不提供界面内多账号切换或批量投递。 插件 README 记录的最近验证使用 DSH 0.2.1-rc.2、CLI 3.8.0、本地排版测试服务与模拟微信写入,并在真实宿主中检查界面;不代表付费生图或真实公众号投递已验证。 安装:https://www.md2wechat.cn/docs/dsh;来源:https://github.com/geekjourneyx/dsh-md2wechat#readme - 第三方资料(含日期与适用范围,不代表认证或独立实测): https://www.md2wechat.cn/about#references - DSH 公众号插件: https://www.md2wechat.cn/dsh - DSH 安装与配置: https://www.md2wechat.cn/docs/dsh - 命令与能力大全: https://www.md2wechat.cn/cli/commands - 多平台草稿: https://www.md2wechat.cn/multi-platform - 多平台草稿教程: https://www.md2wechat.cn/docs/multi-platform - Obsidian 插件: https://www.md2wechat.cn/obsidian - API 服务: https://www.md2wechat.cn/product - CLI 与 Agent Skill: https://www.md2wechat.cn/cli - 在线编辑器: https://www.md2wechat.cn/editor - 排版作品: https://www.md2wechat.cn/theme-gallery - 接入步骤: https://www.md2wechat.cn/docs/quickstart - 价格与开通: https://www.md2wechat.cn/pricing ## Directed writing CLI reference version: 3.8.0. 由 Agent 根据产品资料、读者、发布平台、体裁和作者语气准备文章或百科词条草稿。 使用 CLI 内置写作指引,没有新增写作命令或模型接入。百科支持交付词条草稿,不代为提交,不保证审核、收录或搜索引用。 Read: md2wechat skills read md2wechat references/writing/workflow.md --json Guide: https://github.com/geekjourneyx/md2wechat-skill/blob/v3.8.0/docs/WRITING.md ## Multi-platform unpublished drafts 借助具备浏览器能力的 Agent,将符合要求的 Markdown 保存为知乎、CSDN、头条、腾讯云开发者社区未发布草稿,保存后重新打开核对。 需要具备浏览器能力的 Agent,以及用户已登录的目标平台账号。 支持普通 Markdown 与有效本地图片;远程图片、Obsidian 专用语法、原始 HTML 和高级排版块需先处理。 本地准备不需要微信凭证或排版 API Key;准备成功不等于草稿完成。 头条会归一化标题级别;混合多个标题级别时须在写入前停止,经作者同意调整原稿后再继续。特殊字符须逐字符核对。 腾讯云指引从 v3.7.0 起提供。先粘贴正文,再通过编辑器插入本地图片;保存后重新打开同一草稿核对。多图、长文及草稿列表恢复尚未验证。 项目记录包含 macOS、Chrome 已登录会话的知乎、CSDN、头条短图文、结构与长文验证。腾讯云已验证短结构正文与单图保存重开;多图、长文及从草稿列表恢复尚未验证。其他系统与 Agent 宿主尚未逐一验收。 企业自用、代运营及客户交付请先确认授权范围。商业授权单独沟通,购买服务不自动包含商业授权。 Run `md2wechat capabilities --json` and `md2wechat sync prepare article.md --output ./article-prepared --json`; the output directory must be new and its parent must exist. SYNC_PREPARED / action_required means local preparation only. Read the installed `references/sync/workflow.md` and each target platform instruction with `md2wechat skills read md2wechat --json`. Reopen an existing draft to resume; do not create duplicates. No automatic public publishing or update of previously published articles. Release: https://github.com/geekjourneyx/md2wechat-skill/releases/tag/v3.8.0 Evidence: https://github.com/geekjourneyx/md2wechat-skill/blob/v3.8.0/docs/SMOKE.md Private drafts do not create publicly searchable content. Public publication does not guarantee indexing, ranking or AI citations. ## Getting started and troubleshooting - First CLI installation, local checks and HTML preview: https://www.md2wechat.cn/blog/md2wechat-skill-beginner-guide - Installation, preview and draft troubleshooting: https://www.md2wechat.cn/blog/md2wechat-faq-troubleshooting - Choose documentation by the result needed: https://www.md2wechat.cn/docs#choose-task Local doctor checks do not prove live authentication. API preview needs a conversion API key; failed previews do not create or replace output HTML. Upload and draft creation require separate prerequisites and explicit user intent. After a draft timeout, inspect the existing result before retrying. ## Task Routing - Obsidian preview and confirmed drafts (desktop, CLI required): https://www.md2wechat.cn/obsidian - Obsidian installation and upgrade: https://www.md2wechat.cn/blog/obsidian-to-wechat-guide - Browser editing and visual preview: https://www.md2wechat.cn - Programmatic Markdown conversion: https://www.md2wechat.cn/api-docs - Publishing API intent and credential boundaries: https://www.md2wechat.cn/wechat-publishing-api - Publishing service base: https://md2wechat.com/api/v1 - Office Agent CLI installation and usage: https://www.md2wechat.cn/integrations - Markdown-to-draft workflow: https://www.md2wechat.cn/workflows/markdown-to-wechat-draft - Agent or terminal workflow: https://www.md2wechat.cn/docs/md2wechat - Agent execution protocol: https://www.md2wechat.cn/docs/md2wechat/skill.md - Theme and visual examples: https://www.md2wechat.cn/theme-gallery - Wechat sync / Wechatsync comparison (Agent browser drafts, platform coverage and evidence): https://www.md2wechat.cn/compare/md2wechat-vs-wechatsync - Product comparisons: https://www.md2wechat.cn/compare - Agent workflow evidence (four projects, ten dimensions; documentation is not a runtime test): https://www.md2wechat.cn/compare#agent-workflows ### Indexable Office Agent Evidence Pages - 千问办公公众号排版 Skill:如何安装和使用 md2wechat: https://www.md2wechat.cn/integrations/qwenwork — CLI installation prompts, formatting steps and historical verification records - DuMate 公众号排版 Skill:如何安装和使用 md2wechat: https://www.md2wechat.cn/integrations/dumate — CLI installation prompts, formatting steps and historical verification records - 豆包办公公众号排版 Skill:豆包工作如何安装和使用 md2wechat: https://www.md2wechat.cn/integrations/doubao-work — CLI installation prompts, formatting steps and historical verification records - WorkBuddy 公众号排版与发布 Skill:如何安装和使用 md2wechat: https://www.md2wechat.cn/integrations/workbuddy — CLI installation prompts, formatting steps and historical verification records ## Official Sources - dsh-md2wechat 插件: https://github.com/geekjourneyx/dsh-md2wechat - 多平台草稿版本说明: https://github.com/geekjourneyx/md2wechat-skill/releases/tag/v3.8.0 - Obsidian 插件: https://github.com/geekjourneyx/obsidian-md2wechat - 中文官网: https://www.md2wechat.cn - 主 CLI npm: https://www.npmjs.com/package/@geekjourneyx/md2wechat - Agent Skill GitHub: https://github.com/geekjourneyx/md2wechat-skill - 国际英文站: https://md2wechat.com ## Office Agent installation For 千问办公 (QwenWork), DuMate, WorkBuddy and 豆包工作 (豆包办公), install the CLI in the environment where the Agent executes commands: npm install -g @geekjourneyx/md2wechat If configuration has not been initialized, run md2wechat config init. Preserve existing configuration. The Agent needs terminal and file access; conversion service calls require a valid API key. - Copyable installation and formatting prompts: https://www.md2wechat.cn/blog/office-agent-md2wechat-install-guide - Agent operation manual: https://www.md2wechat.cn/docs/md2wechat/skill - CLI manual: https://www.md2wechat.cn/docs/md2wechat - Advanced layout: https://www.md2wechat.cn/features ## Skill Distribution - GitHub: https://github.com/geekjourneyx/md2wechat-skill — 同时交付 CLI 与 Skill - 腾讯 SkillHub: https://skillhub.cn/skills/clawhub_geekjourneyx/md2wechat — 已有 md2wechat 技能详情入口 Distribution evidence does not prove host compatibility. A channel listing confirms distribution only; describe an Agent as supported only when its md2wechat status is verified or compatible. ## Safety And Boundaries - Treat POST https://www.md2wechat.cn/api/convert as the current public conversion contract. - https://md2wechat.com/api/v1 is the active international Publishing API and a separate service from the Convert API. - Discover the installed CLI version with `md2wechat version --json`; do not infer it from page copy. - Read capabilities with `md2wechat capabilities --json` before generating optional fields. - Creating a WeChat draft is a side effect and requires explicit user intent plus valid credentials.