從來源直接安裝技能的最快方式。
npx clawhub@latest install error
將技能資料夾複製到以下位置之一
~/.openclaw/skills/ <project>/skills/ 優先級:工作區 > 本地 > 內建
將此提示詞複製到 OpenClaw 即可自動安裝。
請幫我使用 Clawhub 安裝 error。如果尚未安裝 Clawhub,請先安裝(npm i -g clawhub)。
取得包含原生技能檔案的ZIP壓縮檔。
Error 技能是為開發健壯且具有彈性的應用程式的開發者設計的專業技術參考。它提供了有關錯誤類型、異常模式和可觀測性標準的關鍵數據的即時訪問,確保故障處理在您的開發工作流程中成為一等公民。透過利用像這樣的 Openclaw Skills,開發者可以標準化其應用程式向用戶和內部監控系統傳達故障的方式。
該工具透過提供從 HTTP 狀態碼實現到帶有抖動的複雜重試邏輯等所有內容的結構化指導,彌合了開發與生產穩定性之間的差距。對於任何希望在程式碼庫中實現行業標準錯誤邊界和結構化日誌記錄實踐的人來說,它都是必不可少的資產。
要開始使用此錯誤參考技能,請確保您已配置必要的環境。您可以使用以下步驟安裝並初始化該技能:
# Define the data directory if you wish to override the default
export ERROR_DIR="~/.error/"
# Access the help menu to see all available reference modules
scripts/script.sh help
# Initialize the intro module to learn about the core error handling philosophy
scripts/script.sh intro
該技能將其技術參考組織成模塊化類別,以便快速查找。數據圍繞以下分類進行結構化:
| Module | Content Type | Key Data Points |
|---|---|---|
| HTTP | Reference Table | Status codes (2xx-5xx), usage context, and RFC compliance. |
| Retry | Strategy Guide | Exponential backoff formulas, jitter implementation, and circuit breaker thresholds. |
| Logging | Best Practices | Structured JSON logging formats, severity levels (Info vs Critical), and context metadata. |
| Patterns | Code Reference | Try/catch blocks, Result/Either types, and framework-specific error boundaries. |
加載中







































