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

key-layout — скилл для Claude Code: раскладка ключей в видео

Скилл key-layout для Claude Code размещает главную тему видео сверху, а связанные тезисы — над субтитрами. Подключается, когда в брифе включён keyLayoutEnabled или в промпте есть раздел «Bố cục Key: BẬT».

MIT ★ 147 обновлён 2026-11-13

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

Что делает key-layout

key-layout задаёт расположение и оформление текстовых плашек с главной темой ролика и текущими тезисами. Главная плашка остаётся сверху, связанные появляются по таймкодам речи снизу, над субтитрами. Если пользователь не задал текст, скилл берёт главную фразу из расшифровки и формирует связанные ключи по отдельным пунктам видео.

Плашки должны оставаться неподвижными при зуме и не пересекаться с титрами, карточками и безопасными зонами TikTok. Для проверки требуется извлечь кадры через ffmpeg и прочитать их с помощью Read. Слой внутри #face-wrapper будет двигаться вместе с приближением и смещаться.

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

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

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

  • Размести главную тему ролика сверху, а связанные тезисы показывай над субтитрами по таймкодам.
  • Включи раскладку ключей: keyLayoutEnabled.
  • Добавь раскладку ключей из раздела «Bố cục Key: BẬT» в промпте монтажа.

Как установить key-layout

1Через Skills CLI (Vercel)

npx skills add notivn/AIEVv2 --skill key-layout -a claude-code

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

~/.claude/skills/key-layout/SKILL.md

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

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

Вопросы о key-layout

Как установить key-layout в Claude Code?

Выполни npx skills add notivn/AIEVv2 --skill key-layout -a claude-code. Файл скилла находится по пути ~/.claude/skills/key-layout/SKILL.md.

Что делает key-layout?

Размещает главную тему видео сверху, а связанные тезисы — снизу над субтитрами. Связанные ключи появляются в моменты, когда соответствующий пункт звучит в ролике.

Что нужно для проверки результата key-layout?

Скилл требует извлечь кадры через ffmpeg и прочитать изображения с помощью Read, чтобы проверить положение плашек, их читаемость и поведение при зуме.

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

SKILL.md · MIT
---
name: key-layout
description: Main key / related key layout on the video - the MAIN KEY (topic/hook) sits in a band at the TOP of the video, the RELATED KEYS in a band at the BOTTOM (above the caption area), timed to whatever is being said. Read this when the brief enables "Bố cục Key" (keyLayoutEnabled) or the edit prompt contains the section "Bố cục Key: BẬT".
---

# Key Layout - main key on top, related keys below

Goal: a viewer scrolling past instantly knows **what the video is about** (main key, always on top)
and **which point is being made right now** (related key, changes with the content, at the bottom).

## ⚖️ STYLE DESIGN - PRECEDENCE RULE

If the edit prompt has a "STYLE DESIGN (BẮT BUỘC TUÂN THỦ 100%)" section -> the key colors/fonts/tone come
ENTIRELY from that style. If it does not -> use the default branding of the format skill in use.

## Choosing the keys (when the user does not specify them)

- **MAIN KEY**: ONE phrase of 2–6 words summarizing the topic/hook of the whole video (e.g. "MCP chính thức của TikTok",
  "Review iPhone 17 Pro"). Take it from the transcript - prefer a phrase that is repeated often or sits in the hook sentence.
  Do NOT use a whole long sentence; no trailing punctuation.
- **RELATED KEYS**: 3–6 phrases of 1–4 words, each one a SINGLE point made in the video (a feature, a number,
  a proper noun, a process step). Each key is pinned to the timestamp where that point is mentioned (from the transcript's
  word timestamps). If the user supplies a list -> use ALL of it, in the order the content mentions them.

## Band positions (9:16 - 1080×1920; other ratios convert by %)

| Band | y range | Notes |
|---|---|---|
| **MAIN KEY (top)** | ~96–345px (5–18% of height) | Horizontally centered; AVOID covering the face (faces usually start ~20%) |
| **RELATED KEYS (bottom)** | ~1290–1490px (67–78%) | ABOVE the caption area (captions sit at `bottom: ~372px` = y>=1548) |

- 16:9 (1920×1080): main key at y ~54–190px; related keys at y ~700–840px, captions at the very bottom.
- The TikTok safe zone still applies: bottom 15% + right 12% - the bottom band must not spill into those two areas.
- Both bands are STATIC layers relative to the camera: **do NOT put them inside the zoomed wrapper** (`#face-wrapper`) -
  just like captions, otherwise the keys drift/get clipped on punch-in.

## Typography & style

- **Main key**: the style's heading font, weight 800, size ~64–88px (at 1080w), 1 line (if too long, reduce the
  size; do not wrap to 2 lines unless <=2 words per line). Primary color or a primary→secondary gradient
  (`background-clip:text` - you MUST include the Vietnamese diacritics fix, production-verified in the
  noti-tiktok-vn skill: `line-height: 1.0` + `padding-top: 0.5em` + `padding-bottom: 0.14em`).
- **Related keys**: pill/chip - font size ~38–48px weight 700, padding `14px 28px`, 999px radius,
  glass background (`rgba` of the style background + blur) or a soft accent background, text in the style's text/accent color.
- **Readable over any footage**: behind the main key band add a soft scrim
  (`background: linear-gradient(180deg, rgba(0,0,0,0.45), transparent)` covering ~0–20% of the top of the video,
  color taken from the style's background) or a strong text-shadow - verify with a snapshot on the BRIGHTEST frame.

## Timing & animation (GSAP - deterministic, no setTimeout/random)

- **Main key**: enters ONCE at ~0.3–0.8s (reveal y 30→0 + opacity, `power3.out` 0.5s), then
  STAYS PUT for the whole video (a very subtle glow/breathing scale of ±1.5% with a cycle >=3s is allowed). For a long video split
  into chapters, the main key may change once per chapter.
- **Related keys**: each key enters exactly when its point starts being said (per the word timestamps), holds 2.5–4s
  then exits. Enter: y 24→0 + opacity 0→1, 0.35s `power3.out`; exit: opacity→0 + y→-12, 0.3s. Only 1 key
  visible at a time (up to 2 if two points run together); keys are >=1s apart.
- A related key appearing SHOULD line up with a light accent SFX (`pop.mp3`/`ting`, volume 0.4) if the brief enables SFX.

## Working with the other layers

- Main key ↔ kinetic typography: when a scene has a large kinetic title in the top area (e.g. the hook scene),
  HIDE the main key during that scene (avoid two large texts on top of each other) - the main key returns from the next scene.
- Related keys ↔ captions: two separate layers that must never overlap (the bottom band sits ABOVE the captions).
- Related keys ↔ spec cards/stat callouts: while a card occupies the bottom band, DELAY the key until the card exits.

## Verify (mandatory before reporting done)

Extract frames with ffmpeg and `Read` each image:
1. Frame at ~1s: the main key has entered, sits in the top band, does not cover the face, and its Vietnamese diacritics are complete (zoom 3×).
2. A frame in the middle of each related key: correct bottom band, not covering the captions, not spilling into the safe zone.
3. A frame during a punch-in zoom: both bands STAY PUT (they must not zoom along).
4. The brightest frame of the footage: the keys are still clearly readable (scrim/shadow is sufficient).

## Known issues

- Vietnamese gradient text losing its diacritics -> apply the `line-height: 1.0` + `padding-top: 0.5em` + `padding-bottom: 0.14em` fix (verified, see noti-tiktok-vn).
- Putting a band inside `#face-wrapper` -> the key scales with the zoom and drifts out of place. The band must be a sibling.
- The main key covering the hook title in the opening scene -> hide the main key in scenes with a large kinetic title.
- Too many related keys flashing in a row -> viewers get tired; keep the pace at >=1 key per 4s, each key >=2.5s.

© notivn · MIT · notivn/AIEVv2

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

Все скиллы по теме «Дизайн» →
short-editing Melvynx Скилл short-editing для Claude Code превращает запись с говорящей головой в короткий ролик с моушн-дизайном. Запускается по просьбе смонтировать видео, добавить титры или сделать шорт. CX Codex +1 2 000установок charles-claude-editing LemonFace0309 Скилл charles-claude-editing для Claude Code монтирует разговорные видео в Reels и TikTok. Срабатывает на просьбы обрезать ролик, добавить субтитры, музыку или визуальные вставки. CX Codex +1 ★ 237звёзд репо blitzreels-video-editing blitzreels Скилл blitzreels-video-editing для Claude Code превращает запись говорящего на камеру в вертикальный короткий ролик. Он вырезает паузы и дубли, добавляет субтитры, графику и музыку. CX Codex +1 514установок caption-animation iart-ai Скилл caption-animation для пословной анимации субтитров: слово появляется на своём слоге, активное подсвечивается, текст держится в безопасной зоне 9:16. CX Codex +1 4 300установок tiktok-captions kostja94 Скилл tiktok-captions для Claude Code готовит подписи и сценарии TikTok. Он включается при запросах о публикациях, видео, хештегах и продвижении в TikTok. CX Codex +1 3 000установок video-editor-setup appariciojunior Скилл video-editor-setup для Claude Code создаёт рабочее пространство видеомонтажа в DaVinci Resolve Studio. Он включается до первого /edit-video. CX Codex +1 ★ 470звёзд репо

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

Весь набор →
skill-authoring Скилл skill-authoring для Claude Code задаёт правила создания и обновления скиллов для AI Edit Video. Он срабатывает, когда просят написать скилл или добавить в него урок после готового видео. CX Codex +1 ★ 147звёзд репо color-grading Скилл color-grading для Claude Code настраивает цветокоррекцию видео в пайплайне AI Edit Video. Включается при обработке HDR- и лог-футажей или по запросу Chỉnh màu. CX Codex +1 ★ 147звёзд репо background-music Скилл background-music для Claude Code подбирает фоновую музыку и задаёт автоматическое приглушение под речь в видео на Remotion. Запускается, когда в задании включена музыка или нужно добавить её к ролику. CX Codex +1 ★ 147звёзд репо offline-voice Скилл offline-voice для Claude Code объясняет настройку локального движка озвучки VieNeu-TTS и клонирования голоса. Включается при отладке маршрутов /api/tts и озвучки видео. CX Codex +1 ★ 147звёзд репо make-a-video make-a-video — скилл для Claude Code, который ведёт от идеи к готовому MP4 через HyperFrames. Он собирает требования, готовит сценарный план и проверяет видео перед финальным рендером. CX Codex +1 ★ 147звёзд репо auto-cut Скилл auto-cut для Claude Code убирает тишину, оговорки и повторы дублей из видео с говорящей головой до монтажа. Включается по флагу autoCut в брифе или при жалобах на паузы. CX Codex +1 ★ 147звёзд репо ai-illustrations Скилл ai-illustrations для Claude Code добавляет сгенерированные изображения в видеомонтаж. Он включается, когда в задании разрешены AI-иллюстрации или запрошены изображения для видео. CX Codex +1 ★ 147звёзд репо remotion-assemble Скилл remotion-assemble для Claude Code настраивает сборку видео из сцен HyperFrames, футажей, голоса и звуков по файлу meta.json. Инструкции включаются при редактировании кода в каталоге engines/remotion. CX Codex +1 ★ 147звёзд репо

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

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