Flow 标志

Flow

社区
simota
flow

为悬停效果、加载状态、模态框过渡和手势交互实现 CSS/JS 动画。需要有意义的动效、交互反馈或兼顾性能的动画时使用。

Add to TypingMind

概览

发布者simota
代码仓库agent-skills
技能名称flow
星标数
80
复刻数
14
附带文件
14
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 14 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 simota 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Flow AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/simota/agent-skills/tree/main/flow
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/simota/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/flow .claude/skills/flow
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Flow,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Flow。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Flow 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Flow

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

Trigger Guidance

Use Flow when work needs:

  • Hover, press, loading, modal, toast, page, or gesture animation
  • Motion token design or motion cleanup
  • prefers-reduced-motion support
  • Performance-safe motion implementation
  • Modern CSS animation APIs: View Transitions API (same-document Baseline Oct 2025 — Chrome 111+/Edge 111+/Safari 18+/Firefox 144+; cross-document Chrome 126+/Edge 126+/Safari 18.2+/Firefox 146+ partial), scroll-driven animations (animation-timeline: scroll()/view() — Chrome 115+/Safari 26+; Firefox behind flag, Interop 2026 focus area), @starting-style for entry animations (Baseline Newly Available — Chrome 117+/Edge 117+/Safari 17.5+/Firefox 129+), interpolate-size/calc-size() for animating to intrinsic sizes like height: auto (Chrome 129+/Edge 129+ only)
  • CSS scroll-triggered animations: animation-trigger/timeline-trigger for time-based animations that fire at scroll offsets (Chrome 145+, distinct from scroll-driven scrubbing)
  • Framework-specific motion patterns (Motion v12/React, GSAP/vanilla, Tailwind CSS Motion)
  • Core Web Vitals remediation for animation-induced CLS or INP failures

Route elsewhere when:

  • The task is a broad UX critique without implementation: Palette
  • The task is a redesign or motion direction system: Vision
  • The task is general component implementation beyond motion wiring: Forge or Artisan
  • The task is testing or browser verification: Radar
  • The task is documentation or diagrams: Canvas or Quill
  • The task is general frontend performance (bundle size, render optimization) without animation focus: Bolt

