Communitygithub.com

josueh04/product-video-skills

Interviewez l'utilisateur à propos d'un produit, puis créez products/<slug>/ avec son propre historique git, un fichier product.yaml rempli et des compétences liées, récupérez ses sources et construisez son kit. Exécutez-le uniquement lorsque l'utilisateur tape /product-new.

Qu'est-ce que product-video-skills ?

Cette compétence automatise la création d'un dossier produit structuré dans un environnement de travail (workbench), en guidant l'utilisateur à travers une interview approfondie pour collecter toutes les informations nécessaires (nom, positionnement, sources, marque, casting fictif, noms canoniques, termes interdits, réviseur). Elle génère ensuite le dossier products/<slug> avec son propre historique git, un fichier product.yaml complet, et lie les compétences requises. La compétence invoque ensuite deux sous-compétences : source-recon pour récupérer les codes sources dans un dossier sources/ verrouillé, et product-kit pour extraire les tokens CSS, polices, icônes, logos et le casting dans un kit. Elle est conçue pour fonctionner avec Claude Code et repose sur un script Python (pvs-py) pour la création sécurisée du dossier, avec des vérifications anti-écrasement et anti-fuite de credentials. L'objectif est d'éviter les re-rendus coûteux en capturant toutes les décisions dès le départ, comme cela a été appris lors de productions réelles.

Compatible avec✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/josueh04/product-video-skills/tree/HEAD/skills/product-new

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

/product-new

Créez un dossier produit dans le workbench : une courte interview, un script qui écrit le dossier, puis les deux compétences invoquées par modèle qui le remplissent (source-recon récupère le code, product-kit extrait les tokens, polices, icônes, logos, casting et noms).

Pourquoi une interview avant tout : dans la production d'où viennent ces compétences, le casting, les noms de produits et le positionnement arrivaient une révision à la fois, et chacun forçait un re-rendu. Chaque réponse collectée ici est un cycle de révision qui n'aura pas lieu plus tard.

Avant de commencer

Résolvez le workbench à partir du chemin réel de cette compétence (elle fonctionne depuis le workbench et depuis un dossier produit) :

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

Vérifiez le slug à partir des arguments : 2 à 40 lettres minuscules, chiffres ou tirets, commençant par une lettre. Si $PVS_HOME/products/<slug> existe déjà, arrêtez-vous et dites-le : ne jamais écraser un produit, il a son propre historique et probablement des briefs signés. Si l'utilisateur a passé --from examples/acme (ou un autre dossier), l'interview ne nécessite que ce qui en diffère.

Dites à l'utilisateur, une fois, avant de connecter un dépôt : Claude lit le code du produit, ce qui signifie qu'il est envoyé au modèle comme contexte. Ils doivent s'assurer que leur entreprise le permet.

1. Interview

Posez les questions par petits groupes (deux ou trois questions par message), dans la langue de l'utilisateur. Proposez une valeur par défaut pour tout ce que vous pouvez déduire, afin que l'utilisateur confirme principalement. La liste complète des questions avec la raison de chacune se trouve dans references/interview.md ; lisez-la avant de demander.

  1. Le produit : son nom, ce qu'il est en une phrase (le positionnement), à qui il s'adresse.
  2. Phrases à ne jamais dire : descriptions que l'équipe rejette, même si un document d'entreprise les utilise.
  3. Sources : pour chacune (frontend, backend, design, docs), une URL git ou un chemin local, la branche qui est en production, le répertoire de l'application et le framework (angular-primeng, react, vue, svelte, html, other). Demandez quelle branche est réellement déployée : un checkout obsolète a coûté du temps réel dans la production d'origine.
  4. Documentation : URLs, chemins de dépôt ou mcp:<nom> (lecture seule).
  5. Marque : uniquement si elle n'est pas dans le frontend (fichiers logo et polices). Sinon product-kit la trouve.
  6. Casting fictif : proposez une entreprise et deux ou trois personnes avec des noms complets, un téléphone 555 et un email sur un domaine example/.test. Offrez-le pour veto dans une question fermée avec votre proposition comme valeur par défaut. Les réviseurs réagissent fortement aux noms fades ou trop réels, et une personne dont le nom de famille change entre les vidéos est un bug qui est livré.
  7. Noms et prononciations : les noms canoniques, les chaînes héritées que l'interface utilisateur en direct peut encore afficher, et comment les mots de la marque sont prononcés.
  8. Termes interdits : concurrents, fournisseurs, clients réels, tout ce qui ne doit jamais être vu ou entendu.
  9. Réviseur : qui signe la matrice de couverture et la feuille de revendications de chaque vidéo.

Ne demandez jamais de jeton, de mot de passe ou de clé SSH, et ne proposez jamais d'en stocker un. Les sources sont récupérées avec l'accès git que la machine possède déjà. Si une URL contient des identifiants (https://user:token@...), demandez à l'utilisateur de les supprimer ; le script les refuse de toute façon.

2. Écrire le dossier

Écrivez les réponses dans un fichier temporaire formaté comme product.yaml (n'importe quel sous-ensemble ; voir references/answers.example.json), en dehors du dépôt, puis exécutez :

"$PVS_HOME/bin/pvs-py" "$PVS_HOME/skills/product-new/scripts/new_product.py" <slug> \
  --answers <scratch>/answers.json [--from examples/acme]

Le script copie _template/product puis le dossier --from par-dessus (ainsi un exemple qui manque un fichier, comme kit/RULES.md, reçoit quand même celui du template), fusionne les réponses dans product.yaml ligne par ligne (les commentaires du template sont la documentation de l'utilisateur, donc ils sont conservés), écrit CLAUDE.md et .gitignore quand le template n'en a pas, exécute scripts/link-skills.sh pour que cd products/<slug> && claude voie les mêmes compétences, et fait un premier commit git. Il refuse un slug existant, des identifiants dans une URL, et des emails ou téléphones de casting qui ne sont pas clairement fictifs. En cas d'échec, corrigez la réponse qu'il nomme et relancez-le ; ne créez pas le dossier manuellement.

S'il affiche "still to fill in product.yaml", ce sont des espaces réservés du template que l'interview n'a pas couverts. Posez des questions à leur sujet, ou dites à l'utilisateur lesquels restent.

3. Le remplir

Appelez ces compétences invoquées par modèle via l'outil Skill, dans cet ordre :

  1. source-recon, pour récupérer chaque source dans products/<slug>/sources/ et la verrouiller dans sources.lock. Si une récupération échoue pour cause d'accès, rapportez l'erreur git exacte et arrêtez-vous : l'utilisateur corrige l'accès sur sa machine, jamais en vous donnant un identifiant.
  2. product-kit, pour extraire kit/tokens.css, les polices, icônes, logos, et pour écrire le casting, les noms et les prononciations dans le kit et kit/RULES.md.

Les deux écrivent uniquement à l'intérieur du dossier produit. Ne modifiez jamais rien dans sources/.

4. Rapport

Un court tableau, puis la commande suivante :

ÉlémentValeur
Dossierproducts/<slug>/ (git : premier commit ou raison de l'absence)
Sourcesrôle, branche, commit depuis sources.lock
Kitce que product-kit a extrait, et ce qu'il n'a pas trouvé
Castingles noms figés, pour un dernier veto
Ouvertespaces réservés encore dans product.yaml, tout ce qui n'est pas vérifié

Ensuite : cd products/<slug> && claude, puis /video-new <video>.

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

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.

Skills associés