anticipation-mastery — скилл для Claude Code: подготовка к движению
Скилл объясняет принцип anticipation и подсказывает агенту, где добавить подготовительное движение, чтобы анимация не выглядела резкой.
npx skills add dylantarre/animation-principles --skill anticipation-mastery -a claude-codeЧто делает anticipation-mastery
Скилл описывает принцип anticipation из классической анимации: перед значимым действием должно быть контрдвижение. Персонаж приседает перед прыжком, рука уходит назад перед ударом. Без этого действия будто случаются из ниоткуда.
Внутри — теория и разбор по доменам. Есть три функции подготовки: физическая, ментальная и эмоциональная. Отдельно разобраны тайминги: короткая подготовка для мелких действий, длинная для крупных, и обратная зависимость — чем больше замах, тем быстрее может быть само действие и при этом оставаться читаемым. Для UI и motion-дизайна перечислены hover-состояния кнопок, переходы между страницами, состояния загрузки и drag-взаимодействия. Есть раздел про микровзаимодействия, анимацию персонажей и игровой дизайн.
В конце — список типичных ошибок и эвристика внедрения. Советует добавлять подготовку к любому действию длиннее 200 мс и брать на неё 30–50% времени основного движения. Если анимация кажется пустой, причина обычно в пропущенной подготовке. Приём с нарушением ожидания — длинный замах и крошечное действие — работает на комедию, но это осознанный отход от принципа, а не замена ему.
Какие задачи решает
- убрать резкость в переходах интерфейса
- добавить подготовку к прыжку персонажа
- сделать читаемым замах перед ударом в игре
- оживить hover-состояние кнопки
- настроить тайминг подготовки под масштаб действия
Примеры запросов агенту
- Проверь анимацию открытия модального окна: где тут не хватает anticipation?
- Добавь подготовительное движение перед прыжком персонажа в моём игровом прототипе
- Разбери переход между экранами по принципу anticipation и предложи тайминги
Как установить anticipation-mastery
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill anticipation-mastery -a claude-code2Вручную: положить файлы
~/.claude/skills/anticipation-mastery/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/anticipation-mastery/
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill anticipation-mastery -a codex2Вручную: положить файлы
.agents/skills/anticipation-mastery/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill anticipation-mastery -a cursor2Вручную: положить файлы
.cursor/skills/anticipation-mastery/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dylantarre/animation-principles anticipation-mastery2Вручную: положить файлы
.github/skills/anticipation-mastery/SKILL.md1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill anticipation-mastery -a gemini-cli2Командой платформы
gemini skills install https://github.com/dylantarre/animation-principles --path skills/11-by-principle-focus/anticipation-masteryВручную: положить файлы
.devin/skills/anticipation-mastery/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill anticipation-mastery -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о anticipation-mastery
Как установить anticipation-mastery в Claude?
Выполните npx skills add dylantarre/animation-principles --skill anticipation-mastery -a claude-code. Файл скилла появится по пути ~/.claude/skills/anticipation-mastery/SKILL.md.
Что делает anticipation-mastery?
Разбирает принцип подготовки к движению: зачем нужен контрдвижение перед действием, как его тайминговать и где он применяется в UI, анимации персонажей и играх.
С какими платформами работает скилл?
Кроме Claude есть установка для Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode.
Исходный текст
SKILL.md · MIT
--- name: anticipation-mastery description: Use when designing action sequences, user interactions, state transitions, or any motion that needs telegraphing to feel intentional rather than sudden. --- # Anticipation Mastery ## The Setup Principle Anticipation prepares the audience for action. Discovered through theatrical observation, Disney animators found that without a preparatory movement, actions appeared to happen "out of nowhere"—confusing rather than exciting. The principle: before any significant action, there must be a counter-movement. ## Core Theory **Newton's Third Law, Visualized**: Physical actions require preparation. A pitcher winds up before throwing. A cat crouches before pouncing. Anticipation makes this mechanical necessity visible and dramatic. **Attention Direction**: Anticipation tells viewers where to look and what to expect. It transforms surprise into suspense—a more engaging emotional state. ## The Three Functions 1. **Physical preparation**: The body must coil to spring (jumping, throwing, punching) 2. **Mental preparation**: The audience needs time to register incoming action 3. **Emotional preparation**: Building tension before release amplifies impact ## Timing Dynamics **Duration signals magnitude**: Brief anticipation (2-4 frames) for small actions. Extended anticipation (12-24 frames) for major moments. A full second of wind-up tells viewers something significant is coming. **Inverse proportion**: The bigger the anticipation, the faster the following action can be while remaining readable. ## Interaction with Other Principles **Staging depends on anticipation**: The preparatory pose directs attention to where action will occur. **Timing is defined by anticipation ratio**: Classic formula is 1:2—one beat of anticipation for two beats of action. **Squash/stretch often appears here**: Characters compress before explosive movement. **Exaggeration amplifies anticipation**: Cartoon wind-ups exceed physical possibility for comedic effect. ## Domain Applications ### UI/Motion Design - Button hover states: subtle scale-up anticipates the click response - Page transitions: brief pause or micro-movement before navigation - Loading states: pulsing or winding animation before content appears - Drag interactions: slight resistance before element "releases" ### Character Animation - Jump preparation: full crouch with held pose before launch - Punch delivery: shoulder rotation backward before forward strike - Emotional shifts: beat of stillness before reaction ### Micro-interactions - Toggle switches: brief compression before snap to new state - Notifications: subtle entrance from off-screen before settling - Tooltips: micro-delay with subtle scale from origin point ### Game Design - Attack wind-ups: readable tells that allow player response - Ability charging: visual buildup matching power accumulation - Boss patterns: exaggerated anticipation creates learnable mechanics ## Common Mistakes 1. **Skipping anticipation entirely**: Actions feel robotic and sudden 2. **Over-anticipating minor actions**: Creates sluggish, over-animated feel 3. **Wrong direction**: Anticipation must oppose the action direction 4. **Uniform timing**: Vary anticipation length based on action importance ## The Reversal Technique For comedic or surprising effect, violate anticipation expectations. Long wind-up followed by tiny action. No wind-up before massive action. The principle's power is proven by how jarring its absence feels. ## Implementation Heuristic Every action above 200ms duration should have anticipation. Scale anticipation duration to 30-50% of the main action. When actions feel "empty," anticipation is usually missing.
© dylantarre · MIT · dylantarre/animation-principles