Step 7 新增 metadata 预检(借鉴 md2wechat inspect 模式)
发布前检查:标题长度、摘要字节数、封面存在、正文字数、图片数量。 预检全部通过才进入排版,减少发布失败率。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5cb1f99ecf
commit
9bcb9bdd23
1 changed files with 15 additions and 1 deletions
16
SKILL.md
16
SKILL.md
|
|
@ -213,7 +213,21 @@ WebSearch: "{选题关键词} 数据 报告 2025 2026"
|
|||
|
||||
---
|
||||
|
||||
### Step 7: 排版 + 发布
|
||||
### Step 7: 预检 + 排版 + 发布
|
||||
|
||||
**7a. Metadata 预检**(发布前必须通过):
|
||||
|
||||
| 检查项 | 标准 | 不通过时 |
|
||||
|--------|------|---------|
|
||||
| H1 标题 | 存在且 5-64 字节 | 自动修正或提示用户 |
|
||||
| 摘要 | 存在且 ≤ 120 UTF-8 字节 | converter 自动生成 |
|
||||
| 封面图 | 推送模式下需要 | 无封面则警告,仍可推送(微信会显示默认封面) |
|
||||
| 正文字数 | ≥ 200 字 | 警告"内容过短,微信可能不收录" |
|
||||
| 图片数量 | ≤ 10 张 | 超出则移除末尾多余图片 |
|
||||
|
||||
预检全部通过后才进入排版。
|
||||
|
||||
**7b. 排版 + 发布**:
|
||||
|
||||
**如果 `skip_publish = true`** → 直接走 preview。
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue