Communitygithub.com

josueh04/product-video-skills

在任何人看到之前檢查渲染的產品影片:工作模式閃爍、黑幀、響度與真峰值、削波、片段邊緣的咔嗒聲、重疊的旁白、語音轉文本比對腳本、禁用詞彙與舊名稱、鏡頭變焦、聯繫表、過渡處的幀條以及與批准版本的比對;然後寫出 deliver.py 唯一接受的 qa/REPORT.json。在每次 HyperFrames 渲染後、當有人問「渲染是否乾淨」、「QA 這個」、「檢查影片」、「檢查音訊」、「為什麼會閃爍」、「有咔嗒聲」、「比較 v3 與 v2」、「批准的部分是否變更了」、或是在展示、發送、上傳或交付任何 MP4 之前使用它,即使請求中沒有提到 QA。也可用它來分類審閱者在渲染中回報的缺陷。

product-video-skills 是什麼?

這是一個產品影片品質保證 (QA) 技能,專為 AI 代理設計,用於自動化影片渲染後的全面檢查流程。它能執行快速掃描以偵測工作模式閃爍和黑幀等明顯問題,並生成詳細報告,包含響度、真峰值、削波、片段邊緣咔嗒聲、旁白重疊、語音轉文本 (ASR) 與腳本的比對、禁用詞彙檢查、相機變焦分析、聯繫表、過渡幀條以及與批准版本的幀比對等數十項檢查。該技能支援 Claude Code、Cursor 和 Codex 等平台,其工作流程遵循嚴格的「閘門」順序:先進行渲染前檢查,然後是快速掃描,接著生成完整報告,再進行人工抽檢(查看聯繫表、幀條、聆聽音訊邊緣),最後分類與修復。它產生的 `qa/REPORT.json` 是交付流程 (`deliver.py`) 的唯一憑證,確保只有通過所有檢查的渲染版本才能被交付。此技能源自實際生產經驗,旨在捕捉自動化工具可能遺漏的細微缺陷,例如短暫的 UI 閃爍或幀切問題。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/josueh04/product-video-skills/tree/HEAD/skills/render-qa

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

渲染 QA

一個渲染在渲染器退出時並未完成。只有在證據顯示它是乾淨的時候才算完成:自動化報告、每張聯繫表都看過、每個過渡處的幀條都看過、旁白邊緣都聽過。在這些技能所來自的生產環境中,子代理曾將包含 0.3 秒 UI 閃爍、裁剪的模態框以及在每第三幀消失的標題的渲染報告為乾淨。腳本和幀條找出了這三種問題。

腳本位於此檔案旁邊。執行一次工作區解析:

PVS_HOME="$(cd "$(cd "${CLAUDE_SKILL_DIR}" && pwd -P)/../.." && pwd)"
PY="$PVS_HOME/bin/pvs-py"
S="$PVS_HOME/skills/render-qa/scripts"

將直譯器和腳本資料夾保持在不同變數中,並對兩者都使用引號("$PY" "$S/qa.py"):一個包含命令和路徑的變數無法被 zsh 正確分割,並且在 bash 中路徑包含空格時會失效。

<video_dir> 是 products/<slug>/videos/<video>/(它包含 BRIEF.md、audio/、video/)。

閘門,按順序

  1. 在渲染之前。 執行動態檢查(seek-safe-motion 技能)、hyperframes check,以及每個設定節拍的快照。僅 check 是不夠的:它曾經讓一個影片通過,其中移動元素在其四個片段中的三個都不可見。前渲染步驟在 references/checklist.md 中。
  2. 渲染完成後立即執行快速掃描(幾秒鐘): "$PY" "$S/scan_render.py" <mp4>。出現 WORKER PATTERN 行表示尋軌安全錯誤:停止並修復時間軸(請參閱 seek-safe-motion),暫不執行其餘步驟。
  3. 完整報告:"$PY" "$S/qa.py" <video_dir> <mp4>。它執行所有自動檢查,寫出 qa/REPORT.json 和 qa/REPORT.md、qa/sheets/ 中的聯繫表、qa/strips/ 中的幀條(每個異常運行和最後 5 秒),以及在 qa/asr.txt 中的轉錄文字。對於在現代 Mac 上 2 到 3 分鐘的 60 fps 影片,大約需要 15 秒,包括語音轉文字。從頭到尾閱讀 REPORT.md,包括警告和所有的 ASR 差異。
  4. 人工目視檢查。 報告以腳本無法看到的內容結尾。全部執行:
    • 查看每一張聯繫表,而非抽樣。
    • 在每個模態框開啟和關閉、滾動、相機移動、章節變更、此版本中變更的節拍、以及結束畫面到鎖定的過渡處,以 5 到 6 fps 製作幀條:"$PY" "$S/strips.py" <mp4> <video_dir>/qa/strips modal:21.0:23.4:8 lockup:57:60。1 fps 的聯繫表每秒取樣一幀;0.3 秒的閃爍會落在兩個樣本之間。
    • 執行 "$PY" "$S/edges.py" <mp4> <video_dir> 並聆聽它標記的每個邊緣。
    • 如果此版本編輯了一個已批准的版本,證明其餘部分沒有移動: "$PY" "$S/parity.py" <approved.mp4> <new.mp4> --skip 41.0:48.5。 如何讀取聯繫表、幀條和比對輸出:references/reading-sheets-and-strips.md。
  5. 分類每個失敗和警告,使用 references/triage.md:它列出了這些檢查發現的真實缺陷和誤報,以及如何區分它們。在源頭(模板、建置、lines.tsv、音訊)修復原因,重建、重新渲染,並從步驟 2 開始再次執行閘門。絕不手動編輯 index.html:建置會重新生成它。
  6. 交付不屬於此技能的調用範圍。deliver.py 僅在使用者或使用者啟動的技能(/video-build、/video-review)要求交付時執行。除非報告通過、不是草稿且與 MP4 逐字節匹配,否則它會拒絕。

檢查項目測量什麼

檢查項目失敗條件為何是此閾值
size, fps大小與 video.size 不同;fps 僅警告錯誤的大小是渲染失敗;不同的 fps 可能是預期的(30 對 60)
worker_pattern4 個或更多異常幀連續運行,且全部落在同一個模 3 的幀索引上HyperFrames 使用 3 個交錯的工作者渲染;一個失去狀態會影響每第三幀
outliers永不(警告)全速滾動、模糊拉遠和相機返回本身就會產生孤立異常;請查看每個幀條
black_frames在前 1 秒和後 2 秒之外,平均亮度低於 3從黑色淡入淡出是預期的;影片中間出現黑色是錯誤
voice_overlap兩個語音片段的說出單詞重疊超過 20 毫秒根據單詞時間而非片段邊界測量:重疊的靜默尾巴是沒問題的
loudness綜合響度與 voice.mix_lufs 相差超過 1 LU已交付的成品測量值為 -16.8 到 -15.3 LUFS(目標 -16)
true_peak高於 -1.0 dBFS為上傳平台的失真編碼器保留的餘量
clipping真實通道上有任何樣本達到 0.995 或更高按通道分別測量,而非下混音,因此不會隱藏單側削波
clicks_outside_clips在所有音訊片段之外出現脈衝式咔嗒聲在音效內部是預期的;在語音內部幾乎總是輔音
abrupt_edges永不(警告)在音效外部結束於 5 毫秒的聲音通常是裁剪不當的片段;請聆聽
asr單詞匹配度低於 0.93,或跳過成品測量值為 0.953 到 0.988;腳本按播放順序比較,而非檔案順序
banned_terms_*聽到、在 index.html 中可見或在 lines.tsv 中出現禁用詞、禁說片語或舊名稱來自 product.yaml;即時 UI 可能仍顯示舊名稱,但影片不能
camera_zoom永不(警告)高於 video.max_zoom約 2x 的全頁畫面被拒絕了兩次,被認為「過度放大」;縮小的畫布可以容忍更多
motion_lintseek-safe-motion 檢查報告錯誤在它們耗費一個渲染之前捕獲時間軸錯誤

