motion-graphics-scene
Make EDITABLE motion graphics - titles, lower thirds, logo reveals, animated text / shapes / pictures - by writing a scene file (*.mgscene.json, data, not…
от szprivate★ 53 звезды на GitHub
Установить motion-graphics-scene в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Motion graphics as a scene file
You do NOT write React. You write a scene: one JSON file that describes layers and their keyframes. One generic renderer (Remotion) turns any scene into a video, and the ComfyUI Image Viewer's Motion panel edits the same file (layers, timeline, keyframes, curves, gizmos), so you and the user change one thing. What the panel previews is exactly what renders.
Workflow
get_agent_output_dirs-> save the scene under<videos>/motion/<project>/<name>.mgscene.json(write_text_file). The file name MUST end in.mgscene.json. Local pictures / fonts go beside it (assets use paths relative to the scene file).mg_scene_validate(path)- instant. Fix everyerrorsentry (thepathfield says where); read thewarnings.mg_scene_preview_frame(path, frames=[0, 15, 30, 60, 89])-> one contact sheet;view_imageit. Check the motion: is the text where it should be, does it arrive, hold, leave? Iterate on the file.- Open it for the user:
show_in_viewer(paths=[scene_path])- the Motion panel opens on it. Tell them they can drag layers, move keyframes, change easing and press Render. mg_render(scene_path)(mp4 next to the scene;format="mov"keeps transparency whencomp.backgroundis null;webm,gif). The first render after install takes minutes (npm install, browser download); later ones take seconds. Tell the user the path. The render also writes a poster PNG (<name>.png, result fieldposter) that carries the scene; that PNG opens in the Motion panel on its own (right-click > Edit in Motion). Tell the user both paths.- When the user edited the scene in the panel (it saves the same file),
read_text_fileit again before changing it - never overwrite their changes from memory.
Needs Node.js 18+ on the machine; if mg_render says it is missing, say so and stop.
The format ("mgscene": 1)
{ "mgscene": 1,
"comp": {"width":1920,"height":1080,"fps":30,"duration":90,"background":"#0a0a0a"},
"assets": {"logo":{"type":"image","src":"logo.png","width":512,"height":512},
"clip":{"type":"video","src":"shot.mp4"},
"brand":{"type":"font","src":"Brand-Bold.ttf","family":"Brand","weight":700}},
"layers": [ ... ] }
duration is in frames (seconds x fps). background: null = transparent (use mov/webm).
Layers are listed bottom to top (the last one is drawn on top). Every layer has a unique id.
Layer
{"id":"title","name":"Title","type":"text","parent":"grp","in":0,"out":90,"hidden":false,"locked":false,
"blend":"normal", "anchor":[0,0],"position":[960,540],"scale":[100,100],"rotation":0,"opacity":100,
"text":"LOW TIDE","fontSize":120,"weight":800,"tracking":6,"align":"center","fill":"#ffffff",
"tracks":{"opacity":[{"f":0,"v":0,"ease":"linear"},{"f":20,"v":100}]}}
- types:
text(textwith\nfor lines,font,weight,alignleft|center|right,lineHeight),shape(shape:rect|ellipse|path+dSVG path data;size,radius),image/video(asset,size,fitcontain|cover|fill, video:startFrom,audio),group(no drawing, a parent to move / scale / rotate children together),component(a named code component withparams, e.g.nodeTag- preview shows a placeholder). - transform (all animatable):
anchor(the layer-space point that sits onposition, and that rotation / scale turn about),position(px, comp space; y down),scale(percent,[x,y]),rotation(degrees, 720 = two turns),opacity(0-100). Shapes / images / videos are centred on their own origin; text sits on its origin withalignchoosing the side. - appearance (animatable):
fill,stroke(colours#rgb/#rrggbb/#rrggbbaa/rgba();null= none),strokeWidth,size[w,h],radius,fontSize,tracking(letter spacing px),reveal0-1 (a wipe;revealDirright|left|down|up),trimStart/trimEnd0-1 (draw-on of a stroke - the way to animate a ring or a line "drawing itself"). in/out= frames the layer exists (out exclusive).blend: normal multiply screen overlay add darken lighten color-dodge difference.- parent: a child follows its parent's transform (not its opacity). Its position is in the parent's
space. Use a
groupto slide a whole lower third in and out with two keys.
Keyframes
tracks maps a property to keys { "f": frame, "v": value, "ease": ... }; f is a COMP frame
(not relative to in). A property with no track holds its static value. ease shapes the segment
AFTER the key: smooth (default, eases both ends), linear, hold (steps), easeIn, easeOut,
easeInOut, backOut (overshoots - good for pops), expoOut (fast then settle - good for arrivals), or
[x1,y1,x2,y2] (css cubic-bezier). Colours animate too. Optional ti / to are the curve editor's
hand-set tangents (value units per frame) - leave them to the user.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
write_text_file - 02
read_text_file - 03
mg_scene_validate - 04
mg_scene_preview_frame - 05
mg_render - 06
show_in_viewer - 07
view_image - 08
get_agent_output_dirs
Вложенные файлы
- examples/logo_reveal.mgscene.json
- examples/lower_third.mgscene.json
- examples/title_card.mgscene.json
FAQ
Что делает скилл motion-graphics-scene?
Make EDITABLE motion graphics - titles, lower thirds, logo reveals, animated text / shapes / pictures - by writing a scene file (*.mgscene.json, data, not React), checking it, looking at stills, rendering it to video, and opening it in the viewer's Motion panel so the user can change layers and keyframes themselves. Use this for any motion-graphics request instead of writing Remotion code; use the `remotion` skill only for what a scene cannot say.
Как установить скилл motion-graphics-scene?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл motion-graphics-scene запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…