---
title: "damage-control"
description: "損害控制 (Damage Control) 安全系統: 透過 PreToolUse 鉤子封鎖危險指令並保護敏感檔案"
canonical: https://agentpluginsdirectory.com/plugins/damage-control
last-updated: 2026-11-07
---

# damage-control
損害控制 (Damage Control) 安全系統: 透過 PreToolUse 鉤子封鎖危險指令並保護敏感檔案
- Slug: damage-control
- Publisher: Ricky
- Repository: https://github.com/RDCrystalLab/agentic-plugins
- Manifest: plugins/damage-control/plugin.json
- Version: 1.0.0
- License: MIT
- Category (editorial): security
- Skills: 1 (damage-control)
- MCP servers: 0
- Stars: 0
- Repository created: 2026-01-10
- Repository last pushed: 2026-08-15
- Publisher type: Organization
- Listing: https://agentpluginsdirectory.com/plugins/damage-control
- Schema: https://agent-plugins.org/schemas/1.0.0/plugin.schema.json

## What damage-control does, in the publisher's words

損害控制 (Damage Control): Claude Code 的深度防禦 (defense-in-depth) 安全系統。透過 PreToolUse 鉤子封鎖危險指令並保護敏感檔案。

- 指令模式封鎖 (Command Pattern Blocking)：封鎖危險的 bash 指令（如 rm -rf、git reset --hard 等）
- 詢問模式 (Ask Patterns)：對於有風險但合理的操作觸發確認對話框
- 路徑保護等級 (Path Protection Levels)：
- zeroAccessPaths: 零存取路徑：完全禁止存取
- readOnlyPaths: 唯讀路徑：允許讀取，封鎖修改
- noDeletePaths: 禁止刪除路徑：允許所有操作，但禁止刪除

安裝後執行技能：

From the project README, punctuation lightly normalized. Full text: https://raw.githubusercontent.com/RDCrystalLab/agentic-plugins/HEAD/plugins/damage-control/README.md

## Skills

- damage-control: This skill should be used when the user asks to "install damage control", "setup security hooks", "deploy damage control", "add protection", "block dangerous commands", "protect sensitive files", "test damage control", "verify hooks", "安裝 damage control", "設定安全鉤子", "部署損害控制", "新增保護", "封鎖危險指令", "保護敏感…

Descriptions come from the frontmatter of each SKILL.md, punctuation lightly normalized.
