Cross platform error handling

From charlieviettq/awesome-agent-skill · View interactive version

Cross platform error handling is an AI agent skill from the GitHub repository charlieviettq/awesome-agent-skill. Design consistent error handling across web, mobile, and React Native—central handlers, user-facing copy, retry, and logging.

How to use this skill

Skill file

Cross-Platform Error Handling

Patterns for centralized error capture, user-appropriate messaging, and observability across web and mobile clients.

When to use

When not to use

Architecture

Error occurs → classify (network/auth/validation/unknown)
            → log (structured, no PII)
            → user message (actionable, localized)
            → optional retry/report

Platform patterns

| Platform | Mechanism |

|----------|-----------|

| React web | Error boundary + window unhandledrejection |

| React Native | Global handler + native crash reporting SDK |

| Next.js | error.tsx boundaries + server action error mapping |

User messaging rules

Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.