agentleFS
BetterTypedBetterTyped/react-zoom-pan-pinch/.claude/skills/react-performance/SKILL.md

react-performance

Skill2k starsChanged 8 months agoMITView on GitHub

Vercel's React best-practices rules, filtered to what matters for a gesture library. The full set (much of it about Next.js servers, data fetching and bundles) is in .agents/skills/vercel-react-best-practices/. Read only the rule files that match what you are changing. Gestures write transform straight to the content element. They never re-render React per frame (see .cursor/rules/library-context.mdc). Keep it that way. Anything that subscribes to the transform (useTransformEffect, useTransformComponent, MiniMap) must read it without re-rendering the wrapper's subtree. All paths are under…

21 other projects use a version of this.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about BetterTyped/react-zoom-pan-pinch

The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 50

Talked about on GitHub (50 times).

On GitHub · 50

45 more on GitHub

Used with

Projects with it also use parallel-execution-optimizer, vite-patterns and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • marcusgollSkill

    parallel-execution-optimizer

    Identify and execute independent operations in parallel for 3-5x speedup. Auto-analyzes task dependencies, groups into batches, launches parallel Task() calls. Applies to /optimize (5 checks), /ship pre-flight (5 checks), /implement (task batching), /prototype (N screens). Auto-triggers when detecting multiple independent operations in a phase.

    Also in 5 projects that use this

  • ronmkrSkill

    vite-patterns

    Vite build tool patterns including config, plugins, HMR, env variables, proxy setup, SSR, library mode, dependency pre-bundling, and build optimization. Activate when working with vite.config.ts, Vite plugins, or Vite-based projects.

    Also in 5 projects that use this

  • renepfSkill

    orch-pipeline

    Shared orchestration engine for the orch-* skill family. Defines the gated Research-Plan-TDD-Review-Commit pipeline, the size classifier, the agent map, and the two human gates that the orch-* operation skills delegate to. Not usually invoked directly.

    Also in 3 projects that use this

  • renepfSkill

    motion-advanced

    Advanced motion patterns for React / Next.js — drag & drop, gestures, text animations, SVG path drawing, custom hooks, imperative sequences (useAnimate), loaders, and the full API decision tree. Requires motion-foundations.

    Also in 3 projects that use this

  • ronmkrSkill

    latency-critical-systems

    Use for latency-sensitive systems such as realtime dashboards, market data, streaming agents, execution gateways, queues, caches, or HFT-like infrastructure where freshness and p95 latency matter.

    Also in 3 projects that use this

  • RojiosSkill

    security-bounty-hunter

    Hunt for exploitable, bounty-worthy security issues in repositories. Focuses on remotely reachable vulnerabilities that qualify for real reports instead of noisy local-only findings.

    Also in 4 projects that use this

  • +2 more from renepf
  • +1 more from ronmkr

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All paths are under .agents/skills/vercel-react-best-practices/rules/.

    line 27

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

React performance for react-zoom-pan-pinch

Vercel's React best-practices rules, filtered to what matters for a gesture library. The full set (much of it about Next.js servers, data fetching and bundles) is in .agents/skills/vercel-react-best-practices/. Read only the rule files that match what you are changing.

First, the library's own model

Gestures write transform straight to the content element. They never re-render React per frame (see .cursor/rules/library-context.mdc). Keep it that way. Anything that subscribes to the transform (useTransformEffect, useTransformComponent, MiniMap) must read it without re-rendering the wrapper's subtree.

Rules worth reading

All paths are under .agents/skills/vercel-react-best-practices/rules/.

Re-renders and state — hooks, TransformWrapper and context consumers:

  • rerender-use-ref-transient-values.md: per-frame values go in refs, not state
  • rerender-defer-reads.md, rerender-derived-state.md, rerender-derived-state-no-effect.md
  • rerender-dependencies.md, rerender-functional-setstate.md, rerender-lazy-state-init.md
  • rerender-memo.md, rerender-memo-with-default-value.md, rerender-simple-expression-in-memo.md
  • rerender-no-inline-components.md, rerender-split-combined-hooks.md
  • rerender-move-effect-to-event.md: interaction logic belongs in event handlers

Callbacks and listeners — props like onPanning, and document/window listeners:

  • advanced-event-handler-refs.md: keep the latest callback in a ref so listeners register once
  • advanced-init-once.md, advanced-effect-event-deps.md
  • client-event-listeners.md, client-passive-event-listeners.md. Wheel and touch listeners that call preventDefault must stay non-passive.

Hot paths — code that runs on every pointer move or animation frame:

  • js-batch-dom-css.md: read layout (getBoundingClientRect, offsetWidth) before writing styles
  • js-cache-property-access.md, js-early-exit.md, js-cache-function-results.md

Rendering — MiniMap SVG, stories:

  • rendering-svg-precision.md, rendering-animate-svg-wrapper.md, rendering-hoist-jsx.md, rendering-conditional-render.md

Compatibility

react and react-dom peers are *, so library code must not depend on React 19-only APIs (useEffectEvent, <Activity>, use). It can use them only behind a fallback. Stories and tests can use whatever the dev dependency supports.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.