/design-system:product-story-filmfrom design-system
Creates product promo videos (about 60 seconds) using real running UI from the product repo, with narration, music, and toggleable subtitles. Handles new videos, revisions from feedback, and frame-by-frame QC.
Ships in design-system. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
用真的產品,說一個打中痛點的故事;每一格停下來看都經得起檢查。
負責人在意的順序:
這份標準來自一位要求很高的產品負責人一輪又一輪的逐格回饋。references/quality-bar.md 列出每一條規則和它要防止的失誤,標了 [auto] 的有工具會自動擋。
references/feedback.md。filmcheck.py regress 證明其他地方沒變。三種模式:
| 模式 | 什麼時候 | 從哪裡開始 |
|---|---|---|
| A. 新片 | 新產品、新情境 | 下方 Workflow「新片流程」第 0 步 |
| B. 依回饋修改 | 已經有片,負責人給了回饋 | references/feedback.md |
| C. 只做驗收 | 有一支片要檢查 | references/qc.md |
如果上一個 session 的檔案已經不在了(雲端容器會被回收),用 docs/film/<片名>/ 重建。那裡放著這支片的 take 腳本、故事設定、旁白稿、回饋紀錄,以及 repo 的 commit 和副本的修改,全都是文字檔。擷取是確定性的,所以重跑就能得到同樣的影格。任何協作者都可以從那裡接手。重建時,scripts/init_project.sh 建好工作資料夾之後,把那支片的 video/src/ 和 cap/takes/ 覆蓋回去;不要從引擎內建的範例故事開始改。
governance:check 也會整份比對雜湊:不要在裡面改檔、裝套件或放產出。skill 本身要改,回報給設計系統。docs/film/,鏡像不會碰:
docs/film/product-facts.md:名稱、logo、tagline 的預設,觀眾、旁白、已經認可的成片等已定案的事。還沒有這份檔案,就照 references/product-facts-template.md 建一份,交給 repo 擁有者確認。docs/film/<片名>/:每支片的文字原始碼(旁白稿、回饋紀錄、take 腳本、故事檔)。edge-tts==7.4.1。剪輯引擎的套件依 assets/engine/package-lock.json 鎖定的版本,只在工作資料夾裡安裝,而且只在第 0 步明確執行 scripts/init_project.sh 時才裝;setup:all、sync-all 都不會替這個 skill 裝任何東西。scripts/…、assets/…、references/… 都是這個 skill 資料夾裡的路徑。c.stage(css) 藏掉故事用不到的東西。畫面仍然是真的,只是比較乾淨。camlint 檢查,成片交給 filmcheck 檢查。references/efficiency.md。每一步都有關卡,關卡沒過不要往下走。只有標了「負責人」的關卡要給他看,其他關卡都由你自己檢查。
bash scripts/init_project.sh <workdir> <repo副本>:建立專案資料夾,把剪輯引擎複製進 <workdir>/video/,並在那裡依 lockfile 安裝套件(這是唯一安裝引擎套件的步驟)。docs/film/product-facts.md(沒有就照 references/product-facts-template.md 建一份):
references/story.md 第 0 節,整理一份產品檔案:
STYLE=<方向> node scripts/stills.cjs …)。做法見 story.md 第 6 節。notes/,不放進提案。references/capture.md。scripts/capture.cjs:虛擬時間、3 倍解析度、逐格擷取。c.glide() 移動;要讓剪輯對準的元件,用 c.rect() 記下它的位置。SELF-CLOCKED。見 references/capture.md 第 4 節。PROBE=1 以 1 倍解析度試跑一次流程;擷取放在背景跑,等的時候先寫旁白稿、產生 TTS。filmcheck.py events <take> 和 filmcheck.py cadence <take>,列出所有瞬變、捲動跳動、閃爍,以及動得不規律的游標、轉圈、影片,能從源頭修的就重拍。assets/engine/(已經由第 0 步複製到 <workdir>/video/)。引擎內建的是一支中性的範例故事,只用來示範每一種鏡頭;把它換成這支片的故事。寫法、各種鏡頭類型和換新故事的方式,見 references/edit.md。lint.cjs 會直接說要先定風格。node scripts/lint.cjs,0 個 error 才往下走。它會抓太快、縮放閃一下、卡頓、殘影,以及「該是 1 倍速卻跳格或重複」。scripts/clip.sh 只算那一段(2 秒大約 10 秒),不要每改一次就算全片。BRAND(edit.md)。references/sound.md。narration.json。tts.py 只重錄有改過的句子;字幕用 srt.py 產生,跟混音用同一組時間點。python3 scripts/filmcheck.py video film.mp4 --cues out/cues.json 必須是 PASS。python3 scripts/motioncheck.py film.mp4 <開始秒> <長度>,結果不能出現 STOP-AND-GO。references/qc.md 做人工自審:每個鏡頭的開頭、中間、結尾,加上每個轉場的連續畫面。bash scripts/bundle_project.sh <workdir> docs/film/<片名> 會把它們收齊到這個資料夾,再照 docs/film/product-facts.md「開 PR 的流程」開 PR(沒寫就照 repo 一般的 PR 流程)。影片檔不放進 git。docs/film/product-facts.md 另有決定時,以它為準。字幕做成可開關的軌道,只有社群靜音版才燒進畫面。雲端容器的細節(dev server 會停、proxy、Chromium 參數、算圖時間、port、金鑰)見 references/environment.md。最重要的三件事:
docs/film/<片名>/。| 檔案 | 用途 |
|---|---|
docs/film/product-facts.md(產品 repo) | 這個 repo 已經定案的事:名稱、觀眾、旁白、已經認可的成片。產品擁有,鏡像不會覆蓋;每個 repo 只有這一份是自己的 |
references/product-facts-template.md | 上面那份檔案的範本,以及從舊的複製版搬過來的步驟 |
references/story.md | 研究、選題評分、簡報、段落表、旁白、tagline 的寫法和自檢題 |
references/capture.md | 素材需求表、布景、擷取 API、take 事件清單、從源頭修正 |
references/edit.md | 剪輯引擎、鏡頭類型、camlint 與校準、故事設定檔的目標介面與遷移步驟 |
references/sound.md | 旁白服務、試音、寫稿規則、字幕、配樂、混音 |
references/qc.md | 自動驗收和人工自審清單;哪些可以自動擋、哪些一定要人看 |
references/feedback.md | 修改模式:定位、根因、鎖定、證明 |
references/quality-bar.md | 驗收清單:每條規則和它要防止的失誤 |
references/efficiency.md | 品質第一、其次是速度:先用便宜的方式確認、只重做變了的部分、不要等、不浪費 tokens、準時 |
references/environment.md | 雲端容器的注意事項 |
scripts/init_project.sh scripts/bundle_project.sh | 建立專案資料夾;把可重建的文字原始碼收齊到 docs/film/<片名>/ |
scripts/capture.cjs | 真實介面擷取(glide、rect、stage、mark、cutout) |
scripts/filmcheck.py | video 成片驗收、events 找出變化、cadence 找自己會動的東西動得不規律、regress 證明只改了該改的 |
scripts/motioncheck.py | 逐格量測移動,抓「動→停→再動」造成的卡頓,以及太快的移動 |
scripts/jumpcheck.py | 保留舊名稱;跟 filmcheck 的 snaps 用同一個偵測器 |
scripts/lint.cjs | 在剪輯引擎頁面裡跑 camlint |
scripts/render.cjs stills.cjs cues.cjs | 逐格算圖(worker 數、總格數自動決定)、出定格、匯出 cue(用 PORT 指定引擎的 port) |
scripts/clip.sh | 只算某一段時間(2 秒大約 10 秒),用來看動作、跑檢查 |
scripts/tts.py srt.py mix_vo.py scripts/mux.sh | 旁白(只重錄改過的句子)、字幕、混音與響度、封裝 |
docs/film/<片名>/(產品 repo) | 這個 repo 已經認可的成片:旁白和字幕文字(narration.json)、回饋紀錄、故事檔、take 腳本。清單在 docs/film/product-facts.md |
scripts/score.py audio.py audio_cut2.py | 配樂(目前寫死範例故事的結構,見 sound.md) |
scripts/words.py | 沒有 DOM 可量時,量文字片段的座標 |
scripts/tests/ | 工具自測、引擎的 golden test、合成 take;self_clocked.sh 用真的 Chromium 驗擷取工具的鎖定 |
assets/engine/ | 剪輯引擎(內建一支中性的範例故事:虛構的 Acme 團隊上線前的一句承諾;只示範每一種鏡頭,品牌和 logo 都是佔位,風格只屬於範例故事) |
assets/takes-examples/ | 範例故事的 take 腳本(示範擷取 API;網址、標籤和示範資料只是示意) |
assets/engine/index.html (opens in a new tab)assets/engine/package-lock.json (opens in a new tab)assets/engine/package.json (opens in a new tab)assets/engine/src/Film.tsx (opens in a new tab)assets/engine/src/core/camera.ts (opens in a new tab)assets/engine/src/core/camlint.ts (opens in a new tab)assets/engine/src/core/style.ts (opens in a new tab)assets/engine/src/lib/anim.ts (opens in a new tab)assets/engine/src/main.tsx (opens in a new tab)assets/engine/src/style/example.ts (opens in a new tab)assets/engine/src/styles.css (opens in a new tab)assets/engine/src/ui/primitives.tsx (opens in a new tab)assets/engine/test/example-takes.json (opens in a new tab)assets/engine/test/known-bad.json (opens in a new tab)assets/engine/test/live-takes.json (opens in a new tab)assets/engine/vite.config.mjs (opens in a new tab)assets/takes-examples/story_chat2.cjs (opens in a new tab)assets/takes-examples/story_flow.cjs (opens in a new tab)references/capture.md (opens in a new tab)references/edit.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub ajenchen/design-system --plugin design-system27 skills in this plugin
/bug-fix-rhythmBatch-end-verify rhythm + parallel tool batch + user-listed N-rule MUST-ALL + claim runtime verify. Invoke when entering multi-fix session 或 user 列 numbered rules. Replaces M32(c)(d)(h1)(h2) sub-invariants(2026-05-12 split per Knowledge-Prune Checkpoint 2)。/canonical-reviewerReview governance changes in an isolated read-only context with explicit author identity, complete canonical evidence, and mutation detection./code-quality-auditClean code 量化稽核 — `any` 使用 / dead export / file size / long function / circular dep / magic number。補 `/design-system-audit` 只管「design canonical」的缺口。Invoke via /code-quality-audit scope=all(release / 季度)OR scope=changed(daily)OR scope=component:X(focused)。Auto-chain by `/design-system-audit --deep` Dim 27 + `/component-quality-gate` Ship phase + `/new-component` Phase 4.5。/codex-collabCoordinate an evidence-complete primary analysis with a genuinely independent peer provider, then verify and synthesize both results./codify-correctionsProcess $GOVERNANCE_STATE_DIR/user-corrections.jsonl — the Stop-hook-harvested signals of user corrections ("不是" / "不對" / "應該" / "糾正" etc.). Dedup by session + keyword, cluster by topic, and apply edits to the canonical owner(ds-canonical rule / repository memory / canonical skill reference / spec.md rationale) under the shared authority classifier. After codification archive processed entries in the same Git-owned runtime state root. Invoke when user-corrections.jsonl exceeds 40 entries(session_start hard blocker; there is no soft reminder), when the user asks, OR quarterly./codify-principleUser 提出新設計原則 → auto 5-layer artifact generation pipeline。將原則文字自動轉化為 SSOT canonical text + hook scaffold + audit dim + scaffold update + memory entry,依 rule-placement Level 1–9 taxonomy 放入正確 home。對齊 M14 + M19。Invoke when user says「我想加一條設計原則 X」「新原則 Y」「ensure X always」OR auto-recognize trigger phrase。本 skill 把 reactive markdown rule 升級成 proactive principle-to-artifact generator。