@gobing-ai/knowledge-kit 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/dist/index.js +2399 -177
- package/package.json +1 -1
- package/plugins/generations/content-gen/dist/index.js +60 -54
- package/plugins/generations/content-gen/src/storm.ts +94 -61
- package/plugins/generations/core-facts-gen/dist/index.js +3 -3
- package/plugins/generations/daily-article-gen/dist/index.js +3 -3
- package/plugins/generations/dailynews-gen/dist/index.js +73 -10
- package/plugins/generations/dailynews-gen/src/index.ts +23 -1
- package/plugins/generations/dailynews-gen/src/script-plan.ts +103 -5
- package/plugins/generations/episode-plan-gen/dist/index.js +3 -3
- package/plugins/generations/gemini-tts/dist/index.js +3 -3
- package/plugins/generations/image-gen/README.md +31 -10
- package/plugins/generations/image-gen/assets/sample/cover__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__clean-webapp-ui.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__cute.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__daily-news.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__editorial.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__fresh.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__minimalist.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__photorealistic.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__sketch.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__technical-diagram.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__vibrant.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__warm.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__xhs-knowledge.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/dist/index.js +3 -3
- package/plugins/generations/image-gen/presets/formats/daily-news-podcast-cover.yaml +18 -0
- package/plugins/generations/image-gen/presets/styles/quasi-news-podcast.yaml +9 -0
- package/plugins/generations/news-report-gen/dist/index.js +3 -3
- package/plugins/generations/voice-gen/dist/index.js +3 -3
- package/plugins/generations/voxcpm-tts/dist/index.js +3 -3
- package/plugins/ingestions/aihot-ingest/dist/index.js +3 -3
- package/plugins/ingestions/horizon-ingest/dist/index.js +3 -3
- package/plugins/ingestions/last30days-ingest/dist/index.js +3 -3
- package/plugins/ingestions/web-search/dist/index.js +3 -3
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/publish-presets/daily-ai-voice-migration.json +12 -3
- package/plugins/kk/publish-presets/daily-ai-voice.json +11 -3
- package/plugins/kk/scripts/cover-compositor.ts +152 -0
- package/plugins/kk/scripts/daily-cover-mock.ts +164 -0
- package/plugins/kk/scripts/daily-scheduled-run.ts +192 -3
- package/plugins/kk/scripts/daily-stages.ts +599 -27
- package/plugins/kk/scripts/daily-triage-core.ts +451 -0
- package/plugins/kk/scripts/daily-triage.ts +74 -0
- package/plugins/kk/scripts/kk-workflow-stages.ts +51 -6
- package/plugins/kk/skills/content-judge/SKILL.md +5 -4
- package/plugins/kk/skills/content-judge/references/rubrics.md +14 -0
- package/plugins/kk/skills/content-safety/references/platforms/wechatmp.md +16 -10
- package/plugins/kk/skills/news-editorial/SKILL.md +122 -0
- package/plugins/kk/skills/news-editorial/references/selection.md +47 -0
- package/plugins/kk/skills/news-editorial/references/style-contract.zh.md +100 -0
- package/plugins/kk/skills/publish/SKILL.md +4 -4
- package/plugins/kk/skills/web-automation/SKILL.md +229 -77
- package/plugins/kk/skills/web-automation/references/browser-launch.md +127 -36
- package/plugins/kk/skills/wiki-authoring/SKILL.md +53 -0
- package/plugins/kk/skills/wiki-authoring/references/page-shapes.md +44 -0
- package/plugins/kk/workflows/kk-daily-ai-voice2.yaml +4 -6
- package/plugins/kk/workflows/kk-daily-ai-voice3.yaml +185 -224
- package/plugins/kk/workflows/kk-daily-publish3.yaml +16 -8
- package/plugins/kk/workflows/kk-daily-safety.yaml +32 -7
- package/plugins/publishings/bilibili-pub/dist/index.js +6 -4
- package/plugins/publishings/bilibili-pub/dist/profile-check.js +3 -1
- package/plugins/publishings/cnblogs-pub/dist/index.js +6 -4
- package/plugins/publishings/cnblogs-pub/dist/profile-check.js +3 -1
- package/plugins/publishings/csdn-pub/dist/index.js +6 -4
- package/plugins/publishings/csdn-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/emdash-pub/dist/index.js +3 -3
- package/plugins/publishings/infoq-pub/dist/index.js +6 -4
- package/plugins/publishings/infoq-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/jike-pub/dist/index.js +6 -4
- package/plugins/publishings/jike-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/juejin-pub/dist/index.js +6 -4
- package/plugins/publishings/juejin-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/linkedin-pub/dist/index.js +6 -4
- package/plugins/publishings/linkedin-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/medium-pub/dist/index.js +3 -3
- package/plugins/publishings/podcast-pub/dist/index.js +148 -5
- package/plugins/publishings/podcast-pub/src/index.ts +71 -2
- package/plugins/publishings/podcast-pub/src/map.ts +3 -0
- package/plugins/publishings/podcast-pub/src/transcript.ts +195 -0
- package/plugins/publishings/qiita-pub/dist/index.js +3 -3
- package/plugins/publishings/shipinhao-pub/dist/index.js +227 -53
- package/plugins/publishings/shipinhao-pub/dist/profile-check.js +51 -2
- package/plugins/publishings/shipinhao-pub/plugin.json +2 -2
- package/plugins/publishings/shipinhao-pub/src/flow.ts +335 -79
- package/plugins/publishings/shipinhao-pub/src/index.ts +16 -8
- package/plugins/publishings/shipinhao-pub/src/profile-check.ts +1 -1
- package/plugins/publishings/shipinhao-pub/src/selectors.ts +103 -5
- package/plugins/publishings/sspai-pub/dist/index.js +6 -4
- package/plugins/publishings/sspai-pub/dist/profile-check.js +3 -1
- package/plugins/publishings/substack-pub/dist/index.js +6 -4
- package/plugins/publishings/substack-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/surfdash-pub/dist/index.js +237 -14
- package/plugins/publishings/surfdash-pub/src/index.ts +127 -6
- package/plugins/publishings/surfdash-pub/src/topic-claims.ts +189 -0
- package/plugins/publishings/threads-pub/dist/index.js +3 -3
- package/plugins/publishings/wechatmp-pub/dist/index.js +62 -40
- package/plugins/publishings/wechatmp-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/wechatmp-pub/src/enrich.ts +10 -3
- package/plugins/publishings/wechatmp-pub/src/flow.ts +73 -37
- package/plugins/publishings/wechatmp-pub/src/page.ts +14 -0
- package/plugins/publishings/weibo-pub/dist/index.js +6 -4
- package/plugins/publishings/weibo-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/x-pub/dist/index.js +6 -4
- package/plugins/publishings/x-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/xhs-pub/dist/index.js +562 -34
- package/plugins/publishings/xhs-pub/dist/profile-check.js +25 -4
- package/plugins/publishings/xhs-pub/src/errors.ts +45 -0
- package/plugins/publishings/xhs-pub/src/flow.ts +773 -45
- package/plugins/publishings/xhs-pub/src/page.ts +33 -0
- package/plugins/publishings/xiaoyuzhou-pub/dist/index.js +6 -4
- package/plugins/publishings/xiaoyuzhou-pub/dist/profile-check.js +3 -1
- package/plugins/publishings/zenn-pub/dist/index.js +3 -3
- package/plugins/kk/scripts/daily-voice-style.zh.md +0 -70
|
@@ -100,6 +100,20 @@ Thresholds: `pass_threshold = 0.85`
|
|
|
100
100
|
- `data-handling`: scan for PII that may have been carried through from input Docs (emails,
|
|
101
101
|
phone numbers, national IDs). Leakage is a `fail`.
|
|
102
102
|
|
|
103
|
+
## news-balance
|
|
104
|
+
|
|
105
|
+
For daily news episode script plans (`kk-daily-ai-voice3` advisory `editorial-judge` sensor, task 0345 R11). Evaluates the balance of news reporting, commentary, and technical depth against `kk:news-editorial`.
|
|
106
|
+
|
|
107
|
+
| Criterion | Weight | Must-pass |
|
|
108
|
+
|-----------|--------|-----------|
|
|
109
|
+
| `news-first` — `intro` and every `lead` name concrete actors and actions, not abstract essay themes | 0.30 | yes |
|
|
110
|
+
| `commentary-share` — each `insight` is ≤⅓ of the item's spoken length and contains no generic methodology or shopping-list advice | 0.25 | yes |
|
|
111
|
+
| `no-restatement` — `insight` adds judgement rather than repeating the body's facts or numbers | 0.20 | yes |
|
|
112
|
+
| `tech-depth` — mechanisms are explained in 1–2 sentences without textbook primers | 0.15 | no |
|
|
113
|
+
| `ordering` — items are ordered by news weight (urgency × impact), with the strongest concrete news item leading | 0.10 | no |
|
|
114
|
+
|
|
115
|
+
Thresholds: `pass_threshold = 0.80`
|
|
116
|
+
|
|
103
117
|
## Adding a custom rubric
|
|
104
118
|
|
|
105
119
|
1. Add a section to this file with a unique heading and a criteria table matching the schema
|
|
@@ -4,19 +4,23 @@ Review-item IDs here are **this skill's bookkeeping numbers**, not official plat
|
|
|
4
4
|
|
|
5
5
|
| Field | Value |
|
|
6
6
|
|-------|-------|
|
|
7
|
-
| Official source |
|
|
7
|
+
| Official source | ①《人工智能生成合成内容标识办法》原文(国信办通字〔2025〕2号)<https://www.cac.gov.cn/2025-03/14/c_1743654684782215.htm>(gov.cn 政策库镜像同文);② 微信平台公告《关于进一步规范人工智能生成合成内容标识的公告》(珊瑚安全公众号,2025-08-31)<https://mp.weixin.qq.com/s/XPemoV-jUB5wcJHWR6anlA>;③《微信公众平台运营规范》入口 <https://mp.weixin.qq.com>(规范原文仍未见逐条核验,自动化条款经官方口径转述核验,见 WX-05) |
|
|
8
8
|
| Scope | 公众号图文、音频素材库、标题/摘要/合集 |
|
|
9
|
-
| Effective date |
|
|
10
|
-
| Last verified | 2026-
|
|
11
|
-
| Evidence status |
|
|
12
|
-
| Changelog | 2026-09-29 — file created after the takedown report (task 0189) · 2026-10-10 — 操作者裁定:WX-02 降级为 note,不再 escalate |
|
|
9
|
+
| Effective date | 《标识办法》2025-09-01 施行(第十四条);运营规范版本/生效日期仍未核验 |
|
|
10
|
+
| Last verified | 2026-11-11(《标识办法》全文 + 微信平台 AI 标识公告原文已读;运营规范仅官方口径转述) |
|
|
11
|
+
| Evidence status | **AI 标识义务已核验**(《标识办法》官方原文 + 微信平台公告原文);WX-01/WX-04 仍为保守立场(规范原文未核验);2026-09-29 图文下架事件为**用户报告**,平台未给出书面理由 |
|
|
12
|
+
| Changelog | 2026-09-29 — file created after the takedown report (task 0189) · 2026-10-10 — 操作者裁定:WX-02 降级为 note,不再 escalate · 2026-11-11 — 核验《人工智能生成合成内容标识办法》全文(cac.gov.cn 原文)与微信平台 2025-08-31 AI 标识公告;WX-03 由 evidenceGap 升级为已核验条文;新增 WX-05(自动化创作条款,官方口径转述) |
|
|
13
13
|
|
|
14
14
|
## Evidence distinctions
|
|
15
15
|
|
|
16
|
-
-
|
|
17
|
-
|
|
16
|
+
- **官方规则(已核验原文)**:《人工智能生成合成内容标识办法》(cac.gov.cn,2025-03-14 发布,2025-09-01 施行);微信珊瑚安全公众号公告(2025-08-31)。关键条文:
|
|
17
|
+
- 办法第三条:AI 生成合成内容 = 利用 AI 技术生成的文本、图片、音频、视频、虚拟场景等;标识分显式与隐式。
|
|
18
|
+
- 办法第六条(四):传播平台应提供必要的标识功能,并**提醒用户主动声明**发布内容中是否包含生成合成内容。
|
|
19
|
+
- 办法第十条:用户使用传播服务发布生成合成内容的,**应当主动声明并使用服务提供者提供的标识功能进行标识**;不得恶意删除、篡改、伪造、隐匿标识。
|
|
20
|
+
- 微信公告(2025-08-31):依《办法》,平台对 AI 生成合成内容添加显式/隐式标识;「用户发布的内容为 AI 生成合成的,**发布时需主动进行声明**」;不得删除、篡改、伪造、隐匿平台添加的 AI 标识;违规视情况处罚。
|
|
21
|
+
- **官方口径(媒体转述,未读规范原文)**:运营规范 2026 年更新——公众号不得利用 AI、脚本、接口或自动化方式替代真人完成内容创作/发布;平台「鼓励创作者合理使用工具辅助创作」,反对完全由自动化程序替代真人生产(第一财经 2026-04-09 报道微信团队回应)。→ 见 WX-05。
|
|
18
22
|
- **用户报告**:2026-09-29 下架事件;无平台反馈。
|
|
19
|
-
-
|
|
23
|
+
- **编辑建议(本技能)**:WX-01/WX-04 为保守立场,规范原文未核验。
|
|
20
24
|
|
|
21
25
|
## Review items
|
|
22
26
|
|
|
@@ -24,9 +28,11 @@ Review-item IDs here are **this skill's bookkeeping numbers**, not official plat
|
|
|
24
28
|
|----|------|-------|
|
|
25
29
|
| WX-01 | 时政/公共事务主线:政治、外交/贸易管制、军事、公共政策争议、社会公共事件为主的图文或音频 | block |
|
|
26
30
|
| WX-02 | 资质口径:不做新闻资讯播报形态的标题/摘要(未持有相关资质;同小宇宙 XY-01 的教训)。**操作者裁定 2026-10-10**:同小宇宙 XY-01 裁定——本号不持有也不声称持有新闻资质,剩余风险只在单集标题/摘要是否真的退回播报形态,按 note 记录,不要因「账号无新闻资质」而 block 或 `escalate: true`;仅当某集实际呈现新闻播报形态时才升级为 block。 | note |
|
|
27
|
-
| WX-03 | AI
|
|
31
|
+
| WX-03 | AI 生成声明:**已核验(2026-11-11)**——《标识办法》第十条 + 微信 2025-08-31 公告:发布含 AI 生成内容时,**发布时通过平台声明入口主动声明**,并使用平台标识功能;声明属发布时元数据侧动作,不要求正文内声明句(同 AP-05 操作者裁定 2026-10-08 的栏目级说明口径)。不得删除/篡改/伪造/隐匿平台标识。审核问法:该集发布流程是否走声明入口;正文缺声明句不记 fix。 | disclose |
|
|
28
32
|
| WX-04 | 可识别个人信息;标题党/夸大断言(未经核实断言按类别 4 处理) | desensitize / fix |
|
|
33
|
+
| WX-05 | 真人创作/自动化条款(官方口径转述,规范原文未核验):不得利用 AI、脚本、接口等完全替代真人完成内容创作、发布;平台鼓励「合理使用工具辅助创作」。本栏目姿态为真人选题/编辑 + AI 辅助 + AI 合成配音,属鼓励范围;如运营规范原文可读时复核条款字样并更新本行。 | note |
|
|
29
34
|
|
|
30
35
|
## Open questions / escalation
|
|
31
36
|
|
|
32
|
-
-
|
|
37
|
+
- 运营规范原文仍未逐条核验 → WX-01/WX-04/WX-05 涉及条文判断一律人工复审;AI 标识义务(WX-03)已可依据已核验原文直接判断。
|
|
38
|
+
- 《标识办法》配套强制性国家标准(GB 45438-2025 等标识方法标准)未核验 → 显式/隐式标识的具体样式以平台实现为准。
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: news-editorial
|
|
3
|
+
description: >-
|
|
4
|
+
Use the news-editorial skill for the editorial judgement of a daily news episode — "curate today's
|
|
5
|
+
news pool", "write the episode script plan", "fix the script plan against these validator errors",
|
|
6
|
+
"apply the daily news style contract". Owns selection and topic boundary, ordering, the balance of
|
|
7
|
+
news, opinion and technical detail, and the style contract. Modes: curate | write | write --fix.
|
|
8
|
+
requires: [cli:kk, local-fs]
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# news-editorial — daily news editorial policy (curate | write | write --fix)
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
This skill holds every editorial judgement for a daily news episode: which items to keep, in what order, how
|
|
16
|
+
much opinion and technical detail each gets, and how the spoken words read. Everything deterministic stays
|
|
17
|
+
in code and is **out of scope**: collection and store extraction (`kk store extract`, `decisions/extract/*.yaml`),
|
|
18
|
+
score thresholds (`daily-qc-content`), the VoiceScript builder (fixed greeting and sign-off), validators,
|
|
19
|
+
duration gates, TTS, images and publishing (ADR-045).
|
|
20
|
+
|
|
21
|
+
A workflow reaches this skill through the run snapshot `<work_dir>/20-editorial/news-editorial/` (written by
|
|
22
|
+
`kk stage daily-script-style`). Read files relative to the `SKILL.md` you were pointed at; do not rely on skill
|
|
23
|
+
discovery.
|
|
24
|
+
|
|
25
|
+
## Invocation contract
|
|
26
|
+
|
|
27
|
+
`<mode> [--fix <errors.json>] --in <input> --out <output>`. The calling prompt supplies the paths. Write only
|
|
28
|
+
`--out`, as a single valid file (JSON with no comments or trailing commas). Never edit the input.
|
|
29
|
+
|
|
30
|
+
| Mode | Input → output | Status |
|
|
31
|
+
|---|---|---|
|
|
32
|
+
| `curate` | QC candidates `Doc[]` → kept translated `Doc[]` (`--out-plan`) + exclusions (`--out-excluded`) | Wired (`curate`, policy: `references/selection.md`) |
|
|
33
|
+
| `curate --fix` | QC candidates `Doc[]` + curate validator errors (`--fix`) → corrected plan + exclusions | Wired (`curate-fix`) |
|
|
34
|
+
| `write` | translated plan `Doc[]` + exclusions (`--excluded`) → master script plan JSON | Wired (`script-write`) |
|
|
35
|
+
| `write --fix` | plan `Doc[]` + previous script plan + validator errors → corrected master script plan | Wired (`script-write-fix`) |
|
|
36
|
+
|
|
37
|
+
## Shared rules (every mode)
|
|
38
|
+
|
|
39
|
+
Read `references/style-contract.zh.md` first. Its prose sets the column's identity and the balance of news,
|
|
40
|
+
opinion and technical detail. Its fenced `json` block holds the caps and banned phrases that the dailynews-gen
|
|
41
|
+
validator enforces mechanically, so violating them means the plan is rejected.
|
|
42
|
+
|
|
43
|
+
1. **News first.** Every item tells the listener who (company, lab, team) did what (released, open-sourced,
|
|
44
|
+
raised, sued, disclosed) and when. Commentary is restrained and anchored to that item; technical detail is
|
|
45
|
+
only the one or two sentences needed to understand it.
|
|
46
|
+
2. **Topic boundary (选题边界).** Never retell an item whose mainline is politics or diplomacy, trade controls,
|
|
47
|
+
military affairs, public-policy disputes or social public events, whatever nickname it travels under. Exclude
|
|
48
|
+
it with a Chinese reason. In-scope industry and institutional news is reported normally.
|
|
49
|
+
3. **Fact discipline.** Every fact comes from that item's own plan content. Do not invent anything or borrow
|
|
50
|
+
from other items. Never inflate numbers or actors. Attribute a quote only to its original speaker. Keep
|
|
51
|
+
hedges (据报道 / 称 / 承诺). If the material is thin, write less.
|
|
52
|
+
4. **Copy discipline.** Use reader-facing spoken Chinese. Do not use scaffold labels (可做角度 / 背景 /
|
|
53
|
+
潜在影响) or hedge labels (读者宜另行核实 / 仍待验证), use 「」 for quotes, and never add a greeting,
|
|
54
|
+
sign-off or AI-production footer. The builder adds those.
|
|
55
|
+
|
|
56
|
+
## Mode: write
|
|
57
|
+
|
|
58
|
+
Read the curated plan `Doc[]` (`--in`) and the curate exclusions (`--excluded`). For each doc in `--in`, write:
|
|
59
|
+
|
|
60
|
+
- `lead`: one spoken bridge into the item (≤80 chars). It is not the title and not a rhetorical question.
|
|
61
|
+
- `insight`: 2–4 sentences (≤380 chars) anchored to the doc's named actors, saying why it matters or what to watch. Never restate the doc's facts, numbers or phrasing (the listener has just heard them), give no generic advice or methodology, and add no new facts. The cap is a ceiling, not a target.
|
|
62
|
+
- `card`: optional per-item card slot `{ "copy": "≤12字标题", "points": ["要点1", "要点2"], "subject": "English visual scene" }` (2–4 points).
|
|
63
|
+
|
|
64
|
+
At the episode level, write:
|
|
65
|
+
|
|
66
|
+
- `intro` (≤150 chars): names the top two or three concrete in-scope developments.
|
|
67
|
+
- `outro` (≤150 chars): a short close tying the items together.
|
|
68
|
+
- `excluded`: copy the array from `--excluded` (`21-plan/<date>_03_curate_excluded.json`) verbatim so the script plan records every dropped candidate with its Chinese reason.
|
|
69
|
+
- `cover` (≤240 chars): one concrete visual scene in English for the lead item (objects, settings, symbols, metaphor; no text, letters, numbers, logos, flags, or recognizable people). 0347 R4: it may instead be `{ "scene": "…", "headline": "…" }` — `scene` keeps the same English visual contract (≤240 chars), and `headline` is a punchy 1–2 line Chinese Hook headline (≤25 chars per line) grounded in the lead news story, for deterministic lower-third typesetting downstream.
|
|
70
|
+
- `cards`: `{ "title": "≤20字总标题", "body": "中文导语段落 + 3-5个话题标签" }` for the episode card series.
|
|
71
|
+
- `social`: `{ "short": "≤140字 X/Threads 短帖", "long": "≤500字 微博/LinkedIn 长帖" }` (plain text, no markdown headings, no emoji spam, grounded in the plan).
|
|
72
|
+
|
|
73
|
+
Output:
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"version": 1,
|
|
78
|
+
"intro": "…",
|
|
79
|
+
"outro": "…",
|
|
80
|
+
"cover": { "scene": "…", "headline": "…" },
|
|
81
|
+
"cards": { "title": "…", "body": "…" },
|
|
82
|
+
"social": { "short": "…", "long": "…" },
|
|
83
|
+
"items": [
|
|
84
|
+
{
|
|
85
|
+
"id": "…",
|
|
86
|
+
"lead": "…",
|
|
87
|
+
"insight": "…",
|
|
88
|
+
"card": { "copy": "…", "points": ["…", "…"], "subject": "…" }
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"excluded": [{ "id": "…", "reason": "…" }]
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Every doc id in `--in` appears in `items`, and `excluded` carries the curate exclusions; no id may appear in both.
|
|
96
|
+
|
|
97
|
+
## Mode: write --fix
|
|
98
|
+
|
|
99
|
+
Inputs: the plan `Doc[]`, the previous script plan, and `--fix <errors.json>` (`[{itemId, rule}]` from the
|
|
100
|
+
validator). Change only what the errors name and copy everything else unchanged. Fix by rule:
|
|
101
|
+
|
|
102
|
+
| Rule | Fix |
|
|
103
|
+
|---|---|
|
|
104
|
+
| `cap:<field>` | Shorten that field (`intro`, `outro`, `lead`, `insight`, `cover`, `coverHeadline`, `cardCopy`, `cardTitle`, `socialShort`, `socialLong`) below its cap in the contract. Cut opinion, not the actor |
|
|
105
|
+
| `banned:<phrase>` | Rephrase without the phrase (applies to spoken, card and social fields alike) |
|
|
106
|
+
| `redundant-insight` | Rewrite the insight as commentary; drop the restated facts |
|
|
107
|
+
| `duplicate-insight` | Make each insight specific to its own item |
|
|
108
|
+
| `missing-item` / `unknown-id` / `conflict-id` | Make `items` match `--in` and `excluded` match `--excluded` with no overlap |
|
|
109
|
+
| `schema` / `missing-plan` | Write the full master plan per mode `write` |
|
|
110
|
+
|
|
111
|
+
## Mode: curate / curate --fix
|
|
112
|
+
|
|
113
|
+
See `references/selection.md`. Reads QC candidates (`--in`) and writes two JSON files:
|
|
114
|
+
1. `--out-plan` (`21-plan/<date>_03_plan_plan.json`): bare `Doc[]` of **kept** items only, in editorial order (lead first), with `title`, `body` and `metadata.brief` adapted into spoken simplified Chinese.
|
|
115
|
+
2. `--out-excluded` (`21-plan/<date>_03_curate_excluded.json`): `[{"id":"<Doc.id>","reason":"<具体中文原因>"}]` for every dropped candidate (`[]` when none dropped). Every candidate id must land in **exactly one** of the two files.
|
|
116
|
+
|
|
117
|
+
With `--fix <errors.json>` (`missing-plan`, `invalid-json`, `unknown-id`, `missing-item`, `conflict-id`, `empty-plan`), repair the partition so every candidate id is accounted for exactly once and at least one in-scope item is kept.
|
|
118
|
+
|
|
119
|
+
## References
|
|
120
|
+
|
|
121
|
+
- `references/style-contract.zh.md`: the column's style contract and machine block (caps, banned).
|
|
122
|
+
- `references/selection.md`: curate policy (boundary, ordering, depth budget, translation).
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Curate policy
|
|
2
|
+
|
|
3
|
+
`curate` turns the QC candidates into the episode plan. The deterministic gates have already run before it:
|
|
4
|
+
store thresholds (`decisions/extract/ai-news.yaml`), the QC score floors and the minimum item count
|
|
5
|
+
(`daily-qc-content`). Curate adds judgement, not new numeric thresholds.
|
|
6
|
+
|
|
7
|
+
## Keep or drop
|
|
8
|
+
|
|
9
|
+
- Drop items that cross the topic boundary (SKILL.md shared rule 2) and give a specific Chinese reason.
|
|
10
|
+
- Drop low-value items (pure PR fluff, minor point-release changelogs with no architectural or developer impact, thin stubs with no verifiable actor/action) and give a specific Chinese reason.
|
|
11
|
+
- Merge near-duplicates (the same event from two sources) into the item with the richer facts; drop the duplicate id into `--out-excluded` with a Chinese reason (e.g., `与另一条候选同属一事,已合并至信息更完整条目`). Never let the same story be spoken twice.
|
|
12
|
+
- Keep everything else that has a concrete actor and action. An opinion thread or tutorial with no news event
|
|
13
|
+
stays only when the day is thin, and goes after the news items.
|
|
14
|
+
|
|
15
|
+
## Output invariant (two files)
|
|
16
|
+
|
|
17
|
+
`curate` writes two JSON files:
|
|
18
|
+
1. `--out-plan` (`21-plan/<date>_03_plan_plan.json`): a bare `Doc[]` array containing **only the kept docs**, ordered with the day's lead news item first, with `title`, `body` and `metadata.brief` adapted into spoken simplified Chinese.
|
|
19
|
+
2. `--out-excluded` (`21-plan/<date>_03_curate_excluded.json`): `[{ "id": "<Doc.id>", "reason": "<具体中文原因>" }]` for every dropped candidate (`[]` when nothing is dropped).
|
|
20
|
+
|
|
21
|
+
Every candidate `id` from `21-plan/<date>_04_quality-control-content_candidates.json` (`metadata.docs`) must land in **exactly one** of the two files — never both (`conflict-id`), never neither (`missing-item`), and with no invented ids (`unknown-id`).
|
|
22
|
+
|
|
23
|
+
## Order and balance
|
|
24
|
+
|
|
25
|
+
1. Lead with the day's most consequential concrete news (urgency × impact), not the most technical item.
|
|
26
|
+
2. Mix categories (industry, research, tools) instead of running three reddit technical threads in a row.
|
|
27
|
+
3. Episode length comes from item count and complete facts, not from long commentary. The style contract
|
|
28
|
+
gives the per-driver character rates. If kept items cannot reach the floor, keep more in-scope items rather
|
|
29
|
+
than padding.
|
|
30
|
+
|
|
31
|
+
## Spoken Chinese adaptation
|
|
32
|
+
|
|
33
|
+
For kept items (especially those marked `needsTranslation`), adapt `title`, `body` and `metadata.brief` into spoken simplified Chinese:
|
|
34
|
+
|
|
35
|
+
- Keep every fact, number, name, quote and hedge. This is a full-length spoken adaptation, not a summary;
|
|
36
|
+
the body is about 0.6–0.7× the source.
|
|
37
|
+
- Shrink generic background or concept explainers to one sentence.
|
|
38
|
+
- Titles read as news. Keep product and model names and body URLs verbatim, and use 「」 for quotes.
|
|
39
|
+
- Keep `id`, `sourceUri`, `mediaType` and `metadata` as they are.
|
|
40
|
+
|
|
41
|
+
## Mode: curate --fix
|
|
42
|
+
|
|
43
|
+
When `daily-curate-check` writes `21-plan/<date>_03_curate_errors.json` (`[{ "itemId": "...", "rule": "..." }]`), inspect the rules and rewrite both `--out-plan` and `--out-excluded`:
|
|
44
|
+
- `missing-plan` / `invalid-json` / `empty-plan`: write a valid non-empty `Doc[]` to `--out-plan` and valid `[{id, reason}]` to `--out-excluded`.
|
|
45
|
+
- `missing-item`: add the missing candidate id either to `--out-plan` (translated) or to `--out-excluded` (with a Chinese reason).
|
|
46
|
+
- `conflict-id`: remove the id from one of the two files so it appears in only one.
|
|
47
|
+
- `unknown-id`: remove any id that does not exist in `candidates.json`'s `metadata.docs`.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# 每日AI乱炖 · 主持风格契约(zh)
|
|
2
|
+
|
|
3
|
+
`kk-daily-ai-voice` 的每一句口播都受这份契约约束(F613 R1;0189 R1 改定位;2026-10-08 改名;ADR-045 起归
|
|
4
|
+
`kk:news-editorial` 技能所有)。`write` 模式与 `dailynews-gen` 的校验器读取同一份机器可读块,因此提示词与
|
|
5
|
+
校验永远一致。
|
|
6
|
+
|
|
7
|
+
## 栏目定位
|
|
8
|
+
|
|
9
|
+
「每日AI乱炖」是「咸话咸说」下的 AI 技术分享栏目,完整名称「咸话咸说之每日AI乱炖」,副题
|
|
10
|
+
「工具、论文与实践随聊」。栏目名突出当天,不是把节目名当成说话人。口播是开发者视角的 AI
|
|
11
|
+
行业动态与技术分享:先让听众及时知道谁、在何时、发布/宣布/披露了什么,再给克制的点评。
|
|
12
|
+
不以任何代称、绰号或「闲聊」包装政治、外交、军事、公共政策争议或社会公共事件主线的内容——
|
|
13
|
+
这类条目在选题/QC 阶段就应被排除(0189 R2);选题边界之内的行业动态与机构信息照常播报。身份与
|
|
14
|
+
经历必须真实:只讲真实做过的实测与实践。制作方式由栏目设置说明,口播、正文和 show notes
|
|
15
|
+
不要再附「文字由 AI 辅助整理,音频为 AI 合成配音」或「本期音频为 AI 合成配音」。
|
|
16
|
+
|
|
17
|
+
## 人设与语域
|
|
18
|
+
|
|
19
|
+
- 口语化普通话,第一人称「我」,像一位冷静、有依据的 AI 技术分享主播。
|
|
20
|
+
- 平实、克制、不炒作:不夸大单一消息的意义,不使用惊叹式渲染或营销话术。
|
|
21
|
+
- 面向普通听众说明「这件事为什么重要」或「怎么用得上」,而不是堆砌术语。
|
|
22
|
+
|
|
23
|
+
## 新闻性、点评与技术细节的平衡(2026-11-08)
|
|
24
|
+
|
|
25
|
+
2026-11-02 起执笔模型换成 codex-sol 后,成稿漂向「主题化议论 + 泛化建议 + 底层细节」,新闻性
|
|
26
|
+
明显下降。三者按以下比例取舍:
|
|
27
|
+
|
|
28
|
+
- 新闻性优先:每一条都要让听众听清主体(公司/机构/团队)、动作(发布、开源、融资、诉讼、
|
|
29
|
+
披露……)和时间;导语与桥段点名具体主体和产品,不把当天新闻改写成抽象议题。
|
|
30
|
+
- 点评克制:每条点评约占该条口播的四分之一到三分之一,锚定这一条的具体主体与事实,说清
|
|
31
|
+
「为什么重要」或「接下来看什么」即可;不写脱离新闻的方法论、选型指南、采购清单或「我的判断
|
|
32
|
+
标准是……我建议……」式说教,不连用多个「我会/我建议/我倾向」。
|
|
33
|
+
- 技术细节点到为止:只保留听懂这条新闻所需的一两句机制说明;通用概念(如什么是 HTTP 请求头、
|
|
34
|
+
KV cache)不展开科普,参数、基准、实现细节择其最关键的一两个。
|
|
35
|
+
- 不重复:同一事实在一条里只讲一次。
|
|
36
|
+
|
|
37
|
+
## 固定开场与收尾
|
|
38
|
+
|
|
39
|
+
开场问候与收尾致谢由 builder 固定输出,计划文本只填充两者之间的内容,节目身份永不漂移:
|
|
40
|
+
|
|
41
|
+
- 开场:`大家好,今天是<日期>。这里是由<主持人>为你带来的咸话咸说之每日AI乱炖。`
|
|
42
|
+
- 收尾:`感谢您的收听,我是<主持人>,祝您拥有充实高效的一天,我们下期节目不见不散!`
|
|
43
|
+
|
|
44
|
+
## 段落角色
|
|
45
|
+
|
|
46
|
+
- `intro`:开场导语,点名今天最重要的两三条动态(谁、做了什么),接在固定问候之后,不超过 150 字;不写「今天我想聊聊怎么判断……」式的议题清单。
|
|
47
|
+
- `lead`:一句话口语桥段,引出下一个主题的【标题】;只做铺垫,不得复述标题本身,不用设问句把新闻改写成抽象问题,不超过 80 字。
|
|
48
|
+
- `insight`:只基于这一条自身可核事实的点评(2–4 句),说清这一条对行业或开发者的意义、或接下来值得关注的节点;不得挪用其他条目的话题,不超过 380 字(这是上限不是目标,常规 150–280 字)。听众刚听完这一条的事实叙述,insight 是点评不是复读:不得复述正文已讲过的事实、数字或成串措辞(最多点到一两个关键词);也不得脱离这条新闻泛泛讲方法论或给通用建议。时长契约:全片按 15–20 分钟口播设计,时长靠覆盖更多条目和完整的事实叙述撑起,不靠拉长点评。字数按配音驱动折算:gemini ≈3.3 字/秒(正文约 4300–5800 字);Voicebox robin-news ≈6.3 字/秒(正文约 5700–7600 字,或增加条目数)。
|
|
49
|
+
- `outro`:简短收束语,接在固定致谢之前,不超过 150 字。
|
|
50
|
+
- `cover`:头版具象视觉内容。字符串形态是英文画面场景(不超过 240 字符,不含文字、数字、商标、旗帜或可辨识真人);0347 R4 起也可写作对象 `{ "scene": "…", "headline": "…" }` —— `scene` 沿用同一英文画面契约,`headline` 是锚定头条新闻的中文 Hook 大标题(1–2 行,每行不超过 25 字),供下游确定性排版小标题层。
|
|
51
|
+
- `cards`:小红书图文笔记总标题 `title`(不超过 20 字)与导语 `body`,单条卡片标题 `card.copy`(不超过 12 字)、2–4 条短要点 `card.points`、英文画面 `card.subject`。
|
|
52
|
+
- `social`:面向 X / Threads 的短帖 `short`(不超过 140 字)与面向微博 / LinkedIn 的长帖 `long`(不超过 500 字)。
|
|
53
|
+
|
|
54
|
+
## 机器可读契约
|
|
55
|
+
|
|
56
|
+
`caps` 是各字段的字数上限;`banned` 是任何计划字段都不得出现的短语——包括旧模板的全部罐头
|
|
57
|
+
点评、旧模板的 首先/接着/最后 开头、0133 的研究脚手架标签与对冲语(校验规则
|
|
58
|
+
`banned:<短语>`),以及 0189 R4 退役的旧栏目名(「每日 AI 资讯」「AI科技漫谈」
|
|
59
|
+
「AI Daily Briefing」):任何路径都不得让旧新闻定位复活。
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"caps": {
|
|
64
|
+
"intro": 150,
|
|
65
|
+
"outro": 150,
|
|
66
|
+
"lead": 80,
|
|
67
|
+
"insight": 380,
|
|
68
|
+
"cover": 240,
|
|
69
|
+
"coverHeadline": 25,
|
|
70
|
+
"cardCopy": 12,
|
|
71
|
+
"cardTitle": 20,
|
|
72
|
+
"socialShort": 140,
|
|
73
|
+
"socialLong": 500
|
|
74
|
+
},
|
|
75
|
+
"banned": [
|
|
76
|
+
"在各种技术光环背后,正是这样专注而不知疲倦的底层攻坚者,为今天整个大模型生态奠定了最坚实的技术基石。",
|
|
77
|
+
"这其实释放了一个非常明确的信号:AI竞争的下半场,已经不再只是单纯拼模型参数,更是电力、能源和全栈工业基础设施的硬核较量。",
|
|
78
|
+
"真正被重新定义的,是硬件层承担的安全与算力责任:把能力做进硅片层更可靠、也更难绕过,但生态锁定的代价需要一起算进去。",
|
|
79
|
+
"我个人觉得,这次最大的看点是内容创作门槛的再次降低。不过正如团队提到的,如何平衡创作自由与防止低质内容泛滥,会是整个行业接下来最值得观察的关键考题。",
|
|
80
|
+
"这项进展反映出资本与产业界正在加速形成合力,后续实际业务场景的落地效果非常值得我们持续跟进。",
|
|
81
|
+
"这项新动态反映出技术演进正在进一步提速,对相关领域的实际影响也非常值得我们持续关注。",
|
|
82
|
+
"首先",
|
|
83
|
+
"接着",
|
|
84
|
+
"最后",
|
|
85
|
+
"可做角度",
|
|
86
|
+
"背景",
|
|
87
|
+
"潜在影响",
|
|
88
|
+
"读者宜另行核实",
|
|
89
|
+
"仍待验证",
|
|
90
|
+
"每日AI资讯",
|
|
91
|
+
"每日 AI 资讯",
|
|
92
|
+
"今日AI科技漫谈",
|
|
93
|
+
"AI科技漫谈",
|
|
94
|
+
"AI Daily Briefing",
|
|
95
|
+
"我是咸话咸说",
|
|
96
|
+
"音频为 AI 合成配音",
|
|
97
|
+
"The audio in this episode is AI-synthesized"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
```
|
|
@@ -25,13 +25,13 @@ not add a `kk publish` noun.
|
|
|
25
25
|
| medium | `medium-pub` | `file-cli` (token API) | `kk executor run medium-pub --in <content.json> --out <result.json>` |
|
|
26
26
|
| wechatmp | `wechatmp-pub` | `file-cli` (`draft/add`) | `kk executor run wechatmp-pub` (default operation `draft`) |
|
|
27
27
|
| x post | `x-pub` | `file-cli` (`POST /2/tweets`) | `kk executor run x-pub` (`options.operation` omitted / `post`) |
|
|
28
|
-
| x article | `x-pub` | `browser` / `script` | `kk executor run x-pub --in <content.json> --out <result.json>` (`options.operation: article`); a missing or expired profile refuses (`ok: false`, naming `
|
|
28
|
+
| x article | `x-pub` | `browser` / `script` | `kk executor run x-pub --in <content.json> --out <result.json>` (`options.operation: article`); a missing or expired profile refuses (`ok: false`, naming `kk bot login x`) before any window opens |
|
|
29
29
|
| juejin | `juejin-pub` | `browser` / `script` | `kk executor run juejin-pub --in <content.json> --out <result.json>` |
|
|
30
30
|
| infoq | `infoq-pub` | `browser` / `script` | `kk executor run infoq-pub --in <content.json> --out <result.json>` |
|
|
31
31
|
| substack | `substack-pub` | `browser` / `script` | `kk executor run substack-pub --in <content.json> --out <result.json>` (needs `SUBSTACK_PUBLICATION_URL`) |
|
|
32
32
|
| threads | `threads-pub` | `file-cli` (Threads Graph, container → `threads_publish`) | `kk executor run threads-pub --in <content.json> --out <result.json>` — text only; needs `THREADS_ACCESS_TOKEN` + `THREADS_USER_ID`, no browser path |
|
|
33
33
|
| weibo | `weibo-pub` | `browser` / `script` | `kk executor run weibo-pub --in <content.json> --out <result.json>`; `options.operation` `article` (头条文章, draft via 保存草稿 by default) or `post` (home composer, which has **no draft** — it requires `metadata.publishStatus: public`) |
|
|
34
|
-
| xhs | `xhs-pub` | `browser` / `script` | `kk executor run xhs-pub --in <content.json> --out <result.json>` — its default `script` driver uploads the ordered card images with Playwright `setInputFiles`; the `agent` driver fails loud for this channel (ADR-024) |
|
|
34
|
+
| xhs | `xhs-pub` | `browser` / `script` | `kk executor run xhs-pub --in <content.json> --out <result.json>` — its default `script` driver uploads the ordered card images with Playwright `setInputFiles`; the `agent` driver fails loud for this channel (ADR-024). A draft returns `ok: true` only after the plugin reopens the saved note and checks slot count, `https` srcs, title, body, and 合集; a miss is `DraftVerifyError` and `ok: false`. Daily voice and publish tiers call this same executor, so that reopen is their post-save check |
|
|
35
35
|
|
|
36
36
|
Already-harvested file-cli channels (`qiita-pub`, `zenn-pub`, `surfdash-pub`,
|
|
37
37
|
`emdash-pub`, `podcast-pub`) compose the same way.
|
|
@@ -43,8 +43,8 @@ credentials. Before the first script-driver run (and after any session expiry),
|
|
|
43
43
|
headed login, then verify reuse read-only:
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
|
|
47
|
-
bun plugins/publishings/xhs-pub/src/profile-check.ts check # headless; exit 0 = session verified
|
|
46
|
+
kk bot login xhs # headed; sign in once in the window (adapter-verified)
|
|
47
|
+
bun plugins/publishings/xhs-pub/src/profile-check.ts check # headless; exit 0 = session verified (underlying probe)
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
`check` never signs in — with no saved profile it refuses (exit 1) instead of reporting success.
|