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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00013 $0.00950
Sonnet 5.5 $0.00006 $0.00475
Haiku 4.5 $0.00003 $0.00237

Measured 1mo ago against content hash 19fc997dca73, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 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.

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.md — createRoot/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. 1mo ago Changed · -208 lines 19fc997dca73
  2. 1mo 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 (25 stars, last pushed 2d ago), licensed MIT. It adds 32 tokens to every session and 2,375 once invoked, about $0.0001 per session on Opus 5.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

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

moai-workflow-ddd

Domain-Driven Development workflow specialist using ANALYZE-PRESERVE-IMPROVE cycle for behavior-preserving code transformation. Use when refactoring legacy code or reducing technical debt safely.

modu-ai/moai-adk · 44 tokens

moai-lane-watchdog

One lane stall watchdog iteration: measure lane progress on three channels, classify the stall cause, apply the remedy or resolve the judgment through the decision ladder — instead of waiting on a reply — then record the outcome and report. Reads the unified --auto doctrine at…

modu-ai/moai-adk · 86 tokens

moai-workflow-loop

Ralph Engine - Automated feedback loop with LSP diagnostics and AST-grep integration for continuous code quality improvement. Use when implementing error-driven development, automated fixing, or continuous quality validation workflows.

modu-ai/moai-adk · 44 tokens

moai-workflow-testing

Use when writing tests, measuring coverage, or running characterization, performance, or PR-review QA. Comprehensive specialist combining DDD testing, characterization tests, performance profiling, and TRUST 5 quality-assurance validation.

modu-ai/moai-adk · 47 tokens

evidence-audit

Evidence-led audit/fix rounds for any codebase in any language. Finds only defects that a runnable proof reproduces on current code, applies the narrowest in-scope patch, verifies with a second proof, promotes high-risk proofs to permanent regression tests, and reports exact validation results. Use whenever the user…

WrongStack/WrongStack · 152 tokens