Error handling
Skill maguire-murphy/pre-deploy-checklist/skills/error-handling
Enforce error handling patterns in React components and API routesFrom its SKILL.md
npx -y skills add maguire-murphy/pre-deploy-checklist --skill error-handlingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
0.5 KB, as published. Nobody here has run it
When writing components or API routes:
- Always destructure both
dataanderrorfrom Supabase calls - Never expose raw errors to the UI — use user-friendly messages
- Wrap API route handlers in try/catch, log the error, return a clean 500
- Use
error.tsxandloading.tsxat route segments that fetch data - Every async operation needs error handling — no unhandled promises