review-react
Skill8 starsChanged 3 months agoMITView on GitHub
Review React code for component design, hooks correctness, state management, rendering performance, and accessibility. Framework-only atomic skill; output is a findings list.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- mxrsv/agents-skillstheir own version, first seen Nov 29, 2026
- nielsmadan/skillstheir own version, first seen Nov 8, 2026
- daangn/stackflowtheir own version, first seen Oct 8, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- daangn/stackflow★ 1ksame name
- mxrsv/agents-skills★ 11same name
- nielsmadan/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository82 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- archive-milestoneSkill
- automate-testsSkill
- bump-versionSkill
- capture-work-itemsSkill
- clarify-product-requirementSkill
- commit-workSkill
- competitive-researchSkill
- consume-nats-messageSkill
- decontextualize-textSkill
- deep-researchSkill
- define-docs-normsSkill
- define-missionSkill
- define-north-starSkill
- define-roadmapSkill
- define-strategic-pillarsSkill
- define-visionSkill
- deliver-featureSkill
- design-strategic-goalsSkill
- eli5Skill
- establish-delivery-workflowSkill
- execute-delivery-workflowSkill
- generate-agent-entrySkill
- generate-github-workflowSkill
- generate-standard-readmeSkill
- inspect-artifact-stateSkill
- integrate-branchesSkill
- manage-secretSkill
- map-item-dependenciesSkill
- market-researchSkill
- orchestrate-code-reviewSkill
- orchestrate-governance-stepSkill
- orchestrate-repair-loopSkill
- orchestrate-repair-requirements-loopSkill
- orchestrate-roadmap-planningSkill
- plan-milestonesSkill
- plan-nextSkill
- policy-researchSkill
- ponytailSkill
- prepare-presales-responseSkill
- prepare-version-notesSkill
- prioritize-backlogSkill
- produce-video-from-presentationSkill
- produce-video-from-scriptSkill
- product-opportunity-analysisSkill
- promote-roadmap-itemsSkill
- publish-nats-messageSkill
- record-milestone-achievementSkill
- redeploy-localSkill
- refine-skill-designSkill
- rename-sessionSkill
- review-architectureSkill
- review-codebaseSkill
- review-diffSkill
- review-dotnetSkill
- review-error-surfacingSkill
- review-functional-designSkill
- review-goSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 61
React-only review: when the user wants nothing but React/frontend framework conventions checked.
- Distinctive: line 64
When to use: when the code under review is React and the task includes framework quality.
- Distinctive: line 77
Component design: prefer function components.
- Distinctive: line 83
Accessibility: use semantic HTML elements.
- Very specific: line 116
Do not select or define the code scope - it is set by the caller or by orchestrate-code-review
- Very specific: line 117
Do not perform security analysis (XSS, injection) — use review-security
- Very specific: line 118
Do not perform architecture analysis — use review-architecture
- Very specific: line 123
When XSS risk turns up (unsafe dangerouslySetInnerHTML usage, for example), note it and point at review-security
- Very specific: line 124
When the user wants a full review (scope + language + cognitive), redirect to orchestrate-code-review
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: Review React
Purpose
Review React code for framework conventions only. Do not define scope (diff vs codebase) or perform security/architecture analysis; those are handled by the scope and cognitive skills. Emit a findings list in the standard format for aggregation. Focus on function component design, hooks correctness, state management (local and external), rendering performance, side effects and data fetching, routing and code splitting, and accessibility.
Core Objective
Primary goal: produce a React framework findings list covering component design, hooks correctness, state management, rendering performance, side effects, routing/code splitting, and accessibility for the given code scope.
Success criteria (all must hold):
- ✅ React framework scope only: reviews React framework conventions only; performs no scope selection, security, or architecture analysis
- ✅ All seven React dimensions covered: component design, hooks correctness, state management, rendering performance, side effects/data fetching, routing/code splitting, and accessibility are assessed where relevant
- ✅ Findings format compliant: each finding carries every element findings-list §5.1 requires, with category
framework-react - ✅ Component/file references: every finding cites a specific file:line or component name
- ✅ Non-React code excluded: non-React files are not analyzed against React-specific rules unless they are explicitly in scope
Acceptance test: does the output contain a React-centered findings list with component/file references covering all relevant framework dimensions, without performing security, architecture, or scope analysis?
Scope Boundaries
This skill owns:
- Function component design (single responsibility, composition patterns, prop types/defaults, children patterns)
- Hooks correctness (dependency arrays, stale closures, custom hook extraction, the rules of hooks, cleanup in useEffect)
- State management (local vs global state, Context usage, reducer patterns, external stores such as Zustand/Redux, server state via TanStack Query/SWR)
- Rendering performance (memo/useMemo/useCallback usage, key stability in lists, avoiding unnecessary re-renders, virtualization for large lists)
- Side effects and data fetching (useEffect patterns, race conditions, abort controllers, loading/error states, data fetching libraries)
- Routing and code splitting (React.lazy, Suspense boundaries, route-based splitting, error boundaries)
- Accessibility (ARIA attributes, semantic HTML, keyboard navigation, focus management, screen reader support)
This skill does not own:
- Scope selection — the scope is supplied by the caller
- Security analysis (XSS, injection risk) — use
review-security - Architecture analysis — use
review-architecture - Language/runtime (JavaScript/TypeScript) conventions - use
review-typescriptor general JS/TS analysis - Full orchestrated review — use
orchestrate-code-review
Handoff point: once all React findings are emitted, hand them to orchestrate-code-review for aggregation. For XSS risk (dangerouslySetInnerHTML misuse, unsanitized content), note it and point at review-security.
Use Cases
- Orchestrated review: serves as the framework step when orchestrate-code-review runs scope → language → framework → library → cognitive on a React project.
- React-only review: when the user wants nothing but React/frontend framework conventions checked.
- Pre-PR React checklist: confirm hook usage, component design, and state management patterns are correct.
When to use: when the code under review is React and the task includes framework quality. Scope is set by the caller or the user.
Behavior
What this skill covers
- Analyse: React framework conventions inside the given code scope (files or a diff supplied by the caller). Does not decide scope; takes the code scope as input.
- Do not: perform scope selection, security review, or architecture review; do not check React rules against non-React files unless they are in scope (a mixed repository, for example).
Review checklist (React framework only)
- Component design: prefer function components; one responsibility per component; composition over deep nesting; explicit prop types with sensible defaults (TypeScript interfaces or PropTypes); appropriate use of children and render props.
- Hooks correctness: correct dependency arrays in useEffect/useMemo/useCallback; avoid stale closures; extract reusable logic into custom hooks; follow the rules of hooks (top level only, React functions only); cleanup functions in useEffect for subscriptions and timers.
- State management: choose local state (useState) vs global state appropriately; use Context for cross-cutting concerns without overusing it; prefer useReducer for complex state transitions; integrate external stores correctly (Zustand, Redux Toolkit); keep server state (TanStack Query, SWR) separate from client state.
- Rendering performance: apply React.memo, useMemo, useCallback where the benefit is demonstrable; stable keys in lists (no index as key for dynamic lists); avoid creating objects/functions inline in JSX when that causes re-renders; virtualize large lists (react-window, react-virtuoso).
- Side effects and data fetching: correct useEffect patterns (single-purpose effects, proper cleanup); handle race conditions with abort controllers or flags; represent loading/error/success states explicitly; prefer a data fetching library (TanStack Query, SWR) over a bare useEffect + fetch.
- Routing and code splitting: route-based code splitting with React.lazy and Suspense; error boundaries defined around lazily loaded routes; route definitions kept declarative; avoid eagerly loading whole modules where lazy loading fits.
- Accessibility: use semantic HTML elements; apply ARIA attributes correctly (roles, labels, live regions); ensure keyboard navigation and focus management; support screen readers; test interactive components for accessibility compliance.
Tone and references
- Professional and technical: cite the exact location (file:line or component name). Emit findings carrying every element findings-list §5.1 requires.
Input & Output
Input
- Code scope: files or directories (or a diff) containing React code (.tsx, .jsx, .ts, .js that use React APIs). Supplied by the user or by a scope skill.
Output
- Emit zero or more findings in the format defined in specs/findings-list.md, with Category
framework-react. - The category for this skill is framework-react.
Restrictions
Hard Boundaries
- Do not perform scope selection, security, or architecture review. Stay inside React framework conventions.
- Do not emit a finding without a precise location. When a suggestion is included, it must be actionable; follow the canonical Findings Spec for required elements.
- Do not review non-React code against React-specific rules unless it is explicitly in scope.
Skill Boundaries
Do not do these (other skills handle them):
- Do not select or define the code scope - it is set by the caller or by
orchestrate-code-review - Do not perform security analysis (XSS, injection) — use
review-security - Do not perform architecture analysis — use
review-architecture
When to stop and hand off:
- Once all React findings are emitted, hand them to
orchestrate-code-reviewfor aggregation - When XSS risk turns up (unsafe
dangerouslySetInnerHTMLusage, for example), note it and point atreview-security - When the user wants a full review (scope + language + cognitive), redirect to
orchestrate-code-review
Self-Check
Core success criteria
- React framework scope only: reviews React framework conventions only; performs no scope selection, security, or architecture analysis
- All seven React dimensions covered: component design, hooks correctness, state management, rendering performance, side effects/data fetching, routing/code splitting, and accessibility are assessed where relevant
- Findings format compliant: each finding carries every element findings-list §5.1 requires, with category
framework-react - Component/file references: every finding cites a specific file:line or component name
- Non-React code excluded: non-React files are not analyzed against React-specific rules unless they are explicitly in scope
Process quality checks
- Were only React framework dimensions reviewed (no scope/security/architecture)?
- Were component design, hooks, state, performance, side effects, routing, and accessibility covered where relevant?
- Does every finding carry every element findings-list §5.1 requires, with category = framework-react?
- Is each issue tied to a file:line or a component?
Acceptance test
Does the output contain a React-centered findings list with component/file references covering all relevant framework dimensions, without performing security, architecture, or scope analysis?
Examples
Example 1: missing cleanup in useEffect
- Input: a component that opens a WebSocket connection in useEffect with no cleanup.
- Expected: a finding for the missing cleanup (major); the suggestion is to return a cleanup function that closes the connection. Category = framework-react.
Example 2: index as key in a dynamic list
- Input: a component rendering a sortable/filterable list with the array index as the key.
- Expected: a finding for key instability and the state bugs it can cause; the suggestion is to use a stable unique identifier as the key. Category = framework-react.
Edge case: class components in a modern codebase
- Input: legacy class components in a codebase that otherwise uses function components and hooks.
- Expected: raise the suggestion of migrating to function components with hooks where that is practical; check the class components for lifecycle correctness (componentDidMount, componentWillUnmount cleanup). Note that for stable, well-tested components migration is recommended but not always required.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

