diff --git a/.github/scripts/build-plugin-mirror.mjs b/.github/scripts/build-plugin-mirror.mjs index ab1cad46e..ee7550070 100644 --- a/.github/scripts/build-plugin-mirror.mjs +++ b/.github/scripts/build-plugin-mirror.mjs @@ -61,6 +61,10 @@ const DANGLING = [ /openscreenSetup/, /\/reload-plugins/, /\b(the|plugin.s) launcher\b/, + // Pointing at a local server, or at the full plugin that carries one, counts as adding it. + /\bopenscreen(\.exe)?\s+mcp\b/i, + /\bfull\s+(OpenScreen\s+)?plugin\b/i, + /\bconnect\s+OpenScreen\b/i, ]; function walk(dir, root = dir) { diff --git a/plugin/README.md b/plugin/README.md index 5d0fed1b5..39b0772f6 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -4,7 +4,7 @@ This plugin turns one sentence into a finished demo video of an app or a feature OpenScreen is a free, open-source (MIT) screen recorder and video editor for Windows, macOS and Linux. The plugin carries several skills and OpenScreen's MCP server, so the recording and editing tools are there as soon as the plugin is enabled. The tools themselves come from the desktop app's own executable, started with `mcp`. ## The skills @@ -24,7 +24,7 @@ This edition of the plugin carries the skills. The recording and editing tools c - **Explains instead of failing when the app is missing.** If OpenScreen is not installed, is older than 2.1.0 or cannot start, the script serves one tool, `openscreenSetup`, that tells Claude what it checked and how to set OpenScreen up. - **Installs OpenScreen, only after you agree.** If the app is missing, a skill offers to download the latest installer from [the project's GitHub releases](https://github.com/getopenscreen/openscreen/releases/latest), or the Microsoft Store on Windows, and install it. - **Records the window you choose.** The recording and the project stay on your machine. The exported video leaves it only when you share it, as below. @@ -47,7 +47,7 @@ The server needs Node.js on the PATH. Without it, or in an agent without plugin Documentation: [Letting an agent make the whole video](https://getopenscreen.com/docs/ai-editing/#letting-an-agent-make-the-whole-video). diff --git a/plugin/skills/openscreen-capture/SKILL.md b/plugin/skills/openscreen-capture/SKILL.md index 81ee51d05..02485959a 100644 --- a/plugin/skills/openscreen-capture/SKILL.md +++ b/plugin/skills/openscreen-capture/SKILL.md @@ -7,13 +7,17 @@ description: Gets a clean, repeatable take for an OpenScreen video. Covers stagi A take is cheaper to redo than to repair. Aim for one that needs no cut: the first frame already shows the result, every action happens once, and every result stays on screen about 1 s before the next action. + ## Choose how to capture | Situation | Capture | Cursor and zooms | |---|---|---| | A desktop app, a native window, anything a browser cannot show | `startRecording`, real mouse | Recorded with the take | | A web app the user wants filmed as they use it | `startRecording`, real mouse | Recorded with the take | -| A web app, a repeatable take, nothing on the user's screen | Headless script (below) | `setPointerTrack` from the script's log | +| A web app, a repeatable take, nothing on the user's screen | Headless script (below) | `setPointerTrack` from the script's log | | A web app shown in a real window, driven by Playwright or CDP | `startRecording`, script drives the page | `setPointerTrack` from the script's log | | A video file that already exists | `createProject` with its `videoPath` | `setPointerTrack` if you know the clicks | @@ -87,7 +91,7 @@ Never write a `.cursor.json` file yourself: `setPointerTrack` writes it, and a c ## Check the take before editing diff --git a/plugin/skills/openscreen-demo/SKILL.md b/plugin/skills/openscreen-demo/SKILL.md index a114358d3..011f330f1 100644 --- a/plugin/skills/openscreen-demo/SKILL.md +++ b/plugin/skills/openscreen-demo/SKILL.md @@ -14,7 +14,7 @@ This skill carries the whole job on its own. Where this plugin's other skills ar ## 1. Set up OpenScreen -You need the tools `startRecording`, `stopRecording`, `exportVideo` and `getFrames`. Both of OpenScreen's MCP servers have them: the one the app serves (*AI settings* → *MCP server*), and `openscreen mcp`. With the OpenScreen plugin installed in Claude Code, `openscreen mcp` is already connected: the plugin starts it through a small launcher (Node) that finds the installed app. If you have the tools, go to step 2. +You need the tools `startRecording`, `stopRecording`, `exportVideo` and `getFrames`. Both of OpenScreen's MCP servers have them: the one the app serves (*AI settings* → *MCP server*), and `openscreen mcp`. With the OpenScreen plugin installed in Claude Code, `openscreen mcp` is already connected: the plugin starts it through a small launcher (Node) that finds the installed app. If you have the tools, go to step 2. If you have only the tool `openscreenSetup`, the plugin's launcher is running but did not find a usable app: call it, and it says why and which locations it checked. Otherwise the tools are missing for one of these reasons, so do only what is missing: @@ -47,7 +47,7 @@ Check every location in the table before you call OpenScreen missing: the Store - **Cursor and others:** a stdio server with the executable as `command` and `["mcp"]` as `args`. **Permissions.** @@ -56,7 +56,7 @@ This edition of the plugin carries the skills only. If you have the tools, go to **Hand over to the next session.** Write the user's request, and anything already decided, to `openscreen-demo-plan.md` in the working directory. Then ask the user to start a new session and say *continue the OpenScreen demo*. In that session, read the file and carry on from step 2. -The tools are missing right after the plugin, the app or the server is added: an agent loads its MCP servers when a session starts, or in Claude Code on `/reload-plugins`. Say so in plain words; when a reload is not possible, hand over as above, with the storyboard in the file if you have made one. Never stand in for the missing tools by driving OpenScreen's window with computer use or a mouse tool: it takes over the user's mouse and screen while they may be working. +The tools are missing right after the plugin, the app or the server is added: an agent loads its MCP servers when a session starts, or in Claude Code on `/reload-plugins`. Say so in plain words; when a reload is not possible, hand over as above, with the storyboard in the file if you have made one. Never stand in for the missing tools by driving OpenScreen's window with computer use or a mouse tool: it takes over the user's mouse and screen while they may be working. ## 2. Plan before recording @@ -78,6 +78,10 @@ Write a storyboard as a short table and show it to the user, then carry on unles ## 3. Set the stage + + - Start the app and open it on the starting state of the first beat. - Give it one clean window of about 1600×1000. For a web app, open it in an app window without browser chrome: `chrome --app=http://localhost:3000 --window-size=1600,1000 --user-data-dir=`. Its title is the page's ``. - Call `listSources` and pick a unique part of the window's title. @@ -95,16 +99,13 @@ For staging, choreography and a take recorded with no window at all, use the `op - **Real mouse** (computer-use, or any tool that moves the actual pointer): OpenScreen records the pointer, draws a clean cursor and already zooms on the clicks. If your mouse tool cannot click in the app's window (some only read browsers, for one), drive it from a script instead. - **A script** (Playwright, CDP): the screen pointer never moves, so the take has no cursor and no zoom. In the script, log every action as it runs: `at` is `Date.now()`, `x` and `y` are the action's position as fractions of the window, `click` is true for a click. Hand the log to `setPointerTrack` after `stopRecording`; its description gives the formula from a page's coordinates. A script also gives the cleanest take: same timing on every run, no hesitation. -**The user records the take themselves** from the recording bar: connected to the server in the app, call `waitForRecording` while it records. It never starts or stops anything; it returns once the user has stopped and the editor has saved the take, with the same fields as `stopRecording`. Set `timeoutSec` (default 300, at most 3600) and your client's tool-call timeout longer than the take. A timeout only ends the wait: call it again while the take runs. `openscreen mcp` cannot see the recording bar. +**The user records the take themselves** from the recording bar: connected to the server in the app, call `waitForRecording` while it records. It never starts or stops anything; it returns once the user has stopped and the editor has saved the take, with the same fields as `stopRecording`. Set `timeoutSec` (default 300, at most 3600) and your client's tool-call timeout longer than the take. A timeout only ends the wait: call it again while the take runs. <!-- full-plugin -->`openscreen mcp` cannot see the recording bar.<!-- /full-plugin --> **A video you already have** needs no recording: `createProject` with its absolute `videoPath` lays it out as a project, and returns a `projectId` and a `checkpointId` as `stopRecording` does. Check it as a take in step 5, its `videoPath` included, then go on from step 6. <!-- full-plugin --> **A web app captured headless** (frame by frame, so no window opens on the desktop): the `openscreen-capture` skill ships a script that does it at twice the display scale and writes the pointer log. Then `createProject` with the video, and `setPointerTrack` with `recordingStartedAt: 0` and each `at` in milliseconds into the video. <!-- /full-plugin --> -<!-- directory-plugin -**A web app captured headless** (frame by frame, so no window opens on the desktop) needs the capture script of the full OpenScreen plugin, from https://github.com/getopenscreen/openscreen (see its `plugin/` folder). Without it, record the page in a real window as above. ---> ## 5. Check the take @@ -112,7 +113,7 @@ For staging, choreography and a take recorded with no window at all, use the `op ## 6. Edit -Use the document tools, always with the `projectId`. Read the project first with `getCurrentDocument`: its notes say which times are in the recording's seconds and which on the editor's ruler. Checkpoints live in the server's memory: in a new session, or a new `openscreen mcp` process, call `createCheckpoint` before editing a project that is not open in the editor. +Use the document tools, always with the `projectId`. Read the project first with `getCurrentDocument`: its notes say which times are in the recording's seconds and which on the editor's ruler. Checkpoints live in the server's memory: in a new session, or a new <!-- full-plugin -->`openscreen mcp` <!-- /full-plugin -->server process, call `createCheckpoint` before editing a project that is not open in the editor. **One clock.** Place every effect in ruler seconds, and look at the result with `getFrames` and the `projectId`, which takes the same seconds. Never read times off the exported file: a cut or a speed-up shifts its clock away from the ruler. diff --git a/plugin/skills/openscreen-effects/SKILL.md b/plugin/skills/openscreen-effects/SKILL.md index 7dc4c8984..9e8081cab 100644 --- a/plugin/skills/openscreen-effects/SKILL.md +++ b/plugin/skills/openscreen-effects/SKILL.md @@ -11,7 +11,7 @@ compositor runs it on every output pixel, in the preview and in the export alike user asked; reach for settings first (`setEditorSettings`, zooms, annotations). If a tool this skill names is not in your tool list, the installed OpenScreen is older than this -skill: <!-- full-plugin -->offer to update it (see the `openscreen-demo` skill, step 1)<!-- /full-plugin --><!-- directory-plugin ask the user to quit OpenScreen, install the latest one over it, as https://getopenscreen.com/docs/installation explains, then to start a new session (if no OpenScreen tool is listed at all, OpenScreen is not connected: say so, link https://getopenscreen.com/docs/ai-editing and stop) -->, or fall back to what exists, +skill: <!-- full-plugin -->offer to update it (see the `openscreen-demo` skill, step 1)<!-- /full-plugin --><!-- directory-plugin ask the user to quit OpenScreen, install the latest one over it, as https://getopenscreen.com/docs/installation explains, then to start a new session (if no OpenScreen tool is listed at all, OpenScreen's tools are not available in this session: say so, link https://getopenscreen.com/docs/ai-editing and stop) -->, or fall back to what exists, `getFrames` with `atSec` in place of `getContactSheet`, of `getBeforeAfter` and of `getFrames` `region`. diff --git a/plugin/skills/openscreen-motion/SKILL.md b/plugin/skills/openscreen-motion/SKILL.md index 40156fc46..f22f229ed 100644 --- a/plugin/skills/openscreen-motion/SKILL.md +++ b/plugin/skills/openscreen-motion/SKILL.md @@ -10,7 +10,7 @@ them time to read it, and get out of the way. Every rule below serves that. Appl place zooms, callouts and speed changes, and when you review an edit that looks busy or cheap. If a tool this skill names is not in your tool list, the installed OpenScreen is older than this -skill: <!-- full-plugin -->offer to update it (see the `openscreen-demo` skill, step 1)<!-- /full-plugin --><!-- directory-plugin ask the user to quit OpenScreen, install the latest one over it, as https://getopenscreen.com/docs/installation explains, then to start a new session (if no OpenScreen tool is listed at all, OpenScreen is not connected: say so, link https://getopenscreen.com/docs/ai-editing and stop) -->, or use `getFrames` with +skill: <!-- full-plugin -->offer to update it (see the `openscreen-demo` skill, step 1)<!-- /full-plugin --><!-- directory-plugin ask the user to quit OpenScreen, install the latest one over it, as https://getopenscreen.com/docs/installation explains, then to start a new session (if no OpenScreen tool is listed at all, OpenScreen's tools are not available in this session: say so, link https://getopenscreen.com/docs/ai-editing and stop) -->, or use `getFrames` with `atSec` where this skill says `getContactSheet`. ## 1. One focus per shot diff --git a/plugin/skills/openscreen-review/SKILL.md b/plugin/skills/openscreen-review/SKILL.md index e70ddfdc3..f5d9181dc 100644 --- a/plugin/skills/openscreen-review/SKILL.md +++ b/plugin/skills/openscreen-review/SKILL.md @@ -9,7 +9,7 @@ Run this on every film before it leaves the machine, and again after every fix. **Tools.** `getFrames` returns up to 12 frames per call; with `region` it returns only that part of the frame at the video's own resolution (up to 1280 px wide), and with `startSec` / `endSec` and `count` it spreads frames inside that window. `getContactSheet` returns one image of a grid of frames, each with its time printed on it, up to 36 per sheet, for the cost of one image. `getAudioReport` measures the sound as the export mixes it. `getBeforeAfter` pairs up to 6 moments as they were at a checkpoint and as they are now, and says where each pair differs: after a fix, it shows that the fix landed and that nothing else moved. With `projectId`, times are ruler seconds, the ones the document tools use. With `path`, they are the file's own seconds. -If `getContactSheet`, `getAudioReport` or `getBeforeAfter` is not in your tool list, or `getFrames` refuses `region`, `startSec` or `endSec`, the installed OpenScreen is older than this skill: <!-- full-plugin -->offer to update it (the `openscreen-demo` skill's setup)<!-- /full-plugin --><!-- directory-plugin ask the user to quit OpenScreen, install the latest one over it, as https://getopenscreen.com/docs/installation explains, then to start a new session (if no OpenScreen tool is listed at all, OpenScreen is not connected: say so, link https://getopenscreen.com/docs/ai-editing and stop) -->, or fall back to `getFrames` with `atSec` (up to 12 times per call, 0.1 s apart for a dense window). For the sound, the fallback is `exportAudio` then `ffmpeg -i <file> -af ebur128=peak=true -f null -`, and it needs both: `exportAudio` in your tool list (older installs lack it too) and ffmpeg installed. Without them the sound cannot be measured: say so in the report. +If `getContactSheet`, `getAudioReport` or `getBeforeAfter` is not in your tool list, or `getFrames` refuses `region`, `startSec` or `endSec`, the installed OpenScreen is older than this skill: <!-- full-plugin -->offer to update it (the `openscreen-demo` skill's setup)<!-- /full-plugin --><!-- directory-plugin ask the user to quit OpenScreen, install the latest one over it, as https://getopenscreen.com/docs/installation explains, then to start a new session (if no OpenScreen tool is listed at all, OpenScreen's tools are not available in this session: say so, link https://getopenscreen.com/docs/ai-editing and stop) -->, or fall back to `getFrames` with `atSec` (up to 12 times per call, 0.1 s apart for a dense window). For the sound, the fallback is `exportAudio` then `ffmpeg -i <file> -af ebur128=peak=true -f null -`, and it needs both: `exportAudio` in your tool list (older installs lack it too) and ffmpeg installed. Without them the sound cannot be measured: say so in the report. ## Before you look diff --git a/plugin/skills/openscreen-sound/SKILL.md b/plugin/skills/openscreen-sound/SKILL.md index d4f3c0f91..64c51c202 100644 --- a/plugin/skills/openscreen-sound/SKILL.md +++ b/plugin/skills/openscreen-sound/SKILL.md @@ -10,7 +10,7 @@ Decide what leads, place it, then measure the mix instead of trusting it: you ca preview, and a render you did not measure is a guess. If a tool this skill names is not in your tool list, the installed OpenScreen is older than this -skill: <!-- full-plugin -->offer to update it (see the `openscreen-demo` skill, step 1)<!-- /full-plugin --><!-- directory-plugin ask the user to quit OpenScreen, install the latest one over it, as https://getopenscreen.com/docs/installation explains, then to start a new session (if no OpenScreen tool is listed at all, OpenScreen is not connected: say so, link https://getopenscreen.com/docs/ai-editing and stop) -->, or measure as in +skill: <!-- full-plugin -->offer to update it (see the `openscreen-demo` skill, step 1)<!-- /full-plugin --><!-- directory-plugin ask the user to quit OpenScreen, install the latest one over it, as https://getopenscreen.com/docs/installation explains, then to start a new session (if no OpenScreen tool is listed at all, OpenScreen's tools are not available in this session: say so, link https://getopenscreen.com/docs/ai-editing and stop) -->, or measure as in "Without getAudioReport" below. ## 1. Keep it simple