rossark-motion-skill README

README проекта с github.com/rossark0/rossark-motion-skill. Одним файлом markdown: README.md.

A blue silhouette floats in with dangling feet, then a kid in a striped kit drops in, lands, kicks a ball that rolls in from the right, waves, grins and hops

Motion For Anything You Draw

For designers and engineers who want to bring their apps and drawings to life.

Making a drawing move is easy. Making it feel alive is hard: it has to breathe, look around, blink, shift its weight and act, without ever freezing or jumping. This skill helps your agent get there.

It started as the method I used to bring the illustrations in my app to life, and grew into a way to animate anything drawn: characters and creatures, plants, cloth, fire, smoke, water, weather, lights, machines, icons, logos, charts and whole scenes.

The animation above is drawn and animated entirely in code, with the templates in this repo.

Install

npx skills@latest add rossark0/rossark-motion-skill

Why use it?

Agents don't animate like animators.

Ask an agent to bring a character to life and it will often swap one drawing for another, so the face teleports from one expression to the next. It moves through each pose with its own eased tween, so the body stops dead at every pose. Everything moves in sync, like a machine. Blinks are so short they flicker, everything bounces, and a thin line shows across the face where two shapes meet.

All these small things add up, and the result looks like a slideshow instead of something alive.

This skill lists those mistakes and how to fix them: one clock for the whole scene, parts that turn around their real pivots, trailing parts that follow a beat later, idle life that never stops, smooth paths through key poses, small amplitudes and strong curves. When you have a reference video, it measures the motion frame by frame before building, because what makes a reference feel alive is often too small to see.

For motion in an interface, it follows Emil Kowalski's rules and Benji Taylor's Family values.

Reference

Demos

Reveal (source, MP4), at the top of this page. Full-body acting in a phone frame, on one clock, in a 9-second loop at 60 fps:

Garden (source, MP4), a 10-second loop:

A girl in a sun hat waters a sprout; it grows and blooms, a butterfly lands on the flower, she hops with joy, then the petals fall and the sprout returns

Chef (source, MP4), a 9.6-second loop:

A chef flips a pancake; the second flip goes too high, lands on his hat, wobbles, slides off and he catches it in the pan

Orbit (source, MP4):

A round bird with closed eyes floats while a tilted ring of cards orbits around it, with sparkles twinkling

To render them again on macOS 14+:

swiftc -parse-as-library -target arm64-apple-macos14 \
  templates/swiftui/Motion.swift templates/swiftui/LiveFace.swift demo/*.swift -o /tmp/render-demo
/tmp/render-demo reveal /tmp/frames phone fps=60   # or: garden, chef, orbit
ffmpeg -framerate 60 -i /tmp/frames/%04d.png -c:v libx264 -pix_fmt yuv420p -crf 20 demo/reveal.mp4

rossark-motion-skill (rossark0/rossark-motion-skill)

Ищем в базе…

Что это такое?Навык для Claude Code, который учит ИИ-агента превращать любой SVG-рисунок в живую анимацию с частотой 60 кадров в секунду: живые лица, полноценная игра персонажей всем телом и целые сцены для React Native и SwiftUI.
Это приложение или навык, который читает мой агент?Это навык для Claude Code: файл SKILL.md с принципами и рецептами, а также вспомогательный код движка (motion.ts для React Native, Motion.swift для SwiftUI) и служебные скрипты. Это не самостоятельное приложение.
Как начать пользоваться им вместе с агентом?Храните SKILL.md рядом с вашим проектом и копируйте MOTION.md вместе с рисунками, заполняя в нём расположение кода и свои правила. Навык написан так, чтобы агент сначала прочитал его, и только потом начинал анимировать.
Нужно ли, чтобы в моём проекте уже был React Native или SwiftUI?Да. Движок выпущен в двух вариантах: motion.ts и liveFace.tsx для проектов на React Native, а Motion.swift и LiveFace.swift для проектов на SwiftUI, так что нужен один из этих стеков.
Работает ли это с любым агентом для программирования или только с Claude Code?Навык создан и описан именно для Claude Code, поэтому он рассчитан на то, как агент Claude Code читает и применяет инструкции навыка.
Для кого этот навык?Для дизайнеров и разработчиков, которые хотят анимировать собственные рисунки и иллюстрации для приложений, а не нанимать аниматора или вручную прорисовывать каждый кадр.
На какой платформе рендерятся демо?Включённый офлайн-рендерер, который превращает демо-сцены в MP4 и GIF, работает на macOS 14 или новее.
Почему анимации, созданные агентами, обычно выглядят деревянными?Агенты обычно мгновенно меняют рисунки вместо того, чтобы двигать отдельные части, используют отдельные сглаженные твины для каждой позы, из-за чего тело застывает между позами, а моргания делают настолько короткими, что они мерцают. Вместе это превращает движение в слайд-шоу вместо чего-то живого.
Что делает trackedges.py?Он измеряет края объекта в эталонном видео покадрово, чтобы поймать движения, которые слишком малы для глаза, например дрожание на 2%, парение или покачивание, прежде чем вы попытаетесь воспроизвести их в коде.
Что находится в папке demo?Примеры сцен, показанные на странице проекта, макет рамки телефона и офлайн-рендерер, который конвертирует сцены в файлы MP4 и GIF.
Что liveFace даёт из коробки?Готовые живые глаза и рты, которые плавно двигаются, моргают и улыбаются. Вам нужно только задать геометрию и цвета для своего персонажа.
Автор
rossark0
Размер
15.1 MB
Звёзды
850
Обновлён
КоммитOct 22
Возраст
27 д
Коммиты · 90 дней