onewave-ai/claude-skills

error-boundary-creator

Create error boundaries, error handling, and fallback UIs for React applications. Use when implementing error handling, creating fallback components, or setting up error reporting.

First seen Feb 26, 2026

Installation

$ npx skills add onewave-ai/claude-skills --skill error-boundary-creator

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from onewave-ai/claude-skills · top by installs.

npx skills add onewave-ai/claude-skills

Browse all from onewave-ai/claude-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 287
License MIT
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,729 B
  • docs SUMMARY.md 210 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 260 installs

SKILL.md

Error Boundary Creator

Add resilient error handling to React and Next.js apps: error boundaries, fallback UIs, async error handling, and error reporting.

Workflow

  1. Identify error-prone areas: async operations, third-party integrations, and route-level entry points.
  2. Wrap components in an error boundary. Use a class boundary or the react-error-boundary library. See references/class-boundaries.md.
  3. For Next.js App Router, add the relevant error.tsx, global-error.tsx, and not-found.tsx segment files. See references/nextjs-error-handling.md.
  4. Handle errors that boundaries miss (event handlers, promises) and wire up reporting. See references/async-and-reporting.md.
  5. Design fallback UIs with role="alert" and a recovery action (reset or reload).
  6. Route caught errors to a single reporting sink and test error states before shipping.

Contents

  • references/class-boundaries.md — Basic, resettable, and react-error-boundary patterns.
  • references/nextjs-error-handling.md — App Router error.tsx, global-error.tsx, not-found.tsx.
  • references/async-and-reporting.md — useAsync hook and the reportError integration module.

Best Practices

  1. Wrap at the route level for page-level isolation, and wrap third-party components separately.
  2. Provide meaningful fallbacks with a recovery option.
  3. Log every caught error to the monitoring service.
  4. Do not catch errors the code cannot meaningfully handle.
  5. Test error states in development.