MCPInstall
layerai avatar

layer-motion-templates

Use when one Layer video edit must be rendered many times with different media: an ad template filled per hook, per language, per placement or per character, a reusable intro or end-card template, or a batch of variants from one timeline. Also when a voice-over or clip should set the edit's length, or when a re-render must update an existing board timeline instead of adding a copy. Keywords: video template, slots, variants, batch render, auto length, reusable edit.

Installs
1.5K
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/layerai/skills --skill layer-motion-templates
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads layer-motion-templates automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Layer Motion Templates

Overview

A motion template is one render_video_timeline template whose media items name a slot instead of a file_id. Each render passes the files for those slots, so forty variants share one designed edit: the same cuts, type, transitions and timing, with only the swapped media changing. That is what keeps a batch consistent and its results comparable.

Timeline basics are in layer-video-timeline, designed motion in layer-motion-graphics. The matrices that decide which variants to make are in layer-ua-creatives and layer-localization.

If a sibling skill named here is missing from your available skills, ask the user to install it (npx skills add layerai/skills --skill <name>); unattended, proceed from tool schemas and flag the gap.

Quick reference

NeedField
A swappable clip, image or soundslot: "<name>" on a video, image or audio item, with no file_id
Fill the slots for one rendervideos, images, audios maps: {"<slot>": [{file_id}]}
Let a voice-over or clip set lengthis_auto_length: true on that one item (at most one per template)
Cap the rendertemplate.max_duration_in_seconds (up to 120)
An optional elementA slot left unresolved is omitted from the render
Update the board timeline in placetimeline_object_id, when one is known
Price a variantestimate_video_timeline_price with everything but timeline_object_id

render_video_timeline takes {workspace_id, template, videos, images, audios}. template is {width, height, fps, tracks: [{id, name, items, transitions}]}; an item is {id, type, start_frame, duration_in_frames} plus file_id or slot, and optionally layout {left, top, width, height}, effects, start_from_in_seconds to trim a clip's head, and volume; a solid takes color {red, green, blue, alpha}. The render returns a generation_id for get_generation_run. Slot maps are keyed by slot name: audios: {voiceover: [{file_id}]}.

Designing the template

Decide what varies before building anything. Every element is either fixed (brand type, end card, logo, music bed, transitions) or slotted (the hook clip, the voice-over, the gameplay capture, the character art). Fix everything you can: a template where every item is a slot is just an empty timeline.

Name slots for their role, not their content: hook_clip, voiceover, hero_image, not dragon_v2. Each slot resolves to a file of the item's own media type, so a video item's slot is filled from videos, an image item's from images, an audio item's from audios.

Text stays in the template as text items. A text item has no slot, so copy that changes per variant (a translated CTA, a different hook line) is either a separate template per language or an image slot filled with a render_text PNG made per variant (see layer-typography). The second keeps one template; check every rendered PNG before it goes in.

Length that follows the media

Voice-overs and hook clips differ in length per variant. Set is_auto_length: true on the one item whose media should decide: at render it takes the full length of the file bound to it, and duration_in_frames only sizes it in the editor. Items after the auto-length block move by the change in length, items ending at its end end with it, and items inside it are cut at its new end. Only one item per template may set it, and an auto-length slot left without media is removed and the gap closes. Other video and audio never play past their own file's length, so a music bed shorter than the longest variant ends early: pick one long enough.

Set max_duration_in_seconds to the placement's limit, and check each render's length against it, so an overlong voice-over does not ship a 40-second cut to a 30-second slot.

Pricing and rendering a batch

Estimate before the first render, and price the batch as a whole. Variants that differ only in which files fill the slots, at the same length, share one estimate times their count. A variant whose auto-length media is longer can price differently: estimate each distinct length. Present the total; above 20 CUs wait for an explicit yes.

Render each variant with render_video_timeline, the same template, and that variant's slot maps; poll each generation_id with get_generation_run at the returned interval. Pass session_id so the batch lands on one board.

timeline_object_id makes a render update an existing board timeline in place rather than placing a second one. The tool description sources the id from board-timeline tools that MCP does not expose, so do not try to call them. Pass the id when the user supplies it, otherwise omit it and say that each render adds a new timeline to the board. Do not try to work around it.

Worked example

"Our 15-second ad template, filled for three hooks and two voice-overs each."

  1. Every hook clip and voice-over came from earlier runs and carries a file_id. The logo and font are already uploaded.
  2. Template at 1080 x 1920, 30 fps, max_duration_in_seconds: 15. Track 1: the logo image item and a text CTA over the last 60 frames. Track 2: a video item slot: "hook_clip", then the fixed end card. Track 3: an audio item slot: "voiceover" with is_auto_length: true. Track 4: the music bed, longer than any voice-over.
  3. Six variants. The two voice-overs differ in length, so estimate_video_timeline_price twice, once with each, and multiply each by three. Present the total; above 20 CUs wait for a yes.
  4. Six render_video_timeline calls with videos: {"hook_clip": [{file_id}]} and audios: {"voiceover": [{file_id}]}, one session_id. Poll each with get_generation_run.
  5. Name and hand back each output against its cell (hook2-vo1), and watch one per voice-over end to end to confirm the CTA still lands after the shift.

