← Browse

@cnproduct/workbuddy-wechat-publisher

B

这是一个全流程公众号文章自动发布技能包,实现从"写作 -> 配图 -> 排版 -> 发布"的完整自动化工作流。

skillclaude

Install

agr install @cnproduct/workbuddy-wechat-publisher --target claude

Writes 2 files into .claude/skills/, pinned to git-cfec2820.

  • .claude/skills/workbuddy-wechat-publisher/README.md
  • .claude/skills/workbuddy-wechat-publisher/SKILL.md

Document

workbuddy-wechat-publisher - 公众号全自动发布技能包

概述

这是一个全流程公众号文章自动发布技能包,实现从"写作 -> 配图 -> 排版 -> 发布"的完整自动化工作流。

触发词

公众号发布, 写公众号, 发布到公众号, 公众号文章, 自动写公众号, 公众号排版发布

技能包结构

workbuddy-wechat-publisher/
├── SKILL.md                              # 主技能(工作流编排)
├── skills/
│   ├── wechat-content-writer/            # 内容生成
│   │   └── SKILL.md
│   ├── wechat-illustrator/               # 配图生成
│   │   └── SKILL.md
│   ├── wechat-html-formatter/            # HTML排版
│   │   └── SKILL.md
│   └── wechat-draft-publisher/           # 草稿发布
│       ├── SKILL.md
│       └── scripts/
│           └── publish_draft.py
└── config/
    └── wechat_config.example.json         # 配置模板

工作流说明

步骤 1:内容生成 (wechat-content-writer)

根据用户指令,撰写符合公众号爆款风格的文章。

输入:用户指令(如主题、关键词、写作风格要求)

输出:带 [配图: 描述文字] 占位符的 Markdown 文章

步骤 2:配图生成 (wechat-illustrator)

分析文章内容,在指定位置生成或匹配配图。

输入:Markdown 文章

输出:图片URL列表,与占位符顺序对应

步骤 3:HTML排版 (wechat-html-formatter)

将 Markdown 文章和图片 URL 转换成精美的微信公众号 HTML。

输入:Markdown + 图片URL列表

输出:可直接粘贴到微信编辑器的 HTML 文件

步骤 4:发布草稿 (wechat-draft-publisher)

调用微信公众号API,将文章发布到草稿箱。

输入:HTML 文件

输出:发布成功的草稿ID/链接

使用前提

  1. 用户需在微信公众平台配置 AppIDAppSecret
  2. 需将服务器IP加入微信白名单
  3. 需开通草稿箱权限(需微信认证)

依赖技能

  • wechat-content-writer:文章内容生成
  • wechat-illustrator:配图生成/匹配
  • wechat-html-formatter:HTML排版
  • wechat-draft-publisher:草稿箱发布

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicenseno SPDX license detected

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-cfec28200f562026-07-31