react-code-review-patterns

react-code-review-patterns is a skill for Claude Code from thapaliyabikendra/ai-artifacts. It costs 53 tokens per session (1,237 once invoked), scanned A, original, Apache-2.0.

A checklist for reviewing React components and TypeScript code, including types, hooks, performance, security, and accessibility. React is a JavaScript library for building user interfaces, while TypeScript adds type checking to JavaScript.

In plain words
What is it for?
Use it when reviewing React and TypeScript frontend changes, especially components, hooks, props, API types, and accessible HTML.
Why use it?
It gives code reviews a consistent set of checks and helps catch unsafe types, incorrect React patterns, security risks, slow rendering, and interfaces that are difficult to use with a keyboard or assistive technology.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when reviewing React and TypeScript frontend changes, especially components, hooks, props, API types, and accessible HTML.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thapaliyabikendra/ai-artifacts/react-code-review-patterns
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 thapaliyabikendra/ai-artifacts --skill react-code-review-patterns
Clone the repo
git clone --depth 1 https://github.com/thapaliyabikendra/ai-artifacts

Made for: Claude Code.

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-code-review-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/react-code-review-patterns/github.svg)](https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/react-code-review-patterns)
Your own site
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/react-code-review-patterns"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/react-code-review-patterns/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-code-review-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/react-code-review-patterns"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/react-code-review-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,237 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.00053 $0.01237
Opus 5.5 $0.00021 $0.00495
Sonnet 5.5 $0.00011 $0.00247
Haiku 4.5 $0.00005 $0.00124

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

Security

Grade A, and why

react-code-review-patterns 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.

.claude/skills/react-code-review-patterns/SKILL.md · 131 lines

How it starts

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

React Code Review Patterns

Checklists and patterns for reviewing React/TypeScript frontend code.

Quick Reference

Priority Category Key Checks
1 Security No secrets, XSS prevention, safe innerHTML
2 Type Safety No any, explicit types, proper generics
3 React Patterns Hooks rules, component structure, keys
4 Performance Memoization, bundle size, re-renders
5 Accessibility ARIA, keyboard nav, semantic HTML

TypeScript Checklist

Check Required Pattern Anti-Pattern
Type annotations Explicit types any, implicit any
Generics Proper constraints <any>
Null handling Strict null checks ! assertions
Type guards Proper narrowing Type casting
API types Generated from schema Manual types
Enums String enums or const objects Numeric enums

React Components Checklist

Check Required Pattern Anti-Pattern
Component type Functional components Class components
Props typing Interface/type for props Inline types, any
Default props Default parameters defaultProps
Children Explicit children prop Implicit
Fragments <> or Fragment Unnecessary divs
Keys Stable, unique keys Index as key

Hooks Checklist

Check Required Pattern Anti-Pattern
Hook rules Top level only Conditional hooks
Dependencies Complete deps array Missing deps, // eslint-disable
useEffect cleanup Return cleanup function Missing cleanup
Custom hooks use prefix Non-hook abstractions
useMemo/useCallback For expensive ops Premature optimization

State Management Checklist

Check Required Pattern Anti-Pattern
Server state React Query useState for API data
Client state Context or useState Redux for simple state
Form state React Hook Form Manual form handling
Loading states isLoading, isError Boolean flags
Optimistic updates React Query mutations Manual state sync

Read the full file on GitHub · 131 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 131 lines · 53 tokens per session scan A 3aa5694f98c0

Subscribe to this mod's changes

react-code-review-patterns is a skill published in the GitHub repository thapaliyabikendra/ai-artifacts (24 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 53 tokens to every session and 1,237 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.