onewave-ai avatar

Error Boundary Creator

Generates error boundaries and fallback UIs for React apps, with examples for both class-based boundaries and the react-error-boundary library. Includes Next.js-specific implementations for error.tsx, global-error.tsx, and not-found.tsx files in the App Router. Also covers async error handling patterns and error reporting integration stubs for services like Sentry. The resettable error boundary pattern is nice for letting users retry failed operations without a full page reload. Most useful when you're setting up error handling infrastructure in a new project or need to wrap third-party components that might throw. The code examples are production-ready and include proper TypeScript types throughout.

skills.sh installs
311
GitHub stars
422
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/onewave-ai/claude-skills
Categories
Frontend Development, Debugging
First seen
Jun 3, 2026

More from onewave-ai/claude-skills

All 108
1davila7 avatarremotion-best-practicesdavila7/claude-code-templatesBest practices for Remotion - Video creation in React310skills.sh installs
2pedronauck avatararchitecture-diagrampedronauck/skillsCreate professional, dark-themed architecture diagrams as standalone HTML files with SVG graphics. Use when the user asks for system architecture diagrams, infr303skills.sh installs
3nexu-io avatarweb-prototypenexu-io/open-designGeneral-purpose desktop web prototype. Single self-contained HTML file built by copying the seed `assets/template.html` and pasting section layouts from `refere301skills.sh installs
4tech-leads-club avatarplaywright-skilltech-leads-club/agent-skillsComplete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check respon297skills.sh installs
5hubeiqiao avatarapple-bento-gridhubeiqiao/apple-bento-gridCreate Apple-inspired bento grid presentation cards for showcasing project stats, timelines, and achievements. Generates self-contained HTML files with zero-gap294skills.sh installs
6nexu-io avatardashboardnexu-io/open-designAdmin / analytics dashboard in a single HTML file. Fixed left sidebar, top bar with user/search, main grid of KPI cards and one or two charts. Use when the brie290skills.sh installs