Skip to content
Development
Skill

/cross-platform-error-handling

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

From plugin
awesome-agent-skill
27200 skills4 commands

Claude Code

$ npx -y skills add charlieviettq/awesome-agent-skill --skill cross-platform-error-handling --agent claude-code

SKILL.md

cross-platform-error-handling.SKILL.md
name: cross-platform-error-handling
description: "Design consistent error handling across web, mobile, and React Native—central handlers, user-facing copy, retry, and logging."
allowed-tools: Read, Glob, Grep

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

| 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

  • **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
Read more
@charlieviettq
Ships withawesome-agent-skill

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

Stars on GitHub

Momentum

stars in total
27
Star history of charlieviettq/awesome-agent-skill on GitHub, a chart by star-history.com

Other skills on awesome-agent-skill.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about cross-platform-error-handling.

Which coding agents can use cross-platform-error-handling?
cross-platform-error-handling installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.