Communitygithub.com

动画系统架构师

使用Framer Motion、GSAP、View Transitions API和弹性物理引擎设计高性能动画系统。激活场景:页面过渡、微交互、滚动动画、布局动画、弹性物理。不适用于:纯CSS悬停效果(请使用css-in-js-architect),视频/画布渲染(请使用creative-coding-expert)。

动画系统架构师 是什么?

这是一个为开发者提供构建高性能、可访问动画系统的技能。它整合了Framer Motion、GSAP、View Transitions API和弹性物理等主流技术,覆盖从页面过渡、微交互到滚动动画的各类场景。技能强调使用`transform`和`opacity`等合成器友好属性来保证60fps流畅度,并提供清晰的架构模式(如Framer Motion布局动画、View Transitions API页面导航、减少运动偏好处理)。同时,明确列出了反模式(如动画化`width`/`height`、滥用`will-change`、忽略`prefers-reduced-motion`)和质量检查清单,帮助开发者避开常见性能陷阱。主要适用于React和非React前端项目,支持Next.js等现代框架。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/curiositech/windags-skills/tree/HEAD/skills/animation-system-architect

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

动画系统架构师 是做什么的?

使用Framer Motion、GSAP、View Transitions API和弹性物理引擎构建高性能、可访问的动画系统,打造流畅的UI体验。

激活触发器

激活场景:页面过渡、布局动画、滚动触发动画、微交互、弹性物理、motion.div、gsap.to、View Transition API、共享元素过渡、交错列表动画。

不适用场景:纯CSS悬停/焦点效果——请使用css-in-js-architect。Canvas/WebGL渲染——请使用creative-coding-expert。Lottie文件播放——请使用标准Lottie集成。

快速入门

  1. 选择引擎——React声明式选用Framer Motion,时间线密集型或非React项目选用GSAP,跨页面导航选用View Transitions API。
  2. 仅对变换和透明度进行动画——这些操作在合成器线程(GPU)上运行,可避免布局抖动。
  3. 谨慎使用will-change——仅对即将动画的元素应用,动画完成后移除。
  4. 尊重prefers-reduced-motion——对于有此类请求的用户,禁用或简化所有动画。
  5. 使用开发者工具进行性能分析——在Performance面板中检查动画期间是否有布局偏移。

核心能力

领域技术关键模式
声明式ReactFramer Motion 11+, motion组件布局动画、AnimatePresence、变体
时间线动画GSAP 3.12+, ScrollTrigger滚动驱动序列、固定、擦洗
页面过渡View Transitions API, Next.js useViewTransition跨页面共享元素过渡
弹性物理Framer Motion弹性, react-spring自然缓动、可中断动画
微交互CSS过渡 + Framer Motion按钮反馈、悬停状态、加载指示器
滚动驱动CSS animation-timeline: scroll(), GSAP ScrollTrigger视差、进度指示器、滚动时显示

架构模式

模式1:Framer Motion布局动画

import { motion, AnimatePresence, LayoutGroup } from 'framer-motion';

function FilterableGrid({ items, filter }: Props) {
  const filtered = items.filter(item => item.category === filter);

  return (
    <LayoutGroup>
      <motion.div layout className="grid grid-cols-3 gap-4">
        <AnimatePresence mode="popLayout">
          {filtered.map(item => (
            <motion.div
              key={item.id}
              layout                             // 对位置变化进行动画
              initial={{ opacity: 0, scale: 0.8 }}
              animate={{ opacity: 1, scale: 1 }}
              exit={{ opacity: 0, scale: 0.8 }}
              transition={{ type: 'spring', stiffness: 300, damping: 25 }}
            >
              <Card item={item} />
            </motion.div>
          ))}
        </AnimatePresence>
      </motion.div>
    </LayoutGroup>
  );
}

模式2:View Transitions API用于页面导航

// app/components/TransitionLink.tsx
'use client';
import { useRouter } from 'next/navigation';
import { useCallback } from 'react';

export function TransitionLink({ href, children }: { href: string; children: React.ReactNode }) {
  const router = useRouter();

  const handleClick = useCallback((e: React.MouseEvent) => {
    e.preventDefault();
    if (!document.startViewTransition) {
      router.push(href);
      return;
    }
    document.startViewTransition(() => {
      router.push(href);
    });
  }, [href, router]);

  return <a href={href} onClick={handleClick}>{children}</a>;
}
/* 通过 view-transition-name 实现共享元素过渡 */
.product-image {
  view-transition-name: product-hero;
}

::view-transition-old(product-hero) {
  animation: fade-and-scale 0.3s ease-out;
}
::view-transition-new(product-hero) {
  animation: fade-and-scale 0.3s ease-in reverse;
}

模式3:减少运动偏好处理

import { useReducedMotion } from 'framer-motion';

function AnimatedComponent() {
  const shouldReduce = useReducedMotion();

  return (
    <motion.div
      initial={{ opacity: 0, y: shouldReduce ? 0 : 20 }}
      animate={{ opacity: 1, y: 0 }}
      transition={shouldReduce
        ? { duration: 0 }
        : { type: 'spring', stiffness: 260, damping: 20 }
      }
    >
      内容
    </motion.div>
  );
}
  ┌─ 动画决策树 ──────────────────────────────────┐
  │                                                   │
  │  prefers-reduced-motion?                          │
  │  ├── 是 → 仅即时透明度淡入(无运动)                │
  │  └── 否 → 完整弹性/变换动画                      │
  │                                                   │
  │  什么是正在动画的元素?                           │
  │  ├── transform/opacity → GPU合成器(好)         │
  │  ├── width/height → 布局抖动(避免)              │
  │  └── box-shadow → 仅绘制(可接受)                │
  └───────────────────────────────────────────────────┘

反模式

  1. 对width、height、top、left进行动画——每帧触发布局重新计算。使用transform: translate/scale替代以获得60fps。
  2. 在每个元素上使用will-change——向GPU提升过多图层,增加内存使用。仅对即将动画的元素应用。
  3. 忽略prefers-reduced-motion——对运动敏感的用户会出现恶心或癫痫症状。务必检查并尊重此媒体查询。
  4. 微交互动画持续时间 > 500ms——使UI感觉迟钝。按钮/悬停反馈保持在200ms以下,页面过渡保持在400ms以下。
  5. 在滚动过程中不使用requestAnimationFrame或ScrollTrigger进行动画——导致卡顿。使用GSAP ScrollTrigger或CSS animation-timeline: scroll()进行滚动驱动动画。

质量检查清单

  • 所有动画均使用transform和opacity(合成器友好属性)
  • 通过useReducedMotion或CSS媒体查询尊重prefers-reduced-motion
  • 微交互在200ms以下,页面过渡在400ms以下
  • 使用AnimatePresence处理挂载/卸载动画
  • 布局动画使用Framer Motion的layout属性(而非手动位置计算)
  • will-change仅在动画期间应用,动画完成后移除
  • Chrome DevTools Performance面板中无卡顿(无超过16ms的长帧)
  • 动画是可中断的(弹性物理,而非固定关键帧配合ease)
  • View Transitions API有针对不支持浏览器的降级方案
  • 滚动驱动动画使用animation-timeline或ScrollTrigger(而非滚动事件监听器)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

curiositech/windags-skills

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

curiositech/windags-skills

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

curiositech/windags-skills

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

curiositech/windags-skills

Implement WCAG 2.2 AA/AAA compliance with automated testing, keyboard navigation, screen reader support, and focus management. Activate on: accessibility audit, WCAG compliance, keyboard navigation, screen reader, aria attributes, axe-core, focus trap. NOT for: design-level accessibility review (use design-accessibility-auditor), color contrast only (use css-in-js-architect).

curiositech/windags-skills

Time-blind friendly planning, executive function support, and daily structure for ADHD brains. Specializes in realistic time estimation, dopamine-aware task design, and building systems that actually work for neurodivergent minds.

curiositech/windags-skills

Designs digital experiences for ADHD brains using neuroscience research and UX principles. Expert in reducing cognitive load, time blindness solutions, dopamine-driven engagement, and compassionate design patterns. Activate on 'ADHD design', 'cognitive load', 'accessibility', 'neurodivergent UX', 'time blindness', 'dopamine-driven', 'executive function'. NOT for general accessibility (WCAG only), neurotypical UX design, or simple UI styling without ADHD context.

curiositech/windags-skills

>- Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

curiositech/windags-skills

Extend and modify the admin dashboard, developer portal, and operations console. Use when adding new admin tabs, metrics, monitoring features, or internal tools. Activates for dashboard development, analytics, user management, and internal tooling.

curiositech/windags-skills

Conversation patterns and interaction protocols for multi-agent systems. Covers request/response, pub/sub, blackboard, delegation chains, debate, critique, consensus, fan-out/fan-in, supervisor-worker, and peer negotiation. Deep analysis of AutoGen conversation patterns, CrewAI delegation, LangGraph state passing, and FIPA-ACL performatives. Teaches how to design what agents say to each other and in what order. Activate on: "agent conversation", "agent protocol", "multi-agent debate", "agent delegation", "supervisor worker pattern", "agent voting", "consensus protocol", "fan-out fan-in", "agent negotiation", "blackboard pattern", "agent dialogue", "conversation topology", "agent handoff". NOT for: wire format or serialization (use agent-interchange-formats), orchestration infrastructure (use agentic-infrastructure-2026), single agent behavior (use agentic-patterns).

curiositech/windags-skills

Meta-agent for creating new custom agents, skills, and MCP integrations. Expert in agent design, MCP development, skill architecture, and rapid prototyping. Activate on 'create agent', 'new skill', 'MCP server', 'custom tool', 'agent design'. NOT for using existing agents (invoke them directly), general coding (use language-specific skills), or infrastructure setup (use deployment-engineer).

curiositech/windags-skills

AI-powered calendar management and agent-based scheduling coordination. Covers calendar APIs (Google Calendar, CalDAV/iCal), AI scheduling assistants (Reclaim, Clockwise, Motion, Cal.com), building custom calendar agents with MCP, multi-calendar merging, timezone management, focus block protection, meeting fatigue detection, and agent-to-agent meeting negotiation protocols. Activate on: "calendar agent", "AI scheduling", "calendar coordination", "meeting scheduling", "calendar API", "focus time protection", "calendar optimization", "Google Calendar MCP", "Reclaim", "Clockwise", "Motion", "Cal.com", "smart scheduling", "calendar-aware agent", "timezone scheduling", "agent negotiation meetings". NOT for: manual calendar UI component design (use form-validation-architect), project management scheduling or Gantt charts (use project-management-guru-adhd), general time-tracking or pomodoro apps (use adhd-daily-planner for time-awareness), building the agent itself from scratch (use agent-creator).

curiositech/windags-skills

Build and adopt production AI agent infrastructure in 2026. Covers framework selection (LangGraph, CrewAI, AutoGen, MCP), orchestration patterns, evaluation, observability, memory systems, and tool use. Also covers the SOCIAL dimension: how to sell agent infrastructure internally, change management, measuring ROI, building trust in autonomous systems, and scaling adoption across teams. Activate on: "agent infrastructure", "agent framework comparison", "which agent framework", "sell AI tools internally", "agent adoption", "agent observability", "agent evaluation", "MCP architecture", "agentic mesh", "enterprise AI agents", "AI change management", "agent ROI". NOT for: building specific agents (use ai-engineer), designing agent behavior patterns (use agentic-patterns), prompt tuning (use prompt-engineer).

curiositech/windags-skills

Fundamental patterns for effective agentic behavior. Teaches decomposition, tool orchestration, error recovery, context management, quality self-assessment, and knowing when to stop. Model-agnostic principles that make any agent more effective regardless of domain. Activate on: "how should I structure this agent", "agentic workflow", "agent patterns", "multi-step task", "tool orchestration", "/agentic-patterns", "decompose this", "agent best practices", "chain of actions", "when should the agent stop", "agent loop design". NOT for: creating agent infrastructure (use agent-creator), building DAGs (use windags-architect), specific tool implementation.

curiositech/windags-skills

Automated discovery and matching of agent skills for dynamic task routing and capability assessment

curiositech/windags-skills

Cryptographic security for agentic systems — zero-trust agent networking, signed message envelopes (JWS/JWE), capability-based security (ocaps), Merkle tree audit trails, WASM sandboxing, and formal verification. Covers CLI dev tool security, mTLS between agents, permission boundaries (least privilege for AI agents), and supply chain security for skills/plugins. Activate on: "agent security", "zero trust agents", "secure agent communication", "capability-based security", "ocap", "signed messages between agents", "agent audit trail", "sandbox agent execution", "agent permissions", "mTLS agents", "cryptographic verification", "agent supply chain", "OWASP agentic", "prove agent did X", "tamper-proof agent logs". NOT for: application-level SAST scanning (use security-auditor), network firewall rules (use infrastructure), SOC2/HIPAA compliance (organizational), or prompt injection defense (use prompt-engineer).

curiositech/windags-skills

Data structures and serialization formats for agent-to-agent communication. Covers message envelopes, structured output schemas, capability declarations, task handoff payloads, error/retry signaling, and context windows as data structures. Deep comparison of A2A protocol, MCP, OpenAI function calling, and LangChain message types. Teaches when to use rigid schemas vs free-form with validation, typed vs untyped, streaming vs batch. Activate on: "agent message format", "agent communication schema", "agent-to-agent protocol", "A2A protocol", "MCP message format", "structured output for agents", "agent interop", "interchange format", "agent serialization", "task handoff format", "capability declaration". NOT for: what agents say to each other (use agent-conversation-protocols), orchestration topology (use multi-agent-coordination), building agent infrastructure (use agentic-infrastructure-2026).

curiositech/windags-skills

Logic-based agent programming language implementing BDI architecture for practical autonomous agent development

curiositech/windags-skills

>- Design AgentSpeak(L)-style BDI agents with context-guarded plans, selection functions, and intention stacks. Use for interruptible autonomy, agent policy, and multi-agent orchestration in dynamic environments. NOT for simple rule engines, static planners, or centralized workflows.

curiositech/windags-skills

Foundational concurrent computation model where actors communicate exclusively through asynchronous message passing

curiositech/windags-skills

license: Apache-2.0 NOT for unrelated tasks outside this domain.

相关技能