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

flutter-animations — скилл для Claude Code: анимации Flutter

Скилл для работы с анимациями во Flutter: добавить, починить, отрефакторить или объяснить движение в интерфейсе.

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

Что делает flutter-animations

Скилл превращает агента в специалиста по motion во Flutter. Он разбирает запрос — новая анимация, сломанная, рефакторинг, отладка дёрганья или жизненного цикла — и сначала смотрит на ваш код: дерево виджетов, управление состоянием, навигацию, тему, тесты. Потом выбирает минимальную модель под задачу. Простые изменения свойств отдаёт неявным анимациям, управление жизненным циклом и жесты — AnimationController, переходы между экранами — Hero, последовательности — Interval, физику — симуляциям и ScrollPhysics.

Внутри — справочники по каждому направлению: references/implicit.md, explicit.md, hero.md, staggered.md, physics.md, curves.md. К ним приложены шаблоны вроде assets/templates/implicit_animation.dart — это готовые демо-файлы, а не модули под вставку. В приложении придётся переименовать классы, убрать main() и MaterialApp, подогнать ассеты и маршруты, а затем снова прогнать анализатор.

Контроллеры скилл держит во владельце жизненного цикла анимации и требует их освобождать; создавать состояние анимации внутри build он не даёт. Для движения, которое видит пользователь, проверяется MediaQuery.disableAnimations — если поддержку уменьшенной анимации поставить нельзя, агент сообщит об ограничении. Вход обрезан, поэтому оставшиеся шаги проверки не привожу.

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

  • добавить анимацию появления карточки без ручного контроллера
  • починить дёрганье списка при прокрутке
  • перевести переход между экранами на Hero
  • разложить появление пунктов меню по таймингам через Interval
  • объяснить, чем AnimatedBuilder отличается от AnimatedWidget

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

  • добавь плавное появление карточки через AnimatedOpacity
  • почему анимация дёргается при скролле — посмотри мой виджет
  • сделай переход между экранами через Hero с общим тегом

Как установить flutter-animations

1Через Skills CLI (Vercel)

npx skills add MADTeacher/mad-agents-skills --skill flutter-animations -a claude-code

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

~/.claude/skills/flutter-animations/SKILL.md

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

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

Вопросы о flutter-animations

Как установить flutter-animations в Claude?

Выполните npx skills add MADTeacher/mad-agents-skills --skill flutter-animations -a claude-code. Файл скилла окажется в ~/.claude/skills/flutter-animations/SKILL.md.

Что делает flutter-animations?

Помогает агенту добавлять, чинить, рефакторить, отлаживать и объяснять анимации Flutter: неявные виджеты, явные контроллеры, Hero-переходы, стаггер, физику и кривые.

Какие проверки скилл требует после правок?

Форматирование изменённых Dart-файлов и flutter analyze для проекта или затронутого файла. Если анимация касается навигации, жестов или жизненного цикла состояния, добавляются точечные тесты.

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

SKILL.md · MIT
---
name: flutter-animations
description: >-
  Add, fix, refactor, debug, test, or explain Flutter animations and motion
  effects. Use when working with implicit animations such as AnimatedContainer,
  AnimatedOpacity, AnimatedSwitcher, and TweenAnimationBuilder; explicit
  animations using AnimationController, Tween, CurvedAnimation, AnimatedWidget,
  AnimatedBuilder, and built-in transitions; Hero/shared-element route
  transitions; staggered or sequenced animations; physics-based motion,
  gestures, springs, flings, scroll physics, curves, performance, accessibility,
  reduced motion, and animation lifecycle bugs.
metadata:
  author: Stanislav [MADTeacher] Chernyshev
  version: "2.0"
---

# Flutter Animations

You are a Flutter motion implementation specialist. Build animation changes that
fit the app's existing widget structure, state model, navigation, theme, and
performance constraints.

## Principle 0

Motion must not become hidden state or unverified demo code. Before adding or
changing animation logic, inspect the target widget, lifecycle, route structure,
and existing patterns. After the change, verify analyzer-clean Dart and call out
any animation behavior that could not be run or visually checked.

## Workflow

1. Identify the user's actual request: add a new animation, fix a broken one,
   refactor animation code, debug jank/lifecycle behavior, explain a pattern, or
   provide a standalone example.
