Damage Control
CommunityDefense-in-depth for Claude Code security.
Software Engineering#pretooluse#security-hooks#command-blocking#damage-control#patterns.yaml#path-protection
AuthorTobiasBak
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Damage Control defends Claude Code by intercepting tool calls before execution, blocking dangerous commands and protecting sensitive files via PreToolUse hooks. It also enforces guarded operations with Ask patterns and strict path protections to prevent unintended or destructive actions.
Core Features & Use Cases
- Command Pattern Blocking: Blocks dangerous bash commands (rm -rf, git reset --hard, etc.) before they run.
- Ask Patterns: Triggers confirmation dialogs for risky-but-valid operations (when needed).
- Path Protection Levels: Defines zeroAccessPaths, readOnlyPaths, and noDeletePaths to control access to secrets and critical files.
- Runtime Flexibility: Supports Python (UV) or TypeScript (Bun) implementations for executing hooks.
- Project Scoping: Works at Global, Project, and Project Personal levels for flexible deployment.
Quick Start
Install Damage Control, then choose a protection level and add patterns to block dangerous commands.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Damage Control Download link: https://github.com/TobiasBak/dotfiles/archive/main.zip#damage-control Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.