/nlsmdn:review-react [--staged | --unpushed | --changed | --all | --multi]from nlsmdn
React-specific code review for both react-dom and React Native, focused on JUDGMENT-level component design a linter can't decide — state modeling and placement, effects that shouldn't be effects, component boundaries and identity, render cost calibrated to whether React Compiler is on, and platform pitfalls (hydration and Server Component boundaries on the web; lists, JS-thread work and native subscriptions on React Native). Deliberately does NOT duplicate eslint-plugin-react-hooks, and first checks which of its rules actually run — the compiler-backed rules from v6 on cover much of what reviewers used to flag by hand. Auto-invoked by `code-review` on React projects. Triggers "review react", "react review", "review components", "review hooks", "review effects", "react native review".
Ships in nlsmdn. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
React review that covers what the hooks linter and React Compiler cannot decide for you — where state lives and what shape it has, whether an effect should exist at all, where component and boundary lines fall, and which render costs are real. Mechanical hook rules are lint's job.
Use only these finding priorities, in descending order:
Grade the demonstrated consequence, realistic reachability, and available recovery against project priorities. A category, missing convention, hypothetical future problem, or confidence that a claim is true does not set its priority. Do not assign automatic severity floors or ceilings. Keep unverified claims in validation gaps, outside the graded finding count; distinguish suggestions from defects. For plans, trace the consequence if implemented and state the assumptions.
Use the short labels Must Fix, Should Fix, and Nice to Have in summaries and ledgers.
Keep effort, verification status, user-facing change size, and tool/vendor diagnostic ratings
separate. When called by code-review, return its requested evidence and impact fields; the parent
owns scoring and final triage. Otherwise apply this rubric directly. Omit empty priority sections.
Establish the baseline before deciding anything is out of scope. Three facts change what this review is responsible for:
| Fact | How to tell | What it changes |
|---|---|---|
| Hooks lint rules that run | eslint-plugin-react-hooks version and config in eslint.config.* / .eslintrc*; read the lint script too, since CLI flags can override the config | v6+ ships compiler-backed rules (set-state-in-effect, set-state-in-render, refs, purity, immutability, static-components, preserve-manual-memoization, globals, use-memo, …) alongside rules-of-hooks and exhaustive-deps. Count only the rules the config enables. Another linter (oxlint, Biome) needs its enabled React rules checked individually |
| React Compiler on | babel-plugin-react-compiler in package.json, and where the build enables it: babel.config.js, the Vite React plugin's babel.plugins, reactCompiler in next.config.*, experiments.reactCompiler in Expo's app.json / app.config.* | Decides whether manual memoization is noise or necessary (checklist §4) |
| React version and renderer | react, react-dom / react-native, and the framework (Next.js, Remix/React Router, Expo) in package.json | Which APIs are available to recommend (useActionState, useOptimistic, useEffectEvent), and which platform section of the checklist applies |
If a rule runs, its findings are out of scope. If it does not — an old plugin version, rules cherry-picked, or no hooks linting at all — the same issue is a review finding, and the configuration gap goes in §P rather than being reported per occurrence.
Run on .jsx / .tsx / .js / .ts files that render components or define hooks. Complements
review-typescript (type design) and review-cleancode (smells) — don't repeat them.
review-react # Review context-related code
review-react --staged # Review staged changes
review-react --unpushed # Review files changed across all unpushed commits
review-react --changed # Review unstaged changes
review-react --all # Full codebase audit (parallel agents) + §P
review-react --multi # Also get external advisor opinions
| Flag | Scope | Method |
|---|---|---|
| (none) | Context-related code | Files from the current conversation context. If no context, ask the user to specify files or use --staged/--changed/--all. |
--staged | Staged changes | git diff --cached --name-only |
--unpushed | Files changed across unpushed commits | git diff --name-only $(git rev-list HEAD --not --remotes | tail -1)^..HEAD |
--changed | Unstaged changes | git diff --name-only |
--all | Full codebase + §P project-level checks | Glob component and hook files, parallel agents |
--multi | Add external opinions | Combines with any scope above; invokes second-opinion --quick |
If --unpushed cannot determine a range (nothing unpushed, no upstream, or the range walks back
to the root commit), stop and ask the user to pick another scope. Drop files that neither render
JSX nor call hooks.
Determine scope (see table) and filter to component and hook files.
Read CLAUDE.md / AGENTS.md in the repo root for project conventions (state library, data-fetching library, styling approach).
Establish the baseline (table above): enabled hooks rules, compiler on or off, React version, renderer and framework. Record it; it calibrates every later step.
Review each file against the judgment categories, looking at what the diff introduces.
Load references/checklist.md, and from its §6 only the section for this renderer. Add
§P only at --all.
Parallelize if scope has more than 5 files: one sub-agent per category, then merge and dedupe.
External opinions (if --multi): invoke second-opinion --quick with:
Read-only React review. Assume eslint-plugin-react-hooks handles rules-of-hooks, exhaustive-deps and its compiler-backed rules — do NOT repeat lint-level findings. React Compiler is {on|off}; renderer is {react-dom|react-native}. Focus on JUDGMENT: is any state derivable or duplicated? Does each effect synchronize with an external system, or is it event logic / a state-to-state sync? Are fetches race-safe? Are list keys stable? Is state owned at the right height and in the right store? Are boundaries (error, Suspense, client/server) placed well? Which render costs are real rather than hypothetical? 300 words or less.
Wait for all external results before proceeding.
Classify severity using Review grading and report.
references/checklist.md carries the full catalogue:
State the reasoning for each finding. "This effect copies user.name into state, so editing
the profile elsewhere leaves the header stale" is a finding; "avoid useEffect" is not.
--all onlyConfiguration, not code; raising it on a diff review is noise.
eslint-plugin-react-hooks on v6+ with its recommended preset (or the
compiler-backed rules enabled individually)? If not, enabling it replaces a large share of
manual review.## React Review: {scope}
### Baseline
{One line: hooks rules enabled, compiler on/off, React version, renderer/framework.
**At `--all` only:** the §P recommendations.}
### Critical Issues (Must Fix)
- {file}:{line} — {category}: {description}
**Why it's not a lint finding:** {what judgment this needed}
**Impact:** {what the user sees}
**Fix:** {with code}
### Improvements (Should Fix)
- {file}:{line} — {category}: {description}
**Fix:** {solution}
### Suggestions (Nice to Have)
- {file}:{line} — {category}: {description} — {suggested change}
If --multi was used, append one subsection per advisor that responded (titled with the advisor's
name as reported by second-opinion), then a Cross-Model Agreement subsection.
Race-prone fetch (web):
review-react --staged
A profile page fetches in useEffect(() => { fetch(/api/users/${id}).then(setUser) }, [id]).
Switching users quickly can show the previous user's profile. Reports Should Fix for a transient wrong-profile display, escalating only if the traced path leaks protected data or performs a materially wrong operation. Proposes an ignore
flag in cleanup, or the project's query hook if it has one. Not a lint finding:
exhaustive-deps is satisfied.
Effect instead of a handler (React Native):
review-react --changed
A checkout screen sends a purchase_completed analytics event from an effect that watches
order.status. It re-fires when the screen remounts after navigating back. Reports Should Fix: move
it into the submit handler's success path.
Memoization noise under the compiler:
review-react
Baseline shows React Compiler on. A new component wraps every handler in useCallback and
the component in memo. Reports Nice to Have: remove them, since the compiler memoizes the same
values; keep only a useCallback whose identity an imperative library depends on.
Cause: the baseline was skipped or assumed.
Solution: check whether the rule is enabled and runs (lint script flags included). If it
runs, drop the finding. If not, keep it and add the configuration gap to §P.
Cause: it is enabled in build config the scan did not reach, or only for some directories
(compilationMode: 'annotation', a sources filter, 'use no memo' opt-outs).
Solution: read the compiler options where the plugin is configured. If still unclear, say
so in the baseline and skip compiler-dependent memoization findings rather than guessing.
Cause: a house convention (a global store for all state, a data layer that owns fetching). Solution: follow CLAUDE.md / AGENTS.md. Report a convention only where it causes a concrete bug in the scoped code, once, not per occurrence.
What SKILL.md sets; muted values are Claude Code's defaults
highOther plugins' skills for the same job
npx claudepluginhub nielsmadan/skills --plugin nlsmdn65 skills in this plugin
/blind-spotsSurface consequential decisions a plan, design, or research brief left silently assumed, by interviewing the user in dependency order. Use when the user says "blind spots", "grill me", "stress-test this plan", "poke holes in this", "what am I missing", "interrogate this design", "what haven't I decided", or needs a loose idea or research brief clarified before work begins. Do NOT use for a clear factual lookup, to explain a previous reply in more detail (use `huh`), to generate ideas when it is unclear what to build (use `ideation`), or to review an already-written plan with agents (use `review-plan`)./brainstormWork out how to solve a problem the user can already name — interview them with `blind-spots` to understand it, generate structurally different approaches, validate each with an independent critic, then present the survivors with trade-offs and a recommendation. Use when the user says "brainstorm", "brainstorm approaches", "how should we solve/approach/tackle X", "what are our options", "compare approaches", "think this through with me", or wants solutions weighed before committing. Works on any topic, with codebase recon when a repo is involved; `--debate` adds external advisors for high-stakes calls. Do NOT use when stuck on what to build or what the problem is (use `ideation`), to probe an already-chosen plan (use `blind-spots`), or to pick a library or service (use `evaluate-tech`)./check-agent-logsSearch past Claude Code, Codex, Cursor CLI, Devin CLI, Droid, and Pi session logs to recover context from earlier work across the current project and sibling checkouts. Use when a bug, topic, or decision was handled in a previous session but its agent or checkout is unknown; when the user says "we fixed/discussed this before", "find the session where", "recover prior context", "check agent logs", "check Claude projects", "search past sessions/transcripts", or "which checkout was that in". Do not use for aggregate failure-pattern analysis; use review-logs for that./codebase-reviewReview a whole codebase aspect by aspect, with aspects fitted to the project type (mobile, desktop, web frontend, static site, CLI, backend, library) — docs truth-check, architecture, tests, security, the type's foundations, feature deep dives, consistency, roadmap — writing a doc per aspect and a verified findings ledger that doubles as the TODO. Plans first (recon, `blind-spots`, `review-plan`, plan approval), then walks the plan with the user aspect by aspect — agents review and verify in the background, the user confirms rulings and decides judgment calls one at a time. `--auto` runs independently after the gate, with decision waves at the end. `--fix` hands settled findings through `crew` to worker sessions, integrated locally, never pushed. Use for "codebase review", "review the whole codebase", "onboard me to this repo", "deep dive this app", "audit the code base", "review and fix everything". Not for a diff or PR (code-review), a CLI release pass (release-review), or building a feature (longshot)./codebase-review-typescriptSupply TypeScript and JavaScript structural evidence to codebase-review using dependency-cruiser, ESLint complexity, and Git churn. Use for whole-codebase import-cycle and complexity-hotspot investigation, or when discovered as a project-local codebase-review extension. Does not replace review-typescript's type-design checks or review a diff./code-guideCoach the user through writing a feature themselves, one small step at a time, the way an experienced developer would build it. Each step comes with the code to type and a checkpoint that proves it works, such as logging the endpoint's response shape before typing it, or rendering a hardcoded value before wiring the real one. After each step the agent reads the user's diff and verifies it. The happy path comes first and edge cases come last. Use when the user says "code-guide", "guide me to write", "help me write this myself", "I want to code it myself", "coach me through implementing", "walk me through building this feature", "don't write it for me", or wants to learn by typing the code. Do NOT use for console or dashboard setup (use guide), explaining existing code (use code-tour), or when the agent should implement the change itself (use plan or longshot).