Communitygithub.com

josueh04/product-video-skills

製品ごとに、すべての動画で再利用されるキット情報(デザイントークン、フォントサブセット、アイコンSVG、ロゴ、キャスト、正規名マップ、発音、禁止用語、読み取り専用ツールリスト)を抽出し、kit/ と product.yaml に書き込みます。

product-video-skills とは?

このスキルは、複数のプロダクト動画で共通して使われる「プロダクトキット」を一度だけ抽出・承認し、再利用することで制作コストを削減します。対応プラットフォームは特定のAIエージェント(Claude Code等)を想定しており、主に製品のセットアップ時やキットの欠落・不完全な場合、動画でアイコン・フォント・ロゴが必要になった場合、デモ名・架空顧客・電話番号・メールの生成、ブランド単語の発音修正、古い製品名のチェックなどに使用します。動作としては、まずデザイントークンをソースコードから解決し、実際に読み込まれるフォントを特定してサブセット化し、製品パッケージからSVGアイコンを収集、リポジトリのアセットからロゴを取得、架空のキャストを一度提案して凍結、さらに正規名・発音・禁止用語を設定、最後に読み取り専用のAPIツールをルールに追記します。すべての成果物はkit/ ディレクトリと product.yaml に集約され、各動画で一貫して使えるようになります。本番環境での失敗事例(例:アイコンフォントの無許可ダウンロード、キャスト名の不統一、認識されない発音など)を教訓に、厳格なバリデーションと人間の承認プロセスを組み込んでいます。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/josueh04/product-video-skills/tree/HEAD/skills/product-kit

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

プロダクトキット

製品の動画はすべて同じキットから素材を引いてくるため、キットは一度だけ抽出され、一度だけ承認され、使い回されます。このスキルが生まれたプロダクションでは、この作業を細切れに行うとコストがかさみました。たとえば、アイコンフォントを無許可でダウンロードし、その後承認を得て、さらに三度にわたって幅を広げ、その間サブエージェントがブラウザ拡張フォルダ内のフォントから二つのグリフを抜き出しました。また、同じデモ顧客が二つの動画で異なる名字を持つことになりました。これは、拒否すべき名前のリストが回答されなかったためです。さらに、リネームされた製品の古い名前が、レビュアーが気づくまでオンスクリーンに残り続けました。

始める前に

  • ソースは固定されています(sources.lock、sources/<role>/)。固定されていない場合は、まず source-recon を実行してください。すべてのキットファイルは固定されたコミットを参照します。
  • キットに必要なダウンロード(フォントパッケージ、リポジトリにないアイコンパッケージ)は、何を、どこから、だいたいどのくらいのサイズか、一つのリストにまとめて一度だけ質問してください。承諾なしにダウンロードは行われず、ブラウザプロファイルや拡張フォルダから取得することは絶対にありません。
PVS_HOME="$(cd "$(cd "${CLAUDE_SKILL_DIR}" && pwd -P)/../.." && pwd)"
K="$PVS_HOME/skills/product-kit/scripts"

1. トークン

製品のテーマに対して ui-spec-from-code のリゾルバを実行し、それが記述するレンダリングファクト(ランタイム rem、テーマセレクタ、実際に読み込まれるフォント)を kit/render-facts.md に書き込みます。

"$PVS_HOME/bin/pvs-py" "$PVS_HOME/skills/ui-spec-from-code/scripts/resolve_tokens.py" <product_dir> \
  [--theme-selector "<dark selector>"]

product.yaml で brand.accent を、製品がプライマリカラーに使用するトークンから設定し、その出典を明記します。

2. フォント

アプリが実際に読み込むフォント(link タグ、@font-face、ロックファイル内のフォントパッケージ)を特定します。CSS 名だけではありません。ファイルはリポジトリから、またはインストールされたパッケージ(例:node_modules 内の @fontsource/<family> パッケージ)から取得します。Web フォントサービスにしか存在しないフォントをダウンロードするにはユーザーの承認が必要です。その後、サブセット化します。