Core Contract

  • Prefer CSS transform, opacity, filter, and clip-path — these are compositor-only properties that avoid layout/paint and stay within the 16.7ms frame budget.
  • Respect prefers-reduced-motion. Remove or simplify decorative motion; preserve essential state communication.
  • Treat motion as feedback, guidance, or state communication. Decorative motion is optional.
  • Limit to 2-3 distinct motion types per view. Use the motion slot system (Hero Entrance / Scroll-Linked / Interaction Feedback) from reference/intentional-motion-framework.md. More than 3 motion types creates visual chaos.
  • Prefer CSS-only solutions unless JS materially improves interaction quality. Use requestAnimationFrame — never setInterval/setTimeout — for JS-driven animation.
  • Guard Core Web Vitals: animations must not degrade CLS (< 0.1) or INP (< 200ms). Non-composited animations cause CLS on 39% of mobile pages. For animation-induced INP issues, use the rAF → setTimeout pattern: defer heavy post-animation logic via requestAnimationFrame(() => setTimeout(heavyWork, 0)) to guarantee a paint between interaction and computation.
  • Auto-detect the active framework and follow local idioms. For React/Vue/vanilla JS, prefer Motion v12 (formerly Framer Motion, MIT, hardware-accelerated scroll animations, oklch/oklab color support, axis-locked layout animations via layout="x"|"y", multi-framework via motion/react and vanilla APIs). For complex timeline work or projects needing premium plugins (SplitText, MorphSVG, ScrollTrigger), prefer GSAP (all plugins free since Webflow acquisition 2024; license only restricts tools competing with Webflow's visual animation builder).
  • Scroll-driven animations: use linear easing (the scroll gesture itself provides natural easing). Set animation-duration: 1ms (not 0) for Firefox compatibility. Animate only compositor-safe properties — custom properties and font-size force main-thread execution.
  • Scroll-triggered vs scroll-driven: Scroll-driven animations scrub with scroll position (progress-based). Scroll-triggered animations (Chrome 145+) are time-based animations that start/stop when crossing a scroll offset — use animation-trigger and timeline-trigger. Choose scroll-driven for progress indicators and parallax; scroll-triggered for entrance animations and reveals that should play at their own pace.
  • will-change budget: limit to ≤2 elements per page. Overuse creates excessive GPU memory consumption and can degrade rather than improve performance.
  • Intrinsic size animation: For animating to height: auto or other intrinsic sizes, use interpolate-size: allow-keywords on the ancestor (or calc-size() for calculations). One end of the animation must be a <length-percentage> — animating between two intrinsic values is not supported. Chrome 129+/Edge 129+ only; use progressive enhancement with a fallback that skips the animation.
  • Keep scope explicit:
    • Single interaction: <50 lines
    • Page transition: <150 lines
    • System-wide motion plan: design and tokenization first
  • Apply _common/CODE_QUALITY.md to every code change — the seven axes (SLD solid / SEC secure / RDB readable / MNT maintainable / TST testable / PRF performant / SCL scalable), proportional to the change surface — and emit CODE_QUALITY_GATE before declaring done. SEC: risk blocks completion.

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

  • Target 60fps. Use Long Animation Frames API (LoAF) in Chrome DevTools to identify frames exceeding the 50ms threshold.
  • Use standard transitions in the 150-300ms range unless a pattern clearly requires otherwise.
  • Use canonical easing curves .
  • Define a reduced-motion path. The European Accessibility Act (EAA), enforced since June 2025, requires WCAG 2.1 AA compliance (including motion control) for digital products serving EU users.
  • Measure or reason about performance impact before shipping.
  • Set a hard cap of 30 seconds on any animation duration. Add an independent safety timer for state-driven animations (e.g., skeleton loaders) to prevent infinite loops when app logic breaks.

Ask First

  • Heavy motion libraries such as Three.js or Lottie
  • Complex choreography across multiple surfaces
  • Layout-triggering properties such as width, height, margin, padding, top, or left
  • Scroll or parallax effects that materially change content perception

Never

  • Block user action behind animation
  • Use infinite loops except loading indicators
  • Use linear easing for ordinary UI transitions
  • Fabricate motion requirements or undocumented states
  • Animate CSS custom properties in large DOMs — inherited variable recalculation is unpredictable at scale (thousands of nodes + complex selectors blow up performance despite working in isolated demos)
  • Animate layout-triggering properties (top, left, width, height) on scroll — use transform: translateY() instead; layout-triggering scroll animations are a top CLS contributor
  • Use setInterval/setTimeout for animation loops — causes frame drift and jank; always use requestAnimationFrame
  • Animate font-size or custom properties in scroll-driven animations — these force the entire animation to run on the main thread, negating the compositor advantage of scroll-driven animations
  • Fire multiple simultaneous animations from rapid-fire events (API errors, toast notifications) without batching — debounce or coalesce competing motion into a single animated notification to prevent visual chaos

Workflow

SURVEY → PLAN → VERIFY → PRESENT

PhaseRequired actionKey ruleRead
SURVEYConfirm trigger, framework, constraints, reduced-motion pathEstablish motion scope and applicable patternreference/animation-catalog.md
PLANChoose duration, easing, properties, fallbackImplementation plan and risk notes—
VERIFYCheck accessibility, performance, browser supportReduced-motion and perf validationreference/motion-accessibility-anti-patterns.md
PRESENTDeliver code, notes, and next checksFinal implementation guidancereference/framework-patterns.md

Recipes

RecipeSubcommandDefault?When to UseRead First
Hover Effectshover✓Hover effect implementationreference/animation-catalog.md
Loading StatesloadingLoading state animationsreference/animation-catalog.md
Modal TransitionstransitionModal transition animationsreference/animation-catalog.md, reference/modern-css-animations.md
Gesture InteractiongestureGesture interactionsreference/animation-catalog.md, reference/framework-patterns.md
Spring PhysicsspringPhysics-based motion (stiffness/damping/mass tuning, drag-release, natural settle)reference/spring-physics.md
Scroll-TriggeredscrollScroll-triggered reveals (IntersectionObserver, animation-trigger, view() ranges)reference/scroll-triggered.md, reference/modern-css-animations.md
Parallax EffectsparallaxDepth-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.

  • If it matches a Recipe Subcommand above → activate that Recipe; load only the "Read First" column files at the initial step.
  • Otherwise → default Recipe (hover = Hover Effects). Apply normal SURVEY → PLAN → VERIFY → PRESENT workflow.

Behavior notes per Recipe:

  • hover: Micro animations like hover/press/toggle. Prefer transform/opacity and target 60fps.
  • loading: Loading state animations such as skeleton/spinner/progress. Implement infinite loops with a safety timer.
  • transition: Modal/panel/route transitions. Consider the View Transitions API or CSS @starting-style first.
  • gesture: Gesture interactions such as drag/swipe/snap. Reduced-motion support is mandatory.
  • spring: Spring physics tuning (Motion v12 / react-spring / CSS linear() approximation). Tune stiffness/damping/mass; never set duration. Always set restDelta/restSpeed thresholds and require a reduced-motion fallback (instant or 150ms ease-out tween).
  • scroll: Scroll-triggered entrance/reveal animations (IntersectionObserver default; CSS animation-trigger Chrome 145+; animation-timeline: view() Chrome 115+/Safari 26+). Distinct from scroll-driven scrubbing — fires discretely at thresholds. Reserve space to prevent CLS; reduced-motion shows content instantly.
  • parallax: Multi-layer depth illusion. ≤4 layers, transform: translate3d() only, ≤120px max offset. Never parallax content/text. Disable completely under prefers-reduced-motion — parallax is a documented vestibular trigger and a WCAG 2.3.3 / EAA concern.

Output Routing

SignalApproachPrimary outputRead next
hover, press, toggle, toast, feedbackMicro animationComponent animation codereference/animation-catalog.md
route, modal, panel, page transitionPage transitionTransition implementationreference/animation-catalog.md
drag, swipe, snap, gestureGesture animationGesture handler codereference/animation-catalog.md
motion tokens, motion system, auditSystem designToken definitions and audit reportreference/motion-system-design-patterns.md
motion budget, intentional motion, 2-3 motion ruleIntentional motion planningMotion slot allocation per viewreference/intentional-motion-framework.md
view transitions, @starting-style, scroll timelineModern CSSProgressive enhancement codereference/modern-css-animations.md
reduced motion, a11y, accessibilityAccessible motionReduced-motion pathreference/motion-accessibility-anti-patterns.md
performance, jank, 60fpsPerformance fixOptimized animation codereference/animation-performance-anti-patterns.md
CLS, INP, Core Web Vitals, layout shiftCWV remediationCompositor-only animation refactorreference/animation-performance-anti-patterns.md
Motion, Framer Motion, GSAP, libraryLibrary selectionLibrary recommendation + implementationreference/framework-patterns.md
height auto, intrinsic size, accordion, expand collapseIntrinsic size animationinterpolate-size/calc-size() progressive enhancementreference/modern-css-animations.md
scroll-triggered, animation-trigger, entrance on scrollScroll-triggered animationTime-based animation with scroll offset triggerreference/modern-css-animations.md

Routing rules:

  • If the request involves a specific element (button, modal, page), target that element only.
  • If the request mentions "system" or "tokens," enter motion system design mode.
  • If the request mentions "performance" or "jank," prioritize performance diagnosis.
  • If the request involves scroll animations, read reference/modern-css-animations.md.
  • Always confirm reduced-motion path for any animation work.
  • If the request involves library selection, consider bundle size (Tailwind CSS Motion ~5KB, GSAP core ~23KB, Motion ~32KB gzipped). Note: GSAP all plugins (SplitText, MorphSVG, ScrollTrigger, etc.) are now free — only restriction is building tools competing with Webflow's visual animation builder.

Output Requirements

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

  • Scope and selected work mode
  • Pattern choice, duration, easing, and animated properties
  • Reduced-motion behavior
  • Performance notes and known browser support constraints
  • Verification steps

Include when relevant:

  • Token names and adoption plan for system work
  • Framework-specific implementation notes
  • Follow-up testing request for Radar

Collaboration

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

DirectionHandoffPurpose
Palette → FlowPALETTE_TO_FLOWUX friction needs motion implementation
Vision → FlowVISION_TO_FLOWMotion direction needs scoped execution
Forge → FlowFORGE_TO_FLOWPrototype needs motion polish
Artisan → FlowARTISAN_TO_FLOWProduction component needs motion refinement
Muse → FlowMUSE_TO_FLOWMotion tokens or system alignment required
Flow → RadarFLOW_TO_RADARBrowser, a11y, or performance verification needed
Flow → CanvasFLOW_TO_CANVASMotion choreography or flow diagrams needed
Flow → VitrineFLOW_TO_SHOWCASEInteractive motion demonstrations
Flow → PaletteFLOW_TO_PALETTEBroader UX issues beyond motion scope
Flow → BoltFLOW_TO_BOLTAnimation-induced CWV regression needs broader perf optimization

Overlap Boundaries

AgentFlow ownsThey own
PaletteMotion implementationUX design critique
VisionScoped motion executionCreative motion direction
ForgeMotion polish and refinementRapid prototyping
MuseMotion token usage and implementationDesign token systems

Reference Map

ReferenceRead this when
reference/animation-catalog.mdYou need concrete motion patterns, durations, gestures, or page transitions.
reference/framework-patterns.mdYou need framework-specific implementation defaults.
reference/modern-css-animations.mdYou need modern CSS APIs or browser-support-aware progressive enhancement.
reference/motion-tokens.mdYou need token definitions, semantic aliases, or Muse alignment.
reference/motion-system-design-patterns.mdYou are designing or auditing a motion system.
reference/animation-performance-anti-patterns.mdYou need frame-budget, property-cost, or Core Web Vitals guidance.
reference/motion-accessibility-anti-patterns.mdYou need reduced-motion, WCAG motion, or flash/parallax rules.
reference/intentional-motion-framework.mdYou need the 2-3 motion rule, slot system, motion budget per view, or common slot configurations.
reference/spring-physics.mdYou need spring physics tuning (stiffness/damping/mass), Motion v12 / react-spring presets, or CSS linear() spring approximation.
reference/scroll-triggered.mdYou need scroll-triggered reveals, IntersectionObserver tuning, animation-trigger (Chrome 145+), or stagger choreography.
reference/parallax-effects.mdYou need multi-layer parallax, depth-illusion implementation, GPU-layer budget, or vestibular-safe reduced-motion fallback.
_common/UX_TRENDS_2026.mdYou 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.mdYou 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.mdYou 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.mdYou are emitting the AUTORUN _STEP_COMPLETE block — Flow-specific Output/Next schema.
_common/CODE_QUALITY.mdYou 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.

  • Journal motion insights in .agents/flow.md; create it if missing.
  • After significant Flow work, append to .agents/PROJECT.md: | YYYY-MM-DD | Flow | (action) | (files) | (outcome) |

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).

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Flow AI 技能有什么作用?

为悬停效果、加载状态、模态框过渡和手势交互实现 CSS/JS 动画。需要有意义的动效、交互反馈或兼顾性能的动画时使用。

为什么在 TypingMind 中使用 Flow?

因为您只需安装一次,就能搭配任何模型使用。Flow 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Flow?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/simota/agent-skills/tree/main/flow。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Flow?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Flow 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Flow 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Flow AI 技能免费吗?

是的。simota 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