react-patterns SKILL.md skillA

react-patterns from harshadmadaye/opm is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add harshadmadaye/opm/react-patterns@git:20261005.a666976

Pins git:20261005.a666976 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
harshadmadaye/opm
Path
skills/react-patterns/SKILL.md
Versions recorded
3
Latest version
git:20261005.a666976, committed Oct 5, 2026
First version recorded
Sep 12, 2026
Size
3,311 bytes
Repository stars
5
License
MIT

Provides idiomatic React 18/19 and Next.js App Router patterns covering hooks discipline, composition, state colocation, server/client boundaries, Suspense and error boundaries, forms, data fetching, list keys, effects hygiene, and measurement-first performance work. Use when writing, reviewing, or refactoring React components, custom hooks, or Next.js routes.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# React Patterns

React rewards code that keeps render pure, puts state where it is used, and reaches for
optimisation only after measuring. This skill is the checklist for that.

Always-true conventions (naming, hooks rules, state location, the server/client boundary,
security) live in OPM's rule `react/patterns.md` (`.claude/rules/opm/react/` once installed,
`rules/react/` in the plugin). This skill keeps the patterns and worked examples.

## When to use

- Writing or modifying function components, custom hooks, or component trees.
- Reviewing JSX/TSX diffs.
- Choosing where state should live or how components should compose.
- Working across Server and Client Components in the Next.js App Router.
- Diagnosing slow renders, waterfalls, or oversized bundles.

## Core rules

**Render is a pure function of props and state.** Derive during render; do not store derived values.

