К основному содержанию
скилл CX Codex

layer-video — скилл для Claude Code: генерация видео через Layer

Скилл для генерации видео через Layer: текст в видео, оживление кадра, продление клипа, камера, звук и липсинк. Пригодится, когда промпт даёт не то движение.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add layerai/skills --skill layer-video -a claude-code
Открыть на GitHub

Что делает layer-video

Скилл учит агента писать промпты для видео иначе, чем для картинок. Промпт описывает то, что меняется за клип, а не сцену: что движется, в какую сторону и с какой скоростью, как ведёт себя камера, каков темп. Если описать только сцену, получится почти статичный кадр с артефактами — самая частая ошибка.

Сначала выбирается сценарий: text_to_video с нуля, image_to_video для оживления готового кадра, video_extend для продолжения клипа, video_editing для правки. Когда утверждённый кадр уже есть, image_to_video почти всегда выигрывает: первый кадр фиксирует персонажа, палитру и композицию, и модель тратит силы на движение. Кадр передаётся как init_image или first_frame; если модель принимает и first_frame, и last_frame, оба задают, где закончится кадр.

Длительность клипа у каждой модели своя и короткая. Часть моделей сама выбирает длину и игнорирует duration_seconds, поэтому для точной длины нужен фильтр fixed_duration. Звук и липсинк — отдельные возможности, их тоже надо фильтровать: filter.capabilities — объект булевых значений, например {generate_audio: true}. Видео упирается в более жёсткий лимит, чем картинки: 60 генераций в минуту на пользователя, из них не больше 30 видео. Для бесшовной петли фильтруйте по loop, а не просите петлю словами в промпте.

Какие задачи решает

  • оживить утверждённый ключевой кадр в короткий клип
  • получить бесшовную петлю без скачка на стыке
  • задать движение камеры вместо дрейфа по умолчанию
  • сгенерировать нативный звук или липсинк для реплики персонажа
  • собрать многосценовый рекламный ролик или катсцену из нескольких шотов

Примеры запросов агенту

  • Оживи этот утверждённый ключевой кадр в пятисекундную петлю без скачка на стыке.
  • Подбери модель для image_to_video с петлёй и фиксированной длительностью, потом покажи её параметры.
  • Промпт даёт почти статичный кадр — перепиши его так, чтобы было описано движение, камера и темп.

Как установить layer-video

1Через Skills CLI (Vercel)

npx skills add layerai/skills --skill layer-video -a claude-code

2Вручную: положить файлы

~/.claude/skills/layer-video/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/layer-video/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о layer-video

Как установить layer-video в Claude?

Выполните npx skills add layerai/skills --skill layer-video -a claude-code. Скилл появится в ~/.claude/skills/layer-video/SKILL.md.

Что делает layer-video?

Помогает агенту генерировать видео через Layer: текст в видео, оживление кадра, продление клипа, движение камеры, звук, липсинк и петли. Отдельно разбирает многосценовые ролики и типичные ошибки промптов.

Чем image_to_video отличается от text_to_video?

image_to_video берёт готовый кадр и тратит ресурс модели на движение, а не на переизобретение персонажа и композиции. Если внешний вид уже утверждён, скилл советует начинать именно с него.

Исходный текст

SKILL.md · MIT
---
name: layer-video
description: "Use when generating video with Layer: text-to-video, animating a still image, extending a clip, adding camera motion, generating native audio or lip sync, looping animations, or planning a multi-shot ad, trailer, or cutscene. Also when a video prompt produces the wrong motion or the shot drifts off the source image. Keywords: txt2vid, img2vid, image to video, camera motion, video effects, loop, seamless, trailer, cutscene, lipsync."
license: MIT
---

# Layer Video Generation

## Overview

Video models take a prompt the way a director takes a shot list, not the way an illustrator takes a
brief. A video prompt describes **what changes over the clip**. A prompt that only describes the
scene yields a near-still image with drifting artefacts, which is the most common failure here.

Pick the use case first: `text_to_video` from nothing, `image_to_video` to animate an existing
frame, `video_extend` to continue a clip, `video_editing` to alter one. The loop and spend gate are
in the `layer` skill. Assembling finished clips into one deliverable is `layer-video-timeline`.

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.

## Anchor on an image whenever one exists

`image_to_video` beats `text_to_video` almost every time a look has already been approved. The first
frame fixes the character design, palette, and composition, so the model spends its capacity on
motion instead of re-inventing the subject. Attach the still as `init_image` or `first_frame`
depending on what the model accepts, and where a model takes both `first_frame` and `last_frame`,
supplying both is the most reliable way to control where a shot ends up.

Generate the key frame with `layer-image`, approve it, then animate it.

## Writing the motion

Name three things, in this order:

1. **Subject motion**: what moves, in what direction, at what speed. "The banner snaps taut in a
   gust, then settles" is a shot. "A banner" is a photograph.
2. **Camera**: static, slow push in, orbit, handheld drift, crane down. State "locked-off camera"
   when the camera must not move, because models add drift by default.
3. **Rate**: slow, deliberate, sudden, gradual over the full clip. Models otherwise pick a middling
   pace that reads as neither.

Model families disagree about conventions, so read `get_base_model` for the one you picked rather
than reusing phrasing that worked on another family. Where a model exposes structured
`video_effects` (entries with an uppercase `type` such as `ORBIT_360` or `DOLLY_IN`, plus an optional
`weight` from 0 to 100), prefer that over describing the same move in prose: it is the parameter the
model was tuned on.

## Duration, audio, and lip sync

Clip length is per-model and short, usually a handful of seconds. Do not plan a 30-second piece as
one generation without confirming a model supports it.

Some models choose their own length and ignore `duration_seconds` entirely. When the clip has to land
on an exact length, filter for `fixed_duration`, which excludes them. Without it a model may simply
hand back a different length, and nothing in the response reads as an error.

`generate_audio` is a capability, so filter for it when the clip needs native sound rather than
assuming silence can be fixed later. `lipsync` is a separate capability for dialogue on a character.
`filter.capabilities` is an object of booleans, not a list of names: `{generate_audio: true}`.

Video runs count against a tighter rate limit than images: 60 generations per minute per user, of
which at most 30 may be video.

## Multi-shot pieces

An ad, trailer, or cutscene is several shots. Before assembling, check whether a model can render
the whole thing in one generation, because one generation holds its own continuity and assembly does
not. When assembly is genuinely needed:

1. Lock the look with one approved still.
2. Generate each shot as `image_to_video` from a frame consistent with that still.
3. Cut them together with `layer-video-timeline`.

Storyboard it first if there are more than three shots: see `layer-art-direction`.

## Loops

Filter for the `loop` capability first. It selects models that compose a seam-free loop rather than
merely describing one, which is a different thing from a model that will accept the word "looping" in
a prompt and return a clip that jumps at the cut. Pair it with `fixed_duration` when the loop has to
be a specific length.

Failing that, generate the anchor frame and use it as both `first_frame` and `last_frame` where the
model accepts both, so the motion at least returns to where it started.

Either way, keep the motion cyclical by nature (a flag in wind, a torch flicker, a hovering idle) and
avoid one-way motion such as a character walking out of frame, which cannot be made to loop by any
amount of prompting.

## Worked example

"Animate this approved character key frame into a 5-second idle loop."

1. The frame exists from a previous run, so it already has a `file_id`.
2. `list_base_models` with `filter.use_case: "image_to_video"` and
   `filter.capabilities: {loop: true, fixed_duration: true}`, since this has to loop seamlessly and
   land on five seconds. Take the first result, then `get_base_model` to see whether it accepts
   `last_frame` and structured `video_effects`.
3. Prompt the motion only: "The character breathes slowly, cloak drifting in a light breeze, weight
   shifting subtly between feet. Locked-off camera. Gentle, continuous, no change in pose by the end
   of the clip."
4. Pass the same file as `first_frame` and `last_frame` so the loop closes.
5. Estimate. Video is priced well above images, so this will often clear 20 CUs and need an explicit
   yes.
6. Execute, poll at `poll_interval_seconds`, and check the seam by watching the end run into the
   start before calling it a loop.

## Common mistakes

- Prompting the scene instead of the motion, then reporting the model "barely moved".
- Using `text_to_video` when an approved still already exists.
- Leaving the camera unspecified, then fighting drift the model added by default.
- Describing a camera move in prose when the model exposes `video_effects`.
- Planning a long piece as one clip without checking a model's duration limit.
- Assuming audio can be added later on a model that could have generated it natively.
- Prompting for a loop instead of filtering for the `loop` capability.
- Leaving `fixed_duration` off when the clip has to land on an exact length.
- Calling a clip a loop without watching the seam.

© layerai · MIT · layerai/skills

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

Всё по теме «ИИ и ML» →
video-gen marswaveai Скилл превращает текстовое описание или картинку в готовый ролик через CLI ListenHub. Пригодится, когда нужен клип, анимация кадра или липсинк под аудио. CX Codex +1 325установок videoagent-video-studio pexoai Генерирует короткие ролики из текстового описания или изображения. Пригодится, когда нужно быстро сделать клип, анимировать фото или собрать видео по референсу. CX Codex +1 10 500установок video Starchild-ai-agent Скилл для генерации коротких видео: текст-в-видео, картинка-в-видео и видео-в-видео через скрипты Starchild. Пригодится, когда нужен клип из промпта или оживление фото. CX Codex +1 2 700установок scenario-kling scenario-labs Скилл для генерации и монтажа видео на моделях Kling через MCP Scenario: текст в видео, оживление кадра, липсинк, motion control. Пригодится, когда агент должен сам подобрать модель и запустить рендер. CX Codex +1 382установок p-video 101-skills Генерирует видео по тексту или картинке через утилиту belt и модели Pruna. Пригодится, когда нужно получить ролик в 720p или 1080p прямо из чата с агентом. CX Codex +1 12 400установок scenario-wan scenario-labs Скилл для генерации и правки видео на моделях Wan через MCP Scenario: текст в видео, оживление кадра, монтаж по инструкции, смена пропорций. CX Codex +1 370установок

Из того же набора7

layer-quality Оценивает сгенерированные файлы Layer по правилам студии и помогает выбрать, что отдавать. Нужен перед сдачей партии ассетов. CX Codex +1 3 300установок layer-workflows Скилл для запуска сохранённых воркфлоу Layer Blueprint: находит пайплайн в рабочем пространстве, читает его схему входов, оценивает цену и следит за шагами. CX Codex +1 3 400установок layer-3d Ведёт агента по цепочке 3D-пайплайна Layer: сгенерировать меш, пересобрать топологию, наложить текстуры, поставить скелет и анимацию. CX Codex +1 3 300установок layer-video-timeline Собирает готовые клипы, картинки и аудио в один ролик: порядок, переходы, титры, логотип, музыка. Нужен, когда монтаж идёт из уже сгенерированных шотов. CX Codex +1 3 300установок layer-image Скилл для text-to-image через Layer: подсказывает, что писать в промпте, как задать пропорции и когда нужна референс-картинка. CX Codex +1 3 300установок layer-image-editing Скилл для редактирования уже существующих изображений на Layer: инпейнтинг, расширение кадра, смена ракурса, апскейл. CX Codex +1 3 400установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой