← 返回 Skills 市场
gongdinghuan

微信自动写作排版专业技能(包含公众号发布功能)

作者 龚玎焕 · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
88
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install clawhub-wechat-writing-pro
功能描述
支持微信公众号深度内容从Markdown写作、爆款方法论指导、94种排版主题选择到图片上传、草稿创建及一键发布的全流程管理。
使用说明 (SKILL.md)

📝 微信公众号专业写作+发布技能包\r

\r

微信公众号深度内容创作+发布全栈技能:Markdown 语法 → 爆款写作 → 94种排版主题 → 排版 → 上传图片 → 创建草稿 → 发布\r \r

📌 技能说明\r

\r 用途:为 AI Agent 提供完整的微信公众号内容创作与发布能力,涵盖从语法基础到排版发布的全流程。\r \r 核心能力:\r

  • 📖 Markdown 完整语法参考 — 38个知识点,基本+扩展+高级技巧\r
  • ✍️ 爆款推文写作方法论 — 标题公式、文章结构、情感共鸣、评分系统\r
  • 🎨 94种排版主题库 — 按场景/风格分类,精准匹配文章类型\r
  • 📤 完整发布流程 — API接口、图片上传、草稿创建、发布、状态查询\r
  • 📐 公众号排版专项优化 — 平台限制、排版节奏、视觉层次\r \r

何时使用\r

\r

✅ 使用场景\r

  • AI Agent 需要为微信公众号创作深度内容\r
  • 需要将 Markdown 转换为微信公众号排版\r
  • 需要选择合适的排版主题\r
  • 学习爆款文章写作方法论\r
  • 需要完整的 Markdown 语法参考\r
  • 需要上传图片到微信素材库\r
  • 需要创建草稿并发布到公众号\r
  • 公众号文章排版与发布全流程\r \r

❌ 不使用场景\r

  • 非微信公众号平台的内容创作\r
  • 纯技术文档编写(无排版需求)\r
  • 简单文本处理任务\r \r ---\r \r

📂 技能文件结构\r

\r

clawhub-wechat-writing-pro/\r
├── SKILL.md                              # 本文件:技能总览\r
├── package.json                          # 元数据\r
├── README.md                             # 说明文档\r
└── knowledge/\r
    ├── markdown-syntax-guide.md          # Markdown 完整语法参考(38个知识点)\r
    ├── viral-writing-methodology.md      # 爆款推文写作方法论\r
    ├── theme-catalog.md                  # 94种排版主题分类目录\r
    └── wechat-publishing-guide.md        # 发布完整指南(API/图片/草稿/发布/排查)\r
```\r
\r
---\r
\r
## 📖 使用方法\r
\r
### 第一步:读取知识库\r
\r
Agent 在创作公众号文章前,应先加载相关知识文件:\r
\r
```\r
1. 读取 knowledge/markdown-syntax-guide.md        — 掌握语法\r
2. 读取 knowledge/viral-writing-methodology.md     — 掌握写作方法\r
3. 读取 knowledge/theme-catalog.md                 — 选择排版主题\r
4. 读取 knowledge/wechat-publishing-guide.md       — 了解发布流程\r
```\r
\r
### 第二步:创作流程\r
\r
```\r
搜集热点 → 筛选价值点 → 选择主题 → 撰写文章 → 排版优化 → 上传图片 → 创建草稿 → 发布\r
```\r
\r
### 第三步:评分验证\r
\r
使用 `viral-writing-methodology.md` 中的评分系统(0-100分),低于70分重写。\r
\r
---\r
\r
## 📤 发布功能说明\r
\r
### 发布方式一:通过 OpenClaw 内置工具(推荐)\r
\r
OpenClaw 内置了 `wechat_publisher` 工具,支持一键完成排版+发布:\r
\r
| 操作 | 命令 |\r
|:-----|:-----|\r
| **排版** | `wechat_publisher.format_markdown(markdown_content, theme_name)` |\r
| **上传图片** | `wechat_publisher.upload_image(image_path)` |\r
| **创建草稿** | `wechat_publisher.create_draft(title, content_html, thumb_media_id)` |\r
| **发布草稿** | `wechat_publisher.publish_draft(media_id)` |\r
| **查询状态** | `wechat_publisher.query_publish_status(publish_id)` |\r
| **一键发布** | `wechat_publisher.full_auto_publish(...)` |\r
\r
### 发布方式二:通过微信 API 直接调用\r
\r
详见 `knowledge/wechat-publishing-guide.md`,包含完整的:\r
\r
| 接口 | 说明 |\r
|:-----|:-----|\r
| `cgi-bin/token` | 获取 Access Token |\r
| `cgi-bin/material/add_material` | 上传封面图(永久素材) |\r
| `cgi-bin/media/uploadimg` | 上传正文图片 |\r
| `cgi-bin/draft/add` | 创建草稿 |\r
| `cgi-bin/freepublish/submit` | 发布草稿 |\r
| `cgi-bin/freepublish/get` | 查询发布状态 |\r
\r
### 发布流程图\r
\r
```\r
                    ┌──────────────┐\r
                    │  创作内容     │\r
                    └──────┬───────┘\r
                           ▼\r
                    ┌──────────────┐\r
                    │ Markdown排版  │ ← theme-catalog.md 选主题\r
                    └──────┬───────┘\r
                           ▼\r
                    ┌──────────────┐\r
                    │ 上传封面图    │ ← add_material API\r
                    └──────┬───────┘\r
                           ▼\r
                    ┌──────────────┐\r
                    │ 上传正文图片  │ ← uploadimg API(如有图片)\r
                    └──────┬───────┘\r
                           ▼\r
                    ┌──────────────┐\r
                    │ 创建草稿      │ ← draft/add API\r
                    └──────┬───────┘\r
                           ▼\r
                 ┌─────────┴─────────┐\r
                 ▼                   ▼\r
          ┌────────────┐      ┌────────────┐\r
          │ 仅存草稿    │      │ 直接发布    │\r
          │ (人工审核)  │      │ freepublish│\r
          └────────────┘      └────────────┘\r
```\r
\r
### 错误排查\r
\r
| 错误码 | 说明 | 解决方案 |\r
|:-------|:-----|:---------|\r
| `40001` | AppSecret 错误 | 检查凭证 |\r
| `40014` | Token 过期 | 重新获取 |\r
| `45001` | 文件过大 | 压缩至 ≤2MB |\r
| `45002` | 内容过长 | ≤20000字 |\r
\r
---\r
\r
## 🎨 主题选择指南\r
\r
| 文章类型 | 推荐主题 |\r
|:---------|:---------|\r
| **科技类** | 科技蓝、赛博朋克、Atom Dark、极客黑、前端之巅、Notion |\r
| **财经类** | 经典蓝(优雅)、玫瑰金(优雅)、石墨黑(优雅)、橙蓝、全栈蓝 |\r
| **情感类** | 人言兑、樱花粉(优雅)、薰衣紫(优雅)、水彩、雾中诗 |\r
| **生活类** | 春天/夏天/秋天/冬天、锤子便签、吉卜力、木心物语、绿意 |\r
| **教育类** | 清雅蓝、嫩青、森林、那拉提 |\r
| **节日类** | 春节、清明、端午、中秋、情人节 |\r
\r
---\r
\r
## 📊 内容评分标准\r
\r
| 维度 | 权重 | 说明 |\r
|:-----|:-----|:-----|\r
| **Hook 强度** | 25% | 开篇能否留住读者? |\r
| **价值密度** | 25% | 教学、娱乐或启发? |\r
| **平台适配** | 20% | 格式、长度、风格合适? |\r
| **CTA 清晰度** | 15% | 下一步行动明确? |\r
| **视觉吸引力** | 15% | 配图和排版是否吸引? |\r
\r
**门槛:低于 70 分不发布,重写或丢弃。**\r
\r
---\r
\r
## 🔒 安全注意事项\r
\r
1. **Access Token**:不要硬编码,使用环境变量\r
2. **AppSecret**:不要提交到代码仓库,定期更换\r
3. **IP 白名单**:在公众号后台设置服务器 IP\r
4. **内容审核**:发布前人工审核,避免敏感内容\r
5. **本技能包不含任何凭证信息**,使用时需自行配置\r
\r
---\r
\r
## ⚠️ 公众号特殊限制\r
\r
1. 仅 `mp.weixin.qq.com` 域名链接可直接跳转\r
2. 外链以脚注形式展示\r
3. 图片宽度最大 677px,建议源图 900px\r
4. 文内不重复一级标题\r
5. 每段 ≤ 3行,每300字小标题+配图\r
6. 封面图尺寸:头条 900×383px,次条 200×200px\r
\r
---\r
\r
## 📚 数据来源\r
\r
- Markdown 语法参考:https://blog.axiaoxin.com/post/markdown-guide/\r
- 排版主题库:https://md.axiaoxin.com\r
- 爆款写作方法论:实战经验总结\r
- 微信公众号开发文档:https://developers.weixin.qq.com/doc/offiaccount\r
\r
---\r
\r
*技能版本:2.0.0*\r
*更新时间:2026-04-02*\r
*作者:JARVIS AI Agent*\r
*更新内容:集成完整发布功能(API接口、图片上传、草稿管理、错误排查)*\r
安全使用建议
This package appears to be a legitimate WeChat article formatting and publishing guide, but it has important transparency gaps. Before installing or enabling automatic publishing: (1) Confirm whether your OpenClaw environment actually provides the referenced `wechat_publisher` tool — if not, the skill's one-click functions won't work. (2) Expect to supply WeChat AppID and AppSecret (or equivalent credentials); the skill does not declare them in metadata — demand the author add required env var names (e.g., WECHAT_APPID, WECHAT_APPSECRET) and explain storage/rotation. (3) Never paste credentials into skill text; use environment variables or a secrets manager and enable IP whitelisting in the official WeChat backend. (4) Test publishing in a sandbox account and keep manual review in the loop (do not enable fully automatic publish) until you confirm behavior. (5) If you need greater assurance, ask the author to include explicit manifest fields for required credentials and to document any external dependencies or expected built-in tools.
功能分析
Type: OpenClaw Skill Name: clawhub-wechat-writing-pro Version: 2.0.0 The skill bundle provides a comprehensive and legitimate toolkit for creating and publishing WeChat Official Account content. It includes Markdown guides, writing methodologies, and technical documentation for interacting with the WeChat API (e.g., `wechat-publishing-guide.md`). The instructions in `SKILL.md` are well-aligned with the stated purpose, and the bundle explicitly includes security best practices, such as advising against hardcoding credentials and using environment variables for sensitive tokens.
能力评估
Purpose & Capability
The name/description and included knowledge files are coherent with a WeChat writing + publishing skill. However the SKILL.md and code samples rely on WeChat credentials (AppID/AppSecret/Access Token) and an OpenClaw built-in tool named `wechat_publisher` — yet the skill metadata lists no required environment variables, no primary credential, and no required binaries. The omission of required credentials in metadata is a mismatch and reduces transparency.
Instruction Scope
Runtime instructions tell the agent to read local knowledge files (expected) and to perform publishing via either a platform-provided `wechat_publisher` tool or direct calls to WeChat API. The guide includes concrete network calls (api.weixin.qq.com) and Python examples that open local image files and POST them. The instructions therefore require access to local files and sensitive App credentials (implied) but do not explicitly constrain or declare those requirements in the manifest.
Install Mechanism
Instruction-only skill with no install spec and no downloaded code; nothing is written to disk by an installer. This is the lowest-risk install pattern.
Credentials
The SKILL.md and examples clearly require AppID/AppSecret and an Access Token to call WeChat APIs and to upload/publish content. The skill metadata declares no required environment variables or primary credential. Asking users to provide those secrets at runtime is reasonable for publishing functionality, but the skill should declare them explicitly so users know what will be requested and stored.
Persistence & Privilege
The skill does not request always:true and does not claim system-wide modifications. Autonomous invocation is allowed (platform default) but not combined with other high-privilege requests. No evidence the skill writes persistent config or modifies other skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawhub-wechat-writing-pro
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawhub-wechat-writing-pro 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
Version 2.0.0 — Major Update: Adds a full end-to-end workflow for high-quality WeChat Official Account writing and publishing. - Integrates complete publishing capabilities: API, image upload, draft creation, publishing, and error troubleshooting. - Expands documentation with detailed references for Markdown syntax (38 points), viral writing methodology, and 94 categorized layout themes. - Includes step-by-step workflow and scoring standard for article quality control. - Adds best practice guides for theme selection, content security, and handling WeChat-specific constraints. Wechat writing and publishing skill pack 2.0.0 features a major update with end-to-end public account publishing workflow: - Added full publishing capabilities: API interface integration, image upload, draft management, publishing, and error troubleshooting. - Includes 38-point Markdown syntax guide, viral article writing methodology, and 94 themed layout options. - New guides for workflow, theme selection, and detailed scoring system. - Security notes and official WeChat limits documented. - Knowledge base restructured for all-in-one deep content creation to publish process. 主题资源来自人言兑.md,感兴趣的可以关注我公众号“GD三维”看自动推文发布效果。
元数据
Slug clawhub-wechat-writing-pro
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

微信自动写作排版专业技能(包含公众号发布功能) 是什么?

支持微信公众号深度内容从Markdown写作、爆款方法论指导、94种排版主题选择到图片上传、草稿创建及一键发布的全流程管理。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 88 次。

如何安装 微信自动写作排版专业技能(包含公众号发布功能)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawhub-wechat-writing-pro」即可一键安装,无需额外配置。

微信自动写作排版专业技能(包含公众号发布功能) 是免费的吗?

是的,微信自动写作排版专业技能(包含公众号发布功能) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

微信自动写作排版专业技能(包含公众号发布功能) 支持哪些平台?

微信自动写作排版专业技能(包含公众号发布功能) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 微信自动写作排版专业技能(包含公众号发布功能)?

由 龚玎焕(@gongdinghuan)开发并维护,当前版本 v2.0.0。

💬 留言讨论