Communitygithub.com

josueh04/product-video-skills

檢查本機並安裝 Product Video Skills 工作台的固定影片工具鏈(HyperFrames CLI、其渲染用 Chrome 及同版本代理技能、Python 環境、用於 QA 的語音模型),然後執行自我檢查。可安全重複執行。`/video-setup check` 僅回報狀態。

product-video-skills 是什麼?

此技能(/video-setup)可一鍵將 Product Video Skills 工作台從全新 clone 推進到 `passed N, failed 0` 狀態。它由 `setup.sh` 腳本驅動,負責安裝固定的工具鏈:HyperFrames CLI 及其依賴項(約 128 MB)、渲染專用的 Chrome 建置(約 195 MB,可快取)、來自同一發布標籤的 HyperFrames 代理技能、Python 套件(含語音轉文字所需的 torch,約 339 MB)以及 Whisper `small.en` 語音模型(484 MB)。技能會先執行檢查(`--check`)識別缺失元件,然後向使用者顯示簡潔的摘要,在單次確認後以 `--yes` 參數執行完整安裝。它涵蓋了常見的失敗情況,如 npm 安裝失敗、瀏覽器確保問題、Git 克隆問題或 Python 虛擬環境問題,並提供有針對性的修復說明,同時嚴格避免執行 `hyperframes upgrade` 或 `skills update` 這類會破壞版本鎖定的命令。最後,它會驗證輸出是否包含 `passed N, failed 0`,並引導使用者前往 `/product-new` 或 `/video-ask`。該技能支援 Claude Code,並假設工作台已從 `heygen-com/hyperframes` 克隆。

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

在你喜歡的 AI 中提問

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

說明文件

/video-setup

從全新的 clone 到 passed N, failed 0,只需一步。setup.sh 負責所有工作;你的任務是解釋它、取得使用者同意、執行它,並將每個 FAIL 行轉化為對應的修復方式。

首先找到工作台(可從工作台目錄或產品資料夾執行):

PVS_HOME="$(cd "$(cd "${CLAUDE_SKILL_DIR}" && pwd -P)/../.." && pwd)"

使用使用者的語言與其交談。保持簡短:他們想要的是可以運作的設定,而不是導覽。

使用 check 參數

執行 bash "$PVS_HOME/setup.sh" --check 並顯示結果。它不會安裝任何東西、不會下載任何東西、也不會寫入任何東西。對於每個 FAIL 行,給出對應的修復方式(該行末尾會標明修復方法)。到此為止。

否則

1. 回報機器狀態

先執行 bash "$PVS_HOME/setup.sh" --check。它會為每個項目輸出一行:ok、warn 或 FAIL,並附上確切的修復方式。

  • 如果 Machine 下有任何行失敗(node 22+、python 3.9+、ffmpeg、git),則無法繼續設定。請告訴使用者該行提供的修復方式(例如 brew install ffmpeg),並請他們在自己的終端機中執行,然後重新執行檢查。安裝系統套件是使用者的責任,除非他們要求,否則請不要自行執行 brew 或 apt。
  • Claude Code 的 warn 僅供參考。
  • Toolchain 下的 FAIL 行是設定腳本要安裝的項目。這在首次執行時是預期中的情況。

2. 說明將下載的內容,並僅詢問一次

告訴使用者,用一個簡短的列表,僅列出檢查發現缺少的項目:

項目大小位置
已鎖定版本的 HyperFrames CLI 及其相依套件約 128 MBnode_modules/
HyperFrames 渲染使用的 Chrome 建置約 195 MB(已快取則跳過)HyperFrames 快取
來自同一發布標籤的 HyperFrames 代理技能數 MBvendor/hyperframes/skills/
Python 套件,主要是用於語音轉文字的 torch約 339 MB.venv/
QA 使用的 Whisper small.en 語音模型484 MB~/.cache/whisper/

提出一個封閉式問題:「現在安裝這些嗎?(是 / 否)」。設定應在首次 /video-setup 時一步完成,因此不要將其拆分為多次確認。

3. 執行它

如果回答「是」,執行 bash "$PVS_HOME/setup.sh" --yes(--yes 代表使用者已經給出的答案)。首次執行需要幾分鐘,當所有項目都已快取時只需幾秒鐘;請設定至少 10 分鐘的超時時間。此操作是冪等的:再次執行只會重新處理缺少的部分。

4. 處理每個 FAIL

每個 FAIL 行都會標明其修復方式。常見的 FAIL:

FAIL處理方式
npm install failed網路或套件庫問題。顯示它所指明的日誌檔案的最後幾行,然後重新執行設定
hyperframes browser ensure failed從工作台目錄執行 npx hyperframes browser ensure --force,然後重新執行設定
could not clone heygen-com/hyperframes網路或 GitHub 存取問題。檢查 git ls-remote https://github.com/heygen-com/hyperframes,然後重新執行設定
python3 -m venv failed在 Debian 或 Ubuntu 上:sudo apt install python3-venv(由使用者執行)
pip install -r requirements.txt failed顯示日誌結尾。如果使用的 Python 版本比鎖定的版本更新,可能需要更新的 wheel;請回報此問題,而不是編輯鎖定檔案
hyperframes doctor: ...該行會說明失敗的檢查項目及其修復方式。版本、Docker 以及可選的本機語音和音樂檢查會被故意忽略
tests/run.sh: passed N, failed M執行 bash "$PVS_HOME/tests/run.sh" 並顯示失敗的測試及其輸出

切勿透過執行 hyperframes upgrade 或 hyperframes skills update 來「修復」FAIL。工作台鎖定了一個 HyperFrames 發布版本,並從同一個標籤取得其技能,因為來自不同版本的 CLI 和技能會因組合合約不一致而產生衝突。版本變更是一個需要通過 tests/run.sh 的 Pull Request。Guard 鉤子也會封鎖這兩個指令。

5. 語音金鑰

設定腳本會從 .env.example 建立 .env,並告訴你是否已設定 ElevenLabs 金鑰(不會印出金鑰內容)。如果金鑰為空,請告訴使用者:

  • 在工作台資料夾中,使用他們自己的編輯器開啟 .env,並將金鑰貼在 ELEVENLABS_API_KEY= 之後。絕對不要在聊天中這樣做:聊天中的任何內容都會儲存在對話紀錄中。如果他們無論如何還是貼在這裡,請告訴他們輪換金鑰。
  • 如果沒有金鑰,產品 product.yaml 中的 voice.provider: say 會使用免費的 macOS 語音,這對草稿和測試來說已經足夠。

切勿自行開啟、讀取或印出 .env。設定不允許這樣做,Guard 鉤子也會封鎖它,而且腳本會透過 lib/pvs.py 自行載入金鑰。

6. 結束

確認輸出的最後幾行顯示 passed N, failed 0 和 Setup done。然後用一行文字給出下一步:/product-new <slug> 來引入他們的產品,或 /video-ask 來查看目前狀態。

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

Check a rendered product video before anyone else sees it: worker-pattern flicker, black frames, loudness and true peak, clipping, clicks at clip edges, overlapping narration, speech to text against the script, banned terms and legacy names, camera zoom, contact sheets, frame strips at transitions and parity against the approved version; then write qa/REPORT.json, the only thing deliver.py accepts. Use it after every HyperFrames render, whenever someone asks "is the render clean", "QA this", "check the video", "check the audio", "why does it flicker", "there is a click", "compare v3 with v2", "did the approved part change", or before showing, sending, uploading or delivering any MP4, even when the request does not say QA. Also use it to triage a defect a reviewer reported in a render.

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.

相關技能