Claude Code Safety Kit
A downloadable tool
Download NowName your own price
Stop Claude Code from deleting your files
Real incidents this prevents:
- 3,467 files (7 GB) deleted without confirmation (#46058)
- Entire user profile deleted via NTFS junctions — 165 GB (#36339)
- Production data deleted via NFS mount (#36640)
Claude Code ships with no protection against destructive commands. This kit fixes that.
A ready-to-use safety kit built from 800+ hours of autonomous Claude Code operation. Drop these hooks into your project and prevent disasters before they happen.
What's Inside (12 files)
5 Safety Hooks:
- destructive-guard.sh — Blocks rm -rf, git reset --hard, and other dangerous commands
- main-branch-guard.sh — Prevents direct pushes to main/master
- secret-scan-guard.sh — Stops .env files and API keys from being committed
- large-read-guard.sh — Warns before reading large files (saves tokens)
- syntax-check-after-edit.sh — Auto-validates Python/JS/JSON/YAML after every edit
Templates & Guides:
- settings.json — Pre-configured hook settings, copy and go
- CLAUDE_MD_TEMPLATE.md — Project rules template
- TIPS_800_HOURS.md — Hard-won tips from 800hrs of autonomous operation
- setup_guide.md — WSL2 + Claude Code setup guide
Setup: 5 minutes
Copy the hooks into your project, paste the settings.json config, done. No dependencies.
Want the full 650+ hook collection? cc-safe-setup on GitHub (9,200+ tests, free and open source).
Download
Download NowName your own price
Click download now to get access to the following files:
claude-code-safety-kit-default.zip 21 kB
Version 1
Leave a comment
Log in with itch.io to leave a comment.