perf: reduce pipeline latency with pre-check and tighter rewrite loops
- Step 4.6: add quick self-check after writing (banned words, sentence variance, negative emotion) to fix obvious issues before Step 5 - Step 5.2: tighten rewrite scope to specific sentences only, max 3 fixes per round, reduce max rounds from 3 to 2 - Step 5.3: reduce scoring rewrite from 3 rounds to 2, mark DONE_WITH_CONCERNS instead of infinite loops when score stays >50 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
79edadd72e
commit
d9b87f806f
1 changed files with 13 additions and 3 deletions
16
SKILL.md
16
SKILL.md
|
|
@ -278,6 +278,16 @@ Category 映射规则:
|
||||||
|
|
||||||
保存到 `{skill_dir}/output/{date}-{slug}.md`
|
保存到 `{skill_dir}/output/{date}-{slug}.md`
|
||||||
|
|
||||||
|
**4.6 快速自检**(写完后立即执行,减少 Step 5 重写概率):
|
||||||
|
|
||||||
|
对初稿做 3 项最易不达标的快速扫描,**当场修复**,不留到 Step 5:
|
||||||
|
|
||||||
|
1. **禁用词扫描**:检查 writing-guide.md 2.1 的禁用词列表,命中的直接替换(最常见的问题,修复成本最低)
|
||||||
|
2. **句长方差检查**:粗略扫描是否有连续 3 句以上长度接近的段落,有则拆句或加短句
|
||||||
|
3. **负面情绪检查**:全文是否有 ≥ 2 处真实负面表达,不够则在编辑锚点附近补充
|
||||||
|
|
||||||
|
这 3 项检查不需要调用脚本,LLM 自行完成即可。目标是让初稿在进入 Step 5 前已经消除最明显的问题。
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Step 5: SEO + 验证
|
### Step 5: SEO + 验证
|
||||||
|
|
@ -307,7 +317,7 @@ Category 映射规则:
|
||||||
| 内容 | 密度波浪 | 高密度段后跟低密度段 | 3.3 |
|
| 内容 | 密度波浪 | 高密度段后跟低密度段 | 3.3 |
|
||||||
| 内容 | 维度贯穿 | 激活维度全文可见 | 3.4 |
|
| 内容 | 维度贯穿 | 激活维度全文可见 | 3.4 |
|
||||||
|
|
||||||
不通过 → 定向重写该段落。3 次仍不过 → 标注跳过。
|
不通过 → **定向修复**:只替换不达标的具体句子/段落,不动已通过的部分。每轮最多改 3 处,改完立即重新检查该项。2 轮仍不过 → 标注跳过,继续下一项。
|
||||||
|
|
||||||
**5.3 脚本验证**(补充逐项检查):
|
**5.3 脚本验证**(补充逐项检查):
|
||||||
|
|
||||||
|
|
@ -319,8 +329,8 @@ python3 {skill_dir}/scripts/humanness_score.py {article_path} --json --tier3 {ag
|
||||||
|
|
||||||
解读 JSON 中 `composite_score`:
|
解读 JSON 中 `composite_score`:
|
||||||
- < 30 → 通过,继续 Step 6
|
- < 30 → 通过,继续 Step 6
|
||||||
- 30-50 → 查看 `param_scores` 中最低分项,定向重写对应段落
|
- 30-50 → 查看 `param_scores` 中最低分的 1-2 项,只修复对应的具体句子(不重写整段),改完重新打分。1 轮即可
|
||||||
- \> 50 → 重大问题,逐个低分项修复,最多 3 轮
|
- \> 50 → 取 `param_scores` 最低的 2-3 项,逐项定向修复(每项只改最相关的 1-2 处),最多 2 轮。仍 > 50 则标记 DONE_WITH_CONCERNS 继续
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue