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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2833
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.