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

dimensional-drawing-motion — скилл для Claude Code

Скилл dimensional-drawing-motion для Claude Code анимирует чертёж в 11-секундный ролик в стиле Apple. Применяется после скилла dimensional-drawing или при запросе анимации чертежа и спецификации.

MIT 950 установок ★ 2 216 обновлён 2026-10-24

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

Что делает dimensional-drawing-motion

Скилл создаёт монохромную покадровую анимацию на основе шаблона templates/scene-dialog.js и templates/base.css. Линии прорисовываются последовательно, камера отдаляется, а слои поднимаются во взорванный вид с сохранением фиксированной ширины штрихов и логарифмическим зумом.

Работает в среде Claude.ai с артефактом **Motion** через adapters/claude-motion.md или автономно через Playwright и ffmpeg с помощью рендерера render.mjs. Сцена задается чистой функцией времени render(t), что позволяет рендереру мгновенно переходить к любому кадру.

Для работы в безголовом режиме через render.mjs требуются установленный Node.js, Playwright и ffmpeg. Ролик длится около 11 секунд при разрешении 1920×1080 и 60 кадрах в секунду с монохромной палитрой и шрифтами Arimo или Helvetica.

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

  • анимировать готовый чертёж спецификации
  • создать 11-секундный ролик в стиле Apple
  • собрать покадровую анимацию через Playwright и ffmpeg
  • построить взорванный вид слоев чертежа

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

  • Сделай анимацию для чертежа drawing.js
  • Анимируй эту спецификацию в ролик в стиле Apple
  • Запусти рендеринг ролика через render.mjs

Как установить dimensional-drawing-motion

1Через Skills CLI (Vercel)

npx skills add enesozturk/dimensional-drawing --skill dimensional-drawing-motion -a claude-code

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

~/.claude/skills/dimensional-drawing-motion/SKILL.md

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

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

Вопросы о dimensional-drawing-motion

Как установить dimensional-drawing-motion в Claude Code?

Выполните команды npx skills add enesozturk/dimensional-drawing --skill dimensional-drawing-motion -a claude-code и затем обратитесь к файлу ~/.claude/skills/dimensional-drawing-motion/SKILL.md.

Что делает dimensional-drawing-motion?

Превращает готовый чертёж в монохромный 11-секундный анимационный ролик со стандартизированным движением камеры и прорисовкой линий.

Что нужно для работы dimensional-drawing-motion?

В автономном режиме понадобятся Node.js, установленный Playwright и кодировщик ffmpeg.

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

SKILL.md · MIT
---
name: dimensional-drawing-motion
description: Turn a finished dimensional drawing sheet into a ~10 s Apple-style motion film — lines draw themselves in, the camera pulls back, layers lift into an exploded view, the full sheet resolves. Use after the dimensional-drawing skill, or when asked to animate a spec sheet or anatomy drawing.
---

# Dimensional drawing → motion

Animate a sheet made with the `dimensional-drawing` skill. The film reads like a pen drawing the sheet while a camera moves over it. Same rules as the drawing: monochrome, slots not content, variable codes, unbranded.

Start from `templates/scene-dialog.js` + `templates/base.css`. It is the reference film (11 s, 1920×1080, 60 fps). Adapt it; do not start blank.

## Where it runs

| You are | Use |
|---|---|
| Claude on claude.ai with the **Motion** artifact type | `adapters/claude-motion.md`. This is the primary, tuned target. |
| Any other agent / no Claude | `adapters/headless/`: Playwright draws each frame, ffmpeg encodes. `npm install`, then `node render.mjs --scene … --css … --out film.mp4`. |

The scene is the same file in both. It only needs a tiny `kit` (`seg, lerp, eo, ei, eio, clamp01, stage, h, css, scene`) and must be a **pure function of time**: `render(t)` sets every property from `t` alone, never from the previous frame. That is what lets a headless renderer jump to any frame.

Other animation libraries (Remotion, Motion Canvas, GSAP, Lottie…) are not tested. Porting is possible because the scene is pure, but check the library's license first (Remotion needs a company license above 3 people).

## Choreography (reference timing, seconds)

Scene time is scaled with `t = t / 0.85`, so the numbers below run about 15 % faster on screen. Change that one factor to speed up or slow down the whole film.

1. **0 – 2.3 · Close-up on the header.** Camera at ~4.4× on the top-left of the plan. The outer border draws from the top-left corner, then the lead circle, the X-box, the title slot, the header divider, then the header dims (S1, Z1, S5, H1). Tiny drift (z 4.4 → 4.2) keeps it alive.
2. **2.3 – 4.2 · Pull back to the plan view.** Log-zoom to ~1.7×. While moving, the rest of the plan draws: trail control, body well, content slots, label/value slots, footer actions, centerlines, chained dims top/bottom/left/right, radius callouts, boxed notes, detail circles, view title.
3. **4.2 – 7.2 · Layers lift.** The camera eases left to where the exploded view lives. Copies of container → body → slots morph from the flat plan matrix to the axonometric matrix and rise to their z. **Strokes first, fills after** (fills fade in from `a+0.55` to `a+1.25`); without that a white fill flashes over the drawing. Static bottom layers (viewport, scrim, shadow) draw in under them; leaders and layer labels follow.
4. **7.2 – 9.2 · Pull back to the full sheet.** Zoom to 1.0. The sheet border draws, then notes, tables and the detail views (header controls, footer actions, viewport placement, nested corner, field, radius details) each draw in a 0.3–0.5 s burst.
5. **9.2 – end · Hold.** Very slow push (z 0.998 → 0.988) so the last frame is not dead.

Total ~11 s. Keep films 8–15 s.

## How the template works

- **One SVG, one camera.** The sheet is drawn once in `init` at `viewBox 0 0 1900 1060` (wider than the 1700 drawing so the final frame fills 16:9 with no side gutters). A wrapper `.dw-cam` gets `translate(960 − cx·z, 540 − cy·z) scale(z)` from camera keys `DW_CAM = [{t, cx, cy, z}]`, interpolated with ease-in-out and **log zoom** (`exp(lerp(log z0, log z1, p))`), so zooms feel even.
- **Registration.** Call `at(start, stagger, dur)` before drawing a group. Every element made by `mk()` after it gets a window `[start + i·stagger, … + dur]`. Group elements in drawing order: outline → structure → slots → dims → labels.
- **Two kinds of element.**
  - `d` (drawn): solid strokes. `pathLength=1`, `strokeDasharray: 1 2`, `strokeDashoffset: 1 → 0` with ease-in-out; fill fades in over the last 45 %.
  - `f` (faded): text, dashed slots, centerlines, envelopes, hatches. Opacity with ease-out. Dashed lines can't use the dash trick, so they fade.
- **Morph groups.** `mg(z, start)` makes a group that lerps its matrix from `flat = [k,0,0,k,PX,PY]` (the plan) to `iso = [.94s,.17s,−.34s,.47s,TX,TY]` and subtracts `z·v` from ty. Set `--u = 1/√|det M|` each frame so stroke widths stay constant while the group scales.
- **Performance.** Values are quantized to 1/400 and skipped when unchanged; fills of morph groups are queried once.

## Adapting to a new component

1. Copy the drawing sheet's geometry (plan origin `PX, PY`, scale `k`, the `r()/dimH()/dimV()/rad()/nb()/detailRef()/table()/notes()` calls) into `init`, keeping the template's helpers.
2. Rewrite the `at()` timeline for the new plan: open on its most characteristic corner (header, handle, notch), let the rest of the plan draw while pulling back.
3. List the layers for the exploded view (bottom static ones with `G(z)`, lifting ones with `mg(z, start)`), 0.1 s apart.
4. Retarget `DW_CAM`: close-up → plan center → exploded center → sheet center (`950, 530`, z ≈ 1).
5. Check frames at the key beats (0, 1.2, 2.4, 3.3, 4.6, 5, 5.9, 6.6, 8, 10, 11 s scene time). Look for: elements popping instead of drawing, fills flashing, labels outside the frame mid-move, a busy first second.
6. Render (Motion export, or `render.mjs`).

## Style rules for motion

- One thing leads at a time: the eye follows the pen. Dims come after the geometry they measure; labels after their leaders.
- Ease-in-out for camera and strokes, ease-out for fades. No bounce, no overshoot, no color.
- Background white, ink `#111`, grays only. Arimo/Helvetica caps lettering, same sizes as the sheet.
- No music or voice unless asked.

Reply in one or two sentences with the film's length and what each beat shows.

© enesozturk · MIT · enesozturk/dimensional-drawing

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

Все скиллы по теме «Дизайн» →
motion-prompt showheyohtaki Скилл motion-prompt для Claude Code открывает в браузере галерею анимированной графики, UI-компонентов и эффектов. Помогает выбрать стиль или движение по образцам и перенести код в проект. CX Codex +1 1 200установок disney-animation-rule-skill vibe-motion Скилл disney-animation-rule-skill применяет 12 принципов Disney к процедурной анимации в коде. Помогает исправить механическую, жёсткую или невыразительную анимацию в веб, SVG, canvas, React, Remotion, играх, UI и 3D. CX Codex +1 999установок motion-background iart-ai Скилл motion-background учит агента создавать ненавязчивые анимированные фоны: лёгкие градиенты на CSS и частицы на холсте. Помогает оживить интерфейс без потери читаемости текста. CX Codex +1 5 500установок motion-advanced jeff Скилл motion-advanced для Claude Code содержит паттерны анимации и жестов в React и Next.js: драг-энд-дроп, цепочки useAnimate и SVG. CX Codex +1 6 400установок motion-figure rohitg00 Скилл motion-figure генерирует интерактивные схемы и анимации трёх уровней: декларативные SVG на SMIL, HTML-виджеты с регуляторами и WebGL-полосы дизеринга. CX Codex +1 1 400установок generative-illustration iart-ai Скилл generative-illustration превращает отдельные сгенерированные векторные элементы в покадровую анимацию на Canvas с экспортом в MP4 через FFmpeg. CX Codex +1 1 200установок

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

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

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