Claude-skill-registry handling-global-errors
Unified strategy for catching and displaying API and network errors. Use throughout the application logic.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/handling-global-errors" ~/.claude/skills/majiayu000-claude-skill-registry-handling-global-errors && rm -rf "$T"
manifest:
skills/data/handling-global-errors/SKILL.mdsource content
Global Error Handling System
When to use this skill
- Wrapping server actions.
- Client-side API calls.
- Handling 404/500 pages.
Workflow
- Use
blocks.try-catch - Parse Appwrite errors (code 401, 404, etc.).
- Trigger Toast notification with user-friendly message.
- Log technical errors to a service (optional).
Instructions
- User Friendly: Never show "Internal Server Error" to a user; show "Something went wrong on our end, please try again."
- Specifics: Distinguish between "Wrong Password" and "Server Unreachable".