positron-demo-video
Use when the user wants to create a demo video, record a feature walkthrough, or generate a video for a PR description. Triggers on "record a demo", "make a…
от posit-dev★ 4 361 звезда на GitHub
Установить positron-demo-video в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Positron Demo Video Generator
Creates polished demo videos of Positron features through a collaborative script-then-record workflow.
When to Use
- User asks to create a demo video for a PR
- User wants to record a feature walkthrough
- User says "generate a video", "record a demo", "make a video for the PR"
Prerequisites
- Positron must be built (
npm run build-psto check) - ffmpeg installed -- required, not optional. macOS:
brew install ffmpeg. Windows:scoop install ffmpegorwinget install Gyan.FFmpeg. It must be onPATHas a real executable; the scripts spawn it without a shell. - Playwright's own ffmpeg build, which it uses for the capture itself.
demo:recordinstalls it when missing (npx playwright install ffmpeg). Without it the app fixture hangs for its full timeout anddemo-videos/is never created, with no error pointing at ffmpeg.
Windows
The recording scripts work the same from Git Bash or PowerShell. Two things differ:
- Recording from an agent session needs
--detached. Ark's libzmq aborts when Positron is a descendant of a Claude Code process, so an R console never starts (Python is unaffected).npm run demo:record -- <name> --detachedre-runs the recording through WMI, outside that process tree, and streams the output back, so pass it for every recording an agent starts on Windows rather than working out whether the demo touches R. Ctrl+C stops the detached run. The child gets the caller's environment (passed in memory, never written to disk) minus the agent session's ownANTHROPIC_*,CLAUDE*andELECTRON_RUN_AS_NODEvariables, soBUILDand the other e2e knobs work as usual. - Write scratch frames for verification to a temp directory that exists in the shell you are
using.
/tmp/resolves only under Git Bash.
Workflow
This is a collaborative process. Do NOT jump straight to writing code.
Research -> Propose Script -> Iterate -> Record -> Review -> Iterate
Phase 1: Research
Understand what to demo by examining the current branch:
- Read recent commits (
git log --oneline main..HEAD) - Look at changed files to understand the feature
- Check for existing e2e tests that exercise the feature (may provide page object methods)
- If adapting an existing test, read it fully
Phase 2: Propose a Script
Present a plain-text "script" to the user -- a numbered list of what the video will show, step by step. Include:
- What the viewer sees at each step
- Overlay text for each section (the narration captions)
- Estimated duration per section
Example format:
Demo Script: Notebook Cell Drag to Reorder
1. [2s] Notebook with 5 cells visible, clean layout
Overlay: "Drag and drop: grab the handle to reorder cells"
2. [3s] Hover over Cell 0 to reveal drag handle, then drag it to position 2
Overlay: (same, persists)
3. [4s] Select Cell 4, move it up 3 times with Alt+ArrowUp
Overlay: "Keyboard: Alt+Arrow to move cells up/down"
4. [4s] Multi-select cells 1-3 with Shift+Arrow, drag to end
Overlay: "Multi-select: Shift+Arrow to select, then drag together"
5. [3s] Undo 3 times to restore original order
Overlay: "Undo: Ctrl/Cmd+Z restores previous order"
Total: ~16s of action (+ ~12s trimmed initialization)
Ask the user for feedback. Common adjustments:
- Reorder steps for better narrative flow
- Add/remove steps
- Change overlay wording
- Adjust which features to highlight
Propose only steps the script needs. Every step is a way the recording can fail, and each re-record costs a minute or two of app startup. Steps that open a panel to show supporting evidence are the usual culprit -- an on-disk log assertion plus a caption gets the same point across without driving any UI. If you do include one, say up front that it is the risky part, and cut it rather than re-recording around it.
Phase 3: Iterate on Script
Revise the script based on feedback. Keep presenting the updated script until the user approves. Only then move to implementation.
Phase 4: Record
Once the script is approved:
- Write the demo test -- translate the script into a Playwright test at
test/e2e/demos/<name>.demo.test.ts. This file is scratch, not a test to maintain: it exists to produce one video and is gitignored, so never offer to commit it and delete it once the user has the MP4.- Pass
extraSettings: { ...DEMO_SCREENCAST_SETTINGS }intest.use. Do not override thebeforeAppfixture -- that replaces the one writing the feature flags your demo needs. - Use
setupDemoLayout(app, page, { keepSidebar: true })when the feature lives in the sidebar. - Use
narrate()/showOverlay()for captions andpause()for pacing. - Use
humanClick()/humanDoubleClick()for any click the viewer should see. Screencast mode draws no indicator for synthesized mouse events; these draw their own. - Wrap polish-only steps in
bestEffort()so they c
- Pass
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/demo-patterns.md
FAQ
Что делает скилл positron-demo-video?
Use when the user wants to create a demo video, record a feature walkthrough, or generate a video for a PR description. Triggers on "record a demo", "make a video", "demo video for PR", or "generate a walkthrough".
Как установить скилл positron-demo-video?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл positron-demo-video запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
AnthropicKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
automate-this
GitHubAnalyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
from-the-other-side-vega
GitHubPatterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
plantuml-ascii
GitHubGenerate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…