Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ai-shifu/app-error-boundary-display
当 cook-web 需要调整 Next.js App Router 全局或路由级错误兜底页时使用本技能。错误页应直接展示错误名称、message、digest、cause、URL 和可用 stack,避免只提示用户查看控制台。
Passed 23 of 23 test cases with the skill, and 14 of 23 without it.
and 11 more in the full report
9 fixed14 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
After updating the global-error.tsx and error.tsx files in Next.js, what quick verification command should be executed to ensure component signatures and client boundaries are correct?
| Checked | Without skill | With skill |
|---|---|---|
| The verification step includes running npm run type-check. | Missed | Passed |
The instructions your model reads when the skill loads.
src/app/error.tsx 和 src/app/global-error.tsx;前者处理路由段错误,后者处理根布局或更外层错误。name、message、digest、cause、当前 URL;有 stack 时可截断后直接展示,便于截图定位。global-error.tsx 需要自己返回 <html> 和 <body>,不要依赖根布局里的 Provider、i18n 或运行时配置已经初始化。@/store barrel,避免错误页加载时触发 unrelated store 的模块副作用。dvh,不要使用 vh 或 env(safe-area-inset-bottom)。src/app/error.tsx 与 src/app/global-error.tsx。window、document 或触发 store 初始化副作用。npm run type-check,确认 App Router 特殊文件签名和 client component 类型通过。test cases passed, vs 14 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.