Common mistakes

  • Slotting everything, so the template fixes nothing and variants drift.
  • Hard-coding a file_id where a slot belongs, then editing the template per variant.
  • More than one is_auto_length item, or a music bed shorter than the longest auto-length variant.
  • Pricing a batch from one variant when the auto-length media differs in length.
  • Expecting a slot on a text item; varying copy is a render_text image slot or its own template.
  • Omitting max_duration_in_seconds for a placement with a hard length limit.
  • Inventing a canvas-timeline call to get timeline_object_id instead of reporting the gap.

FAQ

What does the layer-motion-templates skill do?

Use when one Layer video edit must be rendered many times with different media: an ad template filled per hook, per language, per placement or per character, a reusable intro or end-card template, or a batch of variants from one timeline. Also when a voice-over or clip should set the edit's length, or when a re-render must update an existing board timeline instead of adding a copy. Keywords: video template, slots, variants, batch render, auto length, reusable edit.

How do I install layer-motion-templates?

Run npx skills add https://github.com/layerai/skills --skill layer-motion-templates in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/layer-motion-templates/ (personal) or .claude/skills/layer-motion-templates/ (project).

Which AI agents can use layer-motion-templates?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is layer-motion-templates safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains layer-motion-templates?

It is published by layerai in layerai/skills. It has 1,459 recorded installs.

More from layerai/skills

View all →
layerai avatar

layer-pixel-art

layerai/skills

Use when making pixel art with Layer: sprites, retro game characters, pixel icons, pixel tiles, or a sprite sheet and walk cycle. Also when generated pixel art comes back blurry, anti-aliased, or at the wrong grid size, and when packing separate frames into a sheet or cutting an existing sheet into frames. Keywords: pixel art, sprite, sprite sheet, spritesheet, 16-bit, 32x32, walk cycle, animation frames, palette, dithering, pack, split.

Media & Creative5.5K installs
layerai avatar

layer-art-direction

layerai/skills

Use when a Layer brief needs a direction before generating at volume: exploring a look with a moodboard, choosing between visual directions, storyboarding an ad, trailer or cutscene, pinning a colour palette, naming a style or era precisely, or framing a scene. Also when a brief is vague or generations keep missing an unstated intent. Keywords: art direction, moodboard, style exploration, storyboard, panels, beats, palette, composition, framing, era, reference.

Media & Creative5.4K installs
layerai avatar

layer-image-editing

layerai/skills

Use when changing an image that already exists on Layer rather than generating a new one: editing or replacing part of it, inpainting with a mask, outpainting or extending the frame, reframing to another aspect ratio, relighting, restyling, re-rendering from another camera angle, splitting into layers, removing a background, vectorising, or upscaling. Keywords: img2img, edit, inpaint, outpaint, mask, expand, turnaround, upscale, background removal, PSD, layers.

Media & Creative5.4K installs
layerai avatar

layer-3d

layerai/skills

Use when producing 3D assets with Layer: generating a mesh from text or an image, retopologising or remeshing, retexturing an existing mesh, rigging a character, or animating a rigged mesh. Also when choosing between quad and triangle output, setting a polygon budget, or asking for PBR textures for a game engine. Keywords: 3D, mesh, model, text to 3D, image to 3D, remesh, retopology, retexture, rig, skeleton, animate, PBR, quad mesh, poly count, glTF, FBX.

Media & Creative5.4K installs
layerai avatar

layer

layerai/skills

Use when generating or editing game and entertainment assets on Layer through MCP: images, video, 3D meshes, audio, sprites, textures, or marketing creative. Also when choosing a Layer base model, pricing a run in Creative Units before spending them, uploading reference files, polling a generation, applying a trained style, or recovering from MODELNOTFOUND, INSUFFICIENTBALANCE, RATELIMITED, or a silently degraded reference set.

Media & Creative5.4K installs
layerai avatar

layer-game-assets

layerai/skills

Use when producing in-game art with Layer: characters, heroes, NPCs, enemies and mascots, environment and background concept art, parallax layers, or game UI such as icons, buttons, frames, panels, HUD elements and currency symbols. Also when a cast must stay on-model across many images, when an icon must read at 64px, or when a character must be split into parts for a skeletal rig. Keywords: character art, NPC, enemy, concept art, background, parallax, game UI, HUD, icon set, Spine, rigging.

Media & Creative5.3K installs

Popular media & creative skills

View category →
heygen-com avatar

hyperframes

heygen-com/hyperframes

Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.

Media & Creative1.6M installs
heygen-com avatar

media-use

heygen-com/hyperframes

Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.

Media & Creative1.5M installs
heygen-com avatar

hyperframes-registry

heygen-com/hyperframes

About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.

Media & Creative1.4M installs
101-skills avatar

ai-video-generation

101-skills/superpowers

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

Media & Creative1.1M installs
101-skills avatar

ai-image-generation

101-skills/superpowers

Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image

Media & Creative1.1M installs
101-skills avatar

ai-avatar-video

101-skills/superpowers

Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc

Media & Creative1.1M installs