$ .cursor/rules/ ├── react-composition-patterns.mdc # Compound components, context, state management ├── react-performance-critical.mdc # Async waterfalls, Promise.all, bundle size, lazy loading ├── react-rerender-optimization.mdc # memo, useMemo, useState, useRef, derived state ├── react-rendering-performance.mdc # Animations, SVG, CSS content-visibility, conditionals ├── react-javascript-performance.mdc # Loops, caching, Set/Map, array methods └── react-advanced-patterns.mdc # Refs, useEffectEvent, initialization COMMAND_BLOCK: .cursor/rules/ ├── react-composition-patterns.mdc # Compound components, context, state management ├── react-performance-critical.mdc # Async waterfalls, Promise.all, bundle size, lazy loading ├── react-rerender-optimization.mdc # memo, useMemo, useState, useRef, derived state ├── react-rendering-performance.mdc # Animations, SVG, CSS content-visibility, conditionals ├── react-javascript-performance.mdc # Loops, caching, Set/Map, array methods └── react-advanced-patterns.mdc # Refs, useEffectEvent, initialization COMMAND_BLOCK: .cursor/rules/ ├── react-composition-patterns.mdc # Compound components, context, state management ├── react-performance-critical.mdc # Async waterfalls, Promise.all, bundle size, lazy loading ├── react-rerender-optimization.mdc # memo, useMemo, useState, useRef, derived state ├── react-rendering-performance.mdc # Animations, SVG, CSS content-visibility, conditionals ├── react-javascript-performance.mdc # Loops, caching, Set/Map, array methods └── react-advanced-patterns.mdc # Refs, useEffectEvent, initialization CODE_BLOCK: --- description: React re-render optimization. Use when component renders excessively, props cause unnecessary updates, or memoization strategies are needed. globs: "*.tsx,*.jsx" alwaysApply: false --- CODE_BLOCK: --- description: React re-render optimization. Use when component renders excessively, props cause unnecessary updates, or memoization strategies are needed. globs: "*.tsx,*.jsx" alwaysApply: false --- CODE_BLOCK: --- description: React re-render optimization. Use when component renders excessively, props cause unnecessary updates, or memoization strategies are needed. globs: "*.tsx,*.jsx" alwaysApply: false --- CODE_BLOCK: @react-rerender-optimization Why is this component rendering 40 times on a single keystroke? CODE_BLOCK: @react-rerender-optimization Why is this component rendering 40 times on a single keystroke? CODE_BLOCK: @react-rerender-optimization Why is this component rendering 40 times on a single keystroke? CODE_BLOCK: Read @react-rerender-optimization.mdc to understand the project's coding rules and conventions. Then scan the src directory to identify all places where code violates or fails to follow these rules. For each violation found: * Cite the specific file path and the relevant code. * Reference which rule from the .mdc is being violated. * Group violations by rule so the plan is easy to follow. The goal is to produce a plan that, once confirmed, will implement the minimal set of changes needed to bring all code in src into full compliance. Prioritize violations by impact: correctness issues first, then structural/architectural rules, then style/convention rules. CODE_BLOCK: Read @react-rerender-optimization.mdc to understand the project's coding rules and conventions. Then scan the src directory to identify all places where code violates or fails to follow these rules. For each violation found: * Cite the specific file path and the relevant code. * Reference which rule from the .mdc is being violated. * Group violations by rule so the plan is easy to follow. The goal is to produce a plan that, once confirmed, will implement the minimal set of changes needed to bring all code in src into full compliance. Prioritize violations by impact: correctness issues first, then structural/architectural rules, then style/convention rules. CODE_BLOCK: Read @react-rerender-optimization.mdc to understand the project's coding rules and conventions. Then scan the src directory to identify all places where code violates or fails to follow these rules. For each violation found: * Cite the specific file path and the relevant code. * Reference which rule from the .mdc is being violated. * Group violations by rule so the plan is easy to follow. The goal is to produce a plan that, once confirmed, will implement the minimal set of changes needed to bring all code in src into full compliance. Prioritize violations by impact: correctness issues first, then structural/architectural rules, then style/convention rules. CODE_BLOCK: This plan is too large to execute as a single unit. Split it into smaller, self-contained plans that can each be reviewed and executed independently. Each sub-plan should: * Be a logical, cohesive chunk of work (grouped by rule, by module, or by type of change, use your judgment). * Be ordered so that earlier plans don't depend on later ones (but later plans may build on earlier ones). * Keep the same structure: cite specific files, reference the rule being addressed, and describe the exact changes. CODE_BLOCK: This plan is too large to execute as a single unit. Split it into smaller, self-contained plans that can each be reviewed and executed independently. Each sub-plan should: * Be a logical, cohesive chunk of work (grouped by rule, by module, or by type of change, use your judgment). * Be ordered so that earlier plans don't depend on later ones (but later plans may build on earlier ones). * Keep the same structure: cite specific files, reference the rule being addressed, and describe the exact changes. CODE_BLOCK: This plan is too large to execute as a single unit. Split it into smaller, self-contained plans that can each be reviewed and executed independently. Each sub-plan should: * Be a logical, cohesive chunk of work (grouped by rule, by module, or by type of change, use your judgment). * Be ordered so that earlier plans don't depend on later ones (but later plans may build on earlier ones). * Keep the same structure: cite specific files, reference the rule being addressed, and describe the exact changes. COMMAND_BLOCK: -weight: 500;">git clone https://github.com/alonsarias/agent-rules.-weight: 500;">git cp agent-rules/.cursor/rules/react-*.mdc /your-project/.cursor/rules/ COMMAND_BLOCK: -weight: 500;">git clone https://github.com/alonsarias/agent-rules.-weight: 500;">git cp agent-rules/.cursor/rules/react-*.mdc /your-project/.cursor/rules/ COMMAND_BLOCK: -weight: 500;">git clone https://github.com/alonsarias/agent-rules.-weight: 500;">git cp agent-rules/.cursor/rules/react-*.mdc /your-project/.cursor/rules/ - react-best-practices performance patterns and rendering optimizations - composition-patterns component architecture, compound components, context usage - Review it manually, you should understand every change before approving - Let the agent implement it - Run the build (-weight: 500;">npm run build or equivalent) - Fix any breakage before moving to the next sub-plan