Communitygithub.com

josueh04/product-video-skills

プロダクトのソースコード(読み取り専用エクスポート)を固定し、固定したコミットが本番環境で稼働していることを確認した上で、ビデオブリーフの各画面をルート、コンポーネント、i18n文字列、状態にマッピングし、そのビデオのSOURCES.mdに書き込みます。

product-video-skills とは?

このスキルは、ビデオ制作において、コードベース内の画面の位置を正確に特定し、ソースコードの正確性を保証するための「ソースレコン」プロセスを自動化します。開発者は、ビデオが参照するコードが、本番環境で実際に実行されているコードと一致していることを確認できません。このスキルは、まずソースコードを指定されたコミットで固定(ピン)し、次にそのコミットが本番環境にあることを証明し、最後にビデオの各画面をルート、コンポーネント、i18n文字列、状態にマッピングしてSOURCES.mdに書き出します。Claude CodeやCursorなどのAIエージェントプラットフォームで動作し、ソースコードを読み取り専用で操作するため、ユーザーの作業ツリーを変更しません。変更があった場合の影響分析(changed_since.py)や、コードがない場合の代替参照(録画、ドキュメント)の管理も行います。

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

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

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

ドキュメント

ソースレコン

ビデオのすべてのピクセルとすべての文は、後でコードと照合されます。そのため、コードは正しいコードでなければなりません。 このスキルが生まれた本番環境では、メインのフロントエンドチェックアウトが本番環境より約2ヶ月遅れており、現在のコードは誰も3日間見ていない別のワークツリーにありました。誰も気づかないうちに、古いコードから1つのビデオの3つのバージョンが再構築されました。このスキルは、そのようなことが二度と起こらないようにするために存在します。まずソースを固定し、それらが本番環境であることを証明し、次に画面をファイルにマッピングします。

読み取り専用で作業します。コードを読み取ります。ユーザーのリポジトリで編集、チェックアウト、フェッチ、またはワークツリーの作成は決して行いません。ユーザーの作業ツリーには、コミットされていない作業が含まれている可能性があり、チェックアウトやフェッチは、ユーザーが依頼していない状態を変更します。

1. ソースを固定する

PVS_HOME="$(cd "$(cd "${CLAUDE_SKILL_DIR}" && pwd -P)/../.." && pwd)"
"$PVS_HOME/bin/pvs-py" "$PVS_HOME/skills/source-recon/scripts/fetch_sources.py" <product_dir>

product.yaml から sources: を読み取り、ロールごとに次の処理を行います。

  • url:: ブランチを sources/.git-cache/<role>.git にシャロークローンし、エクスポートします。
  • path: (git リポジトリへのパス): <branch> と origin/<branch> の新しい方の git archive を実行します。ローカルブランチが origin より遅れているか分岐している場合、origin 参照が1週間以上前にフェッチされた場合、同じリポジトリの別のワークツリーがエクスポートより新しい場合に警告します。
  • path: (git リポジトリではない): ファイルのハッシュによってコピーされ固定されます("pinned": false のため、それへの引用は警告なしに古くなる可能性があります。git ソースを推奨します)。

エクスポートは sources/<role>/ に読み取り専用で保存され、sources.lock にコミットが記録されます。ディスク上にない(プロダクトリポジトリの新しいクローン)ロックされたロールは、ロックされたコミットで復元されるため、引用は同じ行を指し続けます。表示されるすべての note: 行を読み、先に進む前にそれに従って行動してください。それぞれが、エクスポートが本番環境ではない可能性を示しています。

下流のすべての引用は <role>/<path>:<line>@<short sha> を使用します。ここで、パスはリポジトリルートからの相対パス(sources/<role>/<path> が存在する)であり、sha はロックされたものです。

2. それが本番環境であることを証明する

ブランチ名は証明にはなりません。本番環境とは、デプロイパイプラインが最後にビルドしたものです。画面をマッピングする前に、強度順に、どのコミットがライブであるかを確立します。

  1. リリースレコード: リリースタグ、デプロイログ、デプロイリポジトリ内の "last deployed sha" ファイル。
  2. デプロイパイプライ構成: ビルド元のブランド、およびそのビルド引数(ビルドに組み込まれた環境変数はブランディングを変更したり機能を隠したりする可能性があります)。
  3. チームがデプロイされていると確認した最新のブランチ。git worktree list、ブランチの日付、merge-base と照合します。

正確なコマンドと落とし穴(古いリモート参照、フィーチャーフラグ、レンダリング内容を変更するビルド引数)については、references/freshness.md を参照してください。本番コミットを確認できない場合は、SOURCES.md の先頭にその旨を記述し(「production commit unconfirmed」)、ユーザーに推奨される回答を含むクローズドクエスチョンを1つ質問します。例:「Export origin/develop (newest, contains main) as production? Recommended: yes, it is what the deploy workflow builds.」

ユーザーが別のブランチを確認した場合は、product.yaml の branch: を変更し、fetch_sources.py <product_dir> --refresh --role <role> を実行します(ビデオが既にこのソースを引用している場合は、最初に changed_since.py(セクション6)を実行します)。

3. 各画面をマッピングする

ビデオの BRIEF.md(チャプター)と COVERAGE.md から画面と状態を取得します。画面ごと、またはコンポーネントを共有する画面の小さなグループごとに、並行して読み取り専用の Explore サブエージェントを1つ起動します。各サブエージェントには、references/recon-prompt.md のプロンプトを指定し、sources/<role>/(固定されたエクスポート。ユーザーのチェックアウトは不可)をポイントします。これにより、返されるすべての行番号がロックと一致します。

各サブエージェントは、引用付きで、次の情報を返します。ルート、ページおよび子コンポーネント(テンプレート、ロジック、スタイルファイル)、ビデオの言語における i18n キーとその正確な文字列、何をレンダリングするかを決定する状態(デフォルト、フラグ、フィーチャーゲート、空の状態、権限チェック)、使用されているアイコンセットとアセット、および未リリース、ゲート付き、または制限されているように見えるもの。

次に、コピーを自分で本番環境と照合します。各画面につき2~3の文字列を、手持ちの参照(録画、復元されたキャプチャ、ドキュメント)とスポットチェックします。異なる文字列がある場合は、エクスポートが本番環境でないか、画面がフラグの背後にあることを意味します。SOURCES.md を書き込む前に解決してください。

4. SOURCES.md を書き込む

ビデオごとに1つのファイル、videos/<video>/SOURCES.md にあります。

# Sources: <video>

Locked: frontend main@1a2b3c4 (2026-01-12), backend main@5d6e7f8 (2026-01-10)
Production: confirmed by <release tag v4.2.0 | deploy workflow builds main | team confirmation>

| screen | route | components | citation |
|---|---|---|---|
| Board, empty | /board | BoardPage > TaskList > EmptyState | frontend/src/pages/board/BoardPage.tsx:14@1a2b3c4 |

## Board, empty
- Strings: `board.empty.title` "Nothing planned yet" (frontend/src/i18n/en.json:88@1a2b3c4)
- State: renders when `tasks.length === 0` (frontend/src/pages/board/TaskList.tsx:41@1a2b3c4)
- Icons: lucide `calendar-plus` (frontend/src/pages/board/EmptyState.tsx:9@1a2b3c4)
- Flags or gates: none found
- Not found: <anything the brief needs that the code does not have>

## No-code references
<what exists for each screen without code, see section 5>

引用がない画面はビデオに含めません。「Not found」の下にリストし、ユーザーに伝えてください。画面をでっち上げることは、レビュー担当者が決して許さない唯一のミスです。なぜなら、存在しないプロダクトを示すことになるからです。

5. コード以外の参照をリストする

コードが表示できない画面(サードパーティUI、ランタイム出力、リポジトリにないバックエンド、またはフロントエンドコードがまったくない場合)については、利用可能なものを優先順位順にリストします。references/ 内の分析された画面録画、過去のセッションのトランスクリプトから復元可能なキャプチャ、本番環境と同様にビルドされたアプリのローカルインスタンス、公開ドキュメント、スクリーンショット。ここでは自分でキャプチャしないでください。それは ui-reference-capture の役割です。レビュー担当者の個人ブラウザに頼ることは絶対にしないでください。

6. コードが変更された場合

"$PVS_HOME/bin/pvs-py" "$PVS_HOME/skills/source-recon/scripts/changed_since.py" <product_dir> [--offline]

ロックされた各コミットと現在のブランチヘッドを比較し、変更されたファイルを引用しているすべてのビデオ(およびキットファイル)の SOURCES.md、TRUTH.md、スペック、video/src/ をリストし、正確な行が変更された引用をマークします。何も移動しません。--refresh の前に実行します。ロックとヘッドを比較し、リフレッシュするとそれらが等しくなるため、その後は変更内容のリストが失われます(スクリプトは代わりにヒントを出力します)。そのリストをユーザーに表示し、新しいコードが必要な場合は、fetch_sources.py --refresh を実行し、影響を受ける画面に対して ui-spec-from-code を、影響を受ける行に対して product-truth を再実行します。変更が引用されていないビデオはそのまま残されます。

ルールとその理由

  • エクスポートを読み、ロックを引用する。 異なるチェックアウトからの行番号は、次回のリフレッシュ後に暗黙的に間違ったコードを指します。
  • コード内で見つけた秘密を決して印刷しない。 フロントエンドにはキーやトークンが含まれていることがよくあります。ファイルと行のみを報告し、それをユーザーにとってのセキュリティ上の発見事項として扱います。
  • 未リリース、ゲート付き、または制限された機能も事実です。 SOURCES.md にマークします(gate: <flag>、restricted: <who sees it>)。product-truth が、ビデオでそれらを表示できるかどうかを決定します。通常はレビュー担当者の承認が必要です。
  • 実際のデータは含めない。 リポジトリ内のフィクスチャやシードファイルには、実際の顧客名が含まれている可能性があります。それらの構造を引用し、値は引用しないでください。

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

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.

関連スキル