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/usage.md
View on GitHub# 发布脚本用法
脚本路径:**`skills/aws-wechat-article-publish/scripts/publish.py`**(在**仓库根**执行)。
- **微信凭证**来自仓库根 **`aws.env`**,每个槽位只有三个键:`WECHAT_{N}_APPID`、`WECHAT_{N}_APPSECRET`、可选 `WECHAT_{N}_API_BASE`(空则用官方 `https://api.weixin.qq.com`)。
- **槽位的数量与展示名在 `config.yaml`**:`wechat_accounts`、`wechat_{i}_name`。`aws.env` 里**没有** `NUMBER_ACCOUNTS` 或 `WECHAT_N_NAME` 这类键,写了也不会被读。
- **`publish_method`** 在 **`config.yaml`**:**`draft`**(默认)= **`full`** 只进**草稿箱**;**`published`** = 再**提交发布**;**`none`** = **`full`** **不调接口**(用户不填微信)。**`full --publish`** 可在 **`draft`** 下单次强制发布(**`none`** 下仍跳过)。
## `publish_method` 检查
```bash
{python} skills/aws-wechat-article-publish/scripts/publish.py check-screening
{python} skills/aws-wechat-article-publish/scripts/publish.py check-screening --config .aws-article/config.yaml
```
## 微信槽位检查
```bash
{python} skills/aws-wechat-article-publish/scripts/publish.py check-wechat-env
{python} skills/aws-wechat-article-publish/scripts/publish.py accounts
```
## 一键全流程
```bash
{python} skills/aws-wechat-article-publish/scripts/publish.py full path/to/article-dir/
{python} skills/aws-wechat-article-publish/scripts/publish.py full path/to/article-dir/ --publish
{python} skills/aws-wechat-article-publish/scripts/publish.py --account 2 full path/to/article-dir/
```
## 正式文章读取(`getdraft.py`)
与 **`publish.py` 独立**,用于 **`freepublish/batchget`** / **`freepublish/get`** / **`freepublish/getarticle`**(仓库根执行):
```bash
{python} skills/aws-wechat-article-publish/scripts/getdraft.py published-fields
{python} skills/aws-wechat-article-publish/scripts/getdraft.py publish-get <publish_id>
{python} skills/aws-wechat-article-publish/scripts/getdraft.py article-get <article_id>
```
## 分步操作
```bash
{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 img.png
{python} skills/aws-wechat-article-publish/scripts/publish.py create-draft path/to/article.yaml
{python} skills/aws-wechat-article-publish/scripts/publish.py publish <media_id>
```
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 |