measure-react-renders

Compare React component render counts between two branches using Playwright.

213|13|Updated Aug 7, 2025
One-click install
npx skills add https://github.com/imbue-ai/sculptor --skill measure-react-renders
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: measure-react-renders
Source: https://github.com/imbue-ai/sculptor/tree/main/.claude/skills/measure-react-renders
Command: npx skills add https://github.com/imbue-ai/sculptor --skill measure-react-renders

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, react-devtools, sculptor, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers identify performance regressions in React applications by comparing render counts between different branches.

Core Features & Use Cases

  • Render Count Comparison: Compare React component render counts between the main branch and the current branch for a user-defined UI scenario.
  • Performance Verification: Use when verifying that performance changes have actually reduced re-renders.
  • Use Case: For instance, after a performance optimization, use this Skill to ensure that the expected reduction in re-renders has occurred.

Quick Start

Run the measure-react-renders skill with the scenario file 'panel_resize.py' to compare render counts for the 'panel resize' scenario.

Frequently Asked Questions about measure-react-renders

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

FAQPage Schema
How do I measure React component render counts between two branches?

You can measure React component render counts between two branches by running a user-defined UI scenario that uses React DevTools integration and Playwright for browser automation. It compares render counts between the main branch and your current branch to verify performance improvements.

What's the best way to verify React performance optimization actually reduced re-renders?

To verify React performance optimization reduced re-renders, compare render counts before and after your changes using a defined UI scenario. This Skill measures component renders between the main branch and your current branch to validate that the expected reduction in re-renders has occurred.

Do I need Playwright and React DevTools to analyze React render performance across branches?

Yes, you need Playwright and React DevTools to analyze React render performance across branches. Playwright handles browser automation for executing the UI scenario, while React DevTools integration captures the component render counts required for the comparison.

Can I automate UI testing scenarios to detect React performance regressions?

You can automate UI testing scenarios to detect React performance regressions by defining a user interaction scenario, such as panel resize. The Skill runs this scenario using Playwright to measure and compare render counts, helping identify if performance changes introduced regressions.

How does branch comparison work for React render optimization analysis?

Branch comparison for React render optimization works by executing the same user-defined UI scenario on both the main branch and your current development branch. It then measures and compares the React component render counts to determine if your optimizations successfully reduced re-renders.

When should I use render count comparison for React performance analysis?

You should use render count comparison for React performance analysis after implementing performance optimizations. It is specifically designed to verify that your changes have actually reduced re-renders and to identify any performance regressions introduced between different branches.