From 7c040c2b6551ef067f1326c80e7b55638ce256ca Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 12:53:54 +0000 Subject: [PATCH 1/3] fix(plugin): stop the directory edition from pointing at a local server The directory policy still refused the skills-only edition (9bd390e): its text told the user to connect OpenScreen's local MCP server, named `openscreen mcp`, and sent them to the full plugin, which carries one. An unverified organization's plugin may not do that. The directory edition now uses OpenScreen's tools only when the agent already has them, says so when it does not, and links the documentation. The build refuses those phrases from now on. The full plugin's text is unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019SAKipREuKRNW28N1gsAuR --- .github/scripts/build-plugin-mirror.mjs | 4 ++++ plugin/README.md | 6 +++--- plugin/skills/openscreen-capture/SKILL.md | 4 ++-- plugin/skills/openscreen-demo/SKILL.md | 12 ++++++------ plugin/skills/openscreen-effects/SKILL.md | 2 +- plugin/skills/openscreen-motion/SKILL.md | 2 +- plugin/skills/openscreen-review/SKILL.md | 2 +- plugin/skills/openscreen-sound/SKILL.md | 2 +- 8 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/scripts/build-plugin-mirror.mjs b/.github/scripts/build-plugin-mirror.mjs index ab1cad46e..e0d812d6d 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. + /`openscreen mcp`/, + /\bfull (OpenScreen )?plugin\b/, + /\bconnect OpenScreen\b/, ]; 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..fe3ae111b 100644 --- a/plugin/skills/openscreen-capture/SKILL.md +++ b/plugin/skills/openscreen-capture/SKILL.md @@ -13,7 +13,7 @@ A take is cheaper to redo than to repair. Aim for one that needs no cut: the fir |---|---|---| | 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 +87,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..2445b140d 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 @@ -95,7 +95,7 @@ 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. `openscreen mcp` cannot see the recording bar. **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. @@ -103,7 +103,7 @@ For staging, choreography and a take recorded with no window at all, use the `op **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. ## 5. Check the take @@ -112,7 +112,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 `openscreen mcp` 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: offer to update it (see the `openscreen-demo` skill, step 1), or fall back to what exists, +skill: offer to update it (see the `openscreen-demo` skill, step 1), 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: offer to update it (see the `openscreen-demo` skill, step 1), or use `getFrames` with +skill: offer to update it (see the `openscreen-demo` skill, step 1), 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: offer to update it (the `openscreen-demo` skill's setup), 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 -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: offer to update it (the `openscreen-demo` skill's setup), 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 -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: offer to update it (see the `openscreen-demo` skill, step 1), or measure as in +skill: offer to update it (see the `openscreen-demo` skill, step 1), or measure as in "Without getAudioReport" below. ## 1. Keep it simple From cbd51d8b0c5965edd032c32c87188af66688e739 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 12:59:59 +0000 Subject: [PATCH 2/3] fix(plugin): stop cleanly in the capture skill, ask before a real window In the directory edition, the capture skill now states what to do without OpenScreen's tools, the demo skill stops instead of handing over, and both ask before moving a headless take into a real window. The build's new checks match any case and the command without backticks. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019SAKipREuKRNW28N1gsAuR --- .github/scripts/build-plugin-mirror.mjs | 6 +++--- plugin/skills/openscreen-capture/SKILL.md | 6 +++++- plugin/skills/openscreen-demo/SKILL.md | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/scripts/build-plugin-mirror.mjs b/.github/scripts/build-plugin-mirror.mjs index e0d812d6d..7b7c6e1a6 100644 --- a/.github/scripts/build-plugin-mirror.mjs +++ b/.github/scripts/build-plugin-mirror.mjs @@ -62,9 +62,9 @@ const DANGLING = [ /\/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. - /`openscreen mcp`/, - /\bfull (OpenScreen )?plugin\b/, - /\bconnect OpenScreen\b/, + /\bopenscreen(\.exe)? mcp\b/i, + /\bfull (OpenScreen )?plugin\b/i, + /\bconnect OpenScreen\b/i, ]; function walk(dir, root = dir) { diff --git a/plugin/skills/openscreen-capture/SKILL.md b/plugin/skills/openscreen-capture/SKILL.md index fe3ae111b..02485959a 100644 --- a/plugin/skills/openscreen-capture/SKILL.md +++ b/plugin/skills/openscreen-capture/SKILL.md @@ -7,6 +7,10 @@ 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 | @@ -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 2445b140d..7af565dc2 100644 --- a/plugin/skills/openscreen-demo/SKILL.md +++ b/plugin/skills/openscreen-demo/SKILL.md @@ -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 @@ -103,7 +103,7 @@ For staging, choreography and a take recorded with no window at all, use the `op **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. ## 5. Check the take From 1b8efc5db1a8e611cc044df2b50699352eaf95e9 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 13:06:01 +0000 Subject: [PATCH 3/3] fix(plugin): ask about a real window before staging; match across whitespace Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019SAKipREuKRNW28N1gsAuR --- .github/scripts/build-plugin-mirror.mjs | 6 +++--- plugin/skills/openscreen-demo/SKILL.md | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/scripts/build-plugin-mirror.mjs b/.github/scripts/build-plugin-mirror.mjs index 7b7c6e1a6..ee7550070 100644 --- a/.github/scripts/build-plugin-mirror.mjs +++ b/.github/scripts/build-plugin-mirror.mjs @@ -62,9 +62,9 @@ const DANGLING = [ /\/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)? mcp\b/i, - /\bfull (OpenScreen )?plugin\b/i, - /\bconnect OpenScreen\b/i, + /\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/skills/openscreen-demo/SKILL.md b/plugin/skills/openscreen-demo/SKILL.md index 7af565dc2..011f330f1 100644 --- a/plugin/skills/openscreen-demo/SKILL.md +++ b/plugin/skills/openscreen-demo/SKILL.md @@ -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. @@ -102,9 +106,6 @@ For staging, choreography and a take recorded with no window at all, use the `op <!-- 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 a capture script that this edition of the plugin does not carry. Say so, and ask the user whether a recording in a real window, which shows the page on their screen, will do. Record it as above only once they agree. ---> ## 5. Check the take