Skip to content

TryWorld2026/paper-algorithm / skills/tryworld-paper

tryworld-paper

Verified

Create branded 试界TryWorld AI-knowledge videos in the fixed "Paper Algorithm" (纸上算法) style with HyperFrames. Input is a Chinese voiceover script and optional images; output is a 16:9 horizontal video with Azure YunxiNeural (真·云希) voiceover, word-synced captions, ink/paper animations and unified transitions, an always-visible anti-counterfeit red seal, plus horizontal (4:3) and vertical (3:4) cover images and platform-optimized titles for Bilibili/Douyin/Xiaohongshu. Brand values are theme-driven (themes/paper-algorithm.json by default; custom brand themes supported — see references/theme-guide.md). Use when the user provides an AI 科普/教程/内容解读/知识分享 script and wants a TryWorld/试界 branded video, asks for the 纸上算法/Paper Algorithm style, wants a consistent script-to-video pipeline with covers and titles, or wants this pipeline with their own brand theme.

# 试界-纸上算法 TryWorld-Paper Algorithm

> 一页会动的算法笔记 —— 把 AI 知识口播稿变成风格统一的横屏视频、横竖封面与平台标题。

![风格](https://img.shields.io/badge/风格-纸上算法-C0452F)
![配音](https://img.shields.io/badge/配音-多音色·默认云希-2E5E8C)
![画幅](https://img.shields.io/badge/画幅-1920x1080-1C1916)
![状态](https://img.shields.io/badge/状态-已启用-8FAF8C)

## 这是什么

`tryworld-paper`(试界-纸上算法 TryWorld-Paper Algorithm)是试界TryWorld 的视频生产 Skill:输入一篇中文 AI 口播稿(可附图片),自动产出:

- **横屏主视频**(16:9,口播最长约 10 分钟)—— 纸上算法风格,真云希配音,全程烧录字幕;超长稿提炼核心精华压缩
- **横版封面 + 竖版封面**(1920x1440 横 4:3 / 1080x1440 竖 3:4)—— 深墨海报风(与视频浅纸面两套视觉语言),标题 + 信息块,适配 B站/抖音/小红书
- **3-5 个平台标题** —— 按 B站/抖音/小红书分别适配
- 右上角全程常驻的"试界原创"防伪印章
- 每期固定的默认结尾签名(试界TryWorld 标准收尾,口播+画面同步)

## 设计契约:纸上算法 Paper Algorithm

设计源头:**科学手稿 + 中文印刷传统**。每一期视频都是一页"会动的算法笔记",纸面是舞台,墨迹是文字,朱红是重点,印章是签名。

### 色板(4 色锁定,不新增)

| 色 | 值 | 用途 |
|---|---|---|
| 纸面 | `#F4EFE4` | 背景主色 |
| 墨黑 | `#1C1916` | 主文字、线条 |
| 朱红 | `#C0452F` | 唯一强调色:关键词、数字、印章 |
| 墨水蓝 | `#2E5E8C` | 次级批注、图表线 |

### 字体

- 主标题:思源宋体(Noto Serif SC)
- 批注/引用:ZCOOL XiaoWei(默认);霞鹜文楷(LXGW WenKai)如需使用须自带 woff2
- 数据/坐标:等宽字体(JetBrains Mono)

### 动效签名(全片统一)

| 签名 | 感觉 | 缓动 |
|---|---|---|
| 墨落纸 | 主入场 | `power3.out` |
| 笔写入 | 批注/小元素 | `sine.inOut` |
| 盖章 | 数字/结论/印章 | `back.out(1.4)` |

转场统一为**墨染过渡**:前场景被墨色浸染溶解,新场景从纸面浮现;章节间留纸面空场。

### 动态图表

数据/对比/流程用风格统一的动态图表表达:数字滚动盖章、柱状墨迹增长、折线一笔描画、进度环、对比卡片;等宽数字 + 朱红强调 + 墨水蓝网格,GSAP/SVG 实现,避免大段静态文字配解说。

## 配音质量保障

- **多音色**:默认云希(Azure YunxiNeural,试界品牌音色),`--voice` 可换预设(xiaoxiao 晓晓 / yunjian 云健 / yunyang 云扬 / xiaoyi 晓伊 / yunxia 云夏 / xiaobei 小贝东北话 / xiaoni 小妮陕西话),也接受完整 edge-tts 音色 id;本地合成,无需 API Key
- **默认语速** +8%,可按内容微调 +5%~+15%
- **防卡顿机制**:文本自动规整(清除 markdown、合并句中换行),按句切分合成——停顿只允许出现在句号/问号/感叹号处,句子中间永不硬断
- 句级时间戳(`sentences.json`)直接驱动字幕同步,不依赖 whisper

## 工作流

```text
口播稿 → 读稿理解 → 第一性原理优化 → 活人感改稿七遍 → 净化写作标记 → 硬禁项检查(check_prose.py 清零) → 用户确认优化稿 → 句级切分 → 云希配音 → 句级时间轴
   → 章节/场景规划 → HyperFrames 构图 → lint/validate/inspect --strict
   → 渲染前核验 → 渲染 16:9 主视频 → 横竖封面 → 平台标题 → 交付核验(verify_output.py)→ outputs/ 交付
```

## 使用方式

在 Codex 会话中给出口播稿(纯文字或 .txt/.md,可附图片):

```text
用 $tryworld-paper 把这篇口播稿做成视频,加上横竖封面和标题。
```

可选输入:图片目录(AI 概念图 / 截图 / 图表,会自动"纸面化"处理)。

## 目录结构

```text
tryworld-paper/
├── SKILL.md                    # 主说明:品牌契约、工作流、质量门禁
├── agents/
│   └── openai.yaml             # UI 元数据
├── references/
│   ├── style-system.md         # 视觉契约(色板/字体/动效/封面)
│   ├── workflow.md             # 生产流程与命令
│   └── titles.md               # 平台标题规则
├── scripts/
│   ├── tts_yunxi.py            # 云希配音管线(句级切分 + 拼接 + 时间轴)
│   ├── verify_output.py        # 交付核验硬门禁(音轨/时长/双封面/标题/发布计划)
│   └── check_prose.py          # 活人感硬禁项检查(源自 human-writing v1.1.0,MIT)
└── assets/
    ├── paper-grain.svg         # 纸纹叠加层
    └── seal.svg                # 朱红"试界原创"印章
```

## 环境要求

- Node.js >= 22
- FFmpeg(含 ffprobe,加入 PATH;`winget install Gyan.FFmpeg`)
- Python 3.10+,`pip install edge-tts`
- HyperFrames CLI(`npx hyperframes`)

运行 `npx hyperframes doctor` 可一键检查环境。

## 防伪标识

视频与封面统一携带:

- 右上角全程常驻朱红**试界原创**印章(保护区,内容不得覆盖)
- 不添加"试界TryWorld 纸上算法"文字水印,印章是唯一水印

## 许可

本仓库采用 **MIT License**。其中 `scripts/check_prose.py` 源自 [KKKKhazix/human-writing](https://github.com/KKKKhazix/human-writing) v1.1.0(禁令上移到修辞动作级,检测器补盲区降误伤),按 **MIT License** 使用与改造,版权归原作者所有,完整声明见 [LICENSE-MIT](LICENSE-MIT)。
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 321kUpdated Claude CodeCodexVerifiedInstall
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: 197kUpdated Claude CodeCodexVerifiedInstall
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: 119kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall