Command Palette

Search for a command to run...

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

frame-composition

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

Stage the frame on a NodeTool timeline — grids, focal placement, safe areas per aspect ratio, depth layers and parallax, camera moves, and where elements…

nodetool-aiот nodetool-ai★ 674 звезды на GitHub

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

Frame Composition → staging on the timeline

Where things sit, how deep the frame is, and how the camera moves through it. motion-graphics is the build loop; timeline-edit-ops carries the op contract. This decides the coordinates you pass either.

Coordinate spaces, and mixing them is the usual bug

What Space Read as
shapeStyle.x/y/width/height, x2/y2, d 0..1 of the frame 0.5 is the frame's middle
set_mask x/y/width/height, d 0..1 of the layer 0.5 is the clip's own middle, not the frame's
positionX / positionY curves canvas px Absolute, and folds as replace
offsetX / offsetY curves canvas px, added Composes with everything else
slide distance, kenBurns driftX/driftY fraction of frame width or height 0.3 travels 30% of the frame
anchorX / anchorY 0..1 The point a scale or a rotation pivots on
textStyle.fontSizePx sequence px Against height from get_timeline, not the preview width
transform.depthPx, camera2d.position/depthPx/focalLengthPx sequence px Perspective; clip depth also orders clips within one track
layout.gap, layout.padding sequence px Flex container spacing, measured against its children's rendered boxes

Read width, height and fps off get_timeline before you compute anything. A layout authored against 1920×1080 and saved onto a 1080×1920 sequence is off by more than a crop.

Text is placed by containers

Building with @nodetool-ai/sandbox-timeline (see motion-graphics for when code is the right surface)? A container decides where its children sit — you almost never write x/y for text. s.stack(children, o) and s.row(children, o) build a real Yoga flex container and reparent children onto it as its real children — nest freely, a row of stacks or a stack holding a nested row both resolve correctly. A text child reflows to whatever width Yoga offers it, not a guessed line length.

The container's own placement in the frame is o.at ({x, y}, default the frame centre) plus o.anchor (default "center"): anchor names the point of the container's own computed box that lands at at — the name "left" puts that box's left edge at at.x, no measuring a sibling's width required. Named anchors: "top-left", "top", "top-right", "left", "center", "right", "bottom-left", "bottom", "bottom-right", or pass {x, y} fractions directly. o.align (cross axis, default "start") and o.justify (main axis, unset) are the Yoga alignItems/justifyContent. A child's own flex sizing is o.flexItem on that child's own call (grow, width, alignSelf, …); absolute: true on a rect/ellipse (or any clip) takes it out of flow and resizes it to fill its flex parent's box exactly — how a plate sits behind a card's text with no pixel math.

Reach for explicit x/y only for decoration (a stray mark, a background shape) or a deliberate free placement that has nothing to do with reading order. Anything a viewer reads — a title, a kicker, a caption, a row of stats — goes in a container.

Title block — kicker, title, sub, stacked with a shared rhythm:

// fragment
const kicker = s.kicker("LAUNCHING TODAY");
const title = s.text("Round-ups", { size: 120, weight: 700 });
const sub = s.text("on every card", { size: 40 });
s.stack([kicker, title, sub], { gap: 20 });

Lockup — a mark beside its wordmark, one row:

// fragment
const mark = s.image(logoAssetId);
const wordmark = s.text("Northwind", { size: 64, weight: 700 });
s.row([mark, wordmark], { gap: 16, align: "center" });

Card — a padded column over an absolute plate:

// fragment
const plate = s.rect(1, 1, "#0c2a21", { r: 24, absolute: true });
const heading = s.text("Plan Pro", { size: 48, weight: 700 });
const price = s.text("$12/mo", { size: 32 });
s.stack([plate, heading, price], { gap: 8, padding: 24 });

List / grid — a row that wraps into a grid when it runs out of width:

// fragment
const chips = ["Round-ups", "Instant transfers", "No fees"].map((t) => s.pill(t));
s.row(chips, { gap: 12, wrap: true });

Grid

Twelve columns for landscape, six for vertical. For a 1920-wide frame with a 100px outer margin and a 24px gutter:

content = 1920 − 2×100 = 1720
column  = (1720 − 11×24) / 12 = 121.3px

Space everything in multiples of 8. fontSizePx for body copy sits near 2.5–4% of frame height; below 2.5% validate_timeline reports text_illegible. Choose the family, weights, and title scale from motion-direction § Typography before placing text on this grid.

One focal point

Place the subject on a thirds power point, not dead centre, unless the piece uses symmetry deliberately. The intersections:

Sequence Power points (px)
1920×1080 x 640 / 1280, y 360 / 720
1080×1920 x 360 / 720, y 640 / 1280
1080×1080 x 360 / 720, y 360 / 720

Rank

Полный SKILL.md на GitHub

Установить frame-composition в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл frame-composition?

Stage the frame on a NodeTool timeline — grids, focal placement, safe areas per aspect ratio, depth layers and parallax, camera moves, and where elements enter and leave. Use when placing titles, lower thirds, shapes or overlays, when a layout must survive 16:9 and 9:16, when adding a push or a parallax move, or when a frame reads flat or cramped. Not for what a clip says or when it cuts.

Как установить скилл frame-composition?

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

Скилл frame-composition запускает скрипты?

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

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

Сравнить frame-composition с