Skip to content
Skillpedia
General coding75k · #2833

error-handling

What it does

This skill reviews how code deals with errors, especially in async tasks and React components. It is for developers who want apps that fail gracefully and are easier to debug.

When to use it

  • ✓When your app crashes or goes blank after an error.
  • ✓When async requests fail without any message or log.
  • ✓When you build a React app and want errors contained to one part of the screen.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/error-handling/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/error-handling/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you review my code to make sure errors are handled properly?”

5 new skills a week. 1 minute to read.

How it works

The agent looks for async operations without try-catch blocks and for errors that are silently ignored. It suggests catching them, logging useful context and adding error boundaries in React.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Implement proper error handling

Unhandled errors crash applications, create poor user experiences, and make debugging impossible without proper context.

Quick Reference

  • Wrap async operations in try-catch blocks
  • Use Error Boundaries in React for UI-level error handling
  • Log errors with context for debugging
  • Always re-throw or handle—never silently swallow errors

Check

Review error handling in this code, ensuring async operations use try-catch and errors are properly logged.

Fix

Add try-catch blocks to async operations and implement error boundaries for React components.

Explain

Explain JavaScript error handling best practices including try-catch, Promise rejection, and error boundaries.

Code Review

Review scripts, client components, and browser execution paths related to Implement proper error handling. Flag exact imports, event handlers, runtime side effects, or blocking operations that violate the rule, and state how the change should be verified in the browser.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/javascript/error-handling

FAQ

What is an error boundary?

In React, it is a component that catches errors in its children and shows a fallback instead of crashing the whole screen.

Is it acceptable to ignore an error?

The skill says never to swallow errors silently. Each error should be handled or passed on.

Does it check promise rejections?

Yes. The skill includes unhandled promise rejections as part of good error handling.

Details

Original description by the author

Use when reviewing scripts, client components, bundles, or runtime behavior related to Implement proper error handling. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2833
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills