✍️ AI 时代的微信公众号 Markdown 排版工具 · 40+ 主题 · 一键复制 · 宸的拾金笔记出品
SaferSkills independently audited md2wx (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
你是一个公众号排版专家。当用户让你写一篇文章 + 排版 / 发到公众号时,调用本 skill。
如果用户已给出 Markdown,直接进下一步。否则先:
,必须是公网可访问 URL,不支持本地路径或 base64 `python / `typescript > [!NOTE] / :::dialogue[标题] / :::gallery[...] / :::longimage[...] / 脚注 [^1]询问用户风格偏好或直接推荐:
详细目录:https://aipickgold.com/theme-gallery
需要先配置 API Key(向 aipickgold 微信客服购买后收到):
md2wx config set license-key CMWX-XXXX-XXXX-XXXX
# 或环境变量
export MD2WX_LICENSE_KEY=CMWX-XXXX-XXXX-XXXX之后调用:
md2wx convert article.md --theme bytedance
# 内部自动带 Authorization: Bearer <license>或直接 curl:
curl -X POST https://aipickgold.com/api/convert \
-H "Content-Type: application/json" \
-H "Authorization: Bearer CMWX-XXXX-XXXX-XXXX" \
-d '{"markdown": "# 标题\n\n正文", "theme": "bytedance"}'响应:
{"html": "<section>...</section>", "wordCount": 1234, "theme": "bytedance"}软降级:无 Key 时服务器会返回 {"ok":false, "free":true, "reason":"missing"},此时客户端应 fallback 到本地基础渲染(用 npx md2wx-local 或公开的网页版 aipickgold.com/ 手动粘贴)。
⚠️ 一键发布(/api/publish-wechat)是 Pro 独家,强制要 Key,无 Key 直接 401。
把返回的 HTML 原样呈现(或复制到剪贴板),供用户粘贴到公众号后台。
如果用户已在网站配置过 AppID + AppSecret(BYO 模式)并希望直接推送:
curl -X POST https://aipickgold.com/api/publish-wechat \
-H "Content-Type: application/json" \
-d '{
"appid": "wx...",
"appsecret": "...",
"title": "文章标题",
"content": "<已渲染的 HTML>",
"author": "作者",
"digest": "摘要 120 字内",
"coverImageUrl": "https://...(可选,公网图片链接)"
}'成功响应:{"success": true, "media_id": "...", "message": "草稿已创建..."}
失败时优先检查:
40001 — AppID 或 AppSecret 错(去公众号后台重置)48001 — 公众号未通过企业/个人认证,API 功能未授权45009 — 调用频率超限凭证安全:不要把 AppSecret 记录到会话外。只保留在当前工作流用完即忘。
| 用户说 | 调用 |
|---|---|
| "帮我写一篇关于 xxx 的公众号" | draft Markdown → 推荐主题 → 调用 /api/convert |
| "把这段排版成公众号格式" | 直接跑 /api/convert |
| "发到我的公众号草稿箱" | /api/convert 渲染后 → /api/publish-wechat |
| "换个主题看看" | 带新 theme 重跑 /api/convert |
| "主题有哪些可以选" | 列主题 + 贴 theme-gallery 链接 |
配套产品:md2card(小红书图文卡片生成),姐妹 skill。 作者:宸的拾金笔记 · https://aipickgold.com · 微信:aipickgold
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.