Agent skill

Measure React Renders

by imbue-ai in imbue-ai/sculptor

Compare React component render counts between origin/main and the current branch during a user-defined UI scenario (e.g.

MITAuto-check passedFrontend & Design

Install Measure React Renders

skills CLI
$ npx skills add imbue-ai/sculptor --skill measure-react-renders -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install imbue-ai/sculptor measure-react-renders --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/imbue-ai/sculptor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/measure-react-renders .claude/skills/measure-react-renders && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
measure-react-renders
GitHub stars
238
Token cost
~603 tokens
SKILL.md length
123 words
Files
9 (incl. scripts)
Skills in repo
29
Repo updated
First seen
Licence
MIT

At a glance

Compare React component render counts between origin/main and the current branch during a user-defined UI scenario (e.g.

  • Works in 4 steps: Create the baseline worktree → Write the scenario file → Run the comparison → …
  • Verifying that performance changes actually reduced re-renders
  • SKILL.md covers Step 1: Create the baseline…, Step 2: Write the scenario file, Step 3: Run the comparison and Step 4: Cleanup, plus 1 more section
  • Runs Python scripts from its folder; calls git, npm and uv

What it does

Measure React Renders is an agent skill from imbue-ai/sculptor. Compare React component render counts between origin/main and the current branch during a user-defined UI scenario (e.g. panel resize, navigation). Use when verifying that performance changes actually reduced re-renders.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts (for example `scenarios/chat_message.py`, `scenarios/long_chat_scroll.py` and `scenarios/panel_resize.py`).

It sits in Frontend & Design, covering React components. It works with React. The repository describes itself as: Build product with grounded, parallel coding agents. The licence is MIT.

When your agent uses it

  • Verifying that performance changes actually reduced re-renders
  • Tasks that involve React components

Example prompts

  • “/measure-react-renders”

Requirements

  • Python 3
  • Node.js

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Create the baseline worktree
  2. Write the scenario file
  3. Run the comparison
  4. Cleanup

What it can do on your machine

Read from SKILL.md and the folder at commit f847102. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • git
    • npm
    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, npm and uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Measure React Renders loads about 603 tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 123 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~603

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from imbue-ai/sculptor at commit f847102, republished under its MIT licence (© imbue-ai). 123 words, ~603 tokens.

Download SKILL.mdSave it as .claude/skills/measure-react-renders/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
measure-react-renders
description
Compare React component render counts between origin/main and the current branch during a user-defined UI scenario (e.g. panel resize, navigation). Use when verifying that performance changes actually reduced re-renders.
argument-hint
<scenario-file>

Render Performance Comparison

Step 1: Create the baseline worktree

bash
git fetch origin main
git worktree add /tmp/sculptor_baseline origin/main
cd /tmp/sculptor_baseline/sculptor/frontend && npm install --silent

Step 2: Write the scenario file

If the user provides one, use it. Otherwise write a Python file exporting:

  • DESCRIPTION: str — what is being measured
  • TARGET_COMPONENTS: list[str] — component names to highlight
  • setup(page, base_url, workspace_id, task_id) — navigate + wait
  • action(page) — perform the action to measure

Component names must be unminified source names (e.g. SplittableSectionComponent for the memo-wrapped SplittableSection export, AlphaChatInterface if not wrapped).

See scenarios/panel_resize.py for an example.

Step 3: Run the comparison

bash
uv run --project sculptor python \
  .claude/skills/measure-react-renders/scripts/perf_compare.py \
  --baseline-dir /tmp/sculptor_baseline \
  --current-dir "$(pwd)" \
  --scenario path/to/scenario.py

Use --skip-build if frontends are already built.

The script builds both frontends with --minify false (preserves component names), starts two isolated backends, injects __REACT_DEVTOOLS_GLOBAL_HOOK__ via Playwright's addInitScript before React loads, runs the scenario, and prints a comparison table.

Step 4: Cleanup

bash
git worktree remove /tmp/sculptor_baseline

Scenario example

python
import time

DESCRIPTION = "Section resize render cascade"
TARGET_COMPONENTS = ["AlphaChatInterface", "SectionGrid", "SplittableSectionComponent"]

def setup(page, base_url, workspace_id, task_id):
    page.goto(f"{base_url}/#/ws/{workspace_id}/agent/{task_id}")
    page.wait_for_load_state("networkidle")
    time.sleep(5)

def action(page):
    handles = page.locator('[role="separator"]').all()
    handle = handles[-1]
    handle.focus()
    time.sleep(0.3)
    for _ in range(5):
        page.keyboard.press("ArrowLeft")
        time.sleep(0.15)
    for _ in range(5):
        page.keyboard.press("ArrowRight")
        time.sleep(0.15)

© imbue-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts) in .claude/skills/measure-react-renders of imbue-ai/sculptor.

  • SKILL.md
  • scenarios/chat_message.py
  • scenarios/long_chat_scroll.py
  • scenarios/panel_resize.py
  • scenarios/panel_toggle.py
  • scenarios/tab_switching.py
  • scenarios/tiptap_typing.py
  • scripts/perf_compare.py
  • scripts/ws_frequency.py

Open the folder on GitHubat commit f847102

Compare with similar skills

Measure React Renders next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Measure React Renders compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Measure React Renders this skillimbue-ai/sculptor238—~603Automated safety check: PassMIT
Web Artifacts Builderanthropics/skills180k40 repos~769Automated safety check: PassApache-2.0
React Router Developmentremix-run/react-router57k1 repos~1.5kAutomated safety check: PassMIT
React UI State PatternsChrisWiles/claude-code-showcase6.1k8 repos~1.6kAutomated safety check: PassNone
React View Transitions Guidevercel-labs/next-beats16811 repos~3.1kAutomated safety check: PassMIT
Chakra UI v3 Builderchakra-ui/chakra-ui41k—~3.1kAutomated safety check: PassMIT

Similar skills

  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 40 repos~769 tokens
    Frontend & DesignAuto-check passed
  • React Router Development

    remix-run/react-router

    Guides work on React Router apps by first identifying whether the app uses Framework, Data or Declarative mode, then loading the matching reference and the installed package docs.

    57k GitHub starsUsed in 1 repo~1.5k tokens
    Frontend & DesignAuto-check passed
  • React UI State Patterns

    ChrisWiles/claude-code-showcase

    Sets patterns for React interfaces: when to show loading spinners or skeletons, how to surface errors, how to disable buttons during async work and how to handle empty lists.

    6.1k GitHub starsUsed in 8 repos~1.6k tokens
    Frontend & DesignAuto-check passed
  • React View Transitions Guide

    vercel-labs/next-beats

    Official

    Guides implementing animated page and state transitions in React with the native View Transition API, covering shared elements, list reorders and directional navigation.

    168 GitHub starsUsed in 11 repos~3.1k tokens
    Frontend & DesignAuto-check passed
  • Chakra UI v3 Builder

    chakra-ui/chakra-ui

    Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.

    41k GitHub stars~3.1k tokensUpdated 4 days ago
    Frontend & DesignAuto-check passed
  • Analyze and optimize React component performance issues (slow renders, re-render thrash, laggy lists, expensive computations).

    4k GitHub starsUsed in 5 repos~1.2k tokens
    Frontend & DesignAuto-check passed

More from imbue-ai/sculptor

All 29 skills in this repo
  • Auto QA Iphone

    imbue-ai/sculptor

    QA the Sculptor mobile web UI on a real iOS Simulator, driven headlessly from a Mac.

    238 GitHub stars~3.1k tokensUpdated yesterday
    Auto-check passed
  • Post PR To Slack

    imbue-ai/sculptor

    Post a one-line PR announcement to a Slack channel, and mark it :merged: when the PR merges.

    238 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Batch Claude Runner

    imbue-ai/sculptor

    Run Claude programmatically against collections of files in the codebase.

    238 GitHub stars~308 tokensUpdated yesterday
    Auto-check passed
  • Build Sculptor Extension

    imbue-ai/sculptor

    Build or modify a Sculptor extension — a runtime ESM module loaded into the Sculptor UI.

    238 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Code Review Checklist

    imbue-ai/sculptor

    Review a set of code changes against Sculptor's review categories and produce a markdown findings table.

    238 GitHub stars~3.6k tokensUpdated yesterday
    Auto-check passed
  • Cut Release

    imbue-ai/sculptor

    Cut a new Sculptor release candidate from main: run just cut-release (which creates the release/sculptor-vX.Y.0 branch at X.Y.0rc1, pushes the tag that triggers the RC build, and opens a PR bumping…

    238 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Measure React Renders

What does Measure React Renders do?

Compare React component render counts between origin/main and the current branch during a user-defined UI scenario (e.g. Measure React Renders is an agent skill from imbue-ai/sculptor.g.

When should I use Measure React Renders?

Measure React Renders fits situations like: verifying that performance changes actually reduced re-renders; tasks that involve React components.

How do I install Measure React Renders in Claude Code?

Run `npx skills add imbue-ai/sculptor --skill measure-react-renders -a claude-code`. Or copy the skill folder (.claude/skills/measure-react-renders in imbue-ai/sculptor) into .claude/skills/measure-react-renders in your project. Claude Code loads it when a task matches its description.

How do I install Measure React Renders in Codex?

Run `npx skills add imbue-ai/sculptor --skill measure-react-renders -a codex`. Or copy the skill folder (.claude/skills/measure-react-renders in imbue-ai/sculptor) into .agents/skills/measure-react-renders in your project. Codex loads it when a task matches its description.

Can I use Measure React Renders in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add imbue-ai/sculptor --skill measure-react-renders -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/measure-react-renders, .gemini/skills/measure-react-renders, .github/skills/measure-react-renders and .opencode/skills/measure-react-renders in your project.

What does Measure React Renders need to run?

Going by SKILL.md and its folder, Measure React Renders needs Python for the scripts in its folder and the command-line tools its instructions call (git, npm and uv). Our summary lists: Python 3; Node.js.

Does Measure React Renders access the network?

SKILL.md contains no URLs. Its commands use git, npm and uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Measure React Renders safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Measure React Renders use?

Measure React Renders is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Measure React Renders use?

About 603 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Measure React Renders?

Skills that share tags, products or a category with Measure React Renders: Web Artifacts Builder (anthropics/skills, 180k stars), React Router Development (remix-run/react-router, 57k stars), React UI State Patterns (ChrisWiles/claude-code-showcase, 6.1k stars) and React View Transitions Guide (vercel-labs/next-beats, 168 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Measure React Renders?

imbue-ai (a GitHub organization) maintains it in imbue-ai/sculptor, which has 238 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 9, 2026.

Source: imbue-ai/sculptor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.