cross-platform-error-handling

cross-platform-error-handling is a skill for Claude Code from charlieviettq/awesome-agent-skill. It costs 31 tokens per session (365 once invoked), scanned A, original, MIT.

A design guide for handling errors consistently in web, mobile, and React Native applications. It covers identifying the error, recording useful details, showing an appropriate message, and offering a retry or report option.

In plain words
What is it for?
Use it to plan central error handlers, error boundaries, logging, localized messages, and retry behavior for client applications.
Why use it?
It helps prevent inconsistent error messages, missed failures, and unclear recovery steps across different apps.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to plan central error handlers, error boundaries, logging, localized messages, and retry behavior for client applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/charlieviettq/awesome-agent-skill/cross-platform-error-handling
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add charlieviettq/awesome-agent-skill --skill cross-platform-error-handling
Clone the repo
git clone --depth 1 https://github.com/charlieviettq/awesome-agent-skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cross-platform-error-handling

README.md
[![agentmods](https://agentmods.dev/badge/skills/charlieviettq/awesome-agent-skill/cross-platform-error-handling/github.svg)](https://agentmods.dev/skills/charlieviettq/awesome-agent-skill/cross-platform-error-handling)
Your own site
<a href="https://agentmods.dev/skills/charlieviettq/awesome-agent-skill/cross-platform-error-handling"><img src="https://agentmods.dev/badge/skills/charlieviettq/awesome-agent-skill/cross-platform-error-handling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cross-platform-error-handling

Your own site · 80×15
<a href="https://agentmods.dev/skills/charlieviettq/awesome-agent-skill/cross-platform-error-handling"><img src="https://agentmods.dev/badge/skills/charlieviettq/awesome-agent-skill/cross-platform-error-handling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 365 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00365
Opus 5 $0.00015 $0.00182
Sonnet 5 $0.00006 $0.00073
Haiku 4.5 $0.00003 $0.00036

Measured 9d ago against content hash a74f679d0aa5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

cross-platform-error-handling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/cross-platform-error-handling/SKILL.md · 53 lines

What it actually says

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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 53 lines · 31 tokens per session scan A a74f679d0aa5

Subscribe to this mod's changes

cross-platform-error-handling is a skill published in the GitHub repository charlieviettq/awesome-agent-skill (25 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 365 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

tool-calling-tutor

Use when a tool-calling agent does not call a tool, sends wrong arguments, loops without stopping, or needs a function schema. Guides a four-branch diagnosis and five-step schema repair. Do not use for framework-specific, MCP-server, or production-observability questions.

WenyuChiou/awesome-agentic-ai-zh · 62 tokens

eslint-fix

A project-aware assistant for finding and fixing ESLint errors, warnings, and configuration compatibility problems. ESLint is a tool that checks JavaScript and TypeScript code for style and common mistakes.

laolaoshiren/claude-code-skills-zh · 79 tokens

perf-profiler

A performance investigation guide that uses repeatable measurements and profiling evidence to find where software spends time or resources. Profiling records runtime activity such as CPU use, memory use, database work, or network delays.

laolaoshiren/claude-code-skills-zh · 78 tokens

log-analyzer

A log-analysis helper that reads application and system logs to find unusual patterns and likely causes. Logs are records of events such as errors, requests, warnings, and service activity.

laolaoshiren/claude-code-skills-zh · 24 tokens

audit

Project health audit and health check — architecture, performance, tests, dependencies, code quality. Use when assessing overall project health, before releases, or after refactors.

oliver-kriska/claude-elixir-phoenix · 35 tokens

investigate

Investigate bugs and errors in Elixir/Phoenix — root-cause analysis for crashes, exceptions, stack traces, test failures. Use --parallel for deep 4-track investigation.

oliver-kriska/claude-elixir-phoenix · 40 tokens