·error-sanitization
</>

error-sanitization

dadbodgeoff/drift

生產安全的錯誤處理,在服務器端記錄完整的詳細信息,同時僅向用戶公開通用的安全消息。防止數據庫字符串、文件路徑、堆棧跟踪和 API 密鑰的信息洩漏。

10安裝·0熱度·@dadbodgeoff

安裝

$npx skills add https://github.com/dadbodgeoff/drift --skill error-sanitization

SKILL.md

Production-safe error handling: log everything server-side, expose nothing sensitive to users.

Error messages can leak sensitive information including database connection strings, internal file paths, stack traces, API keys, and business logic details. The solution is to always log full error details server-side for debugging while returning only generic, safe messages to users.

生產安全的錯誤處理,在服務器端記錄完整的詳細信息,同時僅向用戶公開通用的安全消息。防止數據庫字符串、文件路徑、堆棧跟踪和 API 密鑰的信息洩漏。 來源:dadbodgeoff/drift。

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

查看原文

可引用資訊

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

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

快速解答

什麼是 error-sanitization?

生產安全的錯誤處理,在服務器端記錄完整的詳細信息,同時僅向用戶公開通用的安全消息。防止數據庫字符串、文件路徑、堆棧跟踪和 API 密鑰的信息洩漏。 來源:dadbodgeoff/drift。

如何安裝 error-sanitization?

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

這個 Skill 的原始碼在哪?

https://github.com/dadbodgeoff/drift

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-02-06