web-error-handling-error-boundaries

web-error-handling-error-boundaries is a skill for Claude Code, Codex from agents-inc/skills. It costs 32 tokens per session (2,375 once invoked), scanned A, original, MIT.

A guide to React error boundaries, components that catch many rendering errors in part of a component tree and show fallback content instead. It also covers logging, retrying, and React 19's root-level error hooks.

In plain words
What is it for?
Use it to add fallback screens, reset and retry behaviour, feature-level error logging, and central handling for React application errors.
Why use it?
It keeps one broken feature from replacing the entire interface and clarifies which errors boundaries do not catch, such as many event-handler and asynchronous errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add fallback screens, reset and retry behaviour, feature-level error logging, and central handling for React application errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agents-inc/skills/web-error-handling-error-boundaries
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 agents-inc/skills --skill web-error-handling-error-boundaries
Clone the repo
git clone --depth 1 https://github.com/agents-inc/skills

Made for: Claude Code, Codex.

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 web-error-handling-error-boundaries

README.md
[![agentmods](https://agentmods.dev/badge/skills/agents-inc/skills/web-error-handling-error-boundaries.svg)](https://agentmods.dev/skills/agents-inc/skills/web-error-handling-error-boundaries)
Your own site
<a href="https://agentmods.dev/skills/agents-inc/skills/web-error-handling-error-boundaries"><img src="https://agentmods.dev/badge/skills/agents-inc/skills/web-error-handling-error-boundaries.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,375 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00032 $0.02375
Opus 5 $0.00016 $0.01188
Sonnet 5 $0.00006 $0.00475
Haiku 4.5 $0.00003 $0.00237

Measured today against content hash 19fc997dca73, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

web-error-handling-error-boundaries scanned grade A with 1 finding 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 today.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(endpoint);
src/skills/web-error-handling-error-boundaries/SKILL.md · 249 lines

How it starts

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

React Error Boundaries

Quick Guide: A boundary catches errors thrown during render, in lifecycle methods and in constructors, and swaps the subtree for fallback UI. It never sees event-handler, async or server-render errors — those reach it only when something calls showBoundary(). Boundaries are class components, because getDerivedStateFromError and componentDidCatch have no hook equivalent. React 19 adds onCaughtError, onUncaughtError and onRecoverableError on createRoot, which log rather than render and are silently ignored on React 18.

Detailed Resources:

  • examples/core.md — the class boundary, react-error-boundary usage, resetKeys, useErrorBoundary, granular placement
  • examples/react-19-hooks.mdcreateRoot/hydrateRoot error options, captureOwnerStack(), error filtering
  • examples/recovery.md — retry limits, exponential backoff, error classification
  • examples/testing.md — what makes a boundary testable, and the fixtures that do it
  • reference.md — what boundaries catch, lifecycle and prop tables, checklists

Which path applies

  • No boundary dependency wanted — write the class yourself; getDerivedStateFromError plus componentDidCatch is the whole API, and examples/core.md has it in full.
  • react-error-boundary is available — take resetKeys, useErrorBoundary and the FallbackProps type rather than reimplementing them, and follow examples/core.md.
  • React 19, and the question is logging rather than UI — the three createRoot options report every error including the ones no boundary caught; see examples/react-19-hooks.md.

<critical_requirements>

Before writing error boundary code

Return new state from getDerivedStateFromError and put every side effect in componentDidCatch. The first runs during render, where a fetch or a log call breaks React's phase rules; the second runs at commit, where they are safe.

Read the full file on GitHub · 249 lines

Files

What ships with it

6 files 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. today Changed · -208 lines 19fc997dca73
  2. 2d ago First seen · 457 lines · 32 tokens per session scan A ea1c969442fb

Subscribe to this mod's changes

web-error-handling-error-boundaries is a skill published in the GitHub repository agents-inc/skills (24 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 2,375 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

G2 Legend Expert

Expert skill for G2 legend development - provides comprehensive knowledge about legend rendering implementation, component architecture, layout algorithms, and interaction handling. Use when implementing, customizing, or debugging legend functionality in G2 visualizations.

foryourhealth111-pixel/Vibe-Skills · 47 tokens

harness-doctor

Check whether this project's Agentsmith harness is installed correctly and healthy — fires on "is my harness set up right?", "harness doctor", "check my harness". Part of the Agentsmith harness; checks each selected agent's managed rules, settings, skills, hooks, verification, and leanness with a one-line fix for each…

PromptPartner/agentsmith · 74 tokens

performance-optimization

Web and backend performance optimization including Core Web Vitals (LCP, FID, INP, CLS), bundle analysis with webpack-bundle-analyzer, code splitting, lazy loading, image optimization (WebP, AVIF, responsive srcset), caching strategies (HTTP Cache-Control, CDN, Redis, application-level), database query optimization…

medy-gribkov/arcana · 126 tokens

performance-profiling

A measurement-first approach to finding and fixing performance problems in web apps, covering Core Web Vitals targets, a baseline-isolate-fix-verify loop, bundle and runtime/memory analysis, and prioritized quick wins. Use it when diagnosing slow loads or interactions, running Lighthouse audits, inspecting bundle…

phuonghx/aim-cli · 76 tokens

node-zombie-guardian

Use when diagnosing stale or orphaned Node.js processes launched by VCO, auditing ownership/liveness, or safely simulating cleanup without touching external Node workloads.

foryourhealth111-pixel/Vibe-Skills · 37 tokens

moai-design-tools

Design tool integration specialist covering Figma MCP, Pencil renderer, and Pencil-to-code export. Use when fetching design context from Figma, rendering Pencil designs, or exporting to React/Tailwind code.

modu-ai/moai-adk · 45 tokens