Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

animation-performance动画表演

Agent Skill

用于辅助视频生成、动画合成、脚本化剪辑或 Remotion 等视频项目开发。它适合让 Agent 组织镜头、生成素材说明、维护合成代码或排查渲染问题。使用时需要确认分辨率、时长、素材路径和导出格式;涉及外部素材、人物肖像或商业发布时,应先核对版权授权和内容审核要求。

总安装

343

周安装

14

GitHub Stars

23

下载量

111
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:animation-performance(动画表演)
来源仓库:https://github.com/sovranbitcoin/sovran
仓库路径:skills/animation-performance
安装命令:
npx skills add https://github.com/sovranbitcoin/sovran --skill animation-performance
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sovranbitcoin/sovran --skill animation-performance

简介

animation-performance 针对 React Native Reanimated 提供性能调优指南,涵盖共享值、worklet 与渲染优化策略。

  • 适用于解决动画卡顿、FPS 下降问题,特别是在列表滚动与复杂手势交互场景下。
  • 按优先级排序建议,包括避免布局属性动画化、启用 GPU 加速、合理使用 memoization 等。
  • 调试时应结合 Flipper 或 Reanimated Inspector 监控线程通信延迟与 JS/UI 线程阻塞情况。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Animation Performance Tips

Overview

Performance optimization guide for React Native Reanimated animations, covering shared values, worklets, memoization, and rendering optimizations. These guidelines ensure buttery smooth animations at 60fps.

When to Apply

Reference these guidelines when:

  • Debugging janky or stuttering animations
  • Optimizing animation performance (FPS drops)
  • Working with shared values and worklets
  • Implementing gesture handlers
  • Optimizing animated lists and scroll handlers
  • Reviewing Reanimated code for performance issues

Priority-Ordered Guidelines

PriorityCategoryImpactPrefix
1Shared Values UsageCRITICALshared-values-*
2Re-rendersCRITICALre-renders-*
3MemoizationHIGHmemoization-*
4Animation CalculationsHIGHcalculations-*
5Layout vs TransformHIGHlayout-*
6ReactionsHIGHreactions-*
7Hooks SelectionHIGHhooks-*
8Animation LifecycleMEDIUManimations-*
9Component LimitsMEDIUMlimits-*
10Scroll OptimizationMEDIUMscroll-*

Quick Reference

Critical: Shared Values Usage

Common mistakes:

  • Reading shared values on JS thread (causes thread blocking)
  • Accessing shared values during render (violates Rules of React)
  • Using component state for animation values (triggers re-renders)

Quick fixes:

  • Read shared values only in worklets (useAnimatedStyle, useDerivedValue) - see shared-values-read-in-worklets.md
  • Access shared values in useEffect or callbacks, not during render - see shared-values-during-render.md
  • Use useSharedValue instead of useState for animation values - see re-renders-use-shared-values.md
  • Track animation state with useRef instead of reading shared values - see shared-values-track-state-with-ref.md
  • Initialize with simple values, compute complex ones in worklets - see shared-values-initialization.md

Critical: Re-renders

Common fixes:

  • Use shared values instead of component state for animations
  • Memoize animation objects outside component or with constants
  • Memoize frame callbacks with useCallback
  • Memoize gesture objects with useMemo

High: Animation Calculations

Common fixes:

  • Use useDerivedValue for expensive calculations - see calculations-use-derived-value.md
  • Avoid conditional logic in worklets - see calculations-avoid-conditionals.md
  • Use clamp instead of manual Math.min/max - see calculations-use-clamp.md
  • Batch updates with scheduleOnUI - see calculations-batch-with-schedule-on-ui.md
  • Prefer transform properties over layout properties - see layout-prefer-transform.md
  • Choose the right hook (useAnimatedProps vs useAnimatedStyle) - see hooks-choose-animated-props.md
  • Optimize useAnimatedReaction dependencies - see reactions-optimize-dependencies.md
  • Cancel animations properly before starting new ones - see animations-cancel-properly.md

References

Full documentation with code examples in references/:

Shared Values (shared-values-*)

FileImpactDescription
shared-values-read-in-worklets.mdCRITICALRead shared values only in worklets, not on JS thread
shared-values-during-render.mdCRITICALDon't read/modify shared values during render
shared-values-track-state-with-ref.mdHIGHTrack animation state with useRef instead of reading shared values
shared-values-initialization.mdHIGHAvoid expensive initial values, use simple primitives

Re-renders (re-renders-*)

FileImpactDescription
re-renders-use-shared-values.mdCRITICALUse shared values instead of component state for animations

Memoization (memoization-*)

FileImpactDescription
memoization-animations.mdHIGHMemoize animation objects to prevent recreation
memoization-frame-callbacks.mdHIGHMemoize frame callbacks with useCallback
memoization-gesture-objects.mdHIGHMemoize gesture objects with useMemo

Calculations (calculations-*)

FileImpactDescription
calculations-use-derived-value.mdHIGHUse useDerivedValue to optimize useAnimatedStyle calculations
calculations-avoid-conditionals.mdHIGHMinimize conditional logic in worklets, use useDerivedValue
calculations-use-clamp.mdHIGHUse clamp instead of manual Math.min/max in worklets
calculations-batch-with-schedule-on-ui.mdHIGHBatch shared value updates with scheduleOnUI

Layout (layout-*)

FileImpactDescription
layout-prefer-transform.mdHIGHPrefer transform over layout properties

Reactions (reactions-*)

FileImpactDescription
reactions-optimize-dependencies.mdHIGHAvoid unnecessary reactions, optimize dependency tracking

Hooks (hooks-*)

FileImpactDescription
hooks-choose-animated-props.mdHIGHChoose useAnimatedProps vs useAnimatedStyle correctly

Animations (animations-*)

FileImpactDescription
animations-cancel-properly.mdMEDIUMCancel running animations before starting new ones

Limits (limits-*)

FileImpactDescription
limits-animated-components.mdMEDIUMLimit number of simultaneously animated components

Scroll (scroll-*)

FileImpactDescription
scroll-handlers-throttle.mdMEDIUMOptimize scroll handlers with throttling

Problem → Skill Mapping

ProblemStart With
Animation feels janky/stutteringshared-values-read-in-worklets.mdre-renders-use-shared-values.md
Reading shared value to determine toggle stateshared-values-track-state-with-ref.md
Too many re-renders during animationre-renders-use-shared-values.mdmemoization-animations.md
Expensive calculations every framecalculations-use-derived-value.mdcalculations-avoid-conditionals.md
Conditional logic in worklets causing jankcalculations-avoid-conditionals.md
Layout animations are slowlayout-prefer-transform.md
Multiple shared value updates cause jankcalculations-batch-with-schedule-on-ui.md
Clamping values inefficientlycalculations-use-clamp.md
Frame callback performance issuesmemoization-frame-callbacks.md
Gesture handler reattaches frequentlymemoization-gesture-objects.md
useAnimatedReaction causing performance issuesreactions-optimize-dependencies.md
Wrong hook choice (useAnimatedProps vs useAnimatedStyle)hooks-choose-animated-props.md
Animations conflicting or not cancelinganimations-cancel-properly.md
Shared value initialization is expensiveshared-values-initialization.md
Too many animated componentslimits-animated-components.md
Scroll handler causes performance issuesscroll-handlers-throttle.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.03%
按下载量换算42

Claude

29%
按下载量换算32

Cursor

19.36%
按下载量换算21

Gemini CLI

10.35%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills