aiworkskills/wechat-article-skills / skills/aws-wechat-article-publish
aws-wechat-article-publish
Verified公众号发布|公众号草稿箱|公众号群发|图文推送|微信 API|wechat automation|WeChat API automation|auto publish|scheduled publish — 公众号 API 发布工具,图文入草稿箱或直接群发,支持封面素材上传、发布前检查与 draft/published 模式切换。面向公众号运营、自动化内容团队、开发者。触发词:「发布」「提交」「群发」「推送」「发出去」「上传到公众号」「发到公众号」「可以发了吗」「发布前检查」。需要多环节串联(写+审+排+配图+发)请走 aws-wechat-article-main。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.3 KB |
| references/api-reference.md | markdown | 4.9 KB |
| references/branches.md | markdown | 5.0 KB |
| references/pre-publish-checklist.md | markdown | 1.5 KB |
| references/submit-guide.md | markdown | 2.4 KB |
| references/usage.md | markdown | 2.4 KB |
| scripts/article_init.py | script | 9.4 KB |
| scripts/getdraft.py | script | 16.3 KB |
| scripts/publish.py | script | 45.8 KB |
| skill.json | config | 494 B |
references/submit-guide.md
View on GitHub# 提交到公众号后台
## 方式一:API 提交(推荐)
使用 `skills/aws-wechat-article-publish/scripts/publish.py`,通过微信公众号 API 完成发布。
### 前置准备
1. 在仓库根 **`aws.env`** 中填写微信槽位(与 `skills/aws-wechat-article-main/references/env.example.yaml` 键名一致),例如单账号:
```env
NUMBER_ACCOUNTS=1
WECHAT_1_NAME=主号
WECHAT_1_APPID=你的AppID
WECHAT_1_APPSECRET=你的AppSecret
WECHAT_1_API_BASE=
```
多账号递增 `WECHAT_2_*` 等;发布前可运行 `{python} skills/aws-wechat-article-publish/scripts/publish.py check-wechat-env` 检查缺项。
2. 在公众平台「开发 → 基本配置」中将服务器 IP 加入白名单
3. 准备文章目录:
```
article/
├── article.yaml # 标题、作者、摘要等元信息
├── article.html # 排版后的正文 HTML
├── cover.jpg # 封面图
└── imgs/ # 正文内图片
```
### 一键发布
```bash
# 创建草稿(不发布,可在后台预览)
{python} skills/aws-wechat-article-publish/scripts/publish.py full article/
# 创建草稿并立即发布
{python} skills/aws-wechat-article-publish/scripts/publish.py full article/ --publish
```
### 分步操作
```bash
# 获取 token
{python} skills/aws-wechat-article-publish/scripts/publish.py token
# 上传封面图
{python} skills/aws-wechat-article-publish/scripts/publish.py upload-thumb cover.jpg
# 上传正文图片
{python} skills/aws-wechat-article-publish/scripts/publish.py upload-content-image imgs/img1.png
# 创建草稿(需要先准备好 article.yaml)
{python} skills/aws-wechat-article-publish/scripts/publish.py create-draft article.yaml
# 发布
{python} skills/aws-wechat-article-publish/scripts/publish.py publish <media_id>
# 查询状态
{python} skills/aws-wechat-article-publish/scripts/publish.py status <publish_id>
```
接口详情与错误码:[api-reference.md](api-reference.md)
## 方式二:手动提交
1. 登录微信公众平台(mp.weixin.qq.com)
2. 进入「素材管理」或「草稿箱」→ 新建图文消息
3. 填写标题、作者、摘要
4. 将排版后的正文粘贴到正文编辑区
5. 上传封面图,设置封面
6. 逐一上传正文内图片并插入对应位置
7. 设置评论权限(开启/仅粉丝可评)
8. 保存为草稿或直接群发
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |