/dev-flow:rn-animations-gesturesfrom dev-flow
Adds animations and gestures to React Native + Expo apps using Reanimated 4 and Gesture Handler 3. Covers scale/opacity/translation transitions, layout animations, shared-value motion, swipe-to-delete, pan/pinch/long-press gestures, and scroll-linked animations.
Ships in dev-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For the current Expo API and per-version details, verify against the Expo docs / MCP
mcp.expo.dev/expo/skills(see rn-fundamentals → Source of truth).
Animated API from react-native for new code. Reanimated 4 also ships a web-style CSS Animations/Transitions API (transitionProperty / transitionDuration / transitionTimingFunction style props, animationName keyframes) as a backward-compatible ADDITION to worklets — good for state-driven style changes, not a replacement for useSharedValue/useAnimatedStyle on gesture-driven motion (see references/patterns.md).PanResponder. Expo SDK 58 bundles react-native-gesture-handler ~3.3.0 (SDK 57 had ~2.32.0, a major behind). Use usePanGesture({...}), usePinchGesture, useTapGesture, useLongPressGesture with <GestureDetector>; compose with useSimultaneousGestures / useCompetingGestures / useExclusiveGestures. ⚠️ The v2 Gesture.Pan().onEnd(...) builders still compile in 3.3.0 but every one is @deprecated ("will be removed in a future version", gestureObjects.ts) — so copied v2 snippets keep working and keep spreading. Callbacks are renamed (onStart→onActivate, onEnd→onDeactivate) and a hook gesture cannot relate to a v2 one: migrate a screen whole. Before→after in references/patterns.md → "Migrating from Gesture Handler 2".scheduleOnRN(fn, ...args) from react-native-worklets. ⚠️ runOnJS is @deprecated in Reanimated 4 — still so in [email protected]'s own workletFunctions.ts, which names the replacement; runOnUI → scheduleOnUI, executeOnUIRuntimeSync → runOnUISync, makeShareableClone → createSerializable. All of them live in react-native-worklets (0.13.0 on SDK 58), the package expo install already brings alongside Reanimated. The old names still work and will keep compiling, which is why they survive in copied snippets..get() / .set(), not .value. Same semantics, but .value is the form the React Compiler cannot see through, and set takes a functional update: sv.set(v => v + 1). Never read or write a shared value during render — a read is a snapshot that never updates and silently desyncs, a write fires mid-reconciliation and is replayed by any re-render you did not cause. Worklets, handlers and effects only.scheduleOnRN per frame. In onUpdate or a scroll handler that is 60–120 calls a second across the runtime boundary — the single biggest cause of jank in an RN app, along with setState in the same place. It belongs in onDeactivate, or in a useAnimatedReaction that fires when a value crosses a threshold.'worklet' as its first line, or it throws at runtime on device while working fine in the debugger.entering={FadeIn}, exiting={FadeOut}, layout={LinearTransition.springify()} from react-native-reanimated — they handle their own worklets correctly. ⚠️ Reanimated 4.7 (SDK 58) switched them to a new engine by default. If an enter/exit/layout animation regresses after the upgrade, the rollback is a static flag in package.json — "reanimated": { "staticFeatureFlags": { "USE_LEGACY_LAYOUT_ANIMATIONS_PROXY": true } } — then a native rebuild; the pod script refuses it alongside ENABLE_SHARED_ELEMENT_TRANSITIONS (the legacy proxy has no shared element transitions). A rollback, not a setting to keep.useDerivedValue for computed shared values. Never useMemo on a shared value — useMemo runs on JS thread.references/mobile-standards.md holds the gate (mobile's own frequency table, where tab switches
never slide), the platform-first tool ladder (formSheet, NativeTabs, Link.Preview,
headerLargeTitleEnabled — reach for these before a worklet), the spring configs in Reanimated's
dampingRatio form, the project() / rubberband() worklets, press targets and hitSlop, the three
absolute haptics rules, the setup that silently breaks motion, and the release-build-on-the-slowest-
device rule. The curves and durations are the same bar as the web's
(transitions/references/animation-standards.md); that file is what mobile changes.
references/decision-tree.mdreferences/patterns.mdreact-native-worklets and Gesture Handler are all in rn-bootstrap's install-stack.sh. No babel config to write: babel-preset-expo wires the worklets plugin when the library is installed.import { Animated } from "react-native" — use react-native-reanimated's Animated instead.setMyState(newValue) from inside a worklet — scheduleOnRN(setMyState, newValue). And if it is a gesture or scroll handler, prefer a shared value + useAnimatedStyle so React never re-renders at all.runOnJS / runOnUI in new code — deprecated in Reanimated 4 (see rule 3).props.foo directly inside useAnimatedStyle — capture into a shared value first.PanResponder — deprecated for new code. Use <GestureDetector>.Gesture.Pan() / Gesture.Simultaneous() and the other v2 builders in new code — @deprecated in Gesture Handler 3 (rule 2).TouchableOpacity / TouchableHighlight / TouchableWithoutFeedback from react-native-gesture-handler — @deprecated in 3.3.0 ("Use Pressable instead"). Use its Pressable, or Touchable (activeScale, activeOpacity, animationDuration) for plain press feedback.Swipeable — gone from Gesture Handler 3. ReanimatedSwipeable from react-native-gesture-handler/ReanimatedSwipeable (only that and ReanimatedDrawerLayout/ remain as subpaths). ⚠️ dragOffsetFromRight is now non-positive (default -10; a positive value throws in dev).react-native-reanimated alone. Reanimated 4 moved worklets into react-native-worklets, a separate required package — Expo's own line is npx expo install react-native-reanimated react-native-worklets. It builds without it and fails at runtime.height: 'auto' — impossible on the UI thread (no measure). Either measure with onLayout or use LayoutAnimation from Reanimated.withTiming(...) inside useEffect without cancelAnimation — leaks on unmount.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lukedj78/dev-flow --plugin dev-flow57 skills in this plugin
/animated-iconsAdd a Motion-animated icon to a Next.js app from a shadcn registry instead of hand-animating an SVG. Two registries, picked from the project's icon set: **heroicons-animated** (316 icons, `shadcn add @heroicons-animated/<name>`) and **hugeicons-animated** (165 icons, `shadcn add @hugeicons-animated/<name>`, which also installs a shared `lib/use-icon-animation.ts`). Both MIT, both on the `motion` runtime, both copied into your repo as source. This skill owns the install plus the two things the raw components lack: a `prefers-reduced-motion` guard and timing aligned to the project motion tokens (`lib/motion/`). Use when the user says "animated icon", "animate this icon", "make the bell/heart/menu icon animate on hover", "aggiungi un'icona animata", or wants an icon micro-interaction. Refuses outside Next.js web — for React Native use `rn-animations-gestures`. Not for: static icons, a whole motion system (`transitions`), or installing the runtime itself (`module-add motion`)./app-securityCheck whether an app's own code can be attacked before it ships — vulnerable dependencies, secrets in the code and in git history, Next.js authorization gaps (Server Actions and route handlers without a session check, queries by id with no owner filter — IDOR), data over-exposure, secrets in public env vars, raw SQL — then read the flagged code against an OWASP checklist, with an opt-in dynamic level (Strix) that proves exploits against the app running locally. The fifth pre-deploy gate, beside compliance-audit, vercel-doctor, shadscan and launch-audit; reports and routes, never blocks. Triggers: "security review", "è sicura l'app?", "controllo di sicurezza prima del deploy", "IDOR", "secrets in the repo", "pentest". Not for: GDPR and legal (compliance-audit), UI quality (shadscan), cost (vercel-doctor), launch readiness (launch-audit), a review of one branch diff (Claude Code's /security-review), third-party registry code (registry-intake)./app-verificationGive a project a manual for proving its features on the real app, written once and kept true: `.claude/skills/verify-<app>/` with how to launch it until it is usable, a read-only doctor check, how to drive it with the repo's real selectors, what counts as proof and where it goes, how to stop only what it started — plus one feature file per PRD story, seeded from the wireframe screen inventory, and a headless-Chrome render probe (overflow, wrapped headings, text hidden under reduced motion). Two modes: create (scaffold, fill from the code, prove it live once, record `meta.json#verification`) and maintain (re-read every feature from source, drive them all live, fix the manual, report real regressions). Web, Expo and eve. Triggers: "verify the app", "prova che funziona", "verification skill", "come si avvia l'app per provarla", "maintain the verify skill", "il manuale di verifica è aggiornato?". Not for: writing tests (write-tests), UI audits (shadscan), security (app-security), deploying (vercel-deploy)./compliance-auditRun a GDPR + EU AI Act compliance audit on an existing dev-flow project (web / mobile / eve agent) and remediate what it finds. Two modes: Audit (scan the codebase and `meta.json#stack` against a 11-point risk register — DSAR, consent/cookies, EU data residency, retention and PII-scrubbing, AI-transparency Art.50, high-risk Annex III, sub-processors — into a report with severity, evidence and article mapping) and Remediate (apply the safe mechanical mitigations, flag the ones needing a legal decision, never deciding legal basis or high-risk for the user). A pre-deploy gate; run it any time. Triggers: "audit GDPR", "compliance check", "AI Act", "siamo conformi?", "DSAR / cancellazione account / cookie consent / data residency". Not for: the other pre-deploy gates (vercel-doctor, shadscan, launch-audit, app-security), legal advice or DPIA sign-off (a DPO confirms), building features, or writing the PRD (use prd-from-idea)./composition-patterns-guideUse when refactoring React or React Native components that suffer from boolean prop proliferation, missing compound structure, prop drilling, or unclear ownership of state. Codifies the 7 Vercel composition-patterns rules for our web + RN stack — composition or explicit variants over boolean props, compound components with shared context, state lifted into providers, children over render props, React 19 (no forwardRef) — plus our colocation rules (Rule of Three, L0/L1/L2, `_components/`). Triggers on: "refactor this component", "questo componente ha troppi prop booleani", "rendi questo componente più componibile", "compound component", "context provider per X", "design del componente". Not for: scaffolding new components (use design-md-to-app, screenshot-to-page, rn-add-screen), or moving components up the hierarchy (use promote-component)./coss-uiSet up or extend a Next.js web app with Coss/UI — the official Cal.com design system, built on Base UI + Tailwind CSS v4 and installed through the shadcn CLI via the namespaced `@coss/*` registry. Two modes: Init (`shadcn init @coss/style` on a new project) and Add (pull `@coss/ui` primitives, single `@coss/<name>` components, or particles into an existing one). Sets `meta.json#stack.ui = "coss"`. Triggers: "usa Coss/UI", "coss.com/ui", "Cal.com design system", "aggiungi un componente Coss", "init @coss/style", "scaffold con Coss UI", or dev-flow routing when `stack.ui = "coss"`. Requires Tailwind CSS v4 and carries a mixed MIT/AGPLv3 license. Not for: writing the DESIGN.md (use figma-to-design-md / image-to-design-md), the generic Next.js scaffold (design-md-to-app owns it), backend modules (module-add), or React Native (RN uses NativeWind, not Coss).