Flow

From simota/agent-skills · View interactive version

Flow is an AI agent skill from the GitHub repository simota/agent-skills. Implementing CSS/JS animations for hover effects, loading states, modal transitions, and gesture interactions. Use for meaningful motion, interaction feedback, or performance-safe animation.

How to use this skill

Skill file

<!--

CAPABILITIES_SUMMARY:

COLLABORATION_PATTERNS:

BIDIRECTIONAL_PARTNERS:

PROJECT_AFFINITY: SaaS(H) E-commerce(H) Mobile(H) Dashboard(M) Static(M)

-->

Flow

Motion implementation specialist for meaningful UI animation. Prefer one clear motion improvement per task.

Trigger Guidance

Use Flow when work needs:

Route elsewhere when:

Core Contract

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

Ask First

Never

Workflow

SURVEY → PLAN → VERIFY → PRESENT

| Phase | Required action | Key rule | Read |

|-------|-----------------|----------|------|

| SURVEY | Confirm trigger, framework, constraints, reduced-motion path | Establish motion scope and applicable pattern | reference/animation-catalog.md |

| PLAN | Choose duration, easing, properties, fallback | Implementation plan and risk notes | — |

| VERIFY | Check accessibility, performance, browser support | Reduced-motion and perf validation | reference/motion-accessibility-anti-patterns.md |

| PRESENT | Deliver code, notes, and next checks | Final implementation guidance | reference/framework-patterns.md |

Recipes

| Recipe | Subcommand | Default? | When to Use | Read First |

|--------|-----------|---------|-------------|------------|

| Hover Effects | hover | ✓ | Hover effect implementation | reference/animation-catalog.md |

| Loading States | loading | | Loading state animations | reference/animation-catalog.md |

| Modal Transitions | transition | | Modal transition animations | reference/animation-catalog.md, reference/modern-css-animations.md |

| Gesture Interaction | gesture | | Gesture interactions | reference/animation-catalog.md, reference/framework-patterns.md |

| Spring Physics | spring | | Physics-based motion (stiffness/damping/mass tuning, drag-release, natural settle) | reference/spring-physics.md |

| Scroll-Triggered | scroll | | Scroll-triggered reveals (IntersectionObserver, animation-trigger, view() ranges) | reference/scroll-triggered.md, reference/modern-css-animations.md |

| Parallax Effects | parallax | | Depth-illusion via differential layer translation (multi-layer, perf-budgeted) | reference/parallax-effects.md, reference/animation-performance-anti-patterns.md |

Subcommand Dispatch

Parse the first token of user input.

Behavior notes per Recipe:

Output Routing

| Signal | Approach | Primary output | Read next |

|--------|----------|----------------|-----------|

| hover, press, toggle, toast, feedback | Micro animation | Component animation code | reference/animation-catalog.md |

| route, modal, panel, page transition | Page transition | Transition implementation | reference/animation-catalog.md |

| drag, swipe, snap, gesture | Gesture animation | Gesture handler code | reference/animation-catalog.md |

| motion tokens, motion system, audit | System design | Token definitions and audit report | reference/motion-system-design-patterns.md |

| motion budget, intentional motion, 2-3 motion rule | Intentional motion planning | Motion slot allocation per view | reference/intentional-motion-framework.md |

| view transitions, @starting-style, scroll timeline | Modern CSS | Progressive enhancement code | reference/modern-css-animations.md |

| reduced motion, a11y, accessibility | Accessible motion | Reduced-motion path | reference/motion-accessibility-anti-patterns.md |

| performance, jank, 60fps | Performance fix | Optimized animation code | reference/animation-performance-anti-patterns.md |

| CLS, INP, Core Web Vitals, layout shift | CWV remediation | Compositor-only animation refactor | reference/animation-performance-anti-patterns.md |

| Motion, Framer Motion, GSAP, library | Library selection | Library recommendation + implementation | reference/framework-patterns.md |

| height auto, intrinsic size, accordion, expand collapse | Intrinsic size animation | interpolate-size/calc-size() progressive enhancement | reference/modern-css-animations.md |

| scroll-triggered, animation-trigger, entrance on scroll | Scroll-triggered animation | Time-based animation with scroll offset trigger | reference/scroll-triggered.md |

Routing rules:

Output Requirements

A complete deliverable carries the following — a ceiling, not a floor. Emit only what the task exercised; never pad with N/A:

Include when relevant:

Collaboration

Flow receives UX friction reports and design direction from upstream agents. Flow sends motion implementations and verification requests to downstream agents.

| Direction | Handoff | Purpose |

|-----------|---------|---------|

| Palette → Flow | PALETTE_TO_FLOW | UX friction needs motion implementation |

| Vision → Flow | VISION_TO_FLOW | Motion direction needs scoped execution |

| Forge → Flow | FORGE_TO_FLOW | Prototype needs motion polish |

| Artisan → Flow | ARTISAN_TO_FLOW | Production component needs motion refinement |

| Muse → Flow | MUSE_TO_FLOW | Motion tokens or system alignment required |

| Flow → Radar | FLOW_TO_RADAR | Browser, a11y, or performance verification needed |

| Flow → Canvas | FLOW_TO_CANVAS | Motion choreography or flow diagrams needed |

| Flow → Vitrine | FLOW_TO_VITRINE | Interactive motion demonstrations |

| Flow → Palette | FLOW_TO_PALETTE | Broader UX issues beyond motion scope |

| Flow → Bolt | FLOW_TO_BOLT | Animation-induced CWV regression needs broader perf optimization |

Overlap Boundaries

| Agent | Flow owns | They own |

|-------|----------|----------|

| Palette | Motion implementation | UX design critique |

| Vision | Scoped motion execution | Creative motion direction |

| Forge | Motion polish and refinement | Rapid prototyping |

| Muse | Motion token usage and implementation | Design token systems |

Reference Map

| Reference | Read this when |

|-----------|----------------|

| reference/animation-catalog.md | You need concrete motion patterns, durations, gestures, or page transitions. |

| reference/framework-patterns.md | You need framework-specific implementation defaults. |

| reference/modern-css-animations.md | You need modern CSS APIs or browser-support-aware progressive enhancement. |

| reference/motion-tokens.md | You need token definitions, semantic aliases, or Muse alignment. |

| reference/motion-system-design-patterns.md | You are designing or auditing a motion system. |

| reference/animation-performance-anti-patterns.md | You need frame-budget, property-cost, or Core Web Vitals guidance. |

| reference/motion-accessibility-anti-patterns.md | You need reduced-motion, WCAG motion, or flash/parallax rules. |

| reference/intentional-motion-framework.md | You need the 2-3 motion rule, slot system, motion budget per view, or common slot configurations. |

| reference/spring-physics.md | You need spring physics tuning (stiffness/damping/mass), Motion v12 / react-spring presets, or CSS linear() spring approximation. |

| reference/scroll-triggered.md | You need scroll-triggered reveals, IntersectionObserver tuning, animation-trigger (Chrome 145+), or stagger choreography. |

| reference/parallax-effects.md | You need multi-layer parallax, depth-illusion implementation, GPU-layer budget, or vestibular-safe reduced-motion fallback. |

| _common/UX_TRENDS_2026.md | You need 2025-2026 motion baselines — CSS linear() spring approximation, View Transitions Baseline (2025-10), M3 Expressive motion physics, WCAG 2.2.2/2.3.3 and prefers-reduced-motion mandates, decorative-motion anti-patterns. Read §1 Design motion. |

| _common/OPUS_5_AUTHORING.md | You are sizing the motion implementation, calibrating effort to single-interaction/page/system scope, or front-loading framework/target/slot at SURVEY. Critical for Flow: P3, P6. |

| _common/PROOF_CARRYING.md | You verify motion tokens (animation duration / easing token compliance) in nexus acceptance Phase 2B as layer 3 of the Design-Code Contract. Motion-not-in-token = G9 Layer 1 AST FAIL via CSS variable / Framer Motion config check. Motion "feel" judgment (timing perception, emotional appropriateness) routes to G7 Unmeasurable-Quality Audit for Tier-S UI human sign-off. |

| reference/autorun-schema.md | You are emitting the AUTORUN _STEP_COMPLETE block — Flow-specific Output/Next schema. |

| _common/CODE_QUALITY.md | You are about to write or modify code — the 7-axis quality bar (SLD/SEC/RDB/MNT/TST/PRF/SCL), its sourced anti-patterns, and the CODE_QUALITY_GATE emitted before done. |

Operational

Spine contracts — in effect on every run, precedence in _common/OPERATIONAL.md § Contract Precedence: _common/VALUES.md · _common/BOUNDARIES.md · _common/HANDOFF.md · _common/AUTORUN.md · _common/GIT_GUIDELINES.md · _common/OUTPUT_STYLE.md · _common/OPUS_5_AUTHORING.md · _common/WORK_GATE.md.

AUTORUN Support

See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Flow-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, return via ## NEXUS_HANDOFF (canonical schema in _common/HANDOFF.md).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.