congiuluc/my-awesome-copilot/error-handling-frontend

Claude Code and agent skill by congiuluc/my-awesome-copilot

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Implement consistent frontend error handling with error boundaries, API error states, and user-friendly error messages. Use when: creating error boundaries, handling API errors in React, building retry UI, or showing toast notifications for errors.

Install

npx vskill@latest install congiuluc/my-awesome-copilot/error-handling-frontend

SKILL.md

The same SKILL.md was published earlier as congiuluc/my-awesome-copilot/error-handling-frontend.

Frontend Error Handling (React)

When to Use

  • Creating React error boundaries for rendering errors
  • Handling API fetch errors in data-fetching components
  • Building retry UI for failed requests
  • Showing toast notifications or inline error messages
  • Handling form validation errors from the API

Official Documentation

Procedure

  1. Wrap route-level components with ErrorBoundary — see error handling reference
  2. Review error boundary sample
  3. Handle loading/error/empty states in every data-fetching component
  4. Show user-friendly messages — never expose raw error details
  5. Provide retry/refresh actions for recoverable errors
  6. Log frontend errors for monitoring (console + optional telemetry)
  7. Handle API envelope errors: check response.success and response.error

Error State Pattern

tsx
const { data, loading, error } = useProducts();
if (loading) return <Spinner aria-label="Loading" />;
if (error) return <ErrorMessage message={error} onRetry={refetch} />;
if (data.length === 0) return <EmptyState message="No items found" />;

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/congiuluc/my-awesome-copilot/error-handling-frontend/badge)](https://verified-skill.com/skills/congiuluc/my-awesome-copilot/error-handling-frontend)

Something wrong with this skill or its page? Tell us.