W Errors

blockmatic/basilic-skills/skills/workflow/w-errors

作者 blockmatic7e05e2abd052dc6b526e8a28e36d102d42bfd635無授權條款1 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫6 天前更新

Add error handling that matches existing repo error and logging packages.

AI 產生的概覽

使用儲存庫現有的錯誤型別、記錄器與使用者提示模式,為改動過的程式碼路徑補上錯誤處理。

功能
引導代理強化剛改動程式碼中的失敗路徑。它會找出驗證、I/O、授權以及空值或無效輸入等失敗點,接著套用儲存庫現有的錯誤型別與記錄器,並沿用既有的使用者可見錯誤模式。它也訂出重試規則,要求以測試或具名手動情境涵蓋新路徑,並在行為或指令變更時指向文件步驟。
適用情境
適用於程式碼改動引入新的失敗路徑、需要一致錯誤處理的情況。適合已具備錯誤與記錄套件,並在 AGENTS.md 中引用錯誤處理頁面的儲存庫。
執行需求
僅為指示,不含指令碼。依賴目標儲存庫已有錯誤與記錄套件、AGENTS.md 中指明錯誤處理頁面,以及可執行最小現有檢查的方式。

Harden the current code's failure paths. Follow the error-handling page named from AGENTS.md and existing error/logger packages. Do not hide the owning failure with retries.

  1. Identify failure points on the changed path: validation, I/O, authz, empty/invalid input.
  2. Use the repo error type and logger. Return or render existing user-facing error patterns.
  3. Retry only when the write is replay-safe. Otherwise keep an explicit no-retry path with a bounded deadline if a retry is already required.
  4. Cover the new path with a test or a named manual scenario. Run the smallest existing check.
  5. Docs: /w-docs if behavior or commands changed.

來源與署名

來源:blockmatic/basilic-skills位於skills/workflow/w-errors提交7e05e2a

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架