Communitygithub.com

josueh04/product-video-skills

하이퍼프레임(HyperFrames)의 병렬 렌더 워커에서 요소가 드롭되거나 깜빡이거나 플리커링하는 것을 방지하는 애니메이션 규칙과, 렌더링 전에 템플릿의 위반 사항을 찾는 정적 린트(lint_motion.py)입니다. GSAP 트윈, 타임라인, 커서, 카메라 이동, 타이핑, 스크롤 또는 팝업을 작성하거나 편집할 때, 렌더 결과에 플리커, 스터터, 특정 프레임에서 사라지는 요소, 제목 깜빡임, scan_render.py나 qa.py의 'WORKER PATTERN' 오류가 있을 때, 그리고 미리보기는 정상인데 MP4가 깨질 때 사용하세요. 또한 다른 사람의 타임라인 코드를 렌더링 전에 검토할 때도 사용하세요.

product-video-skills란 무엇인가요?

이 스킬은 HyperFrames 비디오 제작 환경에서 발생하는 특수한 버그를 방지하기 위한 애니메이션 규칙과 정적 분석 도구를 제공합니다. HyperFrames는 타임라인을 순차적으로 재생하는 대신, 각 프레임의 시간으로 'seek(탐색)'하여 페이지를 캡처합니다. 0.8.x 버전부터는 세 개의 워커가 병렬로 각각 세 번째 프레임씩 처리하며, 각 seek는 1ms 뒤로 갔다가 앞으로 이동하여 안정화합니다. 따라서 모든 프레임은 시간의 순수 함수여야 하며, 이전 렌더링 결과나 시계, 확률에 의존하는 요소는 워커마다 다르게 렌더링되어 매 세 번째 프레임마다 요소가 사라지는 버그가 발생합니다. 이 스킬은 GSAP 트윈과 타임라인을 작성하는 Claude Code, Cursor, Codex 등 AI 코딩 어시스턴트와 함께 사용하도록 설계되었습니다. 'lint_motion.py' 스크립트는 템플릿 파일(index.html, src/*.tpl, JS 파일)을 정적으로 분석하여 12가지 규칙 위반을 찾아내고, 수정 방법을 제시합니다. 또한 의심스러운 트윈을 렌더링 전에 스냅샷으로 재현하는 방법을 제공하여, 워커 간 상태 차이로 인한 픽셀 단위 버그를 사전에 발견할 수 있습니다.

지원 대상✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/josueh04/product-video-skills/tree/HEAD/skills/seek-safe-motion

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Seek-safe 모션

HyperFrames는 타임라인을 재생하지 않습니다. seek(탐색)합니다: 모든 프레임에 대해 렌더러가 타임라인을 해당 프레임의 시간으로 설정하고 페이지를 캡처합니다. HyperFrames 0.8.x에서는 세 개의 워커가 병렬로 이 작업을 수행하며, 각 워커는 세 번째 프레임을 처리하고, 각 seek 단계는 1ms 뒤로 갔다가 앞으로 이동하여 안정화합니다. 따라서 모든 프레임은 시간의 순수 함수여야 합니다. 이전에 렌더링된 내용, 시계 또는 확률에 의존하는 것은 각 워커에서 다르게 렌더링되며, 그 결과 매 세 번째 프레임마다 요소가 누락됩니다.

이 버그는 Studio 미리보기(순서대로 재생)와 단일 스냅샷에서는 보이지 않습니다. 이러한 스킬이 만들어진 프로덕션에서는 검토자에게 도달한 유일한 결함이었습니다: 처음 7초 동안 "말더듬과 깜빡임"이 있는 오프닝 타이틀.

먼저 린트하기

PVS_HOME="$(cd "$(cd "${CLAUDE_SKILL_DIR}" && pwd -P)/../.." && pwd)"
"$PVS_HOME/bin/pvs-py" "$PVS_HOME/skills/seek-safe-motion/scripts/lint_motion.py" <video_dir>/video

index.html, src/*.tpl 및 그 옆에 있는 *.js(인라인 스크립트만)를 읽고, file:line: severity RULE: why와 수정 방법을 출력하며, 오류가 있으면 exit 1을 반환합니다(--strict는 경고도 실패로 처리하고, --json은 도구용). 타임라인을 편집할 때마다 그리고 모든 렌더링 전에 실행하세요. 이것은 정적 분석입니다: 런타임에 계산되는 변수는 볼 수 없으며("확인 불가"로 간주), 시간적으로 겹치는 두 개의 트윈도 볼 수 없습니다. 그런 것들은 아래의 재현 방법을 사용하여 직접 확인해야 합니다. qa.py(render-qa)도 이것을 실행하며 오류가 있으면 보고서를 실패 처리합니다.

규칙 및 존재 이유

  1. fromTo의 fromVars에 있는 모든 키는 toVars에도 나타나야 함 (SS001, 오류). 워커의 프레임이 정확히 트윈 시작점에 도달하면, 1ms 뒤로 가는 단계가 트윈을 시작 전으로 되돌리고, fromVars에만 있는 키는 다시 기록되지 않습니다. 타이틀 트윈은 fromTo(sel, {yPercent: 110, opacity: 1}, {yPercent: 0})였습니다: opacity: 1은 fromVars에만 있었기 때문에, 한 워커는 트윈이 끝날 때까지 타이틀을 opacity 0으로 유지했습니다. {yPercent: 110, opacity: 1}를 {yPercent: 0, opacity: 1}로 쓰거나, tl.set() 다음에 tl.to()를 사용하세요. to() 내부의 startAt도 마찬가지입니다 (SS002).
  2. 시간 0 이후의 모든 fromTo에는 immediateRender: false (SS003, 경고). 그렇지 않으면 트윈이 타임라인이 빌드될 때 시작 값을 기록하여 이전 트윈이 설정한 값을 덮어쓰고, 타임라인 중간으로 seek하면 잘못된 상태에서 시작합니다.
  3. from보다 fromTo를 선호 (SS004, 경고). from()은 빌드 시점의 요소 상태에서 끝납니다; 이전 트윈이 요소를 건드리면 워커 간에 상태가 달라집니다.
  4. display 또는 visibility를 절대 애니메이션하지 않음 (SS005, 오류). 보간(interpolate)할 수 없으며, 트윈의 임의 지점에서 전환됩니다. 명시적 시간에 0 지속 시간 tl.set()으로 변경하고, opacity 또는 autoAlpha로 페이드하세요.
  5. 시계, 확률, 타이머 금지 (SS006, 오류): 보이는 것에 Date, performance.now(), Math.random(), setTimeout, setInterval 또는 requestAnimationFrame을 사용할 수 없습니다. 타이핑 지터 또는 파형은 시드 생성기를 사용하고, 화면에 표시되는 통화 타이머는 타임라인의 onUpdate 내에서 tl.time()으로 계산합니다.
  6. 일시 중지된 하나의 타임라인, 등록, 절대 재생 금지 (SS007, SS011, SS012). gsap.timeline({ paused: true })로 생성하고, 완전히 빌드한 후(텍스트 측정값에 따라 위치가 결정될 때는 document.fonts.ready 내부에서)에만 window.__timelines["<composition id>"] = tl을 할당합니다. 빌드가 완료되기 전에 빈 타임라인을 등록하면 빈 비디오가 렌더링됩니다. tl.play()는 렌더러의 seek과 충돌합니다.
  7. **스크롤은 시작과 끝이 명시적인 fromTo**여야 모든 워커가 동일한 오프셋을 계산하고, 실제 콘텐츠에 고정되어 선이나 아이콘 중단이 가장자리에서 잘리지 않습니다.
  8. 같은 요소의 같은 속성에 두 개의 트윈을 동시에 적용하지 않음. 다음 이동 안에 포함된 커서 재설정은 seek 후 포인터를 잘못된 위치에 남겨둡니다. 린트 대상이 아닙니다: 빌드의 타이밍 테이블을 확인하세요.
  9. 변환(transform) 애니메이션 사용, 레이아웃 애니메이션 지양 (SS009, 경고): left, top, width, margin 대신 x, y, scale, clip-path를 사용하세요. 레이아웃 트윈은 모든 프레임에서 리플로우를 발생시키며 hyperframes check에서 gsap_non_transform_motion으로 플래그 지정됩니다. 실제 제품 컨트롤(확장되는 사이드바)의 짧은 너비 변경은 제품을 재현할 때 허용될 수 있습니다.
  10. .clip 요소를 절대 트윈하지 않음 (SS010, 오류). HyperFrames는 data-start 및 data-duration을 통해 클립의 가시성을 관리합니다. 내부의 래퍼를 애니메이션하세요.
  11. 유한 반복 (SS008, 경고). repeat: -1은 유한한 루트 data-duration 아래에서만 허용됩니다. Math.max(0, Math.floor(span / period) - 1)로 횟수를 계산하세요.
  12. 모든 초기 상태를 시간 0에 명시적으로 설정. gsap.set(sel, vars)를 수행하는 도우미는 tl.set(sel, vars, 0)도 수행해야 하므로, 0으로 seek하면 워커가 렌더링한 마지막 상태를 유지하는 대신 첫 번째 프레임을 복원합니다.

의심스러운 버그를 렌더링 전에 재현하기

린트는 패턴을 찾습니다. 스냅샷은 픽셀을 증명합니다. t0에서 시작하는 의심스러운 트윈의 경우:

npx --yes hyperframes@<pinned> snapshot . --at <t0 + 0.3> --no-end --describe false -o a
npx --yes hyperframes@<pinned> snapshot . --at <t0>,<t0 + 0.3> --no-end --describe false -o b

t0 + 0.3의 프레임은 a와 b에서 동일해야 합니다. 다르면 트윈 시작을 통해 seek하는 것이 상태를 변경한 것입니다. 하나의 워커를 정확히 재현하려면 프레임 0, 3, 6, ...을 순서대로 트윈 바로 다음까지 스냅샷하세요. 하나의 트윈이 남을 때까지 시간 범위를 절반으로 나누어 이분법을 수행하세요. 렌더링 후 scan_render.py(render-qa)는 동일한 버그를 WORKER PATTERN 실행으로 보고합니다: 모두 하나의 프레임 인덱스 mod 3을 공유하는 이상치(outlier) 프레임.

참고 자료

  • references/patterns.md: 각 규칙에 대한 전후 코드, 템플릿을 안전하게 유지하는 도우미(lineIn, init, 타이핑, 스크롤, 커서 클릭) 및 린트가 볼 수 있는 것과 없는 것. 새 도우미를 작성하거나 린트 결과를 수정할 때 읽으세요.

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

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.

관련 스킬