damage-control
✓安裝、配置和管理 Claude Code 安全掛鉤,阻止危險命令並保護敏感文件。在設置安全保護、阻止破壞性命令(rm -rf、git reset --hard)、保護敏感路徑(.env、憑據)或管理 PreToolUse 掛鉤時使用。
SKILL.md
Defense-in-depth protection system for Claude Code. Uses PreToolUse hooks to intercept and validate tool calls before execution, blocking dangerous commands and protecting sensitive files.
| Level | Read | Write | Edit | Delete | Use Case |
| zeroAccessPaths | No | No | No | No | Secrets, credentials, .env files | | readOnlyPaths | Yes | No | No | No | System configs, lock files, build artifacts | | noDeletePaths | Yes | Yes | Yes | No | Important project files, .git/, LICENSE |
安裝、配置和管理 Claude Code 安全掛鉤,阻止危險命令並保護敏感文件。在設置安全保護、阻止破壞性命令(rm -rf、git reset --hard)、保護敏感路徑(.env、憑據)或管理 PreToolUse 掛鉤時使用。 來源:cfircoo/claude-code-toolkit。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/cfircoo/claude-code-toolkit --skill damage-control- 分類
- !安全工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 damage-control?
安裝、配置和管理 Claude Code 安全掛鉤,阻止危險命令並保護敏感文件。在設置安全保護、阻止破壞性命令(rm -rf、git reset --hard)、保護敏感路徑(.env、憑據)或管理 PreToolUse 掛鉤時使用。 來源:cfircoo/claude-code-toolkit。
如何安裝 damage-control?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/cfircoo/claude-code-toolkit --skill damage-control 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/cfircoo/claude-code-toolkit
詳情
- 分類
- !安全工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01