next-error-tsx

Installation
SKILL.md

next-error-tsx

You write the files. The human never has to paste a template.

When a route segment throws, Next shows the digest overlay in production unless error.tsx exists. That is the bug. This skill is the file.

Companion: next-loading-skeleton covers the blank wait. This covers the crash.


When this applies

Apply when: creating or editing an App Router page.tsx that fetches or calls a server action; the user says error boundary, error.tsx, try again, digest screen, or "something went wrong"; a route has loading.tsx but no error.tsx.

Do not apply when: they want to catch a missing record (that is notFound() + not-found.tsx), they want to swallow an error in a try/catch and keep rendering, or they are on Pages Router.


Workflow

Installs
1
GitHub Stars
1
First Seen
7 days ago