Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/scripts/build-plugin-mirror.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,19 @@ const DIRECTORY_DROPS = [".mcp.json", "scripts"];
// reads `network` (the hosts the plugin reaches), but the directory does not list it.
const DIRECTORY_MANIFEST_DROPS = ["network"];
// Words that would point Claude at something the directory edition does not ship.
const DANGLING = [/\.mjs\b/, /openscreenSetup/, /\/reload-plugins/, /\b(the|plugin.s) launcher\b/];
// The directory also refuses text that registers an MCP server the plugin does not declare,
// or that downloads and runs code without a pinned version and checksum.
const DANGLING = [
/\bmcp add\b/,
/\bwinget\b/,
/\bgh release\b/,
/releases\/latest/,
/\/plugin marketplace add\b/,
/\.mjs\b/,
/openscreenSetup/,
/\/reload-plugins/,
/\b(the|plugin.s) launcher\b/,
];

function walk(dir, root = dir) {
return readdirSync(dir).flatMap((name) => {
Expand Down
10 changes: 4 additions & 6 deletions plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. <!-- full-plugin -->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`.<!-- /full-plugin -->
<!-- directory-plugin
This edition of the plugin carries the skills. The recording and editing tools come from OpenScreen's MCP server, which is the desktop app's own executable started with `mcp`: the `openscreen-demo` skill registers it once, with your agreement.
This edition of the plugin carries the skills. The recording and editing tools come from OpenScreen's MCP server, which is the desktop app's own executable started with `mcp`. [OpenScreen's guide](https://getopenscreen.com/docs/ai-editing) explains how to connect it to your agent.
-->

## The skills
Expand All @@ -24,9 +24,9 @@ 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.
<!-- /full-plugin -->
<!-- directory-plugin
- **Registers OpenScreen's MCP server, only after you agree.** The `openscreen-demo` skill finds the installed app and registers it with `claude mcp add openscreen -- "<app>" mcp`. The server runs locally over stdio and needs no account.
- **Uses OpenScreen's MCP server when it is connected.** The skills install nothing and change no settings: if the tools are missing, Claude says so and links to OpenScreen's guide. The server runs locally and needs no account.
-->
- **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.
<!-- full-plugin -->- **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.<!-- /full-plugin -->
- **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.
- **Attaches the video to a pull request** with `gh`, on the repository you work in, when you ask for a pull request video.
- **Drafts a post on X** for a launch demo, and posts it only after your explicit yes.
Expand All @@ -47,9 +47,7 @@ The server needs Node.js on the PATH. Without it, or in an agent without plugin

<!-- /full-plugin -->
<!-- directory-plugin
Install it from Claude's plugin directory, then ask Claude for a demo, for example: *make a 30-second demo of the new export dialog and add it to my PR*. The first time, Claude sets up OpenScreen's MCP server; its tools load in the next session.

The full plugin, which also starts the server by itself and records web pages headless, installs from the project's repository: `/plugin marketplace add getopenscreen/openscreen`, then `/plugin install openscreen@openscreen`.
Install it from Claude's plugin directory and connect OpenScreen as [its guide](https://getopenscreen.com/docs/ai-editing) explains. Then ask Claude for a demo, for example: *make a 30-second demo of the new export dialog and add it to my PR*.

-->
Documentation: [Letting an agent make the whole video](https://getopenscreen.com/docs/ai-editing/#letting-an-agent-make-the-whole-video).
23 changes: 4 additions & 19 deletions plugin/skills/openscreen-demo/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ If you have only the tool `openscreenSetup`, the plugin's launcher is running bu
- **The agent has no plugin support,** or you work in Codex, Cursor or another agent: register the server by hand, as below.

**The app.** Its executable is the MCP server. The launcher checks these locations, and the environment variable `OPENSCREEN_EXE` overrides them:
<!-- /full-plugin -->
<!-- directory-plugin
This edition of the plugin carries the skills only, so the server is registered once, by hand. If you have the tools, go to step 2. Otherwise they are missing for one of these reasons, so do only what is missing:

- **The app is missing or too old:** install it as below.
- **The server is not registered:** register it as below.
- **The server was just registered:** its tools load in a new session.

**The app.** Its executable is the MCP server. Look for it in these locations:
-->

| OS | Executable |
|---|---|
Expand All @@ -48,22 +38,17 @@ Check every location in the table before you call OpenScreen missing: the Store
- **Windows:** the Microsoft Store (`winget install --source msstore OpenScreen`), or the `Openscreen.Setup.<version>.exe` installer, run with `/S /currentuser` for a silent install for the current user.
- **Linux:** the `.deb`, `.rpm` or `.pacman` for the distribution, or the `.AppImage` made executable.
2. Check `help` again. If even the latest release does not list `mcp`, this OpenScreen feature is not released yet: say so and stop.
<!-- full-plugin -->
3. With the plugin, run `/reload-plugins` or start a new session: the launcher now finds the app.

**The MCP server by hand,** only without the plugin's server: add it to the agent, then the tools load in the next session.

- **Claude Code:** `claude mcp add openscreen -- "<executable>" mcp`. Not alongside the plugin's server, which would give you every tool twice.
- **Codex:** `codex mcp add openscreen -- "<executable>" mcp`
- **Cursor and others:** a stdio server with the executable as `command` and `["mcp"]` as `args`.
<!-- /full-plugin -->
<!-- directory-plugin
3. Register the server as below if it is not registered yet, then start a new session.

**The MCP server.** Add it to the agent with the user's agreement, then the tools load in the next session.

- **Claude Code:** `claude mcp add openscreen -- "<executable>" mcp`.
This edition of the plugin carries the skills only. If you have the tools, go to step 2. If you do not, OpenScreen is not connected to this agent: say so in plain words, link the user to OpenScreen's guide, https://getopenscreen.com/docs/ai-editing, and stop. Never install anything or change the agent's settings for it yourself. Tools added during a session load only in a new one.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
-->
- **Codex:** `codex mcp add openscreen -- "<executable>" mcp`
- **Cursor and others:** a stdio server with the executable as `command` and `["mcp"]` as `args`.

**Permissions.**
- **macOS:** the app that runs the agent needs, in System Settings → Privacy & Security, the Screen Recording permission to record at all, and the Accessibility permission for OpenScreen to record the pointer's clicks and shapes. Without Accessibility a take driven with the real mouse gets no zoom on its clicks: grant it, or hand the clicks over with `setPointerTrack` as for a scripted take.
Expand Down Expand Up @@ -172,7 +157,7 @@ Keep the rest as it is: the background, padding, shadow and cursor style are cho

While you edit, you can call `getFrames` and `getContactSheet` with the `projectId` before exporting: without a current export they render the frames the export would show.

If a tool named here is not in your tool list (`getContactSheet`, `getAudioReport`, or `region`, `startSec` and `endSec` on `getFrames`), the installed OpenScreen is older than this skill: offer to update it as in step 1, or fall back to `getFrames` with `atSec`.
If a tool named here is not in your tool list (`getContactSheet`, `getAudioReport`, or `region`, `startSec` and `endSec` on `getFrames`), the installed OpenScreen is older than this skill: <!-- full-plugin -->offer to update it as in 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 -->, or fall back to `getFrames` with `atSec`.

## 8. Deliver

Expand Down
2 changes: 1 addition & 1 deletion plugin/skills/openscreen-effects/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <!-- 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,
`getFrames` with `atSec` in place of `getContactSheet`, of `getBeforeAfter` and of `getFrames`
`region`.

Expand Down
2 changes: 1 addition & 1 deletion plugin/skills/openscreen-motion/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <!-- 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
`atSec` where this skill says `getContactSheet`.

## 1. One focus per shot
Expand Down
2 changes: 1 addition & 1 deletion plugin/skills/openscreen-review/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <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 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.

## Before you look

Expand Down
2 changes: 1 addition & 1 deletion plugin/skills/openscreen-sound/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <!-- 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
"Without getAudioReport" below.

## 1. Keep it simple
Expand Down
Loading