```tsx
// Good
function Cart({ items }: { items: CartItem[] }) {
  const total = items.reduce((sum, i) => sum + i.price * i.qty, 0);
  return <span>{formatMoney(total)}</span>;
}

// Bad: an extra render, a chance to desync, and hidden data flow
function Cart({ items }: { items: CartItem[] }) {
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add harshadmadaye/opm/react-patterns@sha256:6d297c45ef03abdf

The line at the top of this page pins the label git:20261005.a666976, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_dvglzmmgnsziscba.svg)](https://markdownregistry.com/a/art_dvglzmmgnsziscba)

5 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Sep 12, 2026 and Oct 5, 2026, about one every 12 days.

versioncommittedcommitsizeaudit
git:20261005.a666976 latest2026-10-05 a666976 3,311 BA view · diff
git:20261005.5909ebd2026-10-05 5909ebd 3,286 BA view · diff
git:20260912.a10a7902026-09-12 a10a790 12,005 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3311 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

harshadmadaye/opm · 5 stars · license MIT · pushed 2026-10-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_dvglzmmgnsziscba
GET https://markdownregistry.com/api/v1/resolve?ref=harshadmadaye/opm/react-patterns
GET https://markdownregistry.com/api/v1/blob/6d297c45ef03abdf3b2d6c10564516cf25c3e9a50b4bb425d7a96254bc813cf3

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from harshadmadaye/opm

explainer-video SKILL.md skill
harshadmadaye/opm · plugins/opm-video/skills/explainer-video/SKILL.md · Turns a spec or document into a narrated explainer video. Produces a 1920x1080 MP4 of illustrated still slides with a…
git:20261005.01a02c0 · audit A · 5 stars
brainstorming SKILL.md skill
harshadmadaye/opm · skills/brainstorming/SKILL.md · Turns a rough idea into an approved design or written spec through one-question-at-a-time dialogue, scaled to spike…
git:20260912.a10a790 · audit A · 5 stars
brew-idea SKILL.md skill
harshadmadaye/opm · skills/brew-idea/SKILL.md · Runs a multi-agent debate over a project idea. Four angle agents (product, engineering, skeptic, market research)…
git:20261005.53e43d7 · audit A · 5 stars
compound-learnings SKILL.md skill
harshadmadaye/opm · skills/compound-learnings/SKILL.md · Captures a solved, non-obvious problem as a durable learning doc under docs/solutions/ with validated frontmatter, and…
git:20260912.a10a790 · audit A · 5 stars
executing-plans SKILL.md skill
harshadmadaye/opm · skills/executing-plans/SKILL.md · Executes a written implementation plan task-by-task by dispatching a fresh implementer subagent per task, a reviewer…
git:20261005.898cb57 · audit A · 5 stars
flutter-patterns SKILL.md skill
harshadmadaye/opm · skills/flutter-patterns/SKILL.md · Provides production Flutter and Dart 3 patterns covering widget composition, state management choice (Riverpod, BLoC…
git:20261005.a666976 · audit A · 5 stars
jump-start SKILL.md skill
harshadmadaye/opm · skills/jump-start/SKILL.md · Creates an entire new project from one prompt. Takes a project name plus a brief, clarifies only what would change the…
git:20261005.53e43d7 · audit A · 5 stars
milestone-planning SKILL.md skill
harshadmadaye/opm · skills/milestone-planning/SKILL.md · Structures multi-week work as a milestone with a roadmap, a short always-read STATE digest, phased executable PLAN…
git:20261005.53e43d7 · audit A · 5 stars
python-patterns SKILL.md skill
harshadmadaye/opm · skills/python-patterns/SKILL.md · Provides idiomatic modern Python (3.11+) patterns covering type hints, dataclasses and pydantic at boundaries, pathlib…
git:20261005.a666976 · audit A · 5 stars
tdd-workflow SKILL.md skill
harshadmadaye/opm · skills/tdd-workflow/SKILL.md · Drives test-driven development through a strict RED-GREEN-REFACTOR cycle with test-runner detection, a "fails for the…
git:20260912.a10a790 · audit A · 5 stars
using-opm SKILL.md skill
harshadmadaye/opm · skills/using-opm/SKILL.md · Establishes how to find and invoke OPM skills before taking any other action, including clarifying questions. Use when…
git:20261005.14f51b0 · audit A · 5 stars
verification-before-completion SKILL.md skill
harshadmadaye/opm · skills/verification-before-completion/SKILL.md · Requires running verification commands and reading their actual output before any claim that work is complete, fixed…
git:20261005.02a76f6 · audit A · 5 stars

Every file in harshadmadaye/opm

Other files named react-patterns

react-patterns SKILL.md skill
affaan-m/ecc · .kiro/skills/react-patterns/SKILL.md · React 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form…
git:20260607.4ad5756 · audit A · 284,510 stars
react-patterns SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-typescript/skills/react-patterns/SKILL.md · Provides comprehensive React 19 patterns for Server Components, Server Actions, useOptimistic, useActionState…
git:20260324.a02e282 · audit A · 359 stars
react-patterns SKILL.md skill
orcaqubits/agentic-commerce-skills-plugins · shopify-commerce/skills/react-patterns/SKILL.md · Build React applications with Remix — loaders, actions, hooks, Server/Client Components, nested routes, error…
git:20260325.a7816e7 · audit A · 39 stars
react-patterns SKILL.md skill
orcaqubits/agentic-commerce-skills-plugins · salesforce-commerce/skills/react-patterns/SKILL.md · Build React applications for PWA Kit — hooks, composition, SSR, Commerce SDK integration, Chakra UI components…
git:20260914.08f85a3 · audit A · 39 stars
react-patterns SKILL.md skill
vodailocz/kilo-kit-mcp · skills/engineering/react-patterns/SKILL.md · Modern React patterns and principles. Hooks, composition, performance, TypeScript best practices.
git:20260502.38d5305 · audit A · 28 stars
react-patterns SKILL.md skill
komluk/scaffolding · skills/react-patterns/SKILL.md · React + TypeScript component and hook standards. TRIGGER when: creating components, custom hooks, or reviewing React…
git:20260614.9d809af · audit A · 15 stars
react-patterns SKILL.md skill
jdanigo/hydraia · skills/react-patterns/SKILL.md · React 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form…
git:20260702.69ee5ed · audit A · 8 stars

Browse by kind, by grade A, or by owner.