"$PVS_HOME/bin/pvs-py" "$K/subset_fonts.py" <product_dir> <font files...> \
  [--text-file videos/*/audio/lines.tsv] [--license OFL-1.1] [--source <citation>]

このスクリプトは kit/fonts/<family>-<weight>.woff2 を書き込み、kit/fonts/fonts.css を再構築します(font-display: block により、レンダリング時にフォールバックが先に表示されることはありません)。フォントの隣やそのパッケージにあるライセンステキストをコピーし(OFL ではテキストをフォントと一緒に配布する必要があります)、ソース、ライセンス、ライセンスファイルを kit/fonts/fonts.md に記録します。「unknown」ライセンスまたは「missing」ライセンスファイルのフォントは準備完了と見なされません。見つけるか質問してください。product.yaml の brand.font を設定します。合字で動作するアイコンフォントの場合は、--all-features と合字名を --text として渡し、各名前がグリフとしてレンダリングされること(文字としてではなく)を確認します。

3. アイコン

ui-spec-from-code のアイコン抽出(または仕様書)からアイコンのリストを取得し、パッケージごとにグループ化します。製品自身のパッケージからコピーします。

"$PVS_HOME/bin/pvs-py" "$K/collect_icons.py" <product_dir> --package <dir with svg files> \
  --names calendar,check,plus [--variant outline/24] [--prefix bx-] [--clean]

各 SVG を kit/icons/<set>-<name>.svg にコピーし、kit/icons/icons.md に行を追加します(ファイル、名前、セット、ソース引用、ライセンス)。存在しない名前や曖昧な名前があると、類似アイコンを選ぶのではなく失敗します。これは、ほぼ一致するアイコンが原因でレビュアーが最初のカット全体を却下したことがあるからです。アイコンフォントとしてのみ存在するアイコンの場合:フォントをサブセット化し(セクション2)、ライブラリ自身の CSS からコードポイントを取得します。未知の名前があるとビルドは失敗しなければなりません。

4. ロゴ

リポジトリのアセット(またはユーザーが提供するブランドパッケージ)からのみ取得します。決して再描画、トレース、またはウェブサイトから取得してはいけません。候補をリストし、確認した上で、三つのバリアントをコピーします。

"$PVS_HOME/bin/pvs-py" "$K/collect_logos.py" <product_dir>            # sources/ 内の候補
"$PVS_HOME/bin/pvs-py" "$K/collect_logos.py" <product_dir> --light frontend/assets/logo.svg \
  --dark frontend/assets/logo-white.svg --tile frontend/public/icon-512.png [--root <brand folder>]

これは kit/logos/logo-light.*(明るい背景用)、logo-dark.*(暗い背景用)、app-tile.*(正方形アイコン)を書き込みます。製品に SVG がある場合は SVG で出力し、各々に引用行を kit/logos/logos.md に追加します。URL は拒否されます。その後、product.yaml の brand.logo_light、brand.logo_dark、brand.app_tile を、出力されたパスに設定します。すべての動画で背景に応じてバリアントを選択します。明るいマークを白いページに配置すると見えなくなります。これは実際のプロダクションで発生しました。

5. キャスト

デモデータは最初のフレームから架空のものであり、すべての動画で同一です。references/cast-and-names.md を読み、予約された番号範囲とドメインを確認します。一つのキャスト案を一つのクローズドクエスチョンとして提案し、あなたの提案を推奨デフォルトとします。

すべての Acme Tasks 動画のデモキャスト(推奨:そのまま使用): Northwind Bakery、Portland OR(northwind.example);オーナー Maya Lindqvist、 [email protected];顧客 Omar Haddad、+1 503 555 0172。これを使用しますか、それとも名前を変更しますか?

フルネーム、一人につき一つの名字、永続的に維持。電話番号は 555-0100 から 555-0199 の範囲。メールとサイトは予約済みドメイン上に。レビュアーは名前の好みで拒否権を行使できます(元のプロダクションでは無難な名前が却下されました)。そのため、アニメーション化される前に質問してください。レビュアーが回答しない場合は、提案を凍結すると言って凍結します。沈黙によって一人の人間に二つのバージョンが存在してはなりません。product.yaml の cast: に書き込み、チェックします。

"$PVS_HOME/bin/pvs-py" "$K/check_cast.py" <product_dir>

これは、名字の欠落、一つの名前に二つの名字、555 以外または架空でない電話番号、実際のドメインのように見えるメールやウェブサイトがある場合に失敗します。

6. 名前、発音、禁止用語

ユーザーに質問し、その後 product.yaml に書き込みます。

  • names: 正規名から、絶対に表示されてはならないレガシー文字列(ライブ UI やコードにまだ表示される可能性のある古い製品名)へのマッピング。すべての動画は、実際の UI が遅れている場合でも正規名を使用し、レンダリング前に grep でレガシー名を検出します。
  • pronounce: ブランド単語から、音声エンジンが正しく発音する綴りへのマッピング(元のプロダクションでは、造語の製品名が別の単語として読まれ、耳で発見されました)。
  • banned_terms: 競合他社、画面に表示しないサードパーティベンダー、実際の顧客、内部コード名。
  • never_say と positioning: 一行のアイデンティティと、それが決して取ってはいけない言い回し。

7. 読み取り専用ツール

kit/RULES.md のセクション10「読み取り専用ツール」(テンプレートではプレースホルダーが同梱されています)を、エージェントが呼び出すことができる製品の API または MCP ツール(ドキュメント、カタログ、テンプレート)で埋め、それ以外はすべて禁止と明記します。書き込みアクセス権を持つ接続は、このルールによって読み取り専用のままになります。読み取り専用にスコープされた認証情報を推奨します。元のプロダクションでは、読み取り専用が指示によってのみ強制されていたためです。

8. レポート

キットのインベントリ(トークンの数とフラグ、ライセンス付きフォント、セット別アイコン、ロゴ、キャスト)、まだ承認が必要なもの、変更した product.yaml のキーをユーザーに表示します。

Individual skills in this repo

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

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.

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.

関連スキル