react-doctor

react-doctor is a skill for Claude Code from hamzaPixl/pixl-ai. It costs 48 tokens per session (1,029 once invoked), scanned A, original, MIT.

A health check for React code that looks for common mistakes, accessibility gaps, performance problems, and incorrect use of hooks. React is a JavaScript library for building interactive web interfaces.

In plain words
What is it for?
It is for checking changed React components or scanning a React source directory while reviewing a feature or fixing a bug.
Why use it?
It catches issues that may cause unnecessary re-rendering, fragile state updates, or difficult-to-use interfaces after code changes. This gives developers an early review before problems reach users.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the pixl-crew plugin — 93 skills, 14 agents, 6 hooks shipped together

Good fit It is for checking changed React components or scanning a React source directory while reviewing a feature or fixing a bug.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzapixl/pixl-ai/react-doctor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzaPixl/pixl-ai --skill react-doctor
Clone the repo
git clone --depth 1 https://github.com/hamzaPixl/pixl-ai

Made for: Claude Code.

Or install pixl-crew, the plugin that ships this one along with the rest of its 93 skills, 14 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for react-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/react-doctor/github.svg)](https://agentmods.dev/skills/hamzapixl/pixl-ai/react-doctor)
Your own site
<a href="https://agentmods.dev/skills/hamzapixl/pixl-ai/react-doctor"><img src="https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/react-doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for react-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzapixl/pixl-ai/react-doctor"><img src="https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/react-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,029 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01029
Opus 5.5 $0.00019 $0.00412
Sonnet 5.5 $0.00010 $0.00206
Haiku 4.5 $0.00005 $0.00103

Measured 1mo ago against content hash 2dbccbefd172, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

react-doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/crew/skills/react-doctor/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

React health check that catches common issues after making changes. Scans for anti-patterns, performance problems, accessibility gaps, hook misuse, and state management issues.

Required References

Before starting, read references/frontend/react-performance.md for performance patterns and anti-pattern catalog.

Step 1: Scope

  1. Identify changed React files (git diff --name-only filtered to .tsx, .jsx)
  2. If no diff, scan the provided directory or entire src/ for React components
  3. Build a list of components to check

Step 2: Anti-Pattern Check

Scan for common React anti-patterns:

  1. Unnecessary useEffect — Effects that could be derived state or event handlers
  2. Missing dependencies — useEffect/useMemo/useCallback with incomplete dep arrays
  3. Prop drilling — Props passed through 3+ levels without consumption
  4. Inline object/array creation — Objects/arrays created in render causing re-renders
  5. Index as key — Using array index as React key in dynamic lists
  6. Direct DOM manipulation — Using document.querySelector instead of refs

Step 3: Performance Check

Scan for performance issues:

  1. Large component re-renders — Components that re-render on every parent render
  2. Missing memoization — Expensive computations without useMemo
  3. Bundle size — Large imports that could be lazy-loaded
  4. Image optimization — Images not using next/image (in Next.js)
  5. Unnecessary client components — Components marked 'use client' that don't need it

Step 4: Accessibility Check

Scan for accessibility gaps:

  1. Missing alt text — Images without alt attributes
  2. Missing labels — Form inputs without associated labels
  3. Missing button text — Buttons without visible text or aria-label
  4. Color contrast — Hardcoded colors that may have insufficient contrast
  5. Keyboard navigation — Interactive elements not reachable via Tab

Step 4.5: Design anti-patterns

Scan for "AI slop" visual anti-patterns. These are banned by references/frontend/design/anti-patterns.md — flag each hit with the file:line reference and the corrective token/pattern.

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 78 lines · 48 tokens per session scan A 2dbccbefd172

Subscribe to this mod's changes

react-doctor is a skill published in the GitHub repository hamzaPixl/pixl-ai (2 stars, last pushed 6mo ago), licensed MIT. It adds 48 tokens to every session and 1,029 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

devtools-react

React adapter for the json-render devtools inspector. Use whenever the user wants to add, configure, or troubleshoot @json-render/devtools-react in a React json-render app, including spec inspection, state editing, action and stream timelines, catalog browsing, or DOM picking.

vercel-labs/json-render · 58 tokens

material-ui-nextjs

Integrates Material UI with Next.js App and Pages routers using @mui/material-nextjs, Emotion cache providers, next/font, CSS layers with Tailwind/CSS Modules, Link component prop patterns, CSS theme variables SSR notes, and App Router useSearchParams + Suspense. Use when setting up or debugging MUI in a Next.js app.

mui/material-ui · 76 tokens

migrate-oxlint

Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlint.

oxc-project/oxc · 44 tokens

inspector-workbench

Runs Inspector UI work on the standalone Threads state lab so the agent can see the overlay. Use when a CopilotKit employee asks an agent to fix, polish, add, or debug Inspector UI, chrome, panes, overlay actions, launcher, Home, Threads, Playground, Memory, or any visual behavior in @copilotkit/web-inspector. Don't…

CopilotKit/CopilotKit · 112 tokens

react-doctor

Diagnose and fix React codebase health issues. Use when reviewing React code, fixing performance problems, auditing security, or improving code quality.

PostHog/posthog-foss · 32 tokens

devtools-bidirectional

Two-way event patterns between devtools panel and application. App-to-devtools observation, devtools-to-app commands, time-travel debugging with snapshots and revert. structuredClone for snapshot safety, distinct event suffixes for observation vs commands, serializable payloads only.

TanStack/devtools · 59 tokens