react-devtools
Skill by sanity-io
Runs the agent-react-devtools CLI to inspect a running React or React Native app. It covers the component tree, props, state, hooks, and render profiling. Built for debugging and performance work.
Install react-devtools
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sanity-io/sanity /tmp/sanity && mkdir -p ~/.claude/skills && cp -r /tmp/sanity/.agents/skills/react-devtools ~/.claude/skills/react-devtoolsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sanity-io/sanity /tmp/sanity && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sanity/.agents/skills/react-devtools ~/.gemini/antigravity-cli/skills/react-devtoolsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The react-devtools skill gives an AI agent a CLI, agent-react-devtools, that connects to a running React or React Native app through the React DevTools protocol. It exposes the component tree, props, state, hooks, and profiling data in a token-efficient format. The agent can search for components, inspect individual ones by label, and list components with errors or warnings.
It also records profiling sessions and reports slow components, the most re-rendered components, and commit timelines. The source says it is for debugging a React or React Native app at runtime, diagnosing render performance, and explaining why components re-render. Setup notes for frameworks such as Vite, Next.js, Expo and CRA are in a reference file.
Written from the project's SKILL.md and checked against it.
What it can do
- Daemon controlStarts, stops and checks the daemon, and waits for a React app to connect.
- Component treeShows the full component hierarchy with stable labels such as @c1, with optional depth limits.
- Component inspectionShows props, state and hooks for a specific labeled component.
- Component searchFinds components by display name, with fuzzy or exact matching.
- Error listingLists components that have errors or warnings.
- Slow component reportRanks components by average render time during a profiling session.
- Re-render reportLists the most re-rendered components and the render causes.
- Commit timelineShows commits in chronological or duration order, with paging and commit detail.
- Profile export and diffExports a profile as React DevTools Profiler JSON and compares two exports.
What you need
- A running React or React Native app
- A headed browser when using agent-browser
Try asking
- Why does this component re-render on every keystroke?
- Find the slowest components in the app while I click through the checkout.
- Show the props and state of the SearchBar component.
Good to know
- Agent-browser must run in headed mode, since headless Chromium does not load the connect script properly.
- Component labels reset when the app reloads or components remount.
- Profiling only captures renders between profile start and profile stop.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/react-devtools/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(agent-react-devtools:*)
-
SKILL.md8 KB -
references/commands.md6 KB -
references/profiling-guide.md5 KB -
references/setup.md3 KB
Alternatives to react-devtools
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
react-devtools: common questions
How do I check why a React component re-renders?
The skill's profile commands record renders and list the most re-rendered components with their render causes. The output can also show the exact changed props, state keys or hooks.
Does it work with React Native?
The source says the CLI connects to a running React or React Native app. The description also lists debugging React Native apps as a use case.
Can the agent inspect component props and hooks?
Yes. The get component command shows props, state and hooks for a component label such as @c5.
How do I install react-devtools?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is react-devtools free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is react-devtools safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to react-devtools?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
