timeline-edit-ops
БесплатноБез исполняемых скриптовНе проверенReference for editing a NodeTool timeline that already exists with edit_timeline ops — animate_clip roles and presets, the easing grammar, per-word/character…
от nodetool-ai★ 674 звезды на GitHubОб этом скилле
Timeline edit ops → the edit_timeline reference
This is the op-by-op contract for changing a timeline document that already
exists. motion-graphics owns the build loop and picks the surface: a new
cut goes through the @nodetool-ai/sandbox-timeline pack, which handles
tracks, groups, layout and most of what follows here for you. Reach for this
skill once that document exists and needs a few changes.
Ops are the right tool when the timeline has no authoring code (code.get
answers code: null), or for a deliberate hand tweak on one that does. On a
code-backed timeline, an op inside a scene the code tracks marks that scene
"edited": the next code.set/code.edit/code.rebake (api-timelines)
keeps your edit and reports it in conflicts rather than overwriting it,
unless force says otherwise.
Read before you edit
Call get_timeline first. You need the sequence's fps, width, height,
the track list with each track's index and type, and every clip's
startMs, durationMs, mediaType and existing animations. Edit nothing
until you have clip ids from the document — never a guessed one.
Snapshot with create_timeline_version before your first edit. Motion work is
iterative and a wrong mode: "replace" wipes animations somebody wrote.
edit_timeline takes a timeline ID and an ops array, run in order, up to
60 per call. Inspect each op's ok and the batch's failed result before a
dependent edit. In an in-product agent, use the matching ui_timeline_* tool
for an individual op:
{"timeline_id":"<id>","ops":[{"op":"animate_clip","target":"Title","animations":[{"role":"in","preset":"fade","durationMs":400}]}]}
The animate_clip input accepts catalog presets or custom curves and code,
plus stagger and a typewriter caret. It does not author styleTracks,
textAnimator, or beat. set_clip_params does not author layout,
repeater, motionBlur, steppedTime, temporalEcho, animationLinks, or
transform.depthPx. set_clip_params refuses a call that names one of
those keys, and animate_clip drops the fields it does not author. For those fields, read get_timeline's timeline object, change
the needed clip or sequence fields, and call set_timeline_document with a
complete document assembled from it. Preserve tracks, clips, markers, tempo,
setup, templateId, mediaTracks, transcript, scriptEnabled, and camera2d when
present. Include timeline.updatedAt as expected_updated_at so a
concurrent edit is refused. A whole-document write validates the result and
snapshots the prior version. Omitted document fields are removed, so never
send only the changed clip. The JSON objects in the document sections below
are fields to merge into that complete document, not edit_timeline ops.
The editor may lack controls for them even though they render and survive a
save.
Track layering
Lowest index renders on top. Track 0 covers track 1, which covers track 2
— Premiere, Resolve and FCP order, and the opposite of a paint stack. The
compositor turns the index into z = 1000 - index; preview_timeline_frame
reports that z_index per layer and lists layers top of the stack first.
Five track types, and the type is a role, not a restriction on what draws:
| Type | Holds | Use for |
|---|---|---|
video |
picture clips, images | the cut itself |
overlay |
text and shape clips | titles, lower-thirds, scrims, callouts |
audio |
sound | music, voiceover, effects — never drawn |
subtitle |
text | burned-in captions |
midi |
played notes | a synthesized part — never drawn |
Rules that follow from the ordering:
- A scrim goes on a higher index than the text it sits behind, and a lower index than the picture it darkens — so picture, then scrim, then text, in descending index order.
- Give each motion element its own overlay track when their timings overlap. Two animated clips on one track that overlap in time trigger an automatic crossfade you did not ask for (see Transitions).
- Captions are the exception you do not control: word-level captions from a voiceover clip composite above every real track regardless of which track that clip sits on. Do not build a title that expects to cover them.
- An audio clip never contributes a layer. A frame that looks empty because everything is on audio tracks is a track-type mistake.
- At most 8 video layers composite at once, resolved top track first. Text, shape and image clips are not counted, so a stack of titles is unaffected — but nine overlapping video clips means the bottom one silently does not draw. A preview frame is how you find that out.
Build the elements
The clips you animate are made with the same edit_timeline op list.
[
{"op":"add_text_clip","text":"Maya Chen","trackId":"<overlay>","startMs":4000,"durationMs":3000,"fontSizePx":64},
{"op":"add_shape_clip","shape":{"kind":"rect","x":0,"y":0.72,"width":1,"height":0.18,"fill":
Установить timeline-edit-ops в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл timeline-edit-ops?
Reference for editing a NodeTool timeline that already exists with edit_timeline ops — animate_clip roles and presets, the easing grammar, per-word/character stagger, set_clip_params limits, document-only fields (styleTracks, textAnimator, animationLinks, layout, camera2d, motionBlur, repeater), groups, transitions, masks and mattes, clip effects, time remap, compositions, beat-cutting ops, and validate_timeline's/preview_timeline_frame's full mechanics. Use for a few changes to a cut that already exists — retiming a clip, swapping a preset, nudging a stagger. For a new cut, or a scene with many clips, build it with the @nodetool-ai/sandbox-timeline pack instead; see motion-graphics.
Как установить скилл timeline-edit-ops?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл timeline-edit-ops запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic