Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Standardized guidelines and patterns for Frontend Data Error Handling.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -66% | 0% |
| case-16 | ✗→✓ | ▲ Improved | -43% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -52% | 0% |
| case-19 | ✗→✓ | ▲ Improved | -20% | 0% |
typescripttry { const data = await fetchUser(id); return data; } catch (error) { if (error.response?.status === 404) { throw new NotFoundError('User not found'); } if (error.response?.status >= 500) { throw new ServerError('Server error, please try again'); } throw error; }
typescriptclass ErrorBoundary extends React.Component { state = { hasError: false, error: null }; static getDerivedStateFromError(error) { return { hasError: true, error }; } componentDidCatch(error, errorInfo) { console.error('Error:', error, errorInfo); } render() { if (this.state.hasError) { return <ErrorFallback error={this.state.error} />; } return this.props.children; } }
Other measured skills in the registry, with their headline benchmark lift.