2. Inspect the local Flutter context first when code is available: widget tree,
   state management, navigation approach, assets, tests, theming, accessibility
   helpers, and existing animation abstractions.
3. Choose the smallest animation model that satisfies the behavior:
   - Use implicit animations for simple state-driven property changes.
   - Use explicit animations for lifecycle control, repeated/reversible motion,
     gestures, multiple coordinated properties, or custom transitions.
   - Use Hero for shared elements across route transitions.
   - Use staggered animation when multiple elements need sequenced or
     overlapping timing.
   - Use physics when motion depends on velocity, springs, dragging, flings, or
     scroll-like behavior.
4. Implement in the app's style. Preserve existing public APIs unless the user
   asked for a refactor. Keep controllers owned by the state object that owns the
   animation lifecycle, dispose them, and avoid creating animation state inside
   build methods.
5. Prefer production animation patterns: `AnimatedBuilder`, `AnimatedWidget`,
   built-in transitions, child caching, stable keys, and small rebuild regions.
   Use `setState()` in animation listeners only for minimal examples or when no
   narrower rebuild path is practical.
6. Respect accessibility and user settings. Check `MediaQuery.disableAnimations`
   or existing reduced-motion policy for non-essential motion, and provide a
   fast/static path when motion can distract or harm usability.
7. Validate with the strongest available local checks. At minimum, run analyzer
   on touched Dart files or the relevant Flutter project. Run widget/golden or
   integration tests when animation behavior, navigation, or gestures are part
   of the requested change.

## Decision Guide

| Need | Default approach |
|---|---|
| One property or a small set of state-driven visual changes | `AnimatedContainer`, `AnimatedOpacity`, `AnimatedAlign`, `AnimatedPadding`, `AnimatedSwitcher`, or `TweenAnimationBuilder` |
| Full lifecycle control, repeat/reverse/status, or gesture-driven values | `AnimationController` with `Tween`, `CurvedAnimation`, `AnimatedBuilder`, or `AnimatedWidget` |
| Shared visual element between routes | `Hero` with stable unique tags and compatible source/destination widget trees |
| List/menu/card reveal with offset timings | One controller with `Interval`s, or per-item animation only when lifecycle truly differs |
| Spring/fling/drag or platform scroll feel | `fling`, `animateWith`, `SpringSimulation`, gesture velocity, or platform-specific `ScrollPhysics` |
| Motion feels wrong but code works | Tune duration, curve, interval, easing, or reduced-motion behavior before adding complexity |

## Resource Routing

Read only the resources needed for the current task:

| Task | Read/use | Purpose |
|---|---|---|
| Simple state-driven animation or AnimatedSwitcher/TweenAnimationBuilder choice | `references/implicit.md`; optionally `assets/templates/implicit_animation.dart` for a standalone example | Widget options, parameters, and simple examples |
| Controller lifecycle, built-in transitions, status listeners, or reusable animated widgets | `references/explicit.md`; optionally `assets/templates/explicit_animation.dart` for a standalone example | Correct controller ownership, disposal, and rebuild patterns |
| Shared-element route transition, custom flight path, placeholder, or HeroMode | `references/hero.md`; optionally `assets/templates/hero_transition.dart` for a standalone example | Hero tags, route behavior, shuttle builders, and common pitfalls |
| Sequenced list/menu/reveal/ripple timing | `references/staggered.md`; optionally `assets/templates/staggered_animation.dart` for a standalone example | Interval timing, duration calculation, and stagger patterns |
| Spring, fling, drag, custom Simulation, or scroll physics | `references/physics.md` | Simulation setup, gesture velocity, platform physics, and tuning |
| Curve choice, custom curve, easing mismatch, or reduced-motion tuning | `references/curves.md` | Curve selection, custom curves, and accessibility notes |

Templates are complete demo files, not drop-in production modules. When using a
template inside an app, rename demo classes, remove `main()` and `MaterialApp`
wrappers, adapt assets/routes/state, and re-run analyzer.

## Constraints

- Do not invent missing routes, asset paths, theme tokens, gesture behavior, or
  state-management APIs. Inspect them or ask the user if they are absent.
- Do not add an `AnimationController` when an implicit widget gives the same
  behavior with less lifecycle risk.
- Do not leave controllers, listeners, timers, or status callbacks undisposed.
- Do not use global debug settings such as `timeDilation` in production code.
  Mention them only as a local debugging aid.
- Do not copy reference snippets blindly; adapt them to the project's Flutter
  version, lint rules, null-safety, and deprecation state.
- Do not make accessibility optional for user-facing motion. If reduced-motion
  support cannot be implemented, report the limitation.

## Validation

- Run `dart format` or the project's formatter on edited Dart files when edits
  are made.
- Run `flutter analyze` for the project, package, or specific touched Dart file.
- Run focused tests when animation changes affect navigation, gestures,
  stateful lifecycle, or user-visible regressions.
- For visual changes, inspect the running app or screenshots when feasible. If
  that is not possible, state what was validated statically and what remains
  visually unverified.
- When updating templates, verify each template as `lib/main.dart` in a minimal
  Flutter project with `flutter analyze lib/main.dart`.

© Stanislav [MADTeacher] Chernyshev · MIT · MADTeacher/mad-agents-skills

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

Всё по теме «Мобильная разработка» →
flutter-dev MiniMax-AI Гайд для разработки Flutter-приложений с паттернами виджетов, Riverpod, Bloc и GoRouter. Пригодится при настройке интерфейса, навигации, тестов и производительности. CX Codex +1 2 000установок flutter-development aj-geddes Скилл для разработки мобильных приложений на Flutter и Dart: виджеты, состояние через Provider или BLoC, навигация, интеграция с API. CX Codex +1 719установок flutter-expert Seth Hobson Помогает проектировать Flutter-приложения, писать интерфейсы и разбирать интеграции для разных платформ. Подключайте его к задачам на Dart, тестирование или производительность. CX Codex 720установок flutter-build-responsive-layout flutter Скилл обучает агента строить адаптивные интерфейсы Flutter под экраны телефонов и десктопов. Он задаёт правила работы с LayoutBuilder и MediaQuery. CX Codex +1 42 500установок flutter-add-widget-preview flutter Скилл учит агента создавать интерактивные превью виджетов во Flutter через package:flutter/widget_previews.dart. Пригодится для изолированной вёрстки UI без сборки всего приложения. CX Codex +1 36 800установок flutter-dart-code-review affaan-m Чек-лист для ревью Flutter/Dart кода: виджеты, управление состоянием, идиомы Dart, производительность и безопасность. Не зависит от выбранной библиотеки. CX Codex +1 4 800установок

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

flutter-adaptive-ui Скилл направляет агента при разработке адаптивного UI во Flutter для мобильных экранов, десктопа и веба. Он заставляет опираться на ограничения окна, а не на имя платформы. CX Codex +1 2 000установок flutter-architecture Скилл для проектирования и ревью архитектуры Flutter-приложений: слои, MVVM, feature-first структура, DI и паттерны вроде Result и Command. CX Codex +1 1 700установок flutter-testing Скилл для написания, починки и отладки тестов Flutter: юнит-, виджет- и интеграционные тесты, моки, golden-проверки. CX Codex +1 1 500установок flutter-networking Скилл для работы с сетью во Flutter: HTTP/REST, WebSocket, авторизация, таймауты, ретраи, парсинг JSON и кэш. Пригодится, когда надо добавить запросы или разобрать сетевые ошибки. CX Codex +1 722установок flutter-drift Ведёт агента по работе с локальной базой на Drift: таблицы, запросы, реактивные стримы, миграции схемы и тесты. Пригодится, когда в проекте уже есть SQLite или вы только его заводите. CX Codex +1 671установок flutter-navigation Скилл для ИИ-агента, который разбирается с навигацией во Flutter: Navigator, go_router, диплинки, редиректы и история браузера. CX Codex +1 589установок flutter-internationalization Настраивает и чинит локализацию во Flutter через gen-l10n и ARB-файлы. Помогает перевести интерфейс, поддержать RTL и убрать устаревшие импорты package:flutter_gen. CX Codex +1 536установок dart-drift Скилл для работы с Drift в Dart CLI, серверных и десктопных приложениях без Flutter: таблицы, запросы, миграции, PostgreSQL. CX Codex +1 466установок

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

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