Command Palette

Search for a command to run...

Назад к скиллам
скилл № 18083

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от 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-ps to check)
  • ffmpeg installed -- required, not optional. macOS: brew install ffmpeg. Windows: scoop install ffmpeg or winget install Gyan.FFmpeg. It must be on PATH as a real executable; the scripts spawn it without a shell.
  • Playwright's own ffmpeg build, which it uses for the capture itself. demo:record installs it when missing (npx playwright install ffmpeg). Without it the app fixture hangs for its full timeout and demo-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> --detached re-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 own ANTHROPIC_*, CLAUDE* and ELECTRON_RUN_AS_NODE variables, so BUILD and 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:

  1. Read recent commits (git log --oneline main..HEAD)
  2. Look at changed files to understand the feature
  3. Check for existing e2e tests that exercise the feature (may provide page object methods)
  4. 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:

  1. 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 } in test.use. Do not override the beforeApp fixture -- 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 and pause() 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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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), без исполняемых скриптов.

Похожие скиллы

Сравнить positron-demo-video с