Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

openscreen-effects

БесплатноБез исполняемых скриптовНе проверен

Writes Off-Menu effects for OpenScreen, custom WGSL shaders that the native compositor draws on the real recording, in the preview and in every export…

getopenscreenот getopenscreen★ 8 547 звёзд на GitHub

Об этом скилле

Write Off-Menu effects

An Off-Menu effect is a function you write in WGSL and lay on the timeline like a zoom. The compositor runs it on every output pixel, in the preview and in the export alike, so what getFrames shows you is what the export will contain. Write one when no setting does what the 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, getFrames with atSec in place of getContactSheet, of getBeforeAfter and of getFrames region.

Before you write

  1. Read the resource openscreen://effects/contract. It is the authority on contract 1: inputs, parameters, rules, targets, cost. This skill does not replace it.
  2. Read the project with getCurrentDocument. Effects are placed in ruler seconds, like zooms and annotations. effects lists the regions, effectDefinitions the code's name, cost and parameters, without the code (getEffect reads it).
  3. Decide the moments the effect acts on: a click, a beat, a block of the interface. Write them down with their ruler seconds; you will look at exactly those moments.

The loop

  1. Write the shader and its parameters, and lay it with addEffect: startSec, endSec, and effect with name, description (one sentence on what it does, for the next agent), code and params. Leave target out: the default image keeps text readable.
  2. Read the answer. Code that does not compile comes back with the compiler's error at the line of your code: fix that line and call again. An accepted effect returns its tier and, when the region is longer than the tier is meant for, a recommendation.
  3. Look at the moments it acts, never at a random frame:
    • getContactSheet with projectId, startSec / endSec over the 1 to 2 s where the effect moves, count 12 to 24: the animation frame by frame in one image.
    • getFrames with projectId and region on the part that matters (a ring, the loupe's glass, a corner of a highlight) to judge it at the video's own resolution.
  4. Re-tune. A value change is setEffect with values on the region (effectRegionId); a code change is setEffectDefinition on the effectId, which recompiles and updates every region using it. Moving or resizing the region is setEffect with startSec / endSec. To see exactly what a re-tune changed, call createCheckpoint before it and getBeforeAfter with that checkpointId after it: each moment comes back as a before and after pair, with the region of the frame that changed. A moment that reads unchanged shows no difference the comparison can see: a faint change can pass it, so compare a region when it matters.
  5. Stop when the effect reads at a glance and nothing on screen fights it. Remove a failed attempt with removeModifier on the region id; its definition goes with its last region.

Expect two or three iterations. More than five on one look means the idea, not the tuning, is wrong: simplify it.

What an effect reads

Input Use it for
frame(uv) The composed picture at the output's resolution: grading, distortion, glows.
footage(p) The recording itself at its own resolution, at point p of its surface, with no cursor, webcam, frame or background. Anything that magnifies.
image(p), ctx.image The effect's own image, when you gave it one: a logo, a texture, a mask. p is the image's own uv; ctx.image holds its size in pixels (xy) and its width over height (z). See "An image of its own".
ctx.time Programme seconds, continuous through cuts and speed changes.
ctx.region x: progress 0 to 1 over the region; y: its length in s; z: seconds since it began. Entrances and exits.
ctx.cursor xy: the pointer tip in uv; z: 1 while it is on screen.
ctx.clicks[i] The last 4 clicks of the last 2 s, newest first: xy where, z seconds since, w 1 when the slot is used.
ctx.footage, ctx.camera The recording's and the webcam's rectangles in uv (x, y, w, h); the camera is zero-sized without one.
fx_to_footage(uv), fx_from_footage(p) Map between output uv and the recording's surface (0 to 1 across the recording), zoom, layout and 3D camera included.
ctx.footage_aspect, ctx.aspect, ctx.resolution Round distances on the recording, round distances on the output, output size.
params.<name> Your de
Полный SKILL.md на GitHub

Установить openscreen-effects в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

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

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

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

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

references/cookbook.md

FAQ

Что делает скилл openscreen-effects?

Writes Off-Menu effects for OpenScreen, custom WGSL shaders that the native compositor draws on the real recording, in the preview and in every export, through addEffect, setEffect, setEffectDefinition and getEffect. Covers the write, compile, look, re-tune loop, what an effect can read (the composed frame, the recording at full resolution, time, the pointer, recent clicks, the recording's and the webcam's rectangles, typed parameters), cost tiers and how to stay light, the pitfalls that waste iterations, and a cookbook of validated effects (a soft ring on each click, a glass loupe, a spotlight on an interface block). Use when the user asks for a visual effect no OpenScreen setting offers, a click effect, a ripple, a glow, a highlight, a loupe or magnifier, a lens, a spotlight, a colour grade, a glitch or a transition look, or says shader, WGSL or Off-Menu. Not for placing zooms and callouts (openscreen-motion) or for making a whole demo (openscreen-demo).

Как установить скилл openscreen-effects?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл openscreen-effects запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить openscreen-effects с