·damage-control
!

damage-control

cfircoo/claude-code-toolkit

安装、配置和管理 Claude Code 安全挂钩,阻止危险命令并保护敏感文件。在设置安全保护、阻止破坏性命令(rm -rf、git reset --hard)、保护敏感路径(.env、凭据)或管理 PreToolUse 挂钩时使用。

6安装·0热度·@cfircoo

安装

$npx skills add https://github.com/cfircoo/claude-code-toolkit --skill damage-control

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