--no-asr 故意使報告失敗:偏離腳本的旁白正是審閱者最先聽到的內容。語音轉文字使用 whisper 的 small.en 模型處理英文,使用多語言 small 模型處理任何其他 lang(如果缺失則會下載一次)。

報告合約

qa/REPORT.json 遵循 docs/contracts.md:mp4(相對於影片資料夾的相對路徑)、sha256、created、draft、checks(name、passed、detail,以及用於警告的 level: warn)、passed。它還包含 draft_reason、probe、artifacts 和 ASR 差異。當 BRIEF.md 中的任一簽名為空,或 video/index.html 帶有 <meta name="pvs-draft" content="1">(由 build.py --draft 寫入)時,draft 為 true。草稿可以通過所有檢查,但仍然永遠不會被交付:未簽署的覆蓋範圍就是導致影片缺少審閱者關注的特徵的原因。

交付(僅在要求時)

"$PY" "$S/deliver.py" <video_dir> <mp4> [--archive-previous] [--dry-run]

它將檔案複製到 <product_dir>/deliveries/,命名為 review.naming(預設為 {product} {video} v{version}.mp4,版本來自 BRIEF.md),在可能的情況下使用 APFS 克隆,逐字節驗證副本,並在旁邊寫入 <same name>.BRIEF.md。它從不覆蓋:相同的字節是空操作,但已交付名稱下不同的字節會增加檔案名稱中的版本號(然後更新 BRIEF.md 以匹配)。--archive-previous 將影片的舊版本移動到 deliveries/previous/,以便審閱者的資料夾中僅保留最新版本。交付後,用一個表格告知審閱者:影片、版本、時長、變更內容,以及最多三個待決決策,每個附帶建議的預設值。任何已上傳到某處的副本現在都已過時:請明確說明。

來自事故的規則

  • 自己重新運行證據。 當子代理說渲染是乾淨時,請閱讀其 REPORT.md,打開聯繫表和幀條,並檢查 sha256 是否與您將要交付的檔案匹配。來自代理的「乾淨」是一種聲稱,報告才是證據。
  • 每個版本在 renders/ 中都有自己唯一的檔案名稱;切勿刪除較舊的版本。僅在審閱者尚未看到的版本內部、在修復週期內進行覆蓋。
  • 絕不終止您未啟動的行程(Chrome、ffmpeg、node):其他代理在同一臺機器上渲染。
  • 不使用視覺 API 的快照:向 hyperframes snapshot 傳遞 --describe false,這樣未發布產品的任何畫面都不會離開機器。
  • 僅拼寫錯誤的 ASR 差異是可以接受的(品牌詞被聽成兩個詞、用文字書寫的時間)。在判斷之前閱讀每個差異;幾個單詞的差異表示剪輯或亂碼行。

腳本

腳本用途
qa.py <video_dir> <mp4> [--out DIR] [--no-asr] [--strip name:t0:t1[:fps]]完整報告;不通過時退出碼為 1
scan_render.py <mp4> [--json]快速閃爍、黑幀和響度掃描;發現工作模式或影片中間黑色時退出碼為 1
qa_full.py <video_dir> <mp4> [--out DIR] [--no-asr]僅測量值,輸出為 REPORT.txt
sheets.py <mp4> <outdir> [--fps 1]1 fps 聯繫表,4x4
strips.py <mp4> <outdir> name:t0:t1[:fps] ...圍繞過渡處的帶標籤幀條(預設 6 fps)
edges.py <mp4> <video_dir 或 index.html>每個旁白片段前後的水平
parity.py <old> <new> [--end T] [--skip A:B] [--threshold 1.0] [--audio]幀比對;超過閾值時退出碼為 1
banned_terms.py [--product DIR] [--text T] [FILE 或 DIR ...]禁用詞、禁說片語和舊名稱;命中時退出碼為 1
deliver.py <video_dir> <mp4> [--archive-previous] [--dry-run]交付閘門

banned_terms.find_banned(text, product) 返回 [(term, kind)],供其他技能重用。

參考資料

  • references/checklist.md:從建置到審閱者訊息的整個閘門,作為可勾選的方框。在影片的首次渲染之前和任何交付之前閱讀。
  • references/reading-sheets-and-strips.md:在聯繫表、幀條、裁剪、比對和數值檢查(亮像素計數、差異框)中尋找什麼。在執行步驟 4 時閱讀。
  • references/triage.md:此 QA 產生的每個失敗,無論是真實或誤報,以及如何區分和修復。在任何檢查失敗或警告時立即閱讀。

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

josueh04/product-video-skills

Extract, once per product, everything every video of it reuses and write it to kit/ and product.yaml (design tokens, font subsets as woff2, icon subsets as SVG from the product's own icon packages, logos in light, dark and app-tile variants from the repo, a fictional cast proposed once for veto and then frozen, the canonical-names map, pronunciations, banned terms and the read-only tool list). Use it when a product is set up or its kit is missing or incomplete, when a video needs an icon, font or logo that is not in kit/ yet, when someone asks for demo names, fake customers, phone numbers or emails, when a brand word is mispronounced or an old product name shows up, and when checking that demo data is fictional.

josueh04/product-video-skills

Interview the user about a product, then create products/<slug>/ with its own git history, a filled product.yaml and linked skills, fetch its sources and build its kit. Run only when the user types /product-new.

josueh04/product-video-skills

Back every sentence of a video's narration (audio/lines.tsv) and every screen it shows with a citation into the pinned source code (role/path:line@sha) or a docs URL, mark what is visible in the UI versus backend-only, flag restricted or unreleased features, and cut or rewrite anything unbacked; writes the video's TRUTH.md and checks it with truth_check.py. Use it whenever a script or narration is drafted or edited, before voice is generated, before a build, when someone asks "can we say this?", "is this true?", "does the product really do X?", when a reviewer asks for a feature or a claim the product may not support, and when a source document (pitch deck, PRD, marketing page) makes claims the video wants to repeat.

josueh04/product-video-skills

Write a product video's narration and turn it into voice clips with word timings, pronunciation fixes, sound effects and even loudness. The script becomes a table of moments and then audio/lines.tsv (one clip per sentence, with role and speed columns); tts.py voices it with ElevenLabs or the free macOS say voice, maps brand respellings back to the on-screen spelling, normalizes every clip and writes audio/timings.json for the composer; make_sfx.py builds typing tracks from real keystrokes and places recorded click and pop sounds. Use it whenever a video needs a script, narration, voice-over, lines.tsv, timings.json, TTS, a new take, a voice or casting choice, a pronunciation fix ("it says the name wrong"), a changed sentence, a tone note ("too hype", "sounds cut off"), audio levels, a click at the end of a clip, typing or click sounds, or when the build stage asks for the voice. Also use it for silent loops, which still need a moment table and SFX.

josueh04/product-video-skills

The animation rules that keep HyperFrames' parallel render workers from dropping, flashing or flickering elements, plus a static lint (lint_motion.py) that finds the violations in a video's template before it costs a render. Use it whenever you write or edit GSAP tweens, timelines, cursors, camera moves, typing, scrolls or pop-ups in a HyperFrames composition or a video's src/template.tpl, whenever a render shows flicker, stutter, an element that vanishes on some frames, a title that flashes, or a "WORKER PATTERN" line from scan_render.py or qa.py, and whenever the preview looks right but the MP4 does not. Also use it to review someone else's timeline code before rendering.

josueh04/product-video-skills

Pin a product's source code (read-only exports in sources/ plus sources.lock), confirm that the pinned commit is what runs in production, and map every screen of a video brief to its route, components, i18n strings and state, written to the video's SOURCES.md. Use it whenever a video needs to know where a screen lives in the code, when sources/ is missing or stale, before ui-spec-from-code or product-truth start on a video, after the product's frontend changed ("what changed", "which videos are affected", "refresh the sources", "is this checkout current", "which commit is in prod"), and when there is no code and you need an inventory of the no-code references (recordings, recovered captures, docs) a screen can be rebuilt from.

josueh04/product-video-skills

Compose a narrated product demo in HyperFrames: the stage (the product UI rebuilt at its real viewport and scaled to 1080p, camera, rack focus with veil, chapter titles, cursor and clicks, typing, streaming text, pop-ups, toasts, scrolls, end screen and lockup) and the build.py that anchors every beat to a word of the narration. Use it whenever you write or edit a video's video/build.py, src/template.tpl or src/app.css, place a beat on a word, add a chapter, a click, a pop-up or a push-in, frame a screen, build the end screen or lockup, snapshot setup beats, or render a draft or delivery MP4 of a product video in this workbench. Also use it when someone says "the cursor is off", "too zoomed in", "too fast", "it feels chaotic", "the title flashes", "sync the UI to the voice", or asks for a walkthrough, demo or pitch video of a UI.

josueh04/product-video-skills

Gather pixel references for UI that the code cannot show, or to check a rebuild against the real thing, using frames and timed OCR text from screen recordings, captures recovered from past Claude Code session transcripts, a local instance of the app built like production, and web research for third-party apps, plus side-by-side parity images and contact sheets. Use it whenever someone hands over a screen recording (.mov or .mp4) of the product, when a screen has no usable source code (a stale checkout, another company's UI such as a sign-in page, calendar or CRM, runtime output from a backend not in the repos), when asked "what does it really look like", "match the recording", "how long does that animation take in the app", "compare our render to the real app", or when screenshots from an earlier session might already exist. Never uses the reviewer's personal browser.

josueh04/product-video-skills

Turn a product's real frontend code into 1:1 rebuild specs for a video, one read-only subagent per screen, each returning static HTML, CSS with every variable resolved to its literal value and cited (role/path:line@sha), every state, transitions with exact durations and easings, icons from the code's own icon sets, and the exact i18n strings; plus resolve_tokens.py to write the product's design tokens to kit/tokens.css. Use it whenever a screen of the product has to appear in a video, when writing or fixing video/src/app.css or the template markup, when someone asks for exact sizes, colors, fonts, paddings, animations or icons of a screen, when a rebuilt screen "looks off" next to the real app, and when the design tokens or theme of a product need extracting. Framework adapters cover Angular with PrimeNG (proven), React, Vue, Tailwind and plain HTML (unproven).

josueh04/product-video-skills

Say where this session stands in the Product Video Skills workbench (setup state, which product and video the current folder belongs to, the stage of every video) and the exact next command to type. Also answers "how do I..." questions about the workbench from its docs.

josueh04/product-video-skills

Coordinate the build of one or more signed videos of the current product with subagents (source recon, product truth, UI specs, voice, one builder per video), re-run QA itself, then deliver. A light coordinator that never builds itself. Run only when the user types /video-build.

josueh04/product-video-skills

Start a new video of the current product - create videos/<video>/, write BRIEF.md, the feature coverage matrix (COVERAGE.md) and the claims sheet (CLAIMS.md), propose chapters, then stop for the reviewer's sign-off. Never builds. Run only when the user types /video-new.

josueh04/product-video-skills

Turn a batch of reviewer feedback on the product's videos into one table per video, fix every video that got notes in parallel (one subagent each) while keeping approved parts, re-run QA and parity, bump versions and deliver. Run only when the user types /video-review.

josueh04/product-video-skills

Check this machine and install the pinned video toolchain of the Product Video Skills workbench (HyperFrames CLI, its rendering Chrome and its agent skills from the same release, the Python environment, the speech model for QA), then run the self-check. Safe to run again. `/video-setup check` only reports.

相關技能