dislerdislerCommunityยท1 Agent Skills Included

claude-code-damage-control

Blocks dangerous commands and protects sensitive files

Blocks destructive shell commands like rm -rf and git reset --hard before they execute. Protects secrets, credentials, and system files with zero-access, read-only, and no-delete path rules. Eliminates the risk of accidental data loss during automated coding sessions. Includes interactive workflows to install, modify, and test protection settings.
npx skills add disler/claude-code-damage-control --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install Claude Code Damage Control?โ–ผ

Run `npx skills add disler/claude-code-damage-control --all -g -y` in your terminal to install the skill globally, then say "install the damage control system" to set up the hooks.

How to stop AI from running dangerous commands?โ–ผ

Damage Control intercepts every Bash, Edit, and Write call with PreToolUse hooks and blocks risky commands like rm -rf or force pushes before they run.

How to protect secrets and credentials from AI coding tools?โ–ผ

Add folders like ~/.ssh or ~/.aws to the zeroAccessPaths list in patterns.yaml, and the hooks will deny all read, write, edit, and delete access to them.

Does Damage Control work on Windows?โ–ผ

Yes. The built-in Windows workflow adds PowerShell and cmd equivalents for every blocked Unix pattern, creating one cross-platform configuration.

Can I customize which commands get blocked?โ–ผ

Yes. Just ask to modify damage control, and the skill guides you through adding blocked commands, protected paths, or ask-first confirmation rules.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’