Animate
Review a feature and enhance it with purposeful animations, micro-interactions, and motion effects that improve usability and delight. Use when the user mentions adding animation, transitions, micro-interactions, motion design, hover effects, or making the UI feel more alive.From its SKILL.md
npx -y skills add huyxoann/impeccable-flutter --skill animateAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
20.2 KB, as published. Nobody here has run it
Designs and iterates production-grade frontend interfaces. Real working code, committed design choices, exceptional craft.
Setup
Before any design work or file edits:
- Load context (PRODUCT.md / DESIGN.md) via the loader script.
- Identify the register and load the matching register reference (brand.md or product.md).
- If the user invoked a sub-command (e.g.
craft,shape,audit), load its reference file too. This is non-negotiable:craftwithoutcraft.mdloaded means you'll skip the shape-and-confirm step the user expects.
Skipping these produces generic output that ignores the project.
1. Context gathering
Two files, case-insensitive. The loader looks at the project root by default and falls back to .agents/context/ and docs/ if the root is clean. Override with IMPECCABLE_CONTEXT_DIR=path/to/dir (absolute or relative to cwd).
- PRODUCT.md: required. Users, brand, tone, anti-references, strategic principles.
- DESIGN.md: optional, strongly recommended.
ThemeDatastrategies,ColorSchemechoices,TextThemerules, elevation, standard paddings, and Flutter component blueprints.
Load both in one call:
# Claude Code plugins run from a global cache. Replace the relative path below
# with the absolute path to this plugin's scripts directory before running.
node .claude/skills/impeccable-flutter/scripts/load-context.mjs
Consume the full JSON output. Never pipe through head, tail, grep, or jq. The output's contextDir field tells you where the files were resolved from.
If the output is already in this session's conversation history, don't re-run. Exceptions requiring a fresh load: you just ran $impeccable-flutter init or $impeccable-flutter document (they rewrite the files), or the user manually edited one.
If PRODUCT.md is missing, empty, or placeholder ([TODO] markers, <200 chars): run $impeccable-flutter init, then resume the user's original task with the fresh context. If the original task was $impeccable-flutter craft, resume into $impeccable-flutter shape before any implementation work.
If DESIGN.md is missing: nudge once per session ("Run $impeccable-flutter document for more on-brand output"), then proceed.
2. Register
Every design task is brand (marketing, landing, campaign, long-form content, portfolio: design IS the product) or product (app UI, admin, dashboard, tool: design SERVES the product).
Identify before designing. Priority: (1) cue in the task itself ("landing page" vs "dashboard"); (2) the surface in focus (the page, file, or route being worked on); (3) register field in PRODUCT.md. First match wins.
If PRODUCT.md lacks the register field (legacy), infer it once from its "Users" and "Product Purpose" sections, then cache the inferred value for the session. Suggest the user run $impeccable-flutter init to add the field explicitly.
Load the matching reference: reference/brand.md or reference/product.md. The shared design laws below apply to both.
Shared design laws
Apply to every design, both registers. Match implementation complexity to the aesthetic vision: maximalism needs elaborate code, minimalism needs precision. Interpret creatively. Vary across projects; never converge on the same choices. GPT is capable of extraordinary work. Don't hold back.
Color
- Use OKLCH. Reduce chroma as lightness approaches 0 or 100; high chroma at extremes looks garish.
- Never use
#000or#fff. Tint every neutral toward the brand hue (chroma 0.005–0.01 is enough). - Pick a color strategy before picking colors. Four steps on the commitment axis:
- Restrained: tinted neutrals + one accent ≤10%. Product default; brand minimalism.
- Committed: one saturated color carries 30–60% of the surface. Brand default for identity-driven pages.
- Full palette: 3–4 named roles, each used deliberately. Brand campaigns; product data viz.
- Drenched: the surface IS the color. Brand heroes, campaign pages.
- The "one accent ≤10%" rule is Restrained only. Committed / Full palette / Drenched exceed it on purpose. Don't collapse every design to Restrained by reflex.
Theme
Dark vs. light is never a default. Not dark "because tools look cool dark." Not light "to be safe."
Before choosing, write one sentence of physical scene: who uses this, where, under what ambient light, in what mood. If the sentence doesn't force the answer, it's not concrete enough. Add detail until it does.
"Observability dashboard" does not force an answer. "SRE glancing at incident severity on a 27-inch monitor at 2am in a dim room" does. Run the sentence, not the category.
Typography
- Cap body line length at 65–75ch.
- Hierarchy through scale + weight contrast (≥1.25 ratio between steps). Avoid flat scales.
Layout
- Vary spacing for rhythm. Same padding everywhere is monotony.
- Cards are the lazy answer. Use them only when they're truly the best affordance. Nested cards are always wrong.
- Don't wrap everything in a container. Most things don't need one.
Motion
- Don't animate CSS layout properties.
- Ease out with exponential curves (ease-out-quart / quint / expo). No bounce, no elastic.
Absolute bans
Match-and-refuse. If you're about to write any of these, rewrite the element with different structure.
- Side-stripe borders.
border-leftorborder-rightgreater than 1px as a colored accent on cards, list items, callouts, or alerts. Never intentional. Rewrite with full borders, background tints, leading numbers/icons, or nothing. - Gradient text.
background-clip: textcombined with a gradient background. Decorative, never meaningful. Use a single solid color. Emphasis via weight or size. - Glassmorphism as default. Blurs and glass cards used decoratively. Rare and purposeful, or nothing.
- The hero-metric template. Big number, small label, supporting stats, gradient accent. SaaS cliché.
- Identical card grids. Same-sized cards with icon + heading + text, repeated endlessly.
- Modal as first thought. Modals are usually laziness. Exhaust inline / progressive alternatives first.
- The "GPT-border-and-shadow". Very thin (≤1px) borders combined with wide, soft, low-opacity shadows. A generic LLM "premium" look. If you use a shadow, it must be part of a defined elevation system or a deliberate, high-contrast glow.
Copy
- Every word earns its place. No restated headings, no intros that repeat the title.
- No em dashes. Use commas, colons, semicolons, periods, or parentheses. Also not
--. - Banned "AI-isms" (Prose rules): Never use "powerful", "seamless", "robust", "comprehensive", "dive in", "at its core", "look no further", or "elevate". If a feature is powerful, describe what it does with a concrete number or fact. If it's seamless, show the simplified workflow.
The AI slop test
If someone could look at this interface and say "AI made that" without doubt, it's failed. Cross-register failures are the absolute bans above. Register-specific failures live in each reference.
Category-reflex check. Run at two altitudes; the second one catches what the first one misses.
- First-order: if someone could guess the theme + palette from the category alone ("observability → dark blue", "healthcare → white + teal", "finance → navy + gold", "crypto → neon on black"), it's the first training-data reflex. Rework the scene sentence and color strategy until the answer isn't obvious from the domain.
- Second-order: if someone could guess the aesthetic family from category-plus-anti-references ("AI workflow tool that's not SaaS-cream → editorial-typographic", "fintech that's not navy-and-gold → terminal-native dark mode"), it's the trap one tier deeper. The first reflex was avoided; the second wasn't. Rework until both answers are not obvious. The brand register's reflex-reject aesthetic lanes list catches the currently-saturated families.
Commands
| Command | Category | Description | Reference |
|---|---|---|---|
craft [feature] | Build | Shape, then build a feature end-to-end | reference/craft.md |
shape [feature] | Build | Plan UX/UI before writing code | reference/shape.md |
init | Build | Set up PRODUCT.md and DESIGN.md context | reference/init.md |
document | Build | Generate DESIGN.md from existing project code | reference/document.md |
extract [target] | Build | Pull reusable tokens and components into design system | reference/extract.md |
critique [target] | Evaluate | UX design review with heuristic scoring | reference/critique.md |
audit [target] | Evaluate | Technical quality checks (a11y, perf, responsive) | reference/audit.md |
polish [target] | Refine | Final quality pass before shipping | reference/polish.md |
bolder [target] | Refine | Amplify safe or bland designs | reference/bolder.md |
quieter [target] | Refine | Tone down aggressive or overstimulating designs | reference/quieter.md |
distill [target] | Refine | Strip to essence, remove complexity | reference/distill.md |
harden [target] | Refine | Production-ready: errors, i18n, edge cases | reference/harden.md |
onboard [target] | Refine | Design first-run flows, empty states, activation | reference/onboard.md |
animate [target] | Enhance | Add purposeful animations and motion | reference/animate.md |
colorize [target] | Enhance | Add strategic color to monochromatic UIs | reference/colorize.md |
typeset [target] | Enhance | Improve typography hierarchy and fonts | reference/typeset.md |
layout [target] | Enhance | Fix spacing, rhythm, and visual hierarchy | reference/layout.md |
delight [target] | Enhance | Add personality and memorable touches | reference/delight.md |
overdrive [target] | Enhance | Push past conventional limits | reference/overdrive.md |
clarify [target] | Fix | Improve UX copy, labels, and error messages | reference/clarify.md |
adapt [target] | Fix | Adapt for different devices and screen sizes | reference/adapt.md |
optimize [target] | Fix | Diagnose and fix UI performance | reference/optimize.md |
Plus two management commands: pin <command> and unpin <command>, detailed below.
Routing rules
- No argument: Run the Smart Recommendation Engine. Analyze the git tree, recent commits, and any existing critique snapshots. Propose the single most high-value next step (e.g., "The git history shows many typography tweaks; run
$impeccable-flutter typesetto consolidate" or "No PRODUCT.md found; run$impeccable-flutter init"). Render the table above as a fallback menu. - First word matches a command: load its reference file and follow its instructions. Everything after the command name is the target.
- First word doesn't match: general design invocation. Apply the setup steps, shared design laws, and the loaded register reference, using the full argument as context.
Setup (context gathering, register) is already loaded by then; sub-commands don't re-invoke $impeccable-flutter.
If the first word is craft, setup still runs first, but reference/craft.md owns the rest of the flow. If setup invokes init as a blocker, finish init, refresh context, then resume the original command and target.
Pin / Unpin
Pin creates a standalone shortcut so $<command> invokes $impeccable-flutter <command> directly. Unpin removes it. The script writes to every harness directory present in the project.
# Claude Code plugins run from a global cache. Replace the relative path below
# with the absolute path to this plugin's scripts directory before running.
node .claude/skills/impeccable-flutter/scripts/pin.mjs <pin|unpin> <command>
Valid <command> is any command from the table above. Report the script's result concisely. Confirm the new shortcut on success, relay stderr verbatim on error.in** removes it. The script writes to every harness directory present in the project.
# Claude Code plugins run from a global cache. Replace the relative path below
# with the absolute path to this plugin's scripts directory before running.
node .claude/skills/impeccable-flutter/scripts/pin.mjs <pin|unpin> <command>
Valid <command> is any command from the table above. Report the script's result concisely. Confirm the new shortcut on success, relay stderr verbatim on error.
Specific Instructions: animate
Additional context needed: performance constraints and target devices (mobile vs desktop).
Add motion that conveys state, gives feedback, and clarifies hierarchy. Cut motion that exists only for decoration. Animation fatigue is a real cost; spend the budget on the moments that need it.
Register
Brand: orchestrated page-load sequences, staggered reveals, scroll-driven animation. Motion is part of the voice; one well-rehearsed entrance beats scattered micro-interactions.
Product: 150–250 ms on most transitions. Motion conveys state: feedback, reveal, loading, transitions between views. No page-load choreography; users are in a task and won't wait for it.
Assess Animation Opportunities
Analyze where motion would improve the experience:
-
Identify static areas:
- Missing feedback: Actions without visual acknowledgment (button taps, form submission, etc.)
- Jarring transitions: Instant state changes that feel abrupt (show/hide, route changes in
Navigator) - Unclear relationships: Spatial or hierarchical relationships that aren't obvious
- Lack of delight: Functional but joyless interactions
- Missed guidance: Opportunities to direct attention or explain behavior
-
Understand the context:
- What's the personality? (Playful vs serious, energetic vs calm)
- What's the performance budget? (Low-end Android? 120Hz iOS device?)
- Who's the audience? (Motion-sensitive users? Power users who want speed?)
- What matters most? (One hero animation vs many micro-interactions?)
If any of these are unclear from the codebase, STOP and ask the user to clarify what you cannot infer.
CRITICAL: Respect MediaQuery.disableAnimationsOf(context). Always provide non-animated alternatives for users who need them.
Plan Animation Strategy
Create a purposeful animation plan:
- Hero moment: What's the ONE signature animation? (Page load? Hero section? Key interaction?)
- Feedback layer: Which interactions need acknowledgment?
- Transition layer: Which state changes need smoothing?
- Delight layer: Where can we surprise and delight?
IMPORTANT: One well-orchestrated experience beats scattered animations everywhere. Focus on high-impact moments.
Implement Animations
Add motion systematically across these categories:
Entrance Animations
- Page load choreography: Stagger element reveals using
flutter_animate'sintervalproperty (50-100ms delays), fade + slide combinations. - Hero section: Dramatic entrance for primary content (scale, parallax, or custom
ShaderMaskeffects). - Content reveals: Scroll-triggered animations using
Slivers orVisibilityDetector. - Modal/drawer entry: Smooth slide + fade via
showModalBottomSheet's transition builder.
Micro-interactions
- Button feedback:
- Tap: Quick scale down then up (0.95 → 1) using
InkResponseor customGestureDetector. - Loading:
CircularProgressIndicatorsized to the text, or a subtle pulse state.
- Tap: Quick scale down then up (0.95 → 1) using
- Form interactions:
- Input focus:
OutlineInputBordercolor transition, slight scale or glow. - Validation: Shake on error (using
flutter_animate.shake()), smooth color transitions.
- Input focus:
- Toggle switches: Smooth slide + color transition (200-300ms) using
AnimatedContainerorSwitch.
State Transitions
- Show/hide:
AnimatedOpacity+AnimatedSlide(not instant), appropriate timing (200-300ms). - Expand/collapse:
AnimatedSizeorExpansionPanelfor height transitions. - Loading states: Skeleton screens (e.g.,
skeletonizerpackage), progress bars. - Success/error: Color transitions, icon animations, gentle scale pulse.
Navigation & Flow
- Page transitions:
CupertinoPageTransitionor customPageRouteBuilderfor shared element transitions (Herowidgets). - Tab switching:
TabBarViewslide indicator, content fade/slide. - Scroll effects:
SliverAppBarparallax layers, sticky headers with state changes.
Technical Implementation
Use appropriate techniques for each animation. We strongly recommend the flutter_animate package for declarative, chainable animations, and explicit AnimationControllers only when complex orchestration is required.
Timing & Easing
Durations by purpose:
- 100-150ms: Instant feedback (button tap, toggle)
- 200-300ms: State changes (hover, menu open)
- 300-500ms: Layout changes (accordion, modal)
- 500-800ms: Entrance animations (page load)
Easing curves (use these, not Flutter's default Curves.ease):
/* Recommended: natural deceleration */
Curves.easeOutQuart // Smooth
Curves.easeOutQuint // Slightly snappier
Curves.easeOutExpo // Confident, decisive
/* AVOID: feel dated and tacky */
// Curves.bounceOut
// Curves.elasticOut
Exit animations are faster than entrances. Use ~75% of enter duration.
Flutter Implementation Examples
// The flutter_animate way (Highly Recommended)
Text("Hello").animate().fade(duration: 300.ms).slideY(begin: 0.2, curve: Curves.easeOutQuart);
// Staggered list
Column(
children: items.animate(interval: 50.ms).fade().slideX(),
);
// Built-in implicit animations (Good for state changes)
AnimatedContainer(
duration: const Duration(milliseconds: 250),
curve: Curves.easeOutQuart,
color: isActive ? primaryColor : Colors.transparent,
);
Performance
- Avoid
SaveLayer: Be careful withOpacityandShaderMaskwrapped around large subtrees as they can force expensive offscreen rendering buffers. UseAnimatedOpacitywhich is optimized. - Use
Transform: Scaling and translating viaTransformis GPU-accelerated and much cheaper than animatingwidthorheightinside a layout. - Monitor FPS: Ensure 60fps (or 120fps on ProMotion devices) by checking the Flutter Performance overlay.
Accessibility
// Check user preference
final disableAnimations = MediaQuery.disableAnimationsOf(context);
if (disableAnimations) {
// Return static widget or simple cross-fade
}
NEVER:
- Use
Curves.bounceOutorCurves.elasticOuteasing curves; they feel dated and draw attention to the animation itself. - Animate layout constraints casually (
width,height, padding) whenTransformwould work, unless explicitly expanding/collapsing content viaAnimatedSize. - Use durations over 500ms for feedback (it feels laggy).
- Animate without purpose (every animation needs a reason).
- Ignore
MediaQuery.disableAnimationsOf(context)(this is an accessibility violation). - Block the UI thread with heavy synchronous calculations during an animation.
Verify Quality
Test animations thoroughly:
- Smooth at 60/120fps: No jank on target devices (Profile mode, not Debug).
- Feels natural: Easing curves feel organic, not robotic.
- Appropriate timing: Not too fast (jarring) or too slow (laggy).
- Reduced motion works: Animations disabled or simplified appropriately.
- Doesn't block: Users can interact during/after animations.
When the motion clarifies state instead of decorating it, hand off to $impeccable-flutter polish for the final pass.