ankyr-react

Enforces React patterns for hook dependencies, component structure, render optimization, and GSAP integration.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/GuyErreich/AI_Agents --skill ankyr-react-guyerreich
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ankyr-react
Source: https://github.com/GuyErreich/AI_Agents/tree/main/plugins/ankyr-web/skills/ankyr-react
Command: npx skills add https://github.com/GuyErreich/AI_Agents --skill ankyr-react-guyerreich

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? React codebases often accumulate subtle bugs from incomplete hook dependency arrays, leaked animation tweens, unnecessary re-renders, and disorganized component files. This Skill provides concrete rules and references for writing and reviewing React components and hooks correctly. ## Core Features & Use Cases - Hook dependency enforcement: Ensures every value referenced inside useEffect, useCallback, and useMemo appears in its dependency array, with restructuring guidance instead of linter suppression. - Component structure standards: Defines file splitting rules, body ordering (config, state, derived, effects, handlers, return), and fast-refresh-compatible module organization. - GSAP and animation integration: Covers mandatory tween cleanup, useGSAP dependency tracking, GPU acceleration, and ref-based continuous animation instead of per-frame setState. - Use Case: When reviewing a React component that animates elements with GSAP and re-renders excessively, load the relevant references to fix missing effect dependencies, kill leaked tweens in cleanup, and move continuous values to ref mutation. ## Quick Start Ask the AI to review your React component for hook dependency, structure, and animation cleanup issues using the ankyr-react skill.

Frequently Asked Questions about ankyr-react

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix missing useEffect dependency array warnings in React?▼

Include every value referenced inside the effect in its dependency array. If a dependency causes the effect to run too often, restructure by memoizing the value, moving it into a ref, or splitting the effect rather than suppressing the linter.

How to use GSAP animations inside React components?▼

Create tweens inside an effect and always kill or revert them in the effect cleanup to prevent leaks after unmount. Use the useGSAP hook with a correct dependency list and scope, and enable force3D for smoother transform animations.

When should I use useCallback and useMemo in React?▼

Use useCallback for handlers passed to memoized children or used in dependency arrays, and useMemo for expensive derived values or values passed to memoized children. Do not memoize trivial primitives, since it adds noise without benefit.

Why does my React animation cause re-renders every frame?▼

Driving continuous animation through setState triggers a re-render on every frame. Mutate a ref or the target element directly via the animation library instead, keeping per-frame values out of React state.

Why does React fast refresh stop working in my component file?▼

Fast refresh breaks when a module mixes a component export with context, constant, or hook exports. Keep one concern per file by splitting non-component exports into separate modules instead of suppressing the warning.