@gobing-ai/knowledge-kit 0.1.24 → 0.1.27

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.
Files changed (77) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/index.js +416 -79
  3. package/package.json +1 -1
  4. package/plugins/generations/episode-plan-gen/dist/index.js +47 -6
  5. package/plugins/generations/episode-plan-gen/src/index.ts +71 -7
  6. package/plugins/generations/music-gen/dist/index.js +17 -13
  7. package/plugins/generations/music-gen/src/audio/measure.ts +25 -20
  8. package/plugins/kk/decisions/extract/ai-news.yaml +8 -1
  9. package/plugins/kk/plugin.json +1 -1
  10. package/plugins/kk/publish-presets/daily-ai-voice.json +4 -4
  11. package/plugins/kk/publish-presets/itc-main.json +39 -23
  12. package/plugins/kk/scripts/cn-lead-gate.ts +494 -0
  13. package/plugins/kk/scripts/daily-stages.ts +880 -131
  14. package/plugins/kk/scripts/kk-workflow-stages.ts +58 -3
  15. package/plugins/kk/skills/content-safety/references/platforms/apple-podcasts.md +12 -5
  16. package/plugins/kk/skills/content-safety/references/platforms/wechatmp.md +8 -0
  17. package/plugins/kk/skills/content-safety/references/platforms/xiaoyuzhou.md +5 -0
  18. package/plugins/kk/skills/daily-news-cover/SKILL.md +96 -0
  19. package/plugins/kk/skills/daily-news-illustrations/SKILL.md +123 -0
  20. package/plugins/kk/skills/news-editorial/SKILL.md +25 -6
  21. package/plugins/kk/skills/news-editorial/references/daily-visual-composition.md +150 -0
  22. package/plugins/kk/skills/news-editorial/references/selection.md +42 -0
  23. package/plugins/kk/skills/news-editorial/references/style-contract.zh.md +1 -1
  24. package/plugins/kk/workflows/kk-article-generate.yaml +13 -1
  25. package/plugins/kk/workflows/kk-daily-ai-voice.yaml +6 -3
  26. package/plugins/kk/workflows/kk-daily-ai-voice2.yaml +6 -4
  27. package/plugins/kk/workflows/kk-news-generate.yaml +71 -1
  28. package/plugins/publishings/bilibili-pub/dist/index.js +35 -3
  29. package/plugins/publishings/bilibili-pub/dist/profile-check.js +35 -3
  30. package/plugins/publishings/cnblogs-pub/dist/index.js +35 -3
  31. package/plugins/publishings/cnblogs-pub/dist/profile-check.js +35 -3
  32. package/plugins/publishings/csdn-pub/dist/index.js +35 -3
  33. package/plugins/publishings/csdn-pub/dist/profile-check.js +35 -3
  34. package/plugins/publishings/infoq-pub/dist/index.js +35 -3
  35. package/plugins/publishings/infoq-pub/dist/profile-check.js +35 -3
  36. package/plugins/publishings/jike-pub/dist/index.js +35 -3
  37. package/plugins/publishings/jike-pub/dist/profile-check.js +35 -3
  38. package/plugins/publishings/juejin-pub/dist/index.js +35 -3
  39. package/plugins/publishings/juejin-pub/dist/profile-check.js +35 -3
  40. package/plugins/publishings/linkedin-pub/dist/index.js +86 -14
  41. package/plugins/publishings/linkedin-pub/dist/profile-check.js +52 -6
  42. package/plugins/publishings/linkedin-pub/src/index.ts +126 -9
  43. package/plugins/publishings/medium-pub/dist/index.js +9229 -279
  44. package/plugins/publishings/medium-pub/dist/profile-check.js +21205 -0
  45. package/plugins/publishings/medium-pub/package.json +3 -1
  46. package/plugins/publishings/medium-pub/plugin.json +6 -1
  47. package/plugins/publishings/medium-pub/src/browser-rail.ts +280 -0
  48. package/plugins/publishings/medium-pub/src/index.ts +17 -1
  49. package/plugins/publishings/medium-pub/src/profile-check.ts +27 -0
  50. package/plugins/publishings/shipinhao-pub/dist/index.js +38 -4
  51. package/plugins/publishings/shipinhao-pub/dist/profile-check.js +37 -4
  52. package/plugins/publishings/shipinhao-pub/src/flow.ts +5 -0
  53. package/plugins/publishings/shipinhao-pub/src/selectors.ts +11 -4
  54. package/plugins/publishings/sspai-pub/dist/index.js +35 -3
  55. package/plugins/publishings/sspai-pub/dist/profile-check.js +35 -3
  56. package/plugins/publishings/substack-pub/dist/index.js +35 -3
  57. package/plugins/publishings/substack-pub/dist/profile-check.js +35 -3
  58. package/plugins/publishings/surfdash-pub/dist/index.js +53 -15
  59. package/plugins/publishings/surfdash-pub/src/index.ts +31 -4
  60. package/plugins/publishings/surfdash-pub/src/patch.ts +81 -12
  61. package/plugins/publishings/threads-pub/dist/index.js +35 -3
  62. package/plugins/publishings/threads-pub/dist/profile-check.js +35 -3
  63. package/plugins/publishings/wechatmp-pub/dist/index.js +326 -44
  64. package/plugins/publishings/wechatmp-pub/dist/profile-check.js +69 -4
  65. package/plugins/publishings/wechatmp-pub/src/flow.ts +447 -53
  66. package/plugins/publishings/wechatmp-pub/src/index.ts +68 -2
  67. package/plugins/publishings/wechatmp-pub/src/page.ts +8 -0
  68. package/plugins/publishings/weibo-pub/dist/index.js +58 -9
  69. package/plugins/publishings/weibo-pub/dist/profile-check.js +57 -9
  70. package/plugins/publishings/weibo-pub/plugin.json +1 -1
  71. package/plugins/publishings/weibo-pub/src/index.ts +76 -8
  72. package/plugins/publishings/x-pub/dist/index.js +35 -3
  73. package/plugins/publishings/x-pub/dist/profile-check.js +35 -3
  74. package/plugins/publishings/xhs-pub/dist/index.js +35 -3
  75. package/plugins/publishings/xhs-pub/dist/profile-check.js +35 -3
  76. package/plugins/publishings/xiaoyuzhou-pub/dist/index.js +35 -3
  77. package/plugins/publishings/xiaoyuzhou-pub/dist/profile-check.js +35 -3
@@ -1538,6 +1538,24 @@ function publishMatrixPartial(args: string[]): void {
1538
1538
  });
1539
1539
  }
1540
1540
 
1541
+ /**
1542
+ * 0432 R2/R3: the warning a skipped cover patch deserves, or undefined when the cover was applied.
1543
+ *
1544
+ * A patch whose only shortfall is the remote cover is NOT a failed target: the post is already live
1545
+ * and its og:image resolves from the CMS row, so reporting the row failed invited a needless
1546
+ * re-publish (2026-11-24 dogfood). The diagnostic is the plugin's `metadata.coverPatch`, and the
1547
+ * page URL is what makes the warning actionable.
1548
+ */
1549
+ function coverPatchWarning(metadata: Record<string, unknown>, fallbackPageUrl = ''): string | undefined {
1550
+ const coverPatch = metadata.coverPatch;
1551
+ if (coverPatch === null || typeof coverPatch !== 'object' || Array.isArray(coverPatch)) return undefined;
1552
+ const entry = coverPatch as Record<string, unknown>;
1553
+ if (entry.status !== 'skipped') return undefined;
1554
+ const pageUrl = typeof entry.pageUrl === 'string' && entry.pageUrl !== '' ? entry.pageUrl : fallbackPageUrl.trim();
1555
+ const reason = typeof entry.reason === 'string' && entry.reason !== '' ? entry.reason : 'no remote https:// cover';
1556
+ return `patch-surfdash: WARNING: cover patch skipped — ${reason} (page ${pageUrl === '' ? 'unknown' : pageUrl}); the post is already live and its og:image resolves, so nothing is republished`;
1557
+ }
1558
+
1541
1559
  /**
1542
1560
  * `publish-matrix-patch-surfdash` (0333): patch podcast links into a real surfdash post.
1543
1561
  *
@@ -1614,6 +1632,7 @@ function publishMatrixPatchSurfdash(args: string[]): void {
1614
1632
  typeof podReceipt?.aggregatePath === 'string' ? podReceipt.aggregatePath : undefined,
1615
1633
  );
1616
1634
  const podMeta = (podTarget.metadata ?? {}) as Record<string, unknown>;
1635
+ const sdMeta = (sdTarget.metadata ?? {}) as Record<string, unknown>;
1617
1636
  const runDate = String(readJson(join(publishDir, `outcome.${window}.json`))?.runDate ?? '');
1618
1637
  const compactDate = runDate.replaceAll('-', '');
1619
1638
  const bundle = readJson(join(workDir, 'bundle.json')) as { episode?: { title?: unknown } } | null;
@@ -1632,6 +1651,22 @@ function publishMatrixPatchSurfdash(args: string[]): void {
1632
1651
  : typeof bundle?.episode?.title === 'string'
1633
1652
  ? bundle.episode.title
1634
1653
  : '';
1654
+ // 0432 R1: the cover source, in precedence order.
1655
+ // 1. the podcast row's own media URL (what a successful episode hosts today);
1656
+ // 2. the SURFDASH side's hosted cover — the URL its `publish` uploaded to podcast-media and
1657
+ // now reports in its receipt, which is the only https cover a held podcast row leaves;
1658
+ // 3. this run's rendered cover file, which the plugin uploads itself (`uploadLocalCover`).
1659
+ // Sourcing 2/3 is what stops a live page from failing the patch when `podcast-pub.episode`
1660
+ // is excluded by the safety verdict (2026-11-24 dogfood).
1661
+ const podcastCover = podReal && typeof podMeta.imageUrl === 'string' ? podMeta.imageUrl.trim() : '';
1662
+ const surfdashCover = typeof sdMeta.coverUrl === 'string' ? sdMeta.coverUrl.trim() : '';
1663
+ const coverUrl = podcastCover !== '' ? podcastCover : surfdashCover;
1664
+ const localCover =
1665
+ compactDate.length === 8 && isFile(join(workDir, '23-cover', `${compactDate}_07_cover_cover.png`))
1666
+ ? join(workDir, '23-cover', `${compactDate}_07_cover_cover.png`)
1667
+ : '';
1668
+ // 0432 R2: the live page the patch heals, so a cover skip names a URL instead of a slug.
1669
+ const pageUrl = typeof sdTarget.url === 'string' ? sdTarget.url.trim() : '';
1635
1670
  const payload = join(publishDir, 'patch-surfdash.payload.json');
1636
1671
  sted('write', payload, () =>
1637
1672
  writeJqText(payload, {
@@ -1639,8 +1674,10 @@ function publishMatrixPatchSurfdash(args: string[]): void {
1639
1674
  options: {
1640
1675
  operation: 'patch',
1641
1676
  postPath,
1642
- coverUrl: podReal && typeof podMeta.imageUrl === 'string' ? podMeta.imageUrl : '',
1677
+ coverUrl,
1643
1678
  showNotesUrl: podReal && typeof podTarget.url === 'string' ? podTarget.url : '',
1679
+ ...(localCover !== '' ? { localCover } : {}),
1680
+ ...(pageUrl !== '' ? { pageUrl } : {}),
1644
1681
  ...(episodeTitle !== '' ? { episodeTitle } : {}),
1645
1682
  ...(compactDate.length === 8
1646
1683
  ? {
@@ -1663,14 +1700,19 @@ function publishMatrixPatchSurfdash(args: string[]): void {
1663
1700
  soft: true,
1664
1701
  });
1665
1702
  const result = readJson(resultPath);
1703
+ const meta = (result?.metadata ?? {}) as Record<string, unknown>;
1704
+ const coverWarning = coverPatchWarning(meta, pageUrl);
1666
1705
  if (result?.ok === true) {
1667
- const meta = (result.metadata ?? {}) as Record<string, unknown>;
1668
1706
  console.error(
1669
1707
  `patch-surfdash: ${String(result.message ?? 'patched')} — cms-resync ${String(meta.cmsResync ?? 'ok')}`,
1670
1708
  );
1709
+ if (coverWarning !== undefined) console.error(coverWarning);
1671
1710
  return;
1672
1711
  }
1673
- const meta = (result?.metadata ?? {}) as Record<string, unknown>;
1712
+ // 0432 R2/R3: a cover the patch could not source is a WARNING, not a failed target — the post
1713
+ // is already live and its og:image resolves. Every other patch failure keeps failing here.
1714
+ // Order matters (review P2): a failed CMS re-sync is a real soft-channel failure and must be
1715
+ // reported as such even when the cover was skipped too, so it is checked first.
1674
1716
  if (meta.cmsResync === 'failed') {
1675
1717
  // The posts are patched and committed; only the CMS re-sync (a soft channel) failed.
1676
1718
  console.error(
@@ -1678,6 +1720,10 @@ function publishMatrixPatchSurfdash(args: string[]): void {
1678
1720
  );
1679
1721
  return;
1680
1722
  }
1723
+ if (coverWarning !== undefined) {
1724
+ console.error(coverWarning);
1725
+ return;
1726
+ }
1681
1727
  failWith(1, `patch-surfdash: ${String(result?.error ?? `surfdash-pub patch exited ${status}`)}`);
1682
1728
  });
1683
1729
  }
@@ -1925,10 +1971,14 @@ function dailyPatchSurfdash(args: string[]): void {
1925
1971
  );
1926
1972
  const result = isFile(resultPath) ? readJson(resultPath) : null;
1927
1973
  const meta = (result?.metadata ?? {}) as Record<string, unknown>;
1974
+ // 0432 R2: the same cover-skip warning the matrix stage reports — the plugin no longer fails
1975
+ // for it, and the operator needs the page URL either way.
1976
+ const coverWarning = coverPatchWarning(meta);
1928
1977
  if (result?.ok === true) {
1929
1978
  console.error(
1930
1979
  `patch-surfdash: ${String(result.message ?? 'patched')} — cms-resync ${String(meta.cmsResync ?? 'ok')}, commit ${String(meta.gitCommit ?? 'unchanged')}${Array.isArray(meta.absentLocales) && meta.absentLocales.length > 0 ? `, no post for ${(meta.absentLocales as string[]).join('/')}` : ''}`,
1931
1980
  );
1981
+ if (coverWarning !== undefined) console.error(coverWarning);
1932
1982
  return;
1933
1983
  }
1934
1984
  // The posts are patched and committed; only the EmDash rows keep the unservable cover. That is
@@ -2110,6 +2160,11 @@ if (import.meta.main)
2110
2160
  dailyXhsRender(rest);
2111
2161
  break;
2112
2162
  }
2163
+ case 'news-inline-illustrations': {
2164
+ const { dailyInlineIllustrations } = await loadDailyStages();
2165
+ dailyInlineIllustrations(rest);
2166
+ break;
2167
+ }
2113
2168
  case 'daily-script-style': {
2114
2169
  const { dailyScriptStyle } = await loadDailyStages();
2115
2170
  dailyScriptStyle(rest);
@@ -7,9 +7,9 @@ Review-item IDs here are **this skill's bookkeeping numbers**, not official plat
7
7
  | Official source | Apple Podcasts content guidelines <https://podcasters.apple.com/support/891-content-and-subscription-guidelines> |
8
8
  | Scope | 播客音频、单集标题/简介、节目元数据(RSS 侧字段经发布通道送达) |
9
9
  | Effective date | unknown(页面未标注版本生效日期) |
10
- | Last verified | 2026-09-30 — §1.1、§1.11、§1.12 已读原文;其余条款(§1.2–§1.10、§2 起)仅见标题,未逐条核验 |
11
- | Evidence status | §1.1 / §1.11 / §1.12 为**官方原文**(下引);其余条款未核验 → 引用时标 `evidenceGap: true` |
12
- | Changelog | 2026-09-29 — file created (task 0189) · 2026-09-30 — 深链与 §1.1/§1.11/§1.12 原文核验,新增 AP-05/AP-06 · 2026-10-08 — 操作者裁定:单集文末统一 AI 声明撤下,AP-05 改为 note |
10
+ | Last verified | 2026-11-24 — §1.1–§1.12 全文与 §2(含 §2.2 Harmful or Objectionable Content、§2.4)已读原文;§1.2–§1.10 的类别限制核验完毕,AP-02 关闭 |
11
+ | Evidence status | §1.1–§1.12 与 §2 的关键条为**官方原文**(下引);**没有**任何条款按题材(新闻/时政/贸易管制/政府)设限 — 只有 §1.12 禁止用 AI 编造新闻 |
12
+ | Changelog | 2026-09-29 — file created (task 0189) · 2026-09-30 — 深链与 §1.1/§1.11/§1.12 原文核验,新增 AP-05/AP-06 · 2026-10-08 — 操作者裁定:单集文末统一 AI 声明撤下,AP-05 改为 note · 2026-11-24 — 补读 §1.2–§1.10 与 §2,AP-02 由 `judge`(evidenceGap) 降为 `note`(见下) |
13
13
 
14
14
  ## Evidence distinctions
15
15
 
@@ -17,6 +17,12 @@ Review-item IDs here are **this skill's bookkeeping numbers**, not official plat
17
17
  - §1.1 Metadata Accuracy — "Podcast metadata (for example, titles, descriptions, language, etc.) must always accurately represent the corresponding content that is distributed."
18
18
  - §1.11 AI Generated Content — "Creators using AI to generate audio or video content — including synthetic voices, AI-generated hosts or on-screen personas, or AI-synthesized replicas of real individuals — must prominently disclose this to audiences in the content and metadata for each episode and show."
19
19
  - §1.12 Misleading Use of AI — "Creators must not use AI in violation of these guidelines, including to mislead or deceptively portray real-life events in their content (e.g., using AI to fabricate news stories or manipulate audio or video clips to present false narratives)."
20
+ - **官方规则**(2026-11-24 补读;同一页面 <https://podcasters.apple.com/support/891-content-and-subscription-guidelines>):
21
+ - §1.2 Explicit Content — "Creators must flag individual episodes with the 'Explicit' tag if they contain explicit content (for example, profanity or content that may not be suitable for children)."(是一个**标记**义务,不是题材禁令)
22
+ - §1.3 Self-Censored Content / §1.4 Impersonation / §1.5 Manipulation / §1.6 Incomplete Content / §1.7 Rights Infringement / §1.8 Password-Protected Content / §1.9 Duplicate Content / §1.10 Apple Copyrighted Terms — 分别为:标题不得自我审查打码;不得模仿他人;不得操纵榜单;不得只有预告/广告;不得侵权;不得密码保护;不得重复投稿;不得冒用 Apple 商标。
23
+ - §2.2 Harmful or Objectionable Content — "Defamatory, discriminatory, or mean-spirited content … particular if the content is likely to humiliate, intimidate, harass, or harm individuals or groups or includes specific threats of violence … Professional political satirists and humorists are generally exempt from this requirement."(针对**攻击特定群体/个人**的内容;对本节目的产业新闻转述不适用)
24
+ - §2.4 Pornographic or Sexually Explicit Content — "Content promoting sexual violence or sexual humiliation."(禁止**推广**,不是禁止报道相关诉讼/政策)
25
+ - **页面没有任何条款按题材限制新闻、时政、贸易管制或政府相关报道**;核验时逐条确认过 §1.1–§1.12 与 §2.2/§2.4 的措辞。
20
26
  - **用户报告**:无(本节目在该平台无下架/拒审事件记录)。
21
27
  - **编辑建议(本技能)**:以下审核项为保守立场。
22
28
 
@@ -25,7 +31,7 @@ Review-item IDs here are **this skill's bookkeeping numbers**, not official plat
25
31
  | ID | Item | Grade |
26
32
  |----|------|-------|
27
33
  | AP-01 | **管辖口径边界**:不把国内牌照/新闻资质口径当作 Apple 规则适用 — Apple 按其自有 guidelines 审核;「无国内新闻资质」本身不是 Apple 平台的拒审理由。涉及中国大陆听众可达性的判断请回到各国内平台文件 | note |
28
- | AP-02 | 官方 guidelines 的内容类别限制(露骨、暴力、侵权等)— 条文未核验,引用时 evidenceGap | judge |
34
+ | AP-02 | 官方 guidelines 的内容类别限制(露骨、暴力、侵权等)。**2026-11-24 已逐条核验**:§1.2 只要求露骨内容打 Explicit 标记,§2.2/§2.4 只禁针对群体/个人的攻击与**推广**色情或性暴力,§1.4–§1.10 是冒充/操纵/侵权/重复类;**没有按题材(新闻、时政、贸易管制、政府)设限的条款**。因此一集产业/时政新闻只要事实有出处、不推广性暴力、不攻击群体,就不构成 Apple 侧拒审理由 → 不再 escalate、不再因「规则未核验」给 BLOCK。露骨言语忘打 Explicit 标记记 fix | note |
29
35
  | AP-03 | 元数据保真:标题/简介/分类不得与实际音频内容不符(官方 §1.1;通用层类别 4/5) | fix |
30
36
  | AP-04 | 可识别个人信息(通用层类别 3 直映射) | desensitize |
31
37
  | AP-05 | 本栏目的制作方式由频道/栏目设置说明。不要因为正文、口播或 show notes 缺少「文字由 AI 辅助整理,音频为 AI 合成配音」「本期音频为 AI 合成配音」或 “The audio in this episode is AI-synthesized.” 而记 fix,也不要提议把这些句子加回去(操作者裁定 2026-10-08)。假实测、假身份仍按 §1.1 / 类别 5 block。 | note |
@@ -33,4 +39,5 @@ Review-item IDs here are **this skill's bookkeeping numbers**, not official plat
33
39
 
34
40
  ## Open questions / escalation
35
41
 
36
- - 首次向该平台大规模投递前,人工读一遍 guidelines 并更新本文件的 Last verified 与 AP-02。
42
+ - 已关闭(2026-11-24):guidelines §1.1–§1.12 与 §2.2/§2.4 已逐条读完并更新 Last verified 与 AP-02。下一次只需复核页面是否改版,不重复整读。
43
+ - 若某集出现露骨言语,唯一动作是按 §1.2 打 Explicit 标记(AP-02 的 fix 分支),不是删稿或排除平台。
@@ -11,6 +11,14 @@ Review-item IDs here are **this skill's bookkeeping numbers**, not official plat
11
11
  | Evidence status | **AI 标识义务已核验**(《标识办法》官方原文 + 微信平台公告原文);WX-01/WX-04 仍为保守立场(规范原文未核验);2026-09-29 图文下架事件为**用户报告**,平台未给出书面理由 |
12
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
+ ## Operator rulings
15
+
16
+ - **2026-11-24** — WX-01(时政/公共事务主线)与 XY-02(小宇宙)同口径收紧适用范围:仅限**以中国
17
+ 国内政治、公共政策争议、社会公共事件为主线**的图文/音频。境外公司被其本国监管机构或安全审查、
18
+ 出口管制、外国情报类报道,属于产业新闻的监管面向,按 `note` 记录后照常投递(草稿行尤然:draft
19
+ 不触达读者)。规范原文仍未核验——本条是操作者承担风险的编辑口径,不是平台规则;若公众号给出书面
20
+ 拒审理由,回到本文件重评。
21
+
14
22
  ## Evidence distinctions
15
23
 
16
24
  - **官方规则(已核验原文)**:《人工智能生成合成内容标识办法》(cac.gov.cn,2025-03-14 发布,2025-09-01 施行);微信珊瑚安全公众号公告(2025-08-31)。关键条文:
@@ -35,3 +35,8 @@ Review-item IDs here are **this skill's bookkeeping numbers**, not official plat
35
35
  (`escalate: true`),不得静默 PASS。
36
36
  - 裁定 2026-10-10:XY-01 已按上表降级,资质口径本身不再触发人工复审;XY-02(时政主线)
37
37
  与证据缺口仍照旧 escalate。
38
+ - **操作者裁定 2026-11-24**(2026-11-24 当日剧集,lead = 英伟达复职 + 美国国家安全审查 + 出口管制
39
+ 委员会):XY-02 的适用范围限定为**以中国国内政治、公共政策争议、社会公共事件为主线**的单集;
40
+ 境外公司被其本国监管机构/安全审查、出口管制、外国情报类报道,属于产业新闻的监管面向,按
41
+ `note` 记录后照常投递,不再单独 `escalate`。平台条文未核验这一事实不变——本条是操作者承担风险
42
+ 的编辑口径,不是平台规则;若小宇宙给出书面拒审理由,回到本文件重评。
@@ -0,0 +1,96 @@
1
+ ---
2
+ name: daily-news-cover
3
+ description: >-
4
+ Use the daily-news-cover skill to author the one text-free visual scene a daily AI news episode's
5
+ cover and social crop are rendered from — "write today's cover scene", "author the cover brief",
6
+ "fix the cover subject", "why did the cover miss the story". Owns scene selection and wording
7
+ against the shipped composition reference; never owns the headline, the pins or the renderer.
8
+ Modes: scene | brief.
9
+ requires: [cli:kk, local-fs]
10
+ ---
11
+
12
+ # daily-news-cover — the episode's one text-free scene
13
+
14
+ ## Purpose
15
+
16
+ One episode, one scene. This skill turns the episode's selected lead into a single concrete visual
17
+ scene that the pinned cover format renders and the deterministic compositor then carries the frozen
18
+ headline onto. Everything deterministic stays in code and is **out of scope**: the headline and
19
+ `sourceIds` (`news-editorial` mode `write`), the format/style/provider/model pins, the 1344 × 576 PNG
20
+ and 1200 × 630 JPG outputs, typography, cropping and caching (`plugins/kk/scripts/cover-compositor.ts`,
21
+ `kk stage daily-cover`, `kk stage daily-cover-normalize`).
22
+
23
+ The composition knowledge is shared, not restated here: read
24
+ `../news-editorial/references/daily-visual-composition.md` first. It owns the ten patterns, the
25
+ protected regions and the eight worked examples; this skill owns how a caller reaches them.
26
+
27
+ ## Invocation contract
28
+
29
+ | Mode | Input → output | Caller |
30
+ | --- | --- | --- |
31
+ | `scene` | the episode's selected lead (plan item `title` + `metadata.brief`) → the `cover` object inside the master script plan | `kk-news-generate` node `script-write` / `script-fix` |
32
+ | `brief` | the lead plan item → `{"subject": "…"}` at `23-cover/<run_date>_07_cover-brief.json` | legacy `kk-daily-ai-voice` / `kk-daily-ai-voice2` cover nodes |
33
+
34
+ The calling prompt supplies the paths. Write only the file it names, as one valid JSON value, and
35
+ never edit the input plan.
36
+
37
+ ## Rules
38
+
39
+ 1. **Pick the lead, once.** Use the episode's selected lead — the item whose `sourceIds` the frozen
40
+ headline rests on. When the lead's mainline is a political figure, an armed conflict or a non-AI
41
+ event, take the first in-scope item instead; an AI-subject public-policy story is in scope.
42
+ 2. **Pick one pattern** from the shared reference (product-led, then comparison, then metaphor) and
43
+ say which one in one clause. Never stack two.
44
+ 3. **Place the subject for the crop.** Focal subject in the upper-centre or right-third band; the
45
+ lower third stays empty for the composited headline; the subject's readable detail must survive
46
+ the 1:1 feed crop (the middle column, `x 384..960` of 1344).
47
+ 4. **Ground every noun in the sources.** No product, benchmark, number, place or person the plan item
48
+ does not name. A thin story gets a smaller, simpler object — never an invented one.
49
+ 5. **Scene only.** English, ≤240 characters, objects/settings/metaphor only. No text, letters,
50
+ numbers, logos, flags, or recognizable people; no style, colour, lighting or composition
51
+ instruction — the pinned style owns those.
52
+ 6. **Never touch the frozen identity.** `headline` and `sourceIds` come from editorial and stay
53
+ byte-identical; a scene edit is never a reason to re-freeze the title.
54
+
55
+ ## Mode: scene
56
+
57
+ Return the plan's `cover` field, keeping whatever the editorial layer already froze:
58
+
59
+ ```json
60
+ {
61
+ "scene": "…",
62
+ "headline": "…",
63
+ "sourceIds": ["…"]
64
+ }
65
+ ```
66
+
67
+ `scene` is the only field this skill authors. `headline` and `sourceIds` are copied through unchanged
68
+ when present. When the plan's `cover` is still the plain-string form, emit the object form only if the
69
+ headline is available to the caller; otherwise emit the string and let the title fall back to the
70
+ legacy shape.
71
+
72
+ ## Mode: brief
73
+
74
+ Write the legacy-compatible subject brief the existing render entry points already read:
75
+
76
+ ```json
77
+ { "subject": "…" }
78
+ ```
79
+
80
+ This is the same scene, wrapped for the pre-0385 shape. `kk stage daily-cover` reads `subject` and
81
+ degrades to the format's default subject when the brief is missing or invalid — so a brief you are not
82
+ sure about is still worth writing, but it is never worth inventing facts for.
83
+
84
+ ## Rejections
85
+
86
+ Return the scene again (or nothing, for a legacy brief) instead of spending a render when the draft
87
+ carries lettering, a logo, a flag, a recognizable person, a style instruction, a subject in the
88
+ headline zone, an unnamed product, or more than 240 characters. The shared reference's **Refusals**
89
+ section is the binding list.
90
+
91
+ ## References
92
+
93
+ - `../news-editorial/references/daily-visual-composition.md`: the ten patterns, protected regions,
94
+ eight worked examples, refusals.
95
+ - `../news-editorial/SKILL.md`: editorial ownership of the plan, the lead and the frozen headline.
96
+ - `plugins/kk/scripts/cover-compositor.ts`: the real crop and headline geometry.
@@ -0,0 +1,123 @@
1
+ ---
2
+ name: daily-news-illustrations
3
+ description: >-
4
+ Use the daily-news-illustrations skill to author the artwork direction a daily AI news episode's
5
+ Xiaohongshu card series renders from — "write the card scenes", "author the XHS card art", "why did
6
+ card 3 miss the story". Owns the per-card `subject` scene only, composed against the shipped
7
+ composition reference; never owns card copy, order, roles, the plan shape or the renderer.
8
+ Modes: card | inline.
9
+ requires: [cli:kk, local-fs]
10
+ ---
11
+
12
+ # daily-news-illustrations — the card series' artwork direction
13
+
14
+ ## Purpose
15
+
16
+ One ordered card series, one scene per card. This skill turns the episode's card plan into the
17
+ text-free English scenes the pinned `xhs-card` format renders, so every card in a day reads as one
18
+ series while still illustrating its own story. Everything deterministic stays in code and is **out of
19
+ scope**: `copy`, `points`, `role`, `layout`, card order, `title`/`body`, `sourcePoint`, `itemId`
20
+ (`news-editorial` mode `write`, `plugins/kk/scripts/daily-stages.ts` `dailyEditorialRender`), the
21
+ format/style/provider/model pins, the Chinese compositor, the published manifest and the resume path
22
+ (`kk stage daily-xhs-render`).
23
+
24
+ The composition knowledge is shared, not restated here: read
25
+ `../news-editorial/references/daily-visual-composition.md` first. It owns the ten patterns, the
26
+ protected regions and the eight worked examples. Card art differs from the cover only in what it
27
+ must survive: a card is composed with deterministic Chinese text, so the scene carries no lettering
28
+ and keeps its focal detail clear of the copy band.
29
+
30
+ ## Invocation contract
31
+
32
+ `card` mode: the ordered plan plus the selected items → one `subject` string per card.
33
+
34
+ | Caller | Input | Output |
35
+ | --- | --- | --- |
36
+ | `kk-news-generate` `script-write` / `script-fix` (canonical master plan) | `items[].card` (`copy`, `points`) + the matching plan `Doc` | only `items[].card.subject` |
37
+ | `kk-daily-ai-voice` / `kk-daily-ai-voice2` `xhs-write` (legacy card plan) | `cards[]` (`role`, `copy`, `points`, `sourcePoint`) + the plan `Doc[]` | only `cards[].subject` |
38
+ | manual standalone work | the same `{title, body, cards}` plan | the same `subject` fields, then `kk news generate-cards --work-dir <dir>` |
39
+
40
+ Write only the field the caller names. The caller's plan shape, keys, order and guards stay
41
+ byte-identical.
42
+
43
+ ## Rules
44
+
45
+ 1. **One card, one story.** Derive each content card's scene from the item it illustrates — the
46
+ approved `Doc`/lead and the fact that card's `sourcePoint` (or `points`) states. Never borrow a
47
+ neighbouring item's subject, and never invent a fact the plan does not carry.
48
+ 2. **Keep the derived cards derived.** The `cover` and `closing` cards take their scene from the
49
+ existing episode fallback (`dailyEditorialRender` uses the cover scene, else the first content
50
+ card's subject, else its neutral default). Do not ask for new episode-level fields and do not
51
+ override that derivation.
52
+ 3. **Choose one pattern** from the shared reference — a clear object, or a simple two-part comparison
53
+ when the card's own fact is an A/B. Never stack patterns, never illustrate the copy literally.
54
+ 4. **Compose for the text.** The compositor writes Chinese copy over the artwork: keep the focal
55
+ detail out of the copy band, and keep it inside the middle column so a square crop still shows it.
56
+ 5. **Scene only.** English, ≤240 characters, objects/settings/metaphor only. No text, letters,
57
+ numbers, logos, flags or recognizable people; no style, colour, lighting or composition
58
+ instruction — the pinned style owns those.
59
+ 6. **Series coherence without repetition.** Cards of one episode share a world (materials, palette
60
+ family, light) through the pinned style, not through copied scenes: two cards of the same episode
61
+ must not carry the same scene.
62
+
63
+ ## Mode: inline
64
+
65
+ Author `22-article/illustrations/plan.json` for the reviewed daily article (task 0426 — opt-in via
66
+ `kk news generate --inline-illustrations`, default off):
67
+
68
+ ```json
69
+ {
70
+ "version": 1,
71
+ "figures": [
72
+ { "anchor": "<a whole paragraph, verbatim>", "sourceId": "<admitted plan item id>",
73
+ "concept": "English, text-free scene", "caption": "≤30 Chinese chars", "altText": "≤40 Chinese chars" }
74
+ ]
75
+ }
76
+ ```
77
+
78
+ 1. **One or two figures, no more.** A figure earns its place only when it explains something the
79
+ paragraph does not say in words — a mechanism, a comparison, a flow. Two is the ceiling.
80
+ 2. **Anchor = a whole prose paragraph, copied verbatim.** Never a heading, a quotation, a list item,
81
+ a line inside a fenced code block, an existing image, or a sentence inside a longer paragraph:
82
+ the stage refuses every one of those, and it refuses two figures on the same paragraph.
83
+ 3. **Body order.** Figure 1's paragraph comes before figure 2's; the stage enforces it.
84
+ 4. **`sourceId` must be an admitted plan item** — the same id the paragraph's story carries. A
85
+ figure anchored to an unadmitted claim is refused before any spend.
86
+ 5. **Caption and alt text are editorial**, in Chinese: the caption is what the reader sees under the
87
+ figure (≤30 chars), the alt text is what a screen reader announces (≤40 chars). Never restate the
88
+ paragraph; say what the figure shows.
89
+ 6. **Concept is the scene**, English, ≤240 characters, text-free — the same contract as `card` and
90
+ `scene`, composed per the shared reference.
91
+
92
+ The stage — not you — decides whether any of this may render: it re-checks the drafts' content-safety
93
+ stamp and the WeChat article target before the first provider call, then renders or resumes one
94
+ `job: illustration` request per figure.
95
+
96
+ ## Mode: card
97
+
98
+ Emit the plan with **only** the `subject` fields filled in:
99
+
100
+ ```json
101
+ { "cards": [ { "role": "cover", "subject": "…" }, { "role": "content", "subject": "…" } ] }
102
+ ```
103
+
104
+ `copy`, `points`, `layout`, `role`, `sourcePoint`, `itemId`, `title` and `body` are copied through
105
+ unchanged. A card whose `copy`/`points` are missing is the caller's defect, not yours to repair: leave
106
+ its `subject` empty and say so, so `daily-xhs-render` refuses the plan with its own named error rather
107
+ than rendering an unsourced scene.
108
+
109
+ ## Rejections
110
+
111
+ Return the scene again instead of spending a render when the draft carries lettering, a logo, a flag,
112
+ a recognizable person, a style instruction, a scene copied from another card, an unnamed product, or
113
+ more than 240 characters. The shared reference's **Refusals** section is the binding list.
114
+
115
+ ## References
116
+
117
+ - `../news-editorial/references/daily-visual-composition.md`: patterns, protected regions, worked
118
+ examples, refusals.
119
+ - `../news-editorial/SKILL.md`: ownership of `cards.title/body`, `items[].card.copy/points` and the
120
+ plan shape.
121
+ - `../daily-news-cover/SKILL.md`: the episode cover scene (0424), which the cover card reuses.
122
+ - `plugins/kk/scripts/daily-stages.ts`: `dailyEditorialRender` (card plan + fallback derivation) and
123
+ `dailyXhsRender` (per-card render, cached-artifact reuse, manifest).
@@ -68,7 +68,21 @@ validator enforces mechanically, so violating them means the plan is rejected.
68
68
  corroborates it. Unverified inference has exactly two legal shapes — explicit attribution (据报道 / 当事人称 /
69
69
  公司未证实) or omission. Keep hedges (据报道 / 称 / 承诺); never add scaffold hedges (读者宜另行核实 /
70
70
  仍待验证) to look careful. If the material is thin, write less — omission is the default, not a softening.
71
- 4. **Copy discipline.** Use reader-facing spoken Chinese. Do not use scaffold labels (可做角度 / 背景 /
71
+ 4. **CN lead constraint (0433 R1/R2 — enforceable, not advisory).** Every episode this skill plans is
72
+ written for a CN-distributed cut (小宇宙 / 微信公众号 / 视频号 / 即刻) as well as the overseas surfaces.
73
+ A mainline in **时政 / 贸易管制 / 公共安全审查** — political affairs, export or trade controls,
74
+ state-/public-security review, foreign-intelligence framing — must **not** be the episode's lead title,
75
+ headline or summary on that cut: platform review items `XY-02`
76
+ (`../content-safety/references/platforms/xiaoyuzhou.md`) and `WX-01` (`.../wechatmp.md`) block it, and a
77
+ blocked lead costs the day its primary channel *after* the audio is paid for. Such a story usually stays
78
+ **in scope as an item** (shared rule 2 keeps export controls and regulation that decide AI capacity
79
+ reportable) — it is the **lead position** that is constrained, not the story. Chosen behaviour when the
80
+ blocked story is the day's biggest: **demote it to a body item with a neutral headline and let the first
81
+ clean in-scope story lead** (one cut, one synthesis bill, no second render path; tradeoff recorded in
82
+ `references/selection.md` § CN lead). `daily-curate-check` enforces this deterministically
83
+ (`plugins/kk/scripts/cn-lead-gate.ts`) and rejects the plan with rule `cn-lead:XY-02`, naming the matched
84
+ terms — that rejection is the instruction, not a warning.
85
+ 5. **Copy discipline.** Use reader-facing spoken Chinese. Do not use scaffold labels (可做角度 / 背景 /
72
86
  潜在影响) or hedge labels (读者宜另行核实 / 仍待验证), use 「」 for quotes, and never add a greeting,
73
87
  sign-off or AI-production footer. The builder adds those.
74
88
 
@@ -79,7 +93,7 @@ Read the curated plan `Doc[]` (`--in`) and the curate exclusions (`--excluded`).
79
93
  - `lead`: one spoken bridge into the item (≤80 chars). It is not the title and not a rhetorical question.
80
94
  - `insight` (optional; omitting it and writing `""` are the same thing — both validate, and the builder and the
81
95
  renderer skip only the comment sentence, never the item): 2–4 sentences (≤380 chars) anchored to the doc's named actors, saying why it matters or what to watch. At most one sentence of commentary is required for a short item — leave the field as a single sentence, or omit the comment entirely when the item needs no judgement. 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.
82
- - `card`: optional per-item card slot `{ "copy": "≤12字标题", "points": ["要点1", "要点2"], "subject": "English visual scene" }` (2–4 points).
96
+ - `card`: optional per-item card slot `{ "copy": "≤12字标题", "points": ["要点1", "要点2"], "subject": "English visual scene" }` (2–4 points). `subject` is composed per `../daily-news-illustrations/SKILL.md` mode `card` — the card series' artwork direction is that skill's, while `copy`/`points` and the episode `cards.title`/`body` stay here.
83
97
 
84
98
  At the episode level, write:
85
99
 
@@ -92,17 +106,20 @@ At the episode level, write:
92
106
  and ONE point, and the cover headline reuses that same point (`plugins/kk/scripts/episode-identity.ts` freezes
93
107
  it; `daily-editorial-render` stamps it, `publish-prep` refuses to publish when admission removed the point's
94
108
  supporting source). Never invent a second title for a channel.
95
- - `cover`: either one concrete visual scene in English (a plain string, ≤240 chars: objects, settings, symbols, metaphor; no text, letters, numbers, logos, flags, or recognizable people) or — required for the 0385 R4 title — the object form
109
+ - `cover`: either one concrete visual scene in English (a plain string, ≤240 chars: objects, settings, symbols, metaphor; no text, letters, numbers, logos, flags, or recognizable people — compose it per `references/daily-visual-composition.md`) or — required for the 0385 R4 title — the object form
96
110
  `{ "scene": "…", "headline": "…", "sourceIds": ["<plan item id>"] }`:
97
111
  - `headline` (required, ≤25 chars): the 当日要点 the episode title freezes — one line, the day's most important
98
- development in plain language, no date/issue/column name. The title prefix supplies the rest.
112
+ development in plain language, no date/issue/column name. The title prefix supplies the rest. **This title
113
+ publishes to the CN channels, so it obeys shared rule 4 too:** when the day's biggest story was demoted for
114
+ the CN lead constraint, the headline anchors the story that now leads instead — never restate the demoted
115
+ mainline's 时政/贸易管制/公共安全审查 framing as the episode's 当日要点.
99
116
  - `scene` (optional for validation, but then the cover image falls back to the default subject): same English
100
117
  visual contract as the string form.
101
118
  - `sourceIds` (optional): the plan item id(s) the point rests on — normally the lead. Name them so that when
102
119
  admission drops every one of them the point is withheld instead of being published unsupported. Omitting
103
120
  `sourceIds` means "the admitted lead", which is the usual case.
104
121
  - `cards`: `{ "title": "≤20字总标题", "body": "中文导语段落 + 3-5个话题标签" }` for the episode card series.
105
- - `social`: `{ "short": "≤100字 X/Threads/微博推广短帖钩子(bundle-variants 会统一前置节目标题、末尾注入 {{podcast_url}};微博附首张卡片图,X/Threads 仅发链接以展示 1200×630 OG 卡片)", "long": "≤300字 LinkedIn 精选要点推广(禁止长文 Digest,bundle-variants 会前置标题与 {{podcast_url}} 并仅发链接以展示 OG 卡片)" }` (plain text, no markdown headings, no emoji spam, grounded in the plan).
122
+ - `social`: `{ "short": "≤100字 X/Threads/微博推广短帖钩子(bundle-variants 会统一前置节目标题、末尾注入 {{podcast_url}};微博/X/Threads/LinkedIn 均不附上传图片,以链接展示 1200×630 OG 卡片;Jike 保留首张卡片图)", "long": "≤300字 LinkedIn 精选要点推广(禁止长文 Digest,bundle-variants 会前置标题与 {{podcast_url}} 并仅发链接以展示 OG 卡片)" }` (plain text, no markdown headings, no emoji spam, grounded in the plan).
106
123
 
107
124
  Output:
108
125
 
@@ -157,7 +174,7 @@ See `references/selection.md`. Reads QC candidates (`--in`) and writes two JSON
157
174
  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.
158
175
  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.
159
176
 
160
- 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.
177
+ With `--fix <errors.json>` (`missing-plan`, `invalid-json`, `unknown-id`, `missing-item`, `conflict-id`, `empty-plan`, `cn-lead:XY-02`), repair the partition so every candidate id is accounted for exactly once and at least one in-scope item is kept. `cn-lead:XY-02` (its `detail` carries the matched terms and the message) is not an inventory problem: move that item out of the lead position and rewrite its title/`metadata.brief` into a neutral headline that names the AI-industry fact, keeping every fact and number — see `references/selection.md` § CN lead.
161
178
 
162
179
  ## Mode: align
163
180
 
@@ -206,4 +223,6 @@ Rules the deterministic commit enforces (a violation is a failed run, not a sile
206
223
  ## References
207
224
 
208
225
  - `references/style-contract.zh.md`: the column's style contract and machine block (caps, banned).
226
+ - `references/daily-visual-composition.md`: the shared cover-scene direction — the ten patterns, the protected headline/logo zones, eight worked examples and the refusal list. Read it before authoring `cover`, or follow `../daily-news-cover/SKILL.md` mode `scene`, which owns the scene contract.
227
+ - `../daily-news-illustrations/SKILL.md`: the card series' artwork direction (mode `card`) — one sourced scene per card, cover/closing from the existing fallback, never a new episode-level field.
209
228
  - `references/selection.md`: curate policy (boundary, ordering, depth budget, translation).