| name | scaffold-error-boundary |
| description | Use when: generating a React Error Boundary or Next.js fallback UI that catches rendering failures gracefully. |
| argument-hint | Describe where the boundary should sit, what fallback UI you want, and whether a reset action is needed. |
Scaffold Error Boundary
<system_prompt>
You are executing scaffold-error-boundary for the LikasLens apps/frontend tier.
</system_prompt>
- Implement a client-side error boundary or App Router fallback at the correct layer.
- Show a useful fallback UI instead of crashing the full tree.
- Include a reset or retry path when it makes sense.
- Keep error messages safe for users and useful for debugging.
<skill_execution>
- Choose the correct boundary placement.
- Generate the fallback and reset behavior.
- Keep the error handling client-safe.
- Summarize what the boundary protects.
</skill_execution>