·error-handling
</>

error-handling

srstomp/pokayokay

適用於強大應用程序的全面錯誤處理模式,包括自定義錯誤、錯誤邊界、恢復策略和麵向用戶的錯誤消息。在設計錯誤層次結構、實現 React 錯誤邊界、添加重試邏輯或回退、創建 API 錯誤響應、集成錯誤跟踪 (Sentry) 或改進用戶錯誤通信時,請使用此技能。在“錯誤處理”、“錯誤邊界”、“自定義錯誤”、“重試邏輯”、“優雅降級”、“錯誤跟踪”、“哨兵”、“用戶錯誤消息”、“try-catch”、“結果類型”、“斷路器”上觸發。

9安裝·1熱度·@srstomp

安裝

$npx skills add https://github.com/srstomp/pokayokay --skill error-handling

SKILL.md

Design resilient applications through intentional error handling strategies.

Core principle: Errors are data, not just exceptions. Design them intentionally.

| Need typed error categories | Custom error classes | error-patterns.md | | Want explicit error handling (no throws) | Result/Either type | error-patterns.md | | React component might crash | Error boundary | react-errors.md | | API endpoint error response | Structured API errors | api-errors.md |

適用於強大應用程序的全面錯誤處理模式,包括自定義錯誤、錯誤邊界、恢復策略和麵向用戶的錯誤消息。在設計錯誤層次結構、實現 React 錯誤邊界、添加重試邏輯或回退、創建 API 錯誤響應、集成錯誤跟踪 (Sentry) 或改進用戶錯誤通信時,請使用此技能。在“錯誤處理”、“錯誤邊界”、“自定義錯誤”、“重試邏輯”、“優雅降級”、“錯誤跟踪”、“哨兵”、“用戶錯誤消息”、“try-catch”、“結果類型”、“斷路器”上觸發。 來源:srstomp/pokayokay。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/srstomp/pokayokay --skill error-handling
分類
</>開發工具
認證
收錄時間
2026-02-02
更新時間
2026-02-18

快速解答

什麼是 error-handling?

適用於強大應用程序的全面錯誤處理模式,包括自定義錯誤、錯誤邊界、恢復策略和麵向用戶的錯誤消息。在設計錯誤層次結構、實現 React 錯誤邊界、添加重試邏輯或回退、創建 API 錯誤響應、集成錯誤跟踪 (Sentry) 或改進用戶錯誤通信時,請使用此技能。在“錯誤處理”、“錯誤邊界”、“自定義錯誤”、“重試邏輯”、“優雅降級”、“錯誤跟踪”、“哨兵”、“用戶錯誤消息”、“try-catch”、“結果類型”、“斷路器”上觸發。 來源:srstomp/pokayokay。

如何安裝 error-handling?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/srstomp/pokayokay --skill error-handling 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/srstomp/pokayokay