agentsclimarketplace

Cross platform error handling

Skill charlieviettq/awesome-agent-skill/.claude/skills/cross-platform-error-handling

Curated skill pack for LLM agents in engineer and science workflow (Cursor & Claude ready).

Install
npx -y skills add charlieviettq/awesome-agent-skill --skill cross-platform-error-handling

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 22 stars22 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Design consistent error handling across web, mobile, and React Native—central handlers, user-facing copy, retry, and logging.

SKILL.md

1.6 KB, as published. Nobody here has run it

Cross-Platform Error Handling

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

When to use

  • Inconsistent error UX across platforms
  • Unhandled promise rejections or crash reports
  • Adding global error boundary/handler

When not to use

  • Server-side API error design (use api-and-interface-design)
  • Single-platform app with existing mature pattern (extend, don't rewrite)

Architecture

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

Platform patterns

PlatformMechanism
React webError boundary + window unhandledrejection
React NativeGlobal handler + native crash reporting SDK
Next.jserror.tsx boundaries + server action error mapping

User messaging rules

  • Network — "Check connection" + retry
  • Auth — redirect to login; no token details
  • Validation — field-level hints
  • Unknown — generic message + support/ref ID; log details server-side

Checklist

  • Central error type taxonomy (shared package if monorepo)
  • No stack traces shown to end users
  • Correlation ID in user-facing error when support needed
  • Regression test for at least one error path per platform
  • Offline mode handled where applicable

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.