Skip to content

A toolbox of film styles made in code for Claude Code: 66 ready to use, and your own. Each style is a style prompt plus a demo film made entirely in code by Claude Opus 5.5, with no video model. By Lemomo. · 一套用代码做片的风格工具箱:66 种现成风格,也能做出你自己的

Package the library as a Claude Code skill; ask once, optional storyboard

lemomo-aif809e2459c9f
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
new file mode 100644
index 0000000..bbd94bf
--- /dev/null
+++ b/.claude-plugin/marketplace.json
@@ -0,0 +1,17 @@
+{
+ "name": "lemolab",
+ "owner": {
+ "name": "Lemomo",
+ "url": "https://github.com/lemomo-ai"
+ },
+ "metadata": {
+ "description": "LemoLab skills: film styles for coding agents."
+ },
+ "plugins": [
+ {
+ "name": "lemo-opuscar",
+ "source": "./plugin",
+ "description": "Make a film in one of 39 code-rendered styles: your agent directs, draws, scores and mixes it."
+ }
+ ]
+}
diff --git a/.gitignore b/.gitignore
index f9f1dab..d8f7939 100644
--- a/.gitignore
+++ b/.gitignore
@@ -162,3 +162,6 @@ styles/*/demo/stills/*
# 制作日志是内部幕后记录,不公开
styles/*/PRODUCTION_LOG*
+
+# 宣传物料(发帖用海报、预告片、教程片),只留本地,不上传 GitHub
+/docs/social/
diff --git a/AGENTS.md b/AGENTS.md
index a454061..db4eaa1 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -14,13 +14,20 @@ If the user hasn't picked a style, show them the list in `styles/README.md` (or
## Workflow
-1. **Brief.** Take the user's style, topic and requirements. Fill every gap with a sensible default (DIRECTOR.md §1). Ask only what you truly can't decide.
-2. **Treatment and storyboard.** Write `films/<name>/TREATMENT.md` (DIRECTOR.md §4).
- **Stop. Show the user a short summary and the storyboard, and wait for approval.**
-3. **Look.** Render a model sheet or 2–3 style frames with the real drawing code.
- **Stop. Show the images, say what you're least sure about, and wait for approval.**
-4. **Produce.** Voice → check → score (can run in parallel) → animation → mix → render.
-5. **Self-check** (DIRECTOR.md §11), then deliver `films/<name>/<name>.mp4`, `.srt`, `poster.jpg` and the source with `build.sh`.
+1. **Brief.** Make sure the style and the topic are clear. Then ask the user once, in a single message (DIRECTOR.md §1). If the style is unclear, that question goes in the same message:
+ - anything about the topic you can't decide yourself (facts; names, logos or products that must appear);
+ - whether they have material of their own: a voice recording or a preferred voice, music, photos, logos, fonts. Whatever they don't provide, you make;
+ - whether they want to review a storyboard before production. The default is no: you go straight to the finished film.
+
+ Skip any question their request already answers. Wait for the reply, then fill every other gap with a sensible default, sum up the brief in a few lines, and start. Don't come back with more questions later.
+2. **Treatment.** Write `films/<name>/TREATMENT.md` (DIRECTOR.md §4).
+3. **Look.** Render a model sheet or style frames with the real drawing code and check them yourself against the `STYLE.md` (DIRECTOR.md §5).
+4. **Storyboard, only if the user asked for it.** Show the key shots rendered in the style, with durations and lines, plus the logline (DIRECTOR.md §5).
+ **Stop and wait for approval.** If they didn't ask for it, don't stop.
+5. **Produce.** Voice → check → score (can run in parallel) → animation → mix → render.
+6. **Self-check** (DIRECTOR.md §11), then deliver `films/<name>/<name>.mp4`, `.srt`, `poster.jpg` and the source with `build.sh`.
+
+A user's film carries no LemoLab credit and no watermark. The "LemoLab × Claude Opus 5.5" end card in the `STYLE.md` files belongs to our demos only.
Report progress in the user's language. The film's own language is whatever the user asks for (default: the language they write in).
@@ -40,4 +47,6 @@ To add a new style:
3. Run `sh tools/publish.sh`. It checks the repo (no files over 5 MB, no absolute paths, no secrets), uploads new or changed films to GitHub Releases, and rebuilds the gallery data.
4. Commit and push. The gallery (GitHub Pages) rebuilds itself.
+The skill in `plugin/skills/lemo-opuscar/` is a thin wrapper: it fetches this repo and sends the agent to this file. Keep the workflow here, not in `SKILL.md`.
+
Rules: back up before revising (old versions move out of the repo, not into git); only CC0, CC BY or OFL assets; every film's end card carries "LemoLab × Claude Opus 5.5"; no watermark.
diff --git a/DIRECTOR.md b/DIRECTOR.md
index 54f2076..8251833 100644
--- a/DIRECTOR.md
+++ b/DIRECTOR.md
@@ -8,7 +8,15 @@ You are the director, not a tech demo. A film is judged in this order: **sound,
## 1. Take the brief
-The user gives you a style and a topic, and sometimes more: length, language, voice, must-have shots, brand rules. Everything they don't specify is your decision. Ask only what you can't reasonably decide yourself (usually: the facts of their topic, and whether there are names, logos or products you must show). Sensible defaults:
+The user gives you a style and a topic, and sometimes more: length, language, voice, must-have shots, brand rules. Everything they don't specify is your decision.
+
+Before any work, make sure the style and the topic are clear, then ask **once, in a single message** (a question about the style, if any, goes in it too):
+
+- what you can't reasonably decide yourself (usually the facts of their topic, and names, logos or products you must show);
+- whether they have material of their own to use: a voice recording or a preferred voice, music, photos, logos, fonts;
+- whether they want to review a storyboard before production (default: no).
+
+Skip whatever their request already answers. Wait for the reply, sum up the brief in a few lines and start; don't come back with more questions. Sensible defaults:
- Length **30–60 s**. Let the story decide; shorter and tight beats padded.
- 1920×1080, 24 fps output.
@@ -44,20 +52,18 @@ Write `TREATMENT.md` before drawing anything:
6. **Sound design table**: for each section, the ambience bed, the main foley and the music state.
7. **Subtitle and title design**: the type is part of the style.
-### Checkpoint 1: stop and show the user
-
-Send a short summary of the treatment and storyboard (a few key frames or a text beat list) and **wait for approval**. Changing direction here costs minutes; after the full render it costs hours.
-
## 5. Prove the look
- **With characters**: draw a model sheet (turnaround, 3–4 expressions, 2–3 key poses, palette) plus two style frames.
- **Without characters**: three style frames from the film, one of them the signature shot.
-Render them with the real drawing code, not a mock-up.
+Render them with the real drawing code, not a mock-up, and check them yourself against the `STYLE.md` before going on.
+
+### The storyboard (only if the user asked for one)
-### Checkpoint 2: stop and show the user
+Render 6–9 key shots with the real drawing code and tile them into one storyboard sheet (`core/render/sheet.py`), with the shot number, framing, duration and line or beat under each. Send it with the logline and the thing you are least sure about, and **wait for approval**. Changing direction here costs minutes; after the full render it costs hours.
-Send the images and name the thing you are least sure about. Continue only when the look is approved.
+If the user didn't ask for a storyboard, don't stop: go on to the finished film.
## 6. Sound is half the film
@@ -74,7 +80,7 @@ Send the images and name the thing you are least sure about. Continue only when
- One action, one sound, one cut, but don't cut on every beat. Leave time to see.
- **Pace for the viewer, not the clock**:
- Hold every subtitle at least 1.8 s, and never shorter than the spoken line + 0.6 s.
- - After text finishes animating in, hold it for roughly (characters ÷ 15 + 1.5) s.
+ - After text finishes animating in, hold it for roughly (letters ÷ 15 + 1.5) s in English, (characters ÷ 4.5 + 1.5) s in Chinese.
- Hold a title card at least 4 s.
- Give failures and gags enough time to be understood.
- Fast is fine; make it fast with fewer words per screen, not by cutting before people finish reading.
diff --git a/README.md b/README.md
index f65a84f..6819295 100644
--- a/README.md
+++ b/README.md
@@ -49,9 +49,22 @@ The agent reads three guides and works like a small studio · agent 会读三份
| [`TECHNIQUE.md`](TECHNIQUE.md) · [中文](docs/zh-CN/TECHNIQUE.md) | how to build: frame-by-frame rendering, voice, music, mixing<br>怎么做:逐帧渲染、配音、配乐、混音 |
| `styles/<style>/STYLE.md` | what the style looks and sounds like, and how our demo was made<br>这个风格长什么样、听起来什么样,以及样片是怎么做的 |
-It stops twice for you: once to approve the **story and storyboard**, once to approve the **look**. Then it produces the film into `films/<name>/`. Prefer your own project? Point your agent at those three files.
+It asks you once, up front: anything it can't decide about your topic, whether you have your own **voice, music or other material**, and whether you want to see a **storyboard** first. Say yes and it stops once to show you the key shots in the real style; otherwise it goes straight to the finished film in `films/<name>/`. Prefer your own project? Point your agent at those three files.
-它会停下来找你两次:一次确认**故事和分镜**,一次确认**画面**,之后把成片做到 `films/<名字>/`。想在自己的项目里做?把这三个文件交给你的 agent 就行。
+它开工前只问你一次:主题里它定不了的事、你有没有自己的**配音、音乐或其他素材**、要不要先看**分镜故事板**。要看的话,它会停一次,给你看用真实风格画出来的关键镜头;不看就直接做完成片,放在 `films/<名字>/`。想在自己的项目里做?把这三个文件交给你的 agent 就行。
+
+### Or install it as a skill · 或者装成 skill
+
+Use it from any folder · 在任何目录都能用:
+
+```
+/plugin marketplace add lemomo-ai/lemo-opuscar
+/plugin install lemo-opuscar@lemolab
+```
+
+Then ask for a film in a named style, as above. On first use the skill downloads the guides, tools and style prompts (about 60 MB) to `~/lemo-opuscar`, shared by all your films. Each film's project, from source to finished video, goes in the folder you started from. For other agents, copy [`plugin/skills/lemo-opuscar/`](plugin/skills/lemo-opuscar/) into their skills folder.
+
+然后像上面一样,点名风格要一支片子就行。第一次使用时,skill 会把指南、工具和风格提示词(约 60 MB)下载到 `~/lemo-opuscar`,所有片子共用这一份;每支片子的工程,从源码到成片,都放在你发起时所在的文件夹里。其他 agent 可以把 [`plugin/skills/lemo-opuscar/`](plugin/skills/lemo-opuscar/) 复制到它们的 skills 目录。
**Good to know · 提前知道**: a film takes an agent about 30–60 minutes and a fair amount of tokens. You need Node 20+, Chrome, ffmpeg and Python 3.11+; big assets (voice model, sample libraries) download only when a step needs them.<br>
一支片子 agent 大约要工作 30–60 分钟,token 用量不小。需要 Node 20+、Chrome、ffmpeg 和 Python 3.11+;配音模型、采样库这类大文件用到时才下载。
diff --git a/TECHNIQUE.md b/TECHNIQUE.md
index b0719f3..df38ae8 100644
--- a/TECHNIQUE.md
+++ b/TECHNIQUE.md
@@ -18,7 +18,7 @@ mix (duck, compress, balance) ──► mux with ffmpeg, two-pass loudnorm −14
|---|---|
| Node 20+ and Google Chrome | page rendering (`npm install` pulls `playwright-core` and `three`) |
| ffmpeg | encoding, muxing, loudness, black-frame checks |
-| Python 3.11+ (we use [uv](https://docs.astral.sh/uv/)) | `uv venv && uv pip install -r requirements.txt` (numpy, scipy, soundfile, soxr, librosa, pillow, kokoro-onnx, faster-whisper) |
+| Python 3.11+ (we use [uv](https://docs.astral.sh/uv/)) | `uv venv && uv pip install -r requirements.txt` (numpy, scipy, soundfile, soxr, librosa, pillow, kokoro-onnx, edge-tts, faster-whisper) |
Large assets are not in git. Fetch them when a step needs them:
@@ -69,7 +69,10 @@ A small script (`tools/cuecheck.py` in several demos) compares every visual hit
## 4. Voice
-- **TTS**: [Kokoro](https://github.com/thewh1teagle/kokoro-onnx) runs locally with good English voices (`af_heart`, `bm_george`, `am_michael`, and others). `core/tts/tts.py lines.json out/` writes one WAV per line and a durations file. Spell numbers out in the TTS text and write them as digits in the subtitles.
+- **TTS is only the default.** If the user brings a recording or names a voice, use that. Otherwise:
+ - **English**: [Kokoro](https://github.com/thewh1teagle/kokoro-onnx) runs locally with good voices (`af_heart`, `bm_george`, `am_michael`, and others). `core/tts/tts.py lines.json out/` writes one WAV per line and a durations file.
+ - **Chinese**: [edge-tts](https://github.com/rany2/edge-tts) with Microsoft's neural voices (`zh-CN-XiaoxiaoNeural`, `zh-CN-YunxiNeural`, and others). It needs a network connection. `styles/paper-lantern/demo/tts.py` shows per-line rate and silence trimming. Check Microsoft's terms before using the audio commercially.
+- Spell numbers out in the TTS text and write them as digits in the subtitles.
- **Check every line**: `core/tts/asr_check.py` transcribes each WAV with faster-whisper and compares it with the script. Re-generate until every line passes. It also writes word timestamps, which you use to place lines and subtitles.
- **Before mixing**: TTS has a high peak-to-average ratio. Compress the voice first, then balance by RMS: voice about 10 dB above the music.
diff --git a/core/render/page.mjs b/core/render/page.mjs
index 01431f6..c87cf42 100644
--- a/core/render/page.mjs
+++ b/core/render/page.mjs
@@ -1,7 +1,7 @@
// 打开 demo 页面(仓库根为静态服务根),等待 window.READY
import { chromium } from 'playwright-core';
import path from 'path'; import { fileURLToPath } from 'url';
-import { serve } from './serve.mjs';
+import { serve, pageURL } from './serve.mjs';
import { EXE, ARGS } from './browser.mjs';
export const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');
let srv = null;
@@ -12,7 +12,7 @@ export async function openDemo(dir, { w = 1920, h = 1080, q = '' } = {}) {
const page = await browser.newPage({ viewport: { width: w, height: h }, deviceScaleFactor: 1 });
page.on('console', m => { if (m.type() === 'error' && !m.text().includes('404')) console.error('[page]', m.text().slice(0, 300)); });
page.on('pageerror', e => { console.error('[pageerror]', e.message); process.exit(1); }); // 渲染中报错就停,免得产出坏片
- await page.goto(`http://127.0.0.1:${port}/${path.relative(ROOT, path.resolve(dir))}/index.html${q ? '?' + q : ''}`);
+ await page.goto(pageURL(ROOT, port, dir) + (q ? '?' + q : ''));
await page.waitForFunction(() => window.READY === true, null, { timeout: 180000 });
return { browser, page };
}
diff --git a/core/render/serve.mjs b/core/render/serve.mjs
index 8977c00..85c9132 100644
--- a/core/render/serve.mjs
+++ b/core/render/serve.mjs
@@ -1,10 +1,18 @@
// 极简静态服务器(ES module 不能走 file://)
import http from 'http'; import fs from 'fs'; import path from 'path';
const T = { '.html': 'text/html', '.js': 'text/javascript', '.mjs': 'text/javascript', '.json': 'application/json', '.css': 'text/css', '.jpg': 'image/jpeg', '.png': 'image/png', '.hdr': 'application/octet-stream', '.bin': 'application/octet-stream', '.gltf': 'model/gltf+json', '.woff2': 'font/woff2', '.ttf': 'font/ttf', '.svg': 'image/svg+xml', '.wav': 'audio/wav' };
+// 仓库外的片子工程(skill 模式下在用户自己的文件夹里)挂在 /@film/ 下;/core/…、/styles/…、/node_modules/… 仍从仓库根取
+const MOUNT = '/@film/'; let filmDir = null;
+export function pageURL(root, port, dir) {
+ const abs = path.resolve(dir), rel = path.relative(root, abs);
+ if (rel.startsWith('..') || path.isAbsolute(rel)) { filmDir = abs; return `http://127.0.0.1:${port}${MOUNT}index.html`; }
+ return `http://127.0.0.1:${port}/${rel.split(path.sep).map(encodeURIComponent).join('/')}/index.html`;
+}
export function serve(root, port = 0) {
return new Promise(res => {
const s = http.createServer((q, r) => {
- const p = path.join(root, decodeURIComponent(q.url.split('?')[0]));
+ const u = decodeURIComponent(q.url.split('?')[0]);
+ const p = filmDir && u.startsWith(MOUNT) ? path.join(filmDir, u.slice(MOUNT.length)) : path.join(root, u);
fs.readFile(p, (e, d) => { if (e) { r.writeHead(404); r.end(); return; } r.writeHead(200, { 'Content-Type': T[path.extname(p)] || 'application/octet-stream' }); r.end(d); });
});
s.listen(port, '127.0.0.1', () => res({ server: s, port: s.address().port }));
diff --git a/core/render/still.mjs b/core/render/still.mjs
index 5b55020..5ba3601 100644
--- a/core/render/still.mjs
+++ b/core/render/still.mjs
@@ -2,7 +2,7 @@
// 以仓库根为静态服务根,页面需暴露 window.READY 和 window.render(t);页面报错立即退出(非 0)
import { chromium } from 'playwright-core';
import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url';
-import { serve } from './serve.mjs';
+import { serve, pageURL } from './serve.mjs';
import { EXE, ARGS } from './browser.mjs';
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');
const args = process.argv.slice(2);
@@ -16,7 +16,7 @@ const browser = await chromium.launch({ executablePath: EXE, args: ARGS });
const page = await browser.newPage({ viewport: { width: 1920, height: 1080 }, deviceScaleFactor: 1 });
page.on('console', m => { if (m.type() === 'error' || m.type() === 'warning') console.error('[page]', m.text().slice(0, 300)); });
page.on('pageerror', async e => { console.error('[pageerror]', e.message); await browser.close(); server.close(); process.exit(1); });
-await page.goto(`http://127.0.0.1:${port}/${path.relative(ROOT, path.resolve(dir))}/index.html${q ? '?' + q : ''}`);
+await page.goto(pageURL(ROOT, port, dir) + (q ? '?' + q : ''));
await page.waitForFunction(() => window.READY === true, null, { timeout: 180000 });
for (const ts of times) {
const t0 = Date.now();
diff --git a/docs/zh-CN/DIRECTOR.md b/docs/zh-CN/DIRECTOR.md
index dfedfed..10a9218 100644
--- a/docs/zh-CN/DIRECTOR.md
+++ b/docs/zh-CN/DIRECTOR.md
@@ -6,7 +6,15 @@
## 1. 接需求
-用户给风格和主题,有时还会给时长、语言、声线、必须出现的镜头、品牌要求。没说的都由你决定。只问你确实没法自己定的事(通常是主题本身的事实,以及有没有必须出现的名字、标志、产品)。默认值:
+用户给风格和主题,有时还会给时长、语言、声线、必须出现的镜头、品牌要求。没说的都由你决定。
+
+开工前,先确认风格和主题都已明确,然后**只问一次,一条消息问完**(风格如果要问,也放在这条里):
+
+- 你确实没法自己定的事(通常是主题本身的事实,以及有没有必须出现的名字、标志、产品);
+- 用户有没有自己的素材要用:录好的配音或指定的声线、音乐、照片、标志、字体;
+- 要不要在制作前先看分镜故事板(默认不看)。
+
+用户的需求里已经说清的就不再问。等用户回复后,用几行话总结需求,然后开工,之后不再回头追问。默认值:
- 时长 **30–60 秒**,故事讲完就收,紧凑好过注水。
- 1920×1080,24 fps 输出。
@@ -42,20 +50,18 @@
6. **声音设计表**:每段的环境底、主要拟音、音乐状态。
7. **字幕和片名设计**:字体排版也是风格的一部分。
-### 确认点 1:停下来给用户看
-
-把导演方案摘要和分镜(几张关键画面,或文字节拍表)发给用户,**等确认**。在这里改方向花几分钟;全片渲完再改要花几小时。
-
## 5. 定画面
- **有角色**:画角色设定表(转面、3–4 个表情、2–3 个关键姿势、配色)和 2 张风格帧。
- **没有角色**:3 张片中的风格帧,其中一张是签名镜头。
-用真正的绘制代码渲出来,不要做示意图。
+用真正的绘制代码渲出来,不要做示意图,并自己对照 `STYLE.md` 检查一遍再往下走。
+
+### 分镜故事板(仅在用户要求时)
-### 确认点 2:停下来给用户看
+用真正的绘制代码渲 6–9 个关键镜头,拼成一张分镜故事板(`core/render/sheet.py`),每格下面写镜头号、景别、时长和台词或节拍。连同一句话故事和你最没把握的地方一起发给用户,**等确认**。在这里改方向花几分钟;全片渲完再改要花几小时。
-发图,并说出你最没把握的地方。画面确认后再继续。
+用户没要分镜,就不要停,直接做完成片。
## 6. 声音是片子的一半
diff --git a/docs/zh-CN/TECHNIQUE.md b/docs/zh-CN/TECHNIQUE.md
index 24d2646..407b681 100644
--- a/docs/zh-CN/TECHNIQUE.md
+++ b/docs/zh-CN/TECHNIQUE.md
@@ -18,7 +18,7 @@
|---|---|
| Node 20+ 和 Google Chrome | 渲染页面(`npm install` 安装 `playwright-core` 和 `three`) |
| ffmpeg | 编码、合成、响度、黑帧检查 |
-| Python 3.11+(我们用 [uv](https://docs.astral.sh/uv/)) | `uv venv && uv pip install -r requirements.txt`(numpy、scipy、soundfile、soxr、librosa、pillow、kokoro-onnx、faster-whisper) |
+| Python 3.11+(我们用 [uv](https://docs.astral.sh/uv/)) | `uv venv && uv pip install -r requirements.txt`(numpy、scipy、soundfile、soxr、librosa、pillow、kokoro-onnx、edge-tts、faster-whisper) |
大文件不在 git 里,用到哪一步再下载:
@@ -69,7 +69,10 @@ export const HIT = { pratfall: ['chase', 6], ... }; // 段落 + 第几拍
## 4. 配音
-- **TTS**:[Kokoro](https://github.com/thewh1teagle/kokoro-onnx) 在本地运行,英文声线好(`af_heart`、`bm_george`、`am_michael` 等)。`core/tts/tts.py lines.json out/` 每句输出一个 WAV 和时长表。数字在 TTS 文本里拼写成单词,字幕里写阿拉伯数字。
+- **TTS 只是默认素材**。用户给了录音或指定了声线,就用用户的。否则:
+ - **英文**:[Kokoro](https://github.com/thewh1teagle/kokoro-onnx) 在本地运行,声线好(`af_heart`、`bm_george`、`am_michael` 等)。`core/tts/tts.py lines.json out/` 每句输出一个 WAV 和时长表。
+ - **中文**:[edge-tts](https://github.com/rany2/edge-tts),用微软的神经网络声线(`zh-CN-XiaoxiaoNeural`、`zh-CN-YunxiNeural` 等),需要联网。逐句语速和去首尾静音的写法见 `styles/paper-lantern/demo/tts.py`。音频要商用前,先看微软的使用条款。
+- 数字在 TTS 文本里拼写成单词,字幕里写阿拉伯数字。
- **逐句校对**:`core/tts/asr_check.py` 用 faster-whisper 转写每个 WAV 并和脚本比对,不通过就重新生成,直到全部通过。它同时输出逐词时间戳,用来摆放台词和字幕。
- **混音前**:TTS 峰均比很高,先压缩人声,再按 RMS 配平,人声比音乐高约 10 dB。
diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.json
new file mode 100644
index 0000000..e3f2b1d
--- /dev/null
+++ b/plugin/.claude-plugin/plugin.json
@@ -0,0 +1,8 @@
+{
+ "name": "lemo-opuscar",
+ "description": "Make a film in one of 39 code-rendered styles: your agent directs, draws, scores and mixes it.",
+ "author": { "name": "Lemomo", "url": "https://github.com/lemomo-ai" },
+ "homepage": "https://lemomo-ai.github.io/lemo-opuscar/",
+ "repository": "https://github.com/lemomo-ai/lemo-opuscar",
+ "license": "MIT"
+}
diff --git a/plugin/skills/lemo-opuscar/SKILL.md b/plugin/skills/lemo-opuscar/SKILL.md
new file mode 100644
index 0000000..3eabd16
--- /dev/null
+++ b/plugin/skills/lemo-opuscar/SKILL.md
@@ -0,0 +1,44 @@
+---
+name: lemo-opuscar
+description: Direct and produce a short film made entirely in code, in one of the 39 styles of the Lemo-Opuscar library (e.g. Impasto Oil Painting 油画厚涂, Watercolor Brush 水彩笔刷, Chinese Ink Wash 中国水墨, Ukiyo-e 浮世绘, Whiteboard Explainer 白板讲解). Use when the user asks for a video, film, short, promo or animation (视频、短片、动画、宣传片) in a named style, or asks which film styles there are.
+---
+
+# Lemo-Opuscar
+
+The styles, the directing and building guides, and the tools live in the Lemo-Opuscar library, a local copy of github.com/lemomo-ai/lemo-opuscar. This skill finds that library and hands you over to it.
+
+## 1. Get the library
+
+Run the setup script from this skill's base directory:
+
+```sh
+sh "<skill base directory>/scripts/setup.sh"
+```
+
+On the first run it downloads the library (about 60 MB: guides, `core/` tools, every `STYLE.md`) to `~/lemo-opuscar`; later runs update it. If the user is standing in a clone of the repo, that clone is used. `LEMO_OPUSCAR_HOME` overrides the location. The last line prints `LIB=<path>`.
+
+Then start `sh "<skill base directory>/scripts/setup.sh" deps` at once, in the background if you can. It installs the Node and Python packages and the headless browser the renderer uses, and takes a few minutes the first time, so it runs while you talk with the user. If either run reports missing system tools (Node 20+, ffmpeg, Python 3.11+), tell the user in your one round of questions. Don't install system software yourself.
+
+## 2. Follow the library's instructions
+
+Read `$LIB/AGENTS.md` and do what it says. It has the full workflow:
+
+- finding the style in `styles/README.md`;
+- reading `DIRECTOR.md`, `TECHNIQUE.md` and the chosen `STYLE.md`;
+- the one round of questions before you start;
+- the optional storyboard.
+
+What changes in skill mode:
+
+- **The project lives in the user's folder.** Make `<name>/` in the folder where the user started. Use lowercase letters, digits and hyphens for the name (`orange-cat`); `#` or `%` in the path breaks ffmpeg. If that name is already taken by something else, pick another. Everything goes there: code, audio, stills, `build.sh`, and the finished `<name>.mp4`, `.srt` and `poster.jpg`. Wherever the library's docs say `films/<name>/`, read this folder.
+- **Running tools.** Run the library's tools from `$LIB` and give them the project's absolute path. For example:
+ - `cd "$LIB" && node core/render/still.mjs "<project>" 1.5 3`
+ - `"$LIB/.venv/bin/python" "$LIB/core/tts/tts.py" "<project>/lines.json" "<project>/voices"`
+
+ The render server serves the project at `/@film/` and the library at `/`.
+- **Reaching library files.**
+ - In pages, use absolute URLs: `/core/lib.js`, `/node_modules/three/...`, `/styles/<slug>/demo/...`.
+ - In Python and Node scripts and in `build.sh`, use `$LIB/...` paths. Never use `../..`, because the project is not inside the library.
+ - Put `LIB=<path>` at the top of `build.sh`.
+- **Demo source.** A style's demo source isn't downloaded by default. When its `STYLE.md` §9 points to a file you want to study or import, run `sh "<skill base directory>/scripts/setup.sh" demo <slug>`. The demo is a reference implementation: learn and reuse its techniques, but don't rebuild it or copy its story.
+- **Delivery.** Tell the user the path of the project folder and the finished film.
diff --git a/plugin/skills/lemo-opuscar/scripts/setup.sh b/plugin/skills/lemo-opuscar/scripts/setup.sh
new file mode 100644
index 0000000..25bf3d9
--- /dev/null
+++ b/plugin/skills/lemo-opuscar/scripts/setup.sh
@@ -0,0 +1,76 @@
+#!/bin/sh
+# Lemo-Opuscar skill: find or install the style library, then print its path.
+# sh setup.sh library ready? (clone on first run, update later) → prints LIB=<path>
+# sh setup.sh deps also install Node and Python packages and the headless browser
+# sh setup.sh demo <slug> add one style's demo source to the library (reference only)
+# The library is a sparse clone of github.com/lemomo-ai/lemo-opuscar: guides, core/ tools and
+# every STYLE.md (~60 MB). Demo sources come one style at a time; big assets via tools/fetch.sh.
+set -e
+REPO=https://github.com/lemomo-ai/lemo-opuscar.git
+
+# 1. Which library: $LEMO_OPUSCAR_HOME, else the clone we are standing in, else ~/lemo-opuscar
+is_lib() { [ -f "$1/AGENTS.md" ] && [ -d "$1/core/render" ]; }
+if [ -n "$LEMO_OPUSCAR_HOME" ]; then LIB=$LEMO_OPUSCAR_HOME
+elif top=$(git rev-parse --show-toplevel 2>/dev/null) && is_lib "$top"; then LIB=$top
+else LIB=$HOME/lemo-opuscar
+fi
+case "$LIB" in /*) ;; *) LIB=$(pwd)/$LIB ;; esac
+
+if [ "$(git -C "$LIB" config --get lemo.managed 2>/dev/null)" = true ]; then
+ # our own clone: keep it current (nothing of the user's lives in it)
+ if [ -n "$(git -C "$LIB" status --porcelain --untracked-files=no 2>/dev/null)" ]; then
+ echo "! $LIB has local edits, so it was not updated"
+ else
+ git -C "$LIB" pull --quiet --ff-only 2>/dev/null || echo "! could not update $LIB (offline?); using the local copy"
+ fi
+elif ! is_lib "$LIB"; then
+ [ -e "$LIB" ] && [ -n "$(ls -A "$LIB" 2>/dev/null)" ] && { echo "✗ $LIB exists but is not the Lemo-Opuscar library. Set LEMO_OPUSCAR_HOME to another folder."; exit 1; }
+ command -v git >/dev/null || { echo "✗ git is needed to download the library"; exit 1; }
+ echo "↓ downloading the style library into $LIB"
+ git clone --quiet --depth 1 --filter=blob:none --sparse "$REPO" "$LIB" || { rm -rf "$LIB"; echo "✗ download failed (offline?)"; exit 1; }
+ # git < 2.35 has no --no-cone: fall back to the full checkout
+ git -C "$LIB" sparse-checkout set --no-cone '/*' '!/styles/*/demo/' '!/styleboard/' 2>/dev/null \
+ || git -C "$LIB" sparse-checkout disable
+ git -C "$LIB" config lemo.managed true
+fi
+LIB=$(cd "$LIB" && pwd -P)
+
+node_ok() { [ -f "$LIB/node_modules/.lemo-ok" ]; }
+py_ok() { [ -f "$LIB/.venv/.lemo-ok" ]; }
+
+case "$1" in
+ deps)
+ cd "$LIB"
+ if ! node_ok; then
+ npm install --no-audit --no-fund --silent
+ node node_modules/playwright-core/cli.js install chromium-headless-shell # the renderer's browser
+ touch node_modules/.lemo-ok
+ fi
+ if ! py_ok; then
+ if command -v uv >/dev/null; then uv venv --quiet --allow-existing --python 3.12 && uv pip install --quiet -r requirements.txt
+ else
+ python3 -c 'import sys; sys.exit(sys.version_info < (3, 11))' || { echo "✗ Python 3.11+ is needed (or install uv, which fetches it)"; exit 1; }
+ python3 -m venv .venv && .venv/bin/pip install --quiet -r requirements.txt
+ fi
+ touch .venv/.lemo-ok
+ fi
+ ;;
+ demo)
+ [ -n "$2" ] && [ -f "$LIB/styles/$2/STYLE.md" ] || { echo "usage: sh setup.sh demo <slug> (slugs: $LIB/styles/README.md)"; exit 1; }
+ if git -C "$LIB" sparse-checkout list >/dev/null 2>&1 && [ ! -d "$LIB/styles/$2/demo" ]; then
+ git -C "$LIB" sparse-checkout add "/styles/$2/demo/"
+ fi
+ echo "demo source: $LIB/styles/$2/demo"
+ ;;
+esac
+
+# 2. Tools the pipeline needs (report only; installing them is up to the user)
+miss=""
+if command -v node >/dev/null; then
+ [ "$(node -p 'process.versions.node.split(".")[0]')" -ge 20 ] || miss="$miss node20+(found $(node -v))"
+else miss="$miss node20+"; fi
+command -v ffmpeg >/dev/null || miss="$miss ffmpeg"
+command -v uv >/dev/null || python3 -c 'import sys; sys.exit(sys.version_info < (3, 11))' 2>/dev/null || miss="$miss python3.11+(or uv)"
+[ -n "$miss" ] && echo "! missing:$miss"
+node_ok && py_ok || echo "! packages not installed yet: run 'sh setup.sh deps' (a few minutes) before the first render"
+echo "LIB=$LIB"
diff --git a/requirements.txt b/requirements.txt
index aefb3a0..1b05449 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -6,4 +6,5 @@ soxr
librosa
pillow
kokoro-onnx
+edge-tts
faster-whisper