# react-pro

react-pro — a React-focused subagent for building components, refactoring code, and tackling UI problems. It examines existing project patterns and includes testing in its workflow.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 1357 repo stars
- Author: qdhenry
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/qdhenry/Claude-Command-Suite/tree/HEAD/.claude/agents/development/react-pro.md
- Updated: 2026-03-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/react-pro

## What it does

react-pro organizes interfaces into reusable components and works with functional React components and Hooks. It can help place state, handle server-side data, and investigate performance issues such as repeated renders or long lists. Its testing guidance uses Jest and React Testing Library.

The subagent can look up library documentation with Context7 and use Magic tools to create or refine components. Its configured tools also cover reading and editing files, searching the project, and running commands. It expects changes to pass tests, linting, and type checks, so a project without a test setup will need one before that check can run.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/react-pro.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/react-pro.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/react-pro.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/qdhenry/Claude-Command-Suite/tree/HEAD/.claude/agents/development/react-pro.md

## When to use it
- Split a UI into reusable React components
- Refactor a component to match existing project patterns
- Choose where interface state should live
- Investigate unnecessary component re-renders
- Write behavior-focused component tests

## Example prompts
- Create a React component for this form, following the patterns already used in the project.
- Refactor this screen into smaller reusable components and add tests.
- Find why this list keeps rendering again and suggest a suitable fix.

## Similar
- [react-testing-library](https://affpapa.org/en/nevibecode/skills/pproenca-react-testing-library.md) — skill · 428 installs
- [jest-react-testing](https://affpapa.org/en/nevibecode/skills/jest-react-testing.md) — skill · 1200 installs
- [storybook-mcp-integration](https://affpapa.org/en/nevibecode/skills/storybook-mcp-integration.md) — skill · 166 installs
- [redux-toolkit](https://affpapa.org/en/nevibecode/skills/redux-toolkit.md) — skill · 1300 installs
- [react-native-testing](https://affpapa.org/en/nevibecode/skills/react-native-testing.md) — skill · 5600 installs
- [react-native-web-testing](https://affpapa.org/en/nevibecode/skills/react-native-web-testing.md) — skill · 236 installs

From the same set: [qdhenry/claude-command-suite](https://affpapa.org/en/nevibecode/by/qdhenry/claude-command-suite.md) — 112 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
