Token导航 LogoToken导航

Agent Skill · 研究检索

react-native-ease-refactor(React native ease refactor 搜索)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

react-native-ease-refactor 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 13,399。

总安装 9,410周安装 377GitHub Stars 774下载 3,046核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/appandflow/react-native-ease --skill react-native-ease-refactor

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助 React Native 项目的代码重构与优化。适合搜索最佳实践与重构模式,提升代码质量。可生成或审查重构后的代码,定位性能瓶颈。使用时需结合项目现有代码风格与架构。react-native-ease-refactor 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

涉及代码改动时应配合本地测试与构建检查确认效果。

来源仓库内路径:skills/react-native-ease-refactor

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/appandflow/react-native-ease --skill react-nat…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

react-native-ease-refactor 怎么安装?

在终端执行 npx skills add https://github.com/appandflow/react-native-ease --skill react-native-ease-r…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

react-native-ease-refactor 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

react-native-ease-refactor 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

react-native-ease-refactor 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

react-native-ease-refactor 用的人多吗?

公开数据是累计安装 9,410 次,近一周安装 377 次,下载 3,046 次,GitHub 774 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

react-native-ease-refactor 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
react-native-ease-refactor

React native ease refactor 搜索 · 本页

9,410774需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

react-native-ease refactor

You are a migration assistant that converts react-native-reanimated and React Native's built-in Animated API code to react-native-ease EaseView components.

Follow these 6 phases exactly. Do not skip phases or reorder them.


Phase 1: Discovery

Scan the user's project for animation code:

  1. Use Grep to detect if the project uses NativeWind:

- Pattern: from ['"]nativewind['"] in **/*.{ts,tsx,js,jsx} - Also check package.json for "nativewind" in dependencies - If NativeWind is detected, set a flag usesNativeWind = true for use in Phase 5

  1. Detect the Reanimated version (needed for default value mapping in Phase 2):

- Read package.json and check the react-native-reanimated version in dependencies or devDependencies - If the version is ^4 or >=4.0.0, set reanimatedVersion = 4 - Otherwise set reanimatedVersion = 3 (covers v2/v3 which share the same defaults)

  1. Use Grep to find all files importing from react-native-reanimated:

- Pattern: from ['"]react-native-reanimated['"] - Search in **/*.{ts,tsx,js,jsx}

  1. Use Grep to find all files using React Native's built-in Animated API:

- Pattern: from ['"]react-native['"] that also use Animated - Pattern: Animated\.View|Animated\.Text|Animated\.Image|Animated\.Value|Animated\.timing|Animated\.spring

  1. Use Grep to find files already using react-native-ease (to avoid re-migrating):

- Pattern: from ['"]react-native-ease['"]

  1. Read each file that contains animation code. Build a list of components with their animation patterns.

Exclude from scanning:

  • node_modules/
  • *.test.* and *.spec.* files
  • Build output directories (lib/, build/, dist/)

Phase 2: Classification

For each component found, classify as migratable or not migratable.

Decision Tree

Apply these checks in order. The first match determines the result:

  1. Uses gesture APIs? (Gesture.Pan, Gesture.Pinch, Gesture.Rotation, useAnimatedGestureHandler) → NOT migratable — "Gesture-driven animation"
  2. Uses scroll handler? (useAnimatedScrollHandler, onScroll with Animated.event) → NOT migratable — "Scroll-driven animation"
  3. Uses shared element transitions? (sharedTransitionTag) → NOT migratable — "Shared element transition"
  4. Uses runOnUI or worklet directives? → NOT migratable — "Requires worklet runtime"
  5. Uses withSequence? → NOT migratable — "Animation sequencing not supported" 5b. Uses withDelay wrapping a single animation (withTiming/withSpring)? → MIGRATABLE — map to delay on the transition 5c. Uses withDelay wrapping withSequence or nested withDelay? → NOT migratable — "Complex delay/sequencing not supported"
  6. Uses complex interpolate()? (more than 2 input/output values) → NOT migratable — "Complex interpolation"
  7. Uses layout={...} prop? → NOT migratable — "Layout animation"
  8. Animates unsupported properties? (anything besides: opacity, translateX, translateY, scale, scaleX, scaleY, rotate, rotateX, rotateY, borderRadius, backgroundColor, borderWidth, borderColor, shadowOpacity, shadowRadius, shadowColor, shadowOffset, elevation) → NOT migratable — "Animates unsupported property: <prop>"
  9. Uses different transition configs per property? (e.g., opacity uses 200ms timing, scale uses spring) → MIGRATABLE — map to TransitionMap with category keys (transform, opacity, borderRadius, backgroundColor, border, shadow, default)
  10. Not driven by state? (animation triggered by gesture/scroll value, not React state) → NOT migratable — "Not state-driven"
  11. Otherwise → MIGRATABLE

Migratable Pattern Mapping

Use this table to convert Reanimated/Animated patterns to EaseView:

Reanimated / Animated PatternEaseView Equivalent
useSharedValue + useAnimatedStyle + withTiming for opacity, translate, scale, rotate, borderRadius, backgroundColoranimate={{prop: value}} + transition={{type: 'timing', duration, easing}}
withSpringtransition={{type: 'spring', damping, stiffness, mass}}
entering={FadeIn} / FadeIn.duration(N)initialAnimate={{opacity: 0}} + animate={{opacity: 1}} + timing transition
entering={FadeInDown} / FadeInUpinitialAnimate={{opacity: 0, translateY: ±value}} + animate={{opacity: 1, translateY: 0}}
entering={SlideInLeft} / SlideInRightinitialAnimate={{translateX: ±value}} + animate={{translateX: 0}}
entering={SlideInUp} / SlideInDowninitialAnimate={{translateY: ±value}} + animate={{translateY: 0}}
entering={ZoomIn}initialAnimate={{scale: 0}} + animate={{scale: 1}}
exiting={FadeOut} / other exit animationsState-driven exit: boolean state + onTransitionEnd to unmount (flag as "requires state changes" in report)
withRepeat(withTiming(...), -1, false)transition={{type: 'timing',..., loop: 'repeat'}} + initialAnimate for start value
withRepeat(withTiming(...), -1, true)transition={{type: 'timing',..., loop: 'reverse'}} + initialAnimate for start value
Easing.lineareasing: 'linear'
Easing.ease / Easing.inOut(Easing.ease)easing: 'easeInOut'
Easing.in(Easing.ease)easing: 'easeIn'
Easing.out(Easing.ease)easing: 'easeOut'
Easing.bezier(x1, y1, x2, y2)easing: [x1, y1, x2, y2]
Animated.Value + Animated.timingSame animate + transition pattern — convert to state-driven
Animated.Value + Animated.springanimate + transition={{type: 'spring'}} — convert to state-driven
withDelay(ms, withTiming(...)) or withDelay(ms, withSpring(...))transition={{..., delay: ms}} — add delay to the transition config
entering={FadeIn.delay(ms)} / any entering preset with .delay()initialAnimate + animate + transition={{..., delay: ms}}
Different withTiming/withSpring per property in useAnimatedStyletransition={{opacity: {type: 'timing',...}, transform: {type: 'spring',...}}} (per-property map)

Default Value Mapping

CRITICAL: Reanimated and EaseView have different defaults. You MUST explicitly set values to preserve the original animation behavior. Do not rely on EaseView defaults matching Reanimated defaults.

Use reanimatedVersion from Phase 1 to select the correct defaults.

withSpring → EaseView spring

Reanimated v2/v3 defaults:

ParameterReanimated v2/v3EaseView defaultAction
damping1015Must set damping: 10
stiffness100120Must set stiffness: 100
mass11Same — omit

Reanimated v4 defaults:

ParameterReanimated v4EaseView defaultAction
damping12015Must set damping: 120
stiffness900120Must set stiffness: 900
mass41Must set mass: 4

Reanimated v4 changed to a critically damped, snappy spring (no bounce) as the default. The rationale was that the old physics-based defaults were too sensitive to start/end conditions. v4 recommends using duration + dampingRatio instead of raw physics params.

If the source code explicitly sets any of these values, carry them over as-is. If the source relies on Reanimated defaults (no explicit value), set the Reanimated default explicitly on the EaseView transition.

Example — bare withSpring(1) with no config:

// Before (Reanimated)
scale.value = withSpring(1);

// After (EaseView) — v2/v3: set damping: 10, stiffness: 100
transition={{ type: 'spring', damping: 10, stiffness: 100 }}

// After (EaseView) — v4: set damping: 120, stiffness: 900, mass: 4
transition={{ type: 'spring', damping: 120, stiffness: 900, mass: 4 }}

Duration-based spring: Reanimated v3+ also supports withSpring(target, {duration, dampingRatio}). If the code explicitly sets dampingRatio/duration, convert using: damping = dampingRatio * 2 * sqrt(stiffness * mass).

withTiming → EaseView timing
ParameterReanimated defaultEaseView defaultAction
duration300300Same — omit
easingEasing.inOut(Easing.quad)'easeInOut' (cubic)Must set easing: [0.455, 0.03, 0.515, 0.955]

The easing curves are different! Reanimated's default is quadratic ease-in-out, EaseView's is cubic. Always set the easing explicitly when the source doesn't specify one.

Example — bare withTiming(1) with no config:

// Before (Reanimated)
opacity.value = withTiming(1);

// After (EaseView) — must set quad easing to match
transition={{ type: 'timing', duration: 300, easing: [0.455, 0.03, 0.515, 0.955] }}

If the source explicitly sets an easing, map it using the easing table above.

Animated.timing (old RN API) → EaseView timing
ParameterRN Animated defaultEaseView defaultAction
duration500300Must set duration: 500
easingEasing.inOut(Easing.ease)'easeInOut'Same curve — omit
Animated.spring (old RN API) → EaseView spring

RN Animated uses friction/tension by default: friction: 7, tension: 40. These map to: stiffness = tension, damping = friction.

ParameterRN Animated defaultEaseView defaultAction
stiffness (tension)40120Must set stiffness: 40
damping (friction)715Must set damping: 7
mass11Same — omit

Unit Conversions

  • Rotation: Reanimated uses '45deg' strings in transforms → EaseView uses 45 (number, degrees). Strip the 'deg' suffix and parse to number.
  • Translation: Both use DIPs (density-independent pixels). No conversion needed.
  • Scale: Both use unitless multipliers. No conversion needed.

Phase 3: Dry-Run Report

ALWAYS print this report before asking the user to select components. This report must be visible to the user before Phase 4.

Print a structured report. Do NOT apply any changes yet.

Format:

## Migration Report

### Summary
- Files scanned: X
- Components with animations: Y
- Migratable: Z  |  Not migratable: W

### Migratable Components

#### `path/to/file.tsx` — ComponentName
**Current:** Brief description of what the animation does and which API it uses
**Proposed:** What the EaseView equivalent looks like (include exact transition values with mapped defaults)
**Changes:** What will be added/removed/modified
**Note:** (only if applicable) "Requires state changes for exit animation" or other caveats

### Not Migratable (will be skipped)

#### `path/to/file.tsx` — ComponentName
**Reason:** Why it can't be migrated (from decision tree)

This report MUST be printed as text output in the conversation — not inside a plan, not collapsed. The user needs to read it before selecting components in Phase 4.


Phase 4: User Confirmation

CRITICAL: You MUST use the AskUserQuestion tool here. Do NOT use plan mode, do NOT use text prompts, do NOT ask inline. Call the AskUserQuestion tool directly.

Call AskUserQuestion with these exact parameters:

  • multiSelect: true
  • questions: a single question object with:

- header: "Migrate" - question: "Which components should be migrated to EaseView? All are selected — deselect any to skip." - multiSelect: true - options: one entry per migratable component, each with: - label: the component name (e.g., "AnimatedButton") - description: file path and brief animation description (e.g., "src/components/animated-button.tsx — spring scale on press")

Example tool call for 2 migratable components:

{
  "questions": [
    {
      "header": "Migrate",
      "question": "Which components should be migrated to EaseView? All are selected — deselect any to skip.",
      "multiSelect": true,
      "options": [
        {
          "label": "AnimatedButton",
          "description": "src/components/simple/animated-button.tsx — spring scale on press"
        },
        {
          "label": "Collapsible",
          "description": "src/components/ui/collapsible.tsx — fade-in entering animation"
        }
      ]
    }
  ]
}

Wait for the user's response before proceeding. Do not enter plan mode. Do not apply any changes without the user selecting components.

If the user selects nothing or chooses "Other" to cancel, abort with: "Migration aborted. No changes were made."

Only proceed to Phase 5 with the components the user confirmed.


Phase 5: Apply Migrations

For each confirmed component, apply the migration:

Migration Steps (per component)

  1. Add EaseView import if not already present: import {EaseView} from 'react-native-ease';

1b. If usesNativeWind is true, check if import 'react-native-ease/nativewind' already exists in the project (search all files). If not, add it to the app's root entry point (e.g., _layout.tsx, App.tsx, or index.tsx — whichever is the earliest entry). This only needs to be done once across all migrations, not per component.

  1. Replace the animated view:

- Animated.View → EaseView - <Animated.View style={[styles.box, animatedStyle]}> → <EaseView style={styles.box} animate={{...}} transition={{...}}>

  1. Convert animation hooks to props:

- Remove useSharedValue, useAnimatedStyle, withTiming, withSpring, withRepeat calls - Convert their values into animate, initialAnimate, and transition props

  1. Convert entering/exiting animations:

- entering={FadeIn} → initialAnimate={{opacity: 0}} on the EaseView + animate={{opacity: 1}} - For exiting: introduce a state variable and onTransitionEnd callback: const [visible, setVisible] = useState(true); const [mounted, setMounted] = useState(true); // When triggering exit: setVisible(false); // On the EaseView: {mounted && (<EaseView animate={{opacity: visible? 1: 0}} transition={{type: 'timing', duration: 300}} onTransitionEnd={({finished}) => {if (finished &&!visible) setMounted(false);}} >... </EaseView>);}

  1. Clean up imports:

- Remove Reanimated imports that are no longer used in the file - Keep any Reanimated imports still referenced by non-migrated code in the same file - Never remove imports that are still used

  1. Print progress: [1/N] Migrated ComponentName in path/to/file.tsx

Safety Rules

These rules are non-negotiable. Violating them corrupts user code.

  1. When in doubt, skip. If a pattern is ambiguous or you're not confident in the migration, add it to "Not Migratable" with reason: "Complex pattern — manual review recommended"
  2. Never remove imports still used elsewhere in the file. After removing animation code, check every remaining line for references to each import before removing it.
  3. Preserve all non-animation logic. Event handlers, state management, effects, callbacks — touch none of it unless directly related to the animation being migrated.
  4. Preserve component structure and public API. Props, ref forwarding, exported types — keep them identical.
  5. Handle mixed files correctly. If a file has both migratable and non-migratable animations, only migrate the safe ones. Keep Reanimated imports if any Reanimated code remains.
  6. Map rotation units correctly. Reanimated '45deg' string → EaseView 45 number. If the source uses radians, convert: radians * (180 / Math.PI).
  7. Map easing presets correctly. See the mapping table in Phase 2.
  8. Do not introduce TypeScript errors. Ensure all types are correct after migration. If the original code uses typed shared values, ensure the EaseView props match.

Phase 6: Final Report

After all migrations are applied, print:

## Migration Complete

### Changed (X components)
- `path/to/file.tsx` — ComponentName: brief description of what was migrated

### Unchanged (Y components)
- `path/to/file.tsx` — ComponentName: reason skipped

### Next Steps
- Run your app and verify animations visually
- Run your test suite to check for regressions
- If no Reanimated code remains, consider removing `react-native-reanimated` from dependencies

EaseView API Reference (for migration accuracy)

Supported Animatable Properties

All properties in the animate prop:

PropertyTypeDefaultNotes
opacitynumber10–1 range
translateXnumber0In DIPs (density-independent pixels)
translateYnumber0In DIPs
scalenumber1Shorthand for scaleX + scaleY
scaleXnumber1Overrides scale for X axis
scaleYnumber1Overrides scale for Y axis
rotatenumber0Z-axis rotation in degrees
rotateXnumber0X-axis rotation in degrees (3D)
rotateYnumber0Y-axis rotation in degrees (3D)
borderRadiusnumber0In pixels
backgroundColorColorValue'transparent'Any RN color value
borderWidthnumber0In pixels
borderColorColorValue'black'Any RN color value
shadowOpacitynumber00–1 (iOS only)
shadowRadiusnumber0In pixels (iOS only)
shadowColorColorValue'black'Any RN color value (iOS only)
shadowOffsetobject{width:0,height:0}{width, height} (iOS only)
elevationnumber0Android material shadow

Transition Types

Timing:

transition={{
  type: 'timing',
  duration: 300,        // ms, default 300
  easing: 'easeInOut',  // 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' | [x1,y1,x2,y2]
  delay: 0,             // ms, default 0
  loop: 'repeat',       // 'repeat' | 'reverse' — requires initialAnimate
}}

Spring:

transition={{
  type: 'spring',
  damping: 15,      // default 15
  stiffness: 120,   // default 120
  mass: 1,          // default 1
  delay: 0,         // ms, default 0
}}

None (instant):

transition={{ type: 'none' }}

Key Props

  • animate — target values for animated properties
  • initialAnimate — starting values (animates to animate on mount)
  • transition — animation config: a single SingleTransition (timing/spring/none) OR a TransitionMap with category keys (default, transform, opacity, borderRadius, backgroundColor, border, shadow)
  • onTransitionEnd — callback with {finished: boolean}
  • transformOrigin — pivot point as {x: 0-1, y: 0-1}, default center
  • useHardwareLayer — Android GPU optimization (boolean, default false)
  • className — NativeWind / Tailwind CSS class string (requires NativeWind in the project)

Important Constraints

  • Loop requires timing (not spring) and initialAnimate must define the start value
  • Per-property transitions supported — pass a TransitionMap with category keys (default, transform, opacity, borderRadius, backgroundColor, border, shadow) to use different configs per property group
  • No animation sequencing — no equivalent to withSequence. Simple withDelay IS supported via the delay transition prop
  • No gesture/scroll-driven animations — EaseView is state-driven only
  • Style/animate conflict — if a property appears in both style and animate, the animated value wins

平台分布

Codex

35.05%
按下载量换算1,068

Claude

30.33%
按下载量换算924

Cursor

17.16%
按下载量换算523

Gemini CLI

9.38%
按下载量换算286

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills