孔版双色风格的口播信息动画 Skill:逐字稿 → 1080×1920 竖屏 mp4 · Risograph-style info animations for talking-head videos
支持 Codex / Cursor / Gemini CLI 等:新增 AGENTS.md 入口
Claude233e8b1492b2
diff --git a/AGENTS.md b/AGENTS.mdnew file mode 100644index 0000000..fbf4699--- /dev/null+++ b/AGENTS.md@@ -0,0 +1,41 @@+# eian-riso-broll · Agent 操作指南++这个仓库是一套做孔版双色(Riso)风格口播信息动画的工作流,可以在 **Claude Code、Codex、Cursor、Gemini CLI** 等 AI 编码助手里使用。++## 这个文件的作用++- **Claude Code** 通过 `SKILL.md` 顶部的 frontmatter 自动识别并加载,无需本文件。+- **Codex 及其他读取 `AGENTS.md` 的助手**:本文件是入口。完整的工作流、模板字段、文案规则和渲染命令都在 `SKILL.md` 和 `references/` 里——**请把 `SKILL.md` 当作操作手册来读和执行**(忽略它顶部的 YAML frontmatter,那是 Claude Code 的元数据)。`SKILL.md` 是唯一权威来源,本文件与它冲突时以 `SKILL.md` 为准。++## 什么时候用++用户给出一份口播逐字稿(可附 SRT 字幕),想做成高对比杂志感的 9:16 竖屏信息动画时。用户说「Riso 动画」「孔版风 B-roll」「逐字稿做信息动画」「口播配信息动画」「信息图 B-roll」时,也用这套工作流。++## 先跑环境自检++```bash+node scripts/check_setup.mjs+```++需要 Node ≥ 22、Chrome/Chromium、ffmpeg。字体随仓库分发,macOS / Linux / Windows 渲染一致。找不到 Chrome 时设环境变量 `CHROME=<可执行文件路径>`。++## 工作流:三道确认门(完整步骤见 SKILL.md)++1. **选段 → 分镜表**:按 `references/copy.md` 读逐字稿,产出选段表。**停下,等用户确认。**+2. **样帧**:套模板、只改 `DATA`,渲末帧 + 跑质检(`references/production.md` 有命令)。**停下,等用户确认。**+3. **成片**:渲 mp4 + 再质检,交付。++选模板看 `references/templates.md`,视觉规则看 `references/style.md`,动效 API 看 `references/motion.md`。++## 不可违反(与 SKILL.md 一致)++1. 屏幕文字只来自逐字稿原话,不编。+2. 没有真截图就不画界面。+3. 小于 100px 的字只用 A 墨(深色)。+4. 信息只在 y 168–1330 的信息区。+5. 质检(`node scripts/qa.mjs`)有 error 不交付。+6. 不做音效,成片只有画面、没有音轨。++## 不做++情绪独白、隐喻、软件操作演示不做,建议归实拍 / 角色动画 / 录屏。diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex dbd208b..d25c119 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -12,7 +12,8 @@| 文件 | 负责 ||---|---|-| `SKILL.md` | 入口:什么时候用、三道门流程、不可违反的规则、常见坑 |+| `SKILL.md` | Claude Code 的入口:什么时候用、三道门流程、不可违反的规则、常见坑 |+| `AGENTS.md` | Codex / Cursor / Gemini CLI 等的入口,指向 `SKILL.md` 和 `references/` || `references/copy.md` | 选段与文案:哪些段落值得做、怎么从原话里摘屏幕字、时长 || `references/templates.md` | 10 个模板的用途、画面故事、DATA 字段、选择树 || `references/style.md` | 视觉系统:纸、两墨、叠印、网点、色本、版面、字体、禁区 |diff --git a/README.md b/README.mdindex 39d31e1..d756095 100644--- a/README.md+++ b/README.md@@ -1,10 +1,12 @@# eian-riso-broll-**Risograph-style info animations for talking-head videos · a Claude Code skill**+**Risograph-style info animations for talking-head videos · an AI coding-assistant workflow**++Works with Claude Code, Codex, Cursor, Gemini CLI, and other agents.[简体中文](README.zh-CN.md) · English-Hand Claude the script of your talking-head video. It picks the lines worth visualizing and turns them into vertical info animations (1080×1920 mp4) in a two-color risograph print style, ready to drop into your editor.+Hand your AI assistant the script of your talking-head video. It picks the lines worth visualizing and turns them into vertical info animations (1080×1920 mp4) in a two-color risograph print style, ready to drop into your editor.| Big number | Many → few | Before / after | Key quote ||:---:|:---:|:---:|:---:|@@ -38,36 +40,48 @@ The typography is designed for Chinese (serif display type, Chinese line limits)You'll need:-- [Claude Code](https://claude.com/claude-code)+- An AI coding assistant: [Claude Code](https://claude.com/claude-code), Codex, Cursor, Gemini CLI, etc.- [Node.js](https://nodejs.org) 22 or newer- Chrome (Edge or Chromium also work)- [ffmpeg](https://ffmpeg.org) (on macOS: `brew install node ffmpeg`)-Put the skill in Claude Code's skills folder and run the setup check:+**Claude Code**: put the skill in the skills folder and run the setup check:```bashgit clone https://github.com/YIAN6557/eian-riso-broll.git ~/.claude/skills/eian-riso-brollnode ~/.claude/skills/eian-riso-broll/scripts/check_setup.mjs```-When it says everything passed, you're ready. On Windows, use `%USERPROFILE%\.claude\skills` instead of `~/.claude/skills`.+Claude picks it up from `SKILL.md` and triggers from any project once you ask. On Windows, use `%USERPROFILE%\.claude\skills` instead of `~/.claude/skills`.++**Codex / Cursor / Gemini CLI and others**: clone the repo anywhere and work inside it:++```bash+git clone https://github.com/YIAN6557/eian-riso-broll.git+cd eian-riso-broll+node scripts/check_setup.mjs+```++The assistant reads [`AGENTS.md`](AGENTS.md) at the repo root as its operating guide. To use it inside your own project, drop this repo into a subfolder, or add `AGENTS.md`'s content to your project's `AGENTS.md`.++When it says everything passed, you're ready.## How to use it-Just ask Claude, for example:+Just ask your AI assistant, for example:- **A whole episode**: "Use eian-riso-broll to make info animations for this script: … (paste the script)"- **A single line**: "Turn this line into a Riso animation and render it straight away: 'Making one infographic used to take 40 minutes; now it takes 2.'"- **Matched to your voice**: "Here's my subtitle file talk.srt. Animate the third paragraph and match its length to the voiceover."- **For overlaying**: "Give me a transparent-background version of the last one."-For a whole episode, Claude works in three steps and stops for your OK after each:+For a whole episode, the assistant works in three steps and stops for your OK after each:1. **Storyboard**: which line gets which visual, the exact on-screen text and the duration. This is the cheapest moment to drop or swap shots.2. **Stills**: the last frame of every animation, laid out on one sheet. Fix layout or wording here.3. **Final render**: the mp4s, checked again for length and size.-If you give it a single line or say "render it straight away", Claude merges the steps, but never skips the checks.+If you give it a single line or say "render it straight away", the assistant merges the steps, but never skips the checks.Finished files go to `~/eian-riso-broll-projects/<project name>/renders/`, one mp4 per animation.diff --git a/README.zh-CN.md b/README.zh-CN.mdindex f384d1b..5623fc2 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -1,10 +1,12 @@# eian-riso-broll-**孔版印刷风格的口播信息动画 · 一个 Claude Code skill**+**孔版印刷风格的口播信息动画 · AI 编码助手工作流**++支持 Claude Code、Codex、Cursor、Gemini CLI 等。简体中文 · [English](README.md)-把口播逐字稿交给 Claude,它会挑出值得配画面的句子,做成孔版双色风格的竖屏信息动画(1080×1920 mp4),拖进剪辑软件就能用。+把口播逐字稿交给 AI 助手,它会挑出值得配画面的句子,做成孔版双色风格的竖屏信息动画(1080×1920 mp4),拖进剪辑软件就能用。| 数字冲击 | 收敛归类 | 前后对比 | 金句 ||:---:|:---:|:---:|:---:|@@ -36,36 +38,48 @@需要先装好这几样:-- [Claude Code](https://claude.com/claude-code)+- 一个 AI 编码助手:[Claude Code](https://claude.com/claude-code)、Codex、Cursor、Gemini CLI 等- [Node.js](https://nodejs.org) 22 或更新- Chrome(Edge 或 Chromium 也可以)- [ffmpeg](https://ffmpeg.org)(macOS 可以用 Homebrew:`brew install node ffmpeg`)-然后把 skill 放进 Claude Code 的 skills 目录,跑一次环境自检:+**Claude Code**:把 skill 放进 skills 目录,跑一次环境自检:```bashgit clone https://github.com/YIAN6557/eian-riso-broll.git ~/.claude/skills/eian-riso-brollnode ~/.claude/skills/eian-riso-broll/scripts/check_setup.mjs```-看到“全部通过”就可以用了。Windows 上把 `~/.claude/skills` 换成 `%USERPROFILE%\.claude\skills`。+Claude 靠 `SKILL.md` 自动识别,之后在任意项目里说句话就能触发。Windows 上把 `~/.claude/skills` 换成 `%USERPROFILE%\.claude\skills`。++**Codex / Cursor / Gemini CLI 等**:把仓库克隆到任意位置,在这个目录里工作:++```bash+git clone https://github.com/YIAN6557/eian-riso-broll.git+cd eian-riso-broll+node scripts/check_setup.mjs+```++助手会自动读取根目录的 [`AGENTS.md`](AGENTS.md) 作为操作指南。想在你自己的项目里用,把这个仓库放进项目的子目录,或把 `AGENTS.md` 的内容加进你项目的 `AGENTS.md`。++看到“全部通过”就可以用了。## 怎么用-直接跟 Claude 说就行,比如:+直接跟你的 AI 助手说就行,比如:- **整期视频**:「用 eian-riso-broll 给这期逐字稿做信息动画:……(贴上逐字稿)」- **只做一句**:「把这句做成 Riso 动画,直接出片:『做一张信息图,以前要 40 分钟,现在 2 分钟』」- **对准口播时长**:「这是字幕文件 口播.srt,帮我把第 3 段做成动画,时长和口播对上」- **叠在人像上**:「上一条给我一个透明背景的版本」-做整期视频时,Claude 会分三步走,每一步都停下来等你确认:+做整期视频时,助手会分三步走,每一步都停下来等你确认:1. **分镜表**:哪句话配什么画面、屏幕上写什么字、多长时间。删哪条、换哪条,在这一步说最省事。2. **样帧**:每条动画的最后一帧拼成一张总览图给你看。构图、文字不满意,在这一步改。3. **成片**:渲染出 mp4,再自动检查一遍时长和尺寸。-如果只给一句话,或者说了“直接出片”,Claude 会合并步骤直接做,但检查一步都不会少。+如果只给一句话,或者说了“直接出片”,助手会合并步骤直接做,但检查一步都不会少。成片默认放在 `~/eian-riso-broll-projects/<项目名>/renders/`,每条一个 